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

contractis

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contractis - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

4

package.json
{
"name": "contractis",
"version": "0.0.11",
"version": "0.0.12",
"description": "Design by Contract for JavaScript",

@@ -21,3 +21,3 @@ "repository": "github:saltcorn/saltcorn",

},
"gitHead": "49c51a20665bddb9ff4e2e484de294e190f27b58"
"gitHead": "88ae255c919879e321b718d9cd433781e588efd8"
}

@@ -20,7 +20,9 @@ const get_return_contract = (returns, args) =>

: theContract.contract_name;
message = `value ${JSON.stringify(
val,
null,
2
)} violates contract ${conStr}${in_str}`;
var value;
try {
value = JSON.stringify(val, null, 2);
} catch (e) {
value = `Error printing value: ${e.message}`;
}
message = `value ${value} violates contract ${conStr}${in_str}`;
if (theContract.get_error_message) {

@@ -27,0 +29,0 @@ message += ". " + theContract.get_error_message(val);

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