edit-json-file
Advanced tools
Comparing version 1.6.2 to 1.7.0
@@ -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 @@ |
22753
244
550