filter-anything
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -25,3 +25,2 @@ 'use strict'; | ||
} | ||
// @ts-ignore | ||
return Object.keys(obj).reduce(function (carry, key) { | ||
@@ -28,0 +27,0 @@ var path = pathUntilNow; |
@@ -21,3 +21,2 @@ import { isPlainObject } from 'is-what'; | ||
} | ||
// @ts-ignore | ||
return Object.keys(obj).reduce(function (carry, key) { | ||
@@ -24,0 +23,0 @@ var path = pathUntilNow; |
{ | ||
"name": "filter-anything", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"sideEffects": false, | ||
@@ -13,3 +13,4 @@ "description": "A simple (TypeScript) integration of \"pick\" and \"omit\" to filter props of an object", | ||
"rollup": "rollup -c build/rollup.js", | ||
"build": "npm run lint && npm run lint && npm run test && npm run rollup" | ||
"build": "npm run lint && npm run test && npm run rollup", | ||
"release": "npm run build && np" | ||
}, | ||
@@ -42,17 +43,19 @@ "repository": { | ||
"dependencies": { | ||
"is-what": "^3.11.3", | ||
"ts-toolbelt": "8.0.7" | ||
"is-what": "^3.14.1", | ||
"ts-toolbelt": "9.3.12" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.6.1", | ||
"@typescript-eslint/parser": "^4.6.1", | ||
"ava": "^3.13.0", | ||
"eslint": "^7.12.1", | ||
"eslint-config-prettier": "^6.15.0", | ||
"@typescript-eslint/eslint-plugin": "^4.15.2", | ||
"@typescript-eslint/parser": "^4.15.2", | ||
"ava": "^3.15.0", | ||
"eslint": "^7.20.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-tree-shaking": "^1.8.0", | ||
"rollup": "^2.33.1", | ||
"rollup-plugin-typescript2": "^0.29.0", | ||
"np": "^7.4.0", | ||
"prettier": "^2.2.1", | ||
"rollup": "^2.39.1", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"ts-node": "^9.1.1", | ||
"tsconfig-paths": "^3.9.0", | ||
"ts-node": "^9.0.0", | ||
"typescript": "^4.0.5" | ||
"typescript": "^4.2.2" | ||
}, | ||
@@ -67,3 +70,27 @@ "ava": { | ||
] | ||
}, | ||
"np": { | ||
"yarn": false, | ||
"branch": "production" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"tree-shaking" | ||
], | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"tree-shaking/no-side-effects-in-initialization": "error", | ||
"@typescript-eslint/ban-ts-comment": "off" | ||
} | ||
} | ||
} |
@@ -5,3 +5,3 @@ export default function pathsAreEqual (path: string, wildcardPath: string): boolean { | ||
.split('.') | ||
.reduce((carry, piece, index) => { | ||
.reduce<string[]>((carry, piece, index) => { | ||
const add = wildcardPathPieces[index] === '*' ? '*' : piece | ||
@@ -8,0 +8,0 @@ carry.push(add) |
@@ -12,4 +12,3 @@ import { isPlainObject } from 'is-what' | ||
} | ||
// @ts-ignore | ||
return Object.keys(obj).reduce((carry, key) => { | ||
return Object.keys(obj).reduce<Record<string, any>>((carry, key) => { | ||
let path = pathUntilNow | ||
@@ -49,3 +48,3 @@ if (path) path += '.' | ||
return carry | ||
}, {}) | ||
}, {}) as T | ||
} |
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"lib": [ "es7", "dom" ], | ||
"strict": true, | ||
"isolatedModules": true, | ||
"esModuleInterop": true, | ||
"declaration": true, | ||
"declarationDir": "./types/", | ||
"lib": [ "es7", "dom" ] | ||
"declarationDir": "./types/" | ||
}, | ||
@@ -8,0 +11,0 @@ "include": [ |
157662
13
20
691
+ Addedts-toolbelt@9.3.12(transitive)
- Removedts-toolbelt@8.0.7(transitive)
Updatedis-what@^3.14.1
Updatedts-toolbelt@9.3.12