New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 13.0.0-7 to 13.0.0-8

21

lib/Machine.pack.js

@@ -63,4 +63,12 @@ /**

// Build up a constant array of unconventional method names
// (used below to show a warning if a machine identity looks too similar to native JS or Node stuff.)
var UNCONVENTIONAL_METHOD_NAMES = [
'inspect', 'toString', 'valueOf', 'toLocaleString',
'prototype', 'constructor',
'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable'
];
// Get the `Machine` constructor

@@ -118,4 +126,10 @@ var Machine = this;

// Determine the method name.
var methodName = Machine.getMethodName(machineInstance.identity);
if (_.contains(UNCONVENTIONAL_METHOD_NAMES, methodName)) {
console.warn('Warning: Machine "'+machineInstance.identity+'" has an unconventional identity that, when converted to a method name (`'+methodName+'`), could conflict with native features of JavaScript/Node.js. Please consider changing it!');
}
// Expose the machine as a method on our Pack dictionary.
memo[Machine.getMethodName(machineInstance.identity)] = machineInstance;
memo[methodName] = machineInstance;
}

@@ -197,3 +211,8 @@ catch (e) {

// Determine the method name.
var methodName = Machine.getMethodName(rawNMDef.identity);
if (_.contains(UNCONVENTIONAL_METHOD_NAMES, methodName)) {
console.warn('Warning: Machine "'+rawNMDef.identity+'" has an unconventional identity that, when converted to a method name (`'+methodName+'`), could conflict with native features of JavaScript/Node.js. Please consider changing it!');
}
memo[methodName] = Machine.build(rawNMDef);

@@ -200,0 +219,0 @@ return memo;

2

package.json
{
"name": "machine",
"version": "13.0.0-7",
"version": "13.0.0-8",
"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