Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

machinepack-json

Package Overview
Dependencies
Maintainers
4
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack-json - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

19

machines/parse.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc