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

hpw

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hpw - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

17

bin/hpw.js

@@ -83,5 +83,10 @@ #!/usr/bin/env node

const expected = JSON.stringify(callCase.pop());
const result = JSON.stringify(target(...callCase));
const targetResult = target(...callCase);
const result = JSON.stringify(targetResult);
const callArgs = callCase.map(el => JSON.stringify(el)).join(', ');
const args = `arguments: (${callArgs})`;
if (result !== expected) {
throw new Error(`Case failed: expected ${expected}, result: ${result}`);
throw new Error(
`Case failed: ${args}, expected: ${expected}, result: ${result}`
);
}

@@ -123,5 +128,11 @@ }

} catch (e) {
console.log(concolor` Error: ${e.message}(b,red)`);
const lines = e.stack.split('\n');
if (lines[1].includes('at Object.test')) {
console.log(concolor` Error: ${e.message}(b,red)`);
} else {
const stack = lines.filter(s => !s.includes('hpw.js')).join('\n ');
console.log(concolor` Error: ${stack}(b,red)`);
}
}
}
})();

2

package.json
{
"name": "hpw",
"version": "0.1.7",
"version": "0.1.8",
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",

@@ -5,0 +5,0 @@ "description": "Labs Auto Checker",

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