path-to-prop
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "path-to-prop", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"sideEffects": false, | ||
"description": "Retrieves a property from an object based on a path.to.that.prop", | ||
@@ -9,25 +10,35 @@ "main": "dist/index.cjs.js", | ||
"scripts": { | ||
"test": "ava", | ||
"rollup": "rollup -c build/rollup.js", | ||
"build": "npm run rollup && npm run test" | ||
"test": "ava --verbose", | ||
"build": "npm run lint && npm run test && npm run rollup", | ||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | ||
"rollup": "rollup -c build/rollup.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mesqueeb/path-to-prop.git" | ||
}, | ||
"keywords": [ | ||
"path-to-prop" | ||
], | ||
"keywords": ["path-to-prop"], | ||
"author": "Luca Ban - Mesqueeb", | ||
"license": "MIT", | ||
"homepage": "https://github.com/mesqueeb/path-to-prop#readme", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^2.28.0", | ||
"@typescript-eslint/parser": "^2.28.0", | ||
"ava": "^3.7.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.10.1", | ||
"eslint-plugin-tree-shaking": "^1.8.0", | ||
"rollup": "^2.6.1", | ||
"rollup-plugin-typescript2": "^0.27.0", | ||
"ts-node": "^8.8.2", | ||
"typescript": "^3.8.3" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/mesqueeb/path-to-prop/issues" | ||
}, | ||
"homepage": "https://github.com/mesqueeb/path-to-prop#readme", | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"rollup": "^1.27.13", | ||
"rollup-plugin-typescript2": "^0.24.3", | ||
"typescript": "^3.7.4" | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mesqueeb/path-to-prop.git" | ||
}, | ||
"ava": { | ||
"extensions": ["ts"], | ||
"require": ["ts-node/register"] | ||
} | ||
} |
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -29,3 +28,3 @@ * Returns the keys of a path | ||
const key = keys.shift() | ||
if (obj && obj.hasOwnProperty(key)) { | ||
if (obj && Object.hasOwnProperty.call(obj, key)) { | ||
return obj[key] | ||
@@ -32,0 +31,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10677
14
218
10