Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "json-e", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "json parameterization module inspired from json-parameterization", | ||
@@ -21,3 +21,5 @@ "main": "./src/index.js", | ||
"license": "MPL-2.0", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"json-stable-stringify": "^1.0.1" | ||
}, | ||
"devDependencies": { | ||
@@ -24,0 +26,0 @@ "assume": "^1.5.2", |
@@ -186,5 +186,6 @@ * [Full documentation](https://taskcluster.github.io/json-e) | ||
The `$json` operator formats the given value as JSON. It does not evaluate the | ||
value (use `$eval` for that). While this can be useful in some cases, it is an | ||
unusual case to include a JSON string in a larger data structure. | ||
The `$json` operator formats the given value as JSON with sorted keys. It does | ||
not evaluate the value (use `$eval` for that). While this can be useful in some | ||
cases, it is an unusual case to include a JSON string in a larger data | ||
structure. | ||
@@ -191,0 +192,0 @@ ```yaml |
var interpreter = require('./interpreter'); | ||
var fromNow = require('./from-now'); | ||
var assert = require('assert'); | ||
var stringify = require('json-stable-stringify'); | ||
var { | ||
@@ -128,3 +129,3 @@ isString, isNumber, isBool, | ||
return JSON.stringify(render(template['$json'], context)); | ||
return stringify(render(template['$json'], context)); | ||
}; | ||
@@ -131,0 +132,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
69819
1099
676
1
+ Addedjson-stable-stringify@^1.0.1
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedjson-stable-stringify@1.1.1(transitive)
+ Addedjsonify@0.0.1(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedset-function-length@1.2.2(transitive)