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

edit-json-file

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edit-json-file - npm Package Compare versions

Comparing version 1.6.2 to 1.7.0

7

lib/index.js

@@ -54,2 +54,3 @@ "use strict";

* @param {Anything} value The value.
* @param {Object} options The options for set-value (applied only when {ignore_dots} file option is false)
* @returns {JsonEditor} The `JsonEditor` instance.

@@ -61,3 +62,3 @@ */

key: "set",
value: function set(path, value) {
value: function set(path, value, options) {
var _this = this;

@@ -67,3 +68,3 @@

iterateObject(path, function (val, n) {
setValue(_this.data, n, val);
setValue(_this.data, n, val, options);
});

@@ -73,3 +74,3 @@ } else if (this.options.ignore_dots) {

} else {
setValue(this.data, path, value);
setValue(this.data, path, value, options);
}

@@ -76,0 +77,0 @@ if (this.options.autosave) {

@@ -13,3 +13,3 @@ {

"license": "MIT",
"version": "1.6.2",
"version": "1.7.0",
"main": "lib/index.js",

@@ -16,0 +16,0 @@ "scripts": {

@@ -179,3 +179,3 @@ <!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->

### `set(path, value)`
### `set(path, value, options)`
Set a value in a specific path.

@@ -187,2 +187,3 @@

- **Anything** `value`: The value.
- **Object** `options`: The options for set-value (applied only when {ignore_dots} file option is false)

@@ -345,2 +346,3 @@ #### Return

- `@airbnb/nimbus`
- `@neutralinojs/neu`
- `json-config-ts`

@@ -353,4 +355,2 @@ - `@dolittle/vanir-cli`

- `@formbird/core`
- `@neutralinojs/neu`
- `bo-admin-starter`
- `admooh-cli`

@@ -380,2 +380,4 @@ - `deploi`

- `create-fw`
- `bo-admin-starter`
- `minitest-audits`
- `vcommit-cli`

@@ -388,3 +390,2 @@ - `bhc-cli`

- `create-next-library`
- `bt-translate`
- `bo-api-starter`

@@ -398,3 +399,2 @@ - `fixed-minor-patch-package-json`

- `webify-generator`
- `@mtmeyer/create-react-figma-plugin`
- `@fanxie/cli`

@@ -417,4 +417,8 @@ - `@malmo/cli`

- `express-react-generator-typescript`
- `@mtmeyer/create-react-figma-plugin`
- `express-ts-app`
- `@teamhive/angular-npm-seed`
- `@imklau/react-app`
- `bt-translate`
- `@oriflame/lumos`
- `guser`

@@ -437,3 +441,2 @@ - `ootb-express-app`

- `menreiki2`
- `simple-etg`
- `kape`

@@ -446,5 +449,6 @@ - `bloggify-tools`

- `package-to-local`
- `@j.u.p.iter/jupiter-scripts`
- `@panfilo/express-template`
- `@mianfrigo/express-typescript-generator`
- `@j.u.p.iter/jupiter-scripts`
- `simple-etg`
- `check-dependency-version-consistency`

@@ -462,3 +466,2 @@ - `@quantform/cli`

- `generator-brei-next`
- `@chakra-ui/codemod`
- `def-struct`

@@ -484,6 +487,8 @@ - `@s-ui/changelog`

- `use-express-template`
- `ecochat-term`
- `@mkvlrn/nodeinit`
- `modern-node-starter`
- `@triptyk/nfw-cli`
- `@chakra-ui/codemod`
- `@mkvlrn/nodeinit`
- `crestron-angular-theme`
- `ecochat-term`
- `@aburkov/scripts`

@@ -494,3 +499,2 @@ - `plop-pack-gatsby-starter`

- `deployqb`
- `@ps-devs/shopify-webpack`
- `blip-lang`

@@ -515,3 +519,2 @@ - `create-nuxt-typescript-component`

- `base-express-app-starter`
- `@deboxsoft/plop-generator`
- `@hyron/cli`

@@ -527,2 +530,5 @@ - `deyarn`

- `kanuki-cli`
- `@deboxsoft/plop-generator`
- `@imklau/react-boilerplate`
- `@colorfulcompany/create-cc-jlmf`

@@ -529,0 +535,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