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

x-value

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-value - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

1

bld/library/types.d.ts

@@ -34,2 +34,3 @@ declare global {

export declare const nullType: import("./core/atomic-type.js").AtomicType<typeof nullTypeSymbol>;
export { nullType as null };
export declare const stringTypeSymbol: unique symbol;

@@ -36,0 +37,0 @@ export declare const string: import("./core/atomic-type.js").AtomicType<typeof stringTypeSymbol>;

@@ -18,2 +18,3 @@ import { atomic } from './core/index.js';

export const nullType = atomic(nullTypeSymbol, value => constraint(value === null, () => `Expected null, got ${toString.call(value)}.`), { type: 'null' });
export { nullType as null };
export const stringTypeSymbol = Symbol();

@@ -20,0 +21,0 @@ export const string = atomic(stringTypeSymbol, value => constraint(typeof value === 'string', () => `Expected string, got ${toString.call(value)}.`), { type: 'string' });

2

package.json
{
"name": "x-value",
"version": "0.2.0",
"version": "0.2.1",
"repository": "https://github.com/vilic/x-value.git",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -69,2 +69,4 @@ import {atomic} from './core/index.js';

export {nullType as null};
export const stringTypeSymbol = Symbol();

@@ -71,0 +73,0 @@ export const string = atomic(

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