machinepack-json
Advanced tools
Comparing version
@@ -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": { |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
13249
-2.21%3
50%430
-1.6%1
Infinity%+ Added
+ Added
+ Added
- Removed
- Removed
Updated