js-pointer
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "js-pointer", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Tiny, spec compliant JSON Pointer RFC 6901 implementation.", | ||
@@ -9,9 +9,10 @@ "main": "dist/index.js", | ||
"compile": "babel lib --out-dir dist", | ||
"coverage": "BABEL_ENV=coverage nyc --require babel-register --source-map false --instrument false --reporter=lcov mocha ./test && cat ./coverage/lcov.info | coveralls", | ||
"lint": "eslint 'lib/**' 'test/**'", | ||
"test": "nyc --check-coverage --require babel-register mocha ./test", | ||
"test-dist": "TEST_TARGET=dist mocha --require babel-register", | ||
"test-with-coverage": "BABEL_ENV=coverage nyc --require babel-register --source-map false --instrument false npm run test-dist", | ||
"watch": "chokidar 'lib/*.js' 'test/*.js' -c 'npm run lint && npm test'", | ||
"ci": "npm run lint && npm run compile && npm run test-dist && npm run coverage", | ||
"prepublish": "npm run compile" | ||
"ci": "npm run lint && npm run compile && npm run test-with-coverage", | ||
"prepublish": "npm run compile", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
@@ -29,3 +30,3 @@ "repository": { | ||
"engines": { | ||
"node": ">=0.10.40" | ||
"node": ">= 4" | ||
}, | ||
@@ -38,3 +39,3 @@ "author": "Toboid", | ||
"babel-core": "^6.7.7", | ||
"babel-plugin-istanbul": "^1.0.3", | ||
"babel-plugin-istanbul": "^2.0.0", | ||
"babel-preset-es2015": "^6.6.0", | ||
@@ -47,6 +48,6 @@ "babel-register": "^6.11.5", | ||
"eslint-config-toboid": "^1.0.1", | ||
"lodash": "^4.8.2", | ||
"mocha": "^2.5.3", | ||
"nyc": "^7.0.0" | ||
"lodash": "^4.17.1", | ||
"mocha": "^3.0.0", | ||
"nyc": "^10.0.0" | ||
} | ||
} |
@@ -17,6 +17,6 @@ # js-pointer | ||
``` javascript | ||
var jsPointer = require('js-pointer'); | ||
const jsPointer = require('js-pointer'); | ||
var object = { one: { two: 3 } } | ||
jsonPointer.get(object, '/one/two') | ||
const object = { one: { two: 3 } } | ||
jsPointer.get(object, '/one/two') | ||
// → 3 | ||
@@ -27,4 +27,4 @@ | ||
``` javascript | ||
var object = { one: { two: [3] } } | ||
jsonPointer.get(object, '/one/two/0') | ||
const object = { one: { two: [3] } } | ||
jsPointer.get(object, '/one/two/0') | ||
// → 3 | ||
@@ -35,4 +35,4 @@ ``` | ||
``` javascript | ||
var object = { one: { two: [{ three: 4 }] } } | ||
jsonPointer.get(object, '/one/two/0/three') | ||
const object = { one: { two: [{ three: 4 }] } } | ||
jsPointer.get(object, '/one/two/0/three') | ||
// → 4 | ||
@@ -39,0 +39,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
6559