Skip to content

Commit

Permalink
Merge pull request #24 from w3nl/feature/update-packages
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
w3nl committed Jul 3, 2020
2 parents 6e1b91c + 78789e3 commit 94f0cf0
Show file tree
Hide file tree
Showing 11 changed files with 1,869 additions and 3,584 deletions.
7 changes: 2 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
],
"rules": {
"consistent-return": "warn",
"eqeqeq": "warn"
},
"env": {
"es6": true,
"node": true,
"jquery": true,
"jquery": false,
"browser": true
},
"globals": {
"Modernizr": false,
"W2Form": false
},
"parserOptions": {
"sourceType": "module"
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:

strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 14.x]
node-version: [10.x, 12.x, 14.x]

steps:
- uses: actions/checkout@v1
Expand Down
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.2 - 2020-07-03
=====

* Update dependencies

2.2.1 - 2020-05-07
=====

Expand Down
2 changes: 1 addition & 1 deletion js/helpers.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Arr extends Array {
pushMultipleIfNotExists(newValues) {
const array = this;

newValues.forEach(value => {
newValues.forEach((value) => {
array.pushIfNotExists(value);
});

Expand Down
4 changes: 2 additions & 2 deletions js/modules/diff.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = function diff(currentArray, otherArray, total) {
const differenceArray = currentArray.filter(
value => otherArray.indexOf(value) < 0
(value) => otherArray.indexOf(value) < 0
);
let differenceArrayB = [];

if (total) {
differenceArrayB = otherArray.filter(
value => currentArray.indexOf(value) < 0
(value) => currentArray.indexOf(value) < 0
);
}

Expand Down
4 changes: 2 additions & 2 deletions js/modules/intersect.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function intersect(original, array, multi) {
return original.filter(value => {
return original.filter((value) => {
let found = 0;

if (multi) {
array.forEach(arrayValues => {
array.forEach((arrayValues) => {
if (arrayValues.indexOf(value) >= 0) {
found += 1;
}
Expand Down
4 changes: 2 additions & 2 deletions js/modules/multifilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const min = require('./min.js');
const max = require('./max.js');

module.exports = function multifilter(original, key, find, operator) {
return original.filter(item => {
return original.filter((item) => {
let values = item[key];
let returnValue = false;

Expand All @@ -12,7 +12,7 @@ module.exports = function multifilter(original, key, find, operator) {

values = values.toString().split(',');

values.forEach(value => {
values.forEach((value) => {
if (Array.isArray(find)) {
if (
find.indexOf(value) < 0 &&
Expand Down
4 changes: 2 additions & 2 deletions js/modules/multikey.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = function multikey(original, key) {
return original.map(value => {
return original.map((value) => {
const item = {};

if (typeof key === 'object') {
key.forEach(itemKey => {
key.forEach((itemKey) => {
item[itemKey] = value[itemKey];
});

Expand Down
5,390 changes: 1,837 additions & 3,553 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "array-helpers",
"version": "2.2.1",
"version": "2.2.2",
"description": "Usefull array helpers.",
"files": [
"js/helpers.core.js",
Expand Down Expand Up @@ -45,26 +45,25 @@
"coveralls": "jest && codecov && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@hckrnews/eslint-config": "^0.1.1",
"@babel/core": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@hckrnews/eslint-config": "^1.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.5.1",
"codecov": "^3.6.5",
"babel-jest": "^26.1.0",
"codecov": "^3.7.0",
"coveralls": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint": "^7.3.1",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-html": "^6.0.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.3",
"eslint-plugin-vue": "^6.2.2",
"esm": "^3.2.25",
"jest": "^25.5.4",
"jscpd": "^3.2.1",
"prettier": "1.19.1"
"jest": "^26.1.0",
"prettier": "^2.0.5"
},
"dependencies": {},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion test/arr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Arr } from '../js/helpers.core';

const original = new Arr(1, 2, 3);
const mapped = original.map(x => x * x);
const mapped = original.map((x) => x * x);

describe('Instance', () => {
it('Test if the original output from Arr is a instance of Arr', () => {
Expand Down

0 comments on commit 94f0cf0

Please sign in to comment.