New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

test-machinepack

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-machinepack - npm Package Compare versions

Comparing version 2.1.6 to 2.1.7

14

package.json
{
"name": "test-machinepack",
"author": "Mike McNeil <@mikermcneil>",
"version": "2.1.6",
"version": "2.1.7",
"description": "Raw test runner for machinepacks (also includes a simple stub test driver)",

@@ -18,8 +18,8 @@ "keywords": [

"dependencies": {
"async": "^0.9.0",
"json5": "^0.4.0",
"lodash": "^3.9.1",
"machine": "^11.0.0",
"machinepack-machines": "^6.0.0",
"rttc": "^8.1.3"
"async": "0.9.2",
"json5": "0.4.0",
"lodash": "3.9.1",
"machine": "~11.0.3",
"machinepack-machines": "6.3.0",
"rttc": "~9.3.4"
},

@@ -26,0 +26,0 @@ "repository": {

@@ -184,6 +184,8 @@ /**

// Now compare actual vs. expected output
// console.log('checking using type schema:',typeSchema);
try {
testResultObj.wrongOutput = ! rttc.isEqual(outputAssertion, whatActuallyHappened.output);
testResultObj.wrongOutput = ! rttc.isEqual(outputAssertion, whatActuallyHappened.output, typeSchema);
}
catch (e){
// console.log('* * * *',e.stack);
errMsg += util.format('Could not compare result with expected value, because rttc.isEqual threw an Error:'+e.stack);

@@ -190,0 +192,0 @@ var _testFailedErr = new Error(errMsg);

@@ -228,3 +228,3 @@ // TODO: pull this into mp-machines

try {
failureReport.wrongOutput = !rttc.isEqual(outputAssertion, whatActuallyHappened.output);
failureReport.wrongOutput = !rttc.isEqual(outputAssertion, whatActuallyHappened.output, typeSchema);
}

@@ -231,0 +231,0 @@ catch (e){

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