intertype
Advanced tools
Comparing version 0.105.0 to 0.105.1
@@ -72,2 +72,11 @@ (function() { | ||
}); | ||
//......................................................................................................... | ||
declare.jsidentifier(function(x) { | ||
if (!this.isa.text(x)) { | ||
/* thx to https://github.com/mathiasbynens/mothereff.in/blob/master/js-variables/eff.js and | ||
https://mathiasbynens.be/notes/javascript-identifiers-es6 */ | ||
return false; | ||
} | ||
return (x.match(/^(?:[$_]|\p{ID_Start})(?:[$_\u{200c}\u{200d}]|\p{ID_Continue})*$/u)) != null; | ||
}); | ||
//--------------------------------------------------------------------------------------------------------- | ||
@@ -74,0 +83,0 @@ // Container Types |
{ | ||
"name": "intertype", | ||
"version": "0.105.0", | ||
"version": "0.105.1", | ||
"description": "A JavaScript typechecker", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -636,3 +636,3 @@ | ||
* **[–]** Implement a demo type `quantity` that allows inputs like `ms: 42`, `km: 3, m: 800` with | ||
* **[–]** Implement a demo type `quantity` that allows inputs like `ms: 42`, `km: 3`, `m: 800` with | ||
normalization | ||
@@ -661,2 +661,3 @@ | ||
to). Note that now we have `cast()`, `prepare()`, and `create()` to aid in value construction. | ||
* **[–]** allow enumerations (list of values) | ||
@@ -663,0 +664,0 @@ ## Is Done |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
335623
1780
726