Comparing version 0.2.0 to 0.2.1
@@ -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' }); |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
242750
4987
0