Socket
Socket
Sign inDemoInstall

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.116.0 to 0.117.0

14

lib/declarations.js
(function() {
//-----------------------------------------------------------------------------------------------------------
var GUY;
GUY = require('guy');
//-----------------------------------------------------------------------------------------------------------
this._provisional_declare_basic_types = function(hub) {

@@ -254,2 +259,11 @@ var declare;

//.........................................................................................................
declare.knowntype({
isa: function(x) {
if (!((this.isa.text(x)) && (x.length > 0))) {
return false;
}
return GUY.props.has(this.registry, x);
}
});
//.........................................................................................................
return null;

@@ -256,0 +270,0 @@ };

2

package.json
{
"name": "intertype",
"version": "0.116.0",
"version": "0.117.0",
"description": "A JavaScript typechecker",

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

@@ -26,2 +26,3 @@

- [Intertype `is_extension_of()`](#intertype-is_extension_of)
- [Intertype Meta-Type `knowntype`](#intertype-meta-type-knowntype)
- [To Do](#to-do)

@@ -502,2 +503,8 @@ - [Is Done](#is-done)

## Intertype Meta-Type `knowntype`
* used to test whether a given value is registered as type, as in `types.isa.knowntype 'foobar'`
* tests unconditionally `false` unless argument is a non-empty string
* otherwise, tests whether argument is key of `types.registry`
## To Do

@@ -504,0 +511,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