Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intertype

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intertype - npm Package Compare versions

Comparing version 0.111.0 to 0.112.0

8

lib/declarations.js

@@ -229,2 +229,10 @@ (function() {

//.........................................................................................................
declare.class({
isa: function(x) {
var ref;
return ((Object.prototype.toString.call(x)) === '[object Function]') && ((ref = Object.getOwnPropertyDescriptor(x, 'prototype')) != null ? ref.writable : void 0) === false;
}
});
// default: ->
//.........................................................................................................
declare.asyncfunction({

@@ -231,0 +239,0 @@ isa: function(x) {

2

package.json
{
"name": "intertype",
"version": "0.111.0",
"version": "0.112.0",
"description": "A JavaScript typechecker",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

@@ -668,2 +668,9 @@

* `isa.nonempty.text.or.regex /x/`: `false` (b/c of `nonempty` which is never `true` for `regex`es)
* **[–]** all regex as value for `isa`, `declare.x /foo/` meaning `declare.x isa: ( x ) -> ( @isa.text x )
and ( /foo/.test x )`
* **[–]** consider to abandon dotted syntax and use underscores instead, e.g.
`validate.text_or_positive_integer 42`; this has the advantage that nested runtime name chain resolution
can be replaced by looking up a single (compiled?) function (at least after the first use, which should
probably cause construction of that function)
* **[–]** catch errors thrown inside a type's `create()` function and convert them to validation errors

@@ -670,0 +677,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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