New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@algebraic/type

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algebraic/type - npm Package Compare versions

Comparing version 1.0.0-alpha.18 to 1.0.0-alpha.19

3

declaration.js

@@ -78,3 +78,3 @@ const typenameStack = [];

function declare({ is, create, typename, unscopedTypename, serialize, deserialize })
function declare({ is, create, typename, unscopedTypename, serialize, deserialize, kind })
{

@@ -93,2 +93,3 @@ const type = fNamed(typename, function (...args)

type[DeserializeSymbol] = deserialize;
type[KindSymbol] = kind;

@@ -95,0 +96,0 @@ return type;

@@ -13,2 +13,3 @@ const { is, fNamed } = require("./declaration");

const fail = require("./fail");
const of = require("./of");

@@ -133,3 +134,8 @@

return fail("Failed to parse computed property, you must pass an array");
/*
if (computed && !tuple)
return toComputedIC(
of(definition),
{ compute:() => definition, dependencies:[] });
*/
const type = tuple ? definition[0] : definition;

@@ -136,0 +142,0 @@ const fallback = tuple ?

{
"name": "@algebraic/type",
"version": "1.0.0-alpha.18",
"version": "1.0.0-alpha.19",
"description": "",

@@ -13,4 +13,4 @@ "main": "type.js",

"dependencies": {
"@climb/partition": "1.0.0-alpha.3"
"@climb/partition": "1.0.0-alpha.4"
}
}

@@ -64,2 +64,4 @@ const { declaration, declare, getTypename, fNamed } = require("./declaration");

}),
symbol: primitive `symbol` ([]),

@@ -66,0 +68,0 @@ object: primitive `object` (

@@ -7,2 +7,3 @@ const fNameRegExp = /(is|or)\s*=>/;

(false);
const UnionComponents = Symbol("union.components");

@@ -14,3 +15,7 @@ module.exports = tagged((name, ...fields) =>

return declare({ is: isUnion, typename: name });
return Object.assign(
declare({ is: isUnion, typename: name, kind: module.exports }),
{ [UnionComponents]: types });
});
module.exports.components = type => type[UnionComponents]();
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