contractis
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31814
1106