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

machine

Package Overview
Dependencies
Maintainers
5
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

machine - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

lib/build-lambda-machine.js

3

lib/intercept-exit-callbacks.js

@@ -174,2 +174,5 @@ /**

var newExample;
// TODO: would be good to _not_ cloneDeep here
// (for performance, but also just because you might not actually want that in a lot of
// cases, like streams)
try {

@@ -176,0 +179,0 @@ newExample = exitDef.getExample.apply(env, [_.cloneDeep(allConfiguredInputValues), env]);

2

lib/Machine.constructor.js

@@ -138,3 +138,2 @@ /**

Machine.pack = require('./Machine.pack');
Machine.toAction = require('./Machine.toAction');
Machine.buildNoopMachine = require('./Machine.buildNoopMachine');

@@ -217,3 +216,2 @@ Machine.buildHaltMachine = require('./Machine.buildHaltMachine');

_.extend(this._configuredInputs, configuredInputs);
// _.extend(this._configuredInputs, _.cloneDeep(configuredInputs));
return this;

@@ -220,0 +218,0 @@ };

@@ -8,4 +8,7 @@ /**

var rttc = require('rttc');
var buildLambdaMachine = require('./build-lambda-machine');
/**

@@ -72,2 +75,4 @@ * validateConfiguredInputValues()

// Note that the `inputs` provided to `validate()` and `getExample()` are:

@@ -156,2 +161,18 @@ // (1) a deep clone, and

// If this is a lambda input, instantiate it into a usable machine.
if (_.isString(inputDef.example) && inputDef.example.match(/(^-+>$)|(^=+>$)|(^<=+$)|(^<-+$)/) ) {
try {
coercedInputValues[inputName] =
buildLambdaMachine(machine._configuredInputs[inputName], inputName, machine);
return;
}
catch (e) {
e.input = inputName;
errors.push(e);
return;
}
}
// Prefer the example over typeclass, if one exists.

@@ -292,2 +313,1 @@ if (!_.isUndefined(example)){

{
"name": "machine",
"version": "6.0.1",
"version": "6.0.2",
"description": "Configure and execute machines",

@@ -5,0 +5,0 @@ "main": "index.js",

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