machinepack-json
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -30,4 +30,6 @@ module.exports = { | ||
friendlyName: 'Expected schema', | ||
description: 'A representative example of what the resulting data should look like.', | ||
description: 'A representative example (RTTC exemplar) of what the resulting data should look like.', | ||
moreInfoUrl: 'http://github.com/node-machine/rttc', | ||
example: '*', | ||
constant: true, | ||
isExemplar: true | ||
@@ -57,3 +59,2 @@ } | ||
fn: function(inputs, exits) { | ||
var _ = require('lodash'); | ||
@@ -60,0 +61,0 @@ var parsedJson; |
@@ -41,3 +41,3 @@ module.exports = { | ||
var _ = require('lodash'); | ||
var util = require('util'); | ||
@@ -71,9 +71,9 @@ /** | ||
// Do some advanced serialization | ||
if (_.isError(value)){ | ||
if (util.isError(value)){ | ||
value = value.stack; | ||
} | ||
else if (_.isRegExp(value)){ | ||
else if (util.isRegExp(value)){ | ||
value = value.toString(); | ||
} | ||
else if (_.isFunction(value)){ | ||
else if (util.isFunction(value)){ | ||
value = value.toString(); | ||
@@ -80,0 +80,0 @@ } |
{ | ||
"name": "machinepack-json", | ||
"version": "1.2.1", | ||
"version": "2.0.0", | ||
"description": "Encode and decode data to and from JSON.", | ||
@@ -16,5 +16,3 @@ "scripts": { | ||
"dependencies": { | ||
"lodash": "^3.9.2", | ||
"machine": "^11.0.1", | ||
"rttc": "^8.1.5" | ||
"machine": "~12.1.0" | ||
}, | ||
@@ -21,0 +19,0 @@ "devDependencies": { |
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
13278
1
431
+ Addedconvert-to-ecmascript-compatible-varname@0.1.4(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addedlodash@2.4.23.8.0(transitive)
+ Addedmachine@12.1.1(transitive)
+ Addedrttc@9.3.4(transitive)
+ Addedswitchback@2.0.0(transitive)
- Removedlodash@^3.9.2
- Removedrttc@^8.1.5
- Removed@sailshq/lodash@3.10.6(transitive)
- Removedconvert-to-ecmascript-compatible-varname@0.1.5(transitive)
- Removeddebug@2.6.9(transitive)
- Removedmachine@11.0.3(transitive)
- Removedrttc@8.1.7(transitive)
- Removedswitchback@2.0.5(transitive)
Updatedmachine@~12.1.0