New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nessy

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nessy - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

21

lib/nessy.js

@@ -13,12 +13,15 @@ 'use strict';

selector.split(divider)
.forEach((name, i, arr) => {
if (i === arr.length - 1)
obj[name] = value;
else if (!obj[name])
obj[name] = {};
obj = obj[name];
});
const arr = selector.split(divider);
for (let i = 0; i < arr.length ; i++) {
const name = arr[i];
if (i === arr.length - 1)
obj[name] = value;
else if (!obj[name])
obj[name] = {};
obj = obj[name];
}
return result;

@@ -25,0 +28,0 @@ };

{
"name": "nessy",
"version": "2.1.0",
"version": "3.0.0",
"description": "set value in nested object",
"main": "lib/nessy.js",
"scripts": {
"test": "tape test/*.js",
"watcher": "nodemon -w test -w lib --exec",
"watch:test": "npm run watcher -- npm test",
"jscs": "jscs --esnext lib test",
"jshint": "jshint lib test",
"lint": "redrun jshint jscs",
"build": "redrun clean init 6to5 legacy:* bundle bundle:es6 minify",
"minify": "minify dist/nessy.js > dist/nessy.min.js",
"wisdom": "npm run build",
"jscs-fix": "npm run jscs --fix",
"init": "mkdirp dist legacy",
"clean": "rimraf legacy dist",
"bundle:base": "browserify -s nessy --ng false",
"bundle": "npm run bundle:base -- -r ./legacy/lib/nessy.js:nessy ./legacy/lib/nessy.js -o dist/nessy.js",
"bundle:es6:base": "npm run bundle:base -- -r ./lib/nessy.js:nessy ./lib/nessy.js",
"bundle:es6": "npm run bundle:es6:base -- -o dist/nessy.es6.js",
"coverage": "nyc npm test",
"report": "nyc report --reporter=text-lcov | coveralls",
"6to5": "babel lib -d legacy/lib",
"legacy:index": "echo \"module.exports = require('./lib/nessy');\" > legacy/index.js"
"test": "madrun test",
"watcher": "madrun watcher",
"watch:test": "madrun watch:test",
"lint": "madrun lint",
"fix:lint": "madrun fix:lint",
"coverage": "madrun coverage",
"report": "madrun report"
},

@@ -44,18 +31,19 @@ "repository": {

},
"engine": {
"node": ">=4"
},
"homepage": "https://github.com/coderaiser/nessy",
"devDependencies": {
"babel-cli": "^6.1.1",
"babel-preset-es2015": "^6.0.15",
"browserify": "^14.0.0",
"coveralls": "^2.11.6",
"jscs": "^3.0.1",
"jshint": "^2.8.0",
"minify": "^3.0.0",
"coveralls": "^3.0.0",
"eslint": "^5.6.0",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-putout": "^3.2.0",
"madrun": "^5.4.1",
"nodemon": "^1.10.2",
"nyc": "^11.0.2",
"redrun": "^5.0.1",
"rimraf": "^2.4.3",
"tape": "^4.2.0"
"nyc": "^12.0.2",
"putout": "^7.4.1",
"redrun": "^7.0.0",
"supertape": "^1.2.4"
},
"dependencies": {}
}

@@ -49,10 +49,2 @@ # Nessy [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Dependency Status][DependencyStatusIMGURL]][DependencyStatusURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]

## Environments
In old `node.js` environments that not fully supports `es2015`, `nessy` could be used with:
```js
var nessy = require('nessy/legacy');
```
## Related

@@ -62,2 +54,3 @@

- [all-object-keys](https://github.com/coderaiser/all-object-keys "all-object-keys") - get all keys of object.
- [finicky](https://github.com/coderaiser/finicky "finicky") delete property of an object

@@ -70,7 +63,7 @@ ## License

[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/nessy/master.svg?style=flat
[DependencyStatusIMGURL]: https://img.shields.io/gemnasium/coderaiser/nessy.svg?style=flat
[DependencyStatusIMGURL]: https://img.shields.io/david/coderaiser/nessy.svg?style=flat
[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat
[NPMURL]: https://npmjs.org/package/nessy "npm"
[BuildStatusURL]: https://travis-ci.org/coderaiser/nessy "Build Status"
[DependencyStatusURL]: https://gemnasium.com/coderaiser/nessy "Dependency Status"
[DependencyStatusURL]: https://david-dm.org/coderaiser/nessy "Dependency Status"
[LicenseURL]: https://tldrlegal.com/license/mit-license "MIT License"

@@ -77,0 +70,0 @@

Sorry, the diff of this file is not supported yet

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