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

machinepack-util

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machinepack-util - npm Package Compare versions

Comparing version 5.1.1 to 6.0.0

7

machines/coalesce.js

@@ -43,7 +43,4 @@ module.exports = {

success: {
variableName: 'result',
description: 'Done.',
getExample: function (inputs){
return inputs.b;
}
outputDescription: 'Either the preferred value or the secondary value.',
like: 'b'
},

@@ -50,0 +47,0 @@

@@ -10,2 +10,5 @@ module.exports = {

extendedDescription: 'Useful for checksums (error-checking) and hash keys (caching, etc.) Uses the crypto module from Node core via `object-hash` on NPM (see http://npmjs.org/package/object-hash)',
sync: true,

@@ -17,5 +20,2 @@

extendedDescription: 'Useful for checksums (error-checking) and hash keys (caching, etc.) Uses the crypto module from Node core via `object-hash` on NPM (see http://npmjs.org/package/object-hash)',
inputs: {

@@ -33,11 +33,4 @@

defaultExit: 'success',
exits: {
error: {
description: 'Unexpected error occurred.'
},
success: {

@@ -44,0 +37,0 @@ description: 'Done.',

module.exports = {
friendlyName: 'Pretty-print',
friendlyName: 'Inspect',
description: 'Format any value into a more-readable string.',
description: 'Pretty-print any value into a more-readable string.',

@@ -30,4 +30,3 @@

success: {
description: 'Done.',
variableName: 'prettified',
outputFriendlyName: 'prettified',
example: '...[{\'foo\': [\'bar\']}]...'

@@ -41,9 +40,8 @@ }

var util = require('util');
var _ = require('lodash');
if (_.isError(inputs.value)) {
if (util.isError(inputs.value)) {
return exits.success(util.inspect(inputs.value.stack));
}
if (_.isObject(inputs.value)) {
return exits.success(util.inspect(inputs.value, false, null));
if (util.isObject(inputs.value)) {
return exits.success(util.inspect(inputs.value, {depth: null}));
}

@@ -50,0 +48,0 @@ return exits.success(util.inspect(inputs.value));

@@ -13,5 +13,2 @@ module.exports = {

extendedDescription: '',
inputs: {

@@ -18,0 +15,0 @@

{
"name": "machinepack-util",
"version": "5.1.1",
"description": "Utilities for everyday tasks with arrays, dictionaries, strings, etc.",
"version": "6.0.0",
"description": "Miscellaneous utilities for everyday tasks with arrays, dictionaries, strings, etc.",
"scripts": {

@@ -21,7 +21,6 @@ "test": "node ./node_modules/test-machinepack-mocha/bin/testmachinepack-mocha.js"

"dependencies": {
"browserify-transform-machinepack": "^1.0.3",
"hat": "0.0.3",
"lodash": "^3.9.2",
"machine": "^10.3.1",
"object-hash": "^0.5.0"
"browserify-transform-machinepack": "~1.0.3",
"lodash": "3.10.1",
"machine": "~12.1.0",
"object-hash": "0.5.0"
},

@@ -33,4 +32,4 @@ "repository": {

"devDependencies": {
"mocha": "^2.1.0",
"test-machinepack-mocha": "^2.1.1"
"mocha": "2.1.0",
"test-machinepack-mocha": "~2.1.1"
},

@@ -37,0 +36,0 @@ "machinepack": {

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