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 7.6.7 to 7.7.0

pnpm-lock.yaml

36

deps/loupe.js

@@ -891,23 +891,23 @@ (function (global, factory) {

try {
var _process$binding = process.binding('util'),
getPromiseDetails = _process$binding.getPromiseDetails,
kPending = _process$binding.kPending,
kRejected = _process$binding.kRejected;
// try {
// var _process$binding = process.binding('util'),
// getPromiseDetails = _process$binding.getPromiseDetails,
// kPending = _process$binding.kPending,
// kRejected = _process$binding.kRejected;
getPromiseValue = function getPromiseValue(value, options) {
var _getPromiseDetails = getPromiseDetails(value),
_getPromiseDetails2 = _slicedToArray(_getPromiseDetails, 2),
state = _getPromiseDetails2[0],
innerValue = _getPromiseDetails2[1];
// getPromiseValue = function getPromiseValue(value, options) {
// var _getPromiseDetails = getPromiseDetails(value),
// _getPromiseDetails2 = _slicedToArray(_getPromiseDetails, 2),
// state = _getPromiseDetails2[0],
// innerValue = _getPromiseDetails2[1];
if (state === kPending) {
return 'Promise{<pending>}';
}
// if (state === kPending) {
// return 'Promise{<pending>}';
// }
return "Promise".concat(state === kRejected ? '!' : '', "{").concat(options.inspect(innerValue, options), "}");
};
} catch (notNode) {
/* ignore */
}
// return "Promise".concat(state === kRejected ? '!' : '', "{").concat(options.inspect(innerValue, options), "}");
// };
// } catch (notNode) {
// /* ignore */
// }

@@ -914,0 +914,0 @@ var inspectPromise = getPromiseValue;

@@ -150,2 +150,5 @@ (function() {

}
if ((type_of_a === 'set' || type_of_a === 'map') && this.equals([...a], [...b])) {
return true;
}
if (!jk_equals(a, b)) {

@@ -152,0 +155,0 @@ /* TAINT this call involves its own typechecking code and thus may mysteriously fail */

{
"name": "intertype",
"version": "7.6.7",
"version": "7.7.0",
"description": "A JavaScript typechecker",
"main": "lib/main.js",
"scripts": {
"test": "echo use https://github.com/loveencounterflow/hengist"
},
"repository": {

@@ -21,3 +18,6 @@ "type": "git",

"multimix": "^5.0.0"
},
"scripts": {
"test": "echo use https://github.com/loveencounterflow/hengist"
}
}
}

@@ -545,1 +545,30 @@

* [ ] while a type should be defined as a function that takes exactly one argument, there are cases where
types (or something akin to types) are not defined globally but only in reference to a given set of
givens. For example if my set of horses is `h = new Set [ 'Aladdin', 'Bespoke', 'Whizz', ]` then a
`horse_name` might be defined as a `nonempty_text` that also *is an element of the set of horse names*,
whatever that set may contain at the relevant point in time. IOW `isa.horse_name 'Whizz'` is `true` with
respect to `h` but after deleting `Whizz` from `h`, `isa.horse_name 'Whizz'` becomes `false`. Possible way
to model: pass in object containing context, so `isa.horse_name { x: 'Whizz', wrt: h, }`. May want to use
conventional prefix (`ctx_` maybe) for types that require contextual data.
* [ ] switch to compilation-based instantiation, i.e. all function chains (such as `isa.text()`,
`isa.optional.text()`, `validate.nonempty.list_of.nonempty.text()`) should be *prepared* (reified) at
instantion time instead of generated on-the-fly at method call time.
* [ ] type combinations include:
* `isa.list_of.my_type`
* `isa.nonempty.list_of.my_type`
* `isa.nonempty.list`
* `isa.optional.list_of.my_type`
* `isa.optional.my_type`
* `isa.my_type`
* `validate.list_of.my_type`
* `validate.nonempty.list_of.my_type`
* `validate.nonempty.list`
* `validate.optional.list_of.my_type`
* `validate.optional.my_type`
* `validate.my_type`

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