machinepack-util
Advanced tools
Comparing version 5.1.1 to 6.0.0
@@ -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": { |
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
4
9863
236
+ Addedconvert-to-ecmascript-compatible-varname@0.1.4(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addedlodash@2.4.23.8.0(transitive)
+ Addedmachine@12.1.1(transitive)
+ Addedrttc@9.3.4(transitive)
+ Addedswitchback@2.0.0(transitive)
- Removedhat@0.0.3
- Removedconvert-to-ecmascript-compatible-varname@0.1.5(transitive)
- Removeddebug@2.6.9(transitive)
- Removedhat@0.0.3(transitive)
- Removedmachine@10.4.0(transitive)
- Removedrttc@7.4.0(transitive)
- Removedswitchback@2.0.5(transitive)
Updatedlodash@3.10.1
Updatedmachine@~12.1.0
Updatedobject-hash@0.5.0