Huge News!Announcing our $40M Series B led by Abstract Ventures.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.9 to 0.0.10

2

contract.js

@@ -72,3 +72,3 @@ var stackTrace = require("stack-trace");

rv,
"return value " + (fname || ""),
"return value " + (fname || ""), //+'; input arguments were '+JSON.stringify(args),
contrDefinition,

@@ -75,0 +75,0 @@ newf

@@ -77,2 +77,4 @@ const gen = require("./generators");

check: x =>
x &&
x.constructor &&
x.constructor.name === (typeof cls === "string" ? cls : cls.name),

@@ -118,3 +120,4 @@ generate: cls.contract && gen.generate_class(cls)

typeof x === "object" &&
!(x.constructor && x.constructor.name === Promise.name) &&
x !== null &&
!(x && x.constructor && x.constructor.name === Promise.name) &&
(typeof alsoCheckThat === "undefined" || alsoCheckThat(x)) &&

@@ -121,0 +124,0 @@ Object.entries(o || {}).every(([k, v]) => v.check(x[k])),

{
"name": "contractis",
"version": "0.0.9",
"version": "0.0.10",
"description": "Design by Contract for JavaScript",

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

},
"gitHead": "2a088e28b3df98fb79b91d891ae0c2bff9811300"
"gitHead": "41e0daca8dffe1dfcf9c2419dd84aae41fa72d30"
}
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