machinepack-json
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -27,6 +27,8 @@ module.exports = { | ||
}, | ||
schema: { | ||
friendlyName: 'Expected schema', | ||
description: 'A representative example of what the resulting data should look like.', | ||
example: '*' | ||
example: '*', | ||
isExemplar: true | ||
} | ||
@@ -48,14 +50,3 @@ | ||
description: 'Done.', | ||
getExample: function (inputs, env){ | ||
var _ = env._; | ||
// If we don't have a schema yet, the best we can do is send back "*" | ||
// to indicate that this machine will respond with something JSON-serializable. | ||
if (_.isUndefined(inputs.schema)) { | ||
return '*'; | ||
} | ||
// Otherwise we can use the provided schema. | ||
return inputs.schema; | ||
} | ||
like: 'schema' | ||
} | ||
@@ -67,2 +58,4 @@ | ||
fn: function(inputs, exits) { | ||
var _ = require('lodash'); | ||
var parsedJson; | ||
@@ -69,0 +62,0 @@ try { |
{ | ||
"name": "machinepack-json", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Encode and decode data to and from JSON.", | ||
@@ -17,3 +17,4 @@ "scripts": { | ||
"lodash": "^3.9.2", | ||
"machine": "^10.3.1" | ||
"machine": "^11.0.1", | ||
"rttc": "^8.1.5" | ||
}, | ||
@@ -20,0 +21,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
13249
3
430
+ Addedrttc@^8.1.5
+ Addedmachine@11.0.3(transitive)
+ Addedrttc@8.1.7(transitive)
- Removedmachine@10.4.0(transitive)
- Removedrttc@7.4.0(transitive)
Updatedmachine@^11.0.1