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.1 to 2.0.0

5

machines/parse.js

@@ -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;

8

machines/stringify-safe.js

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

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