Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

path-to-prop

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

path-to-prop - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.eslintignore

45

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc