@anzenjs/extra
Advanced tools
Comparing version 0.0.3 to 0.0.4-alpha.0
{ | ||
"name": "@anzenjs/extra", | ||
"version": "0.0.3", | ||
"version": "0.0.4-alpha.0", | ||
"main": "cjs/src/index.js", | ||
@@ -15,3 +15,3 @@ "types": "cjs/src/index.d.ts", | ||
}, | ||
"gitHead": "d30d062cf97b6d41cbe401b886aca6106111600e" | ||
"gitHead": "0f9659432114ef764fc951c1c1326f8e6c6da99f" | ||
} |
import { Brand, ResolveBrand } from '@anzenjs/core' | ||
const emailSymbol = Symbol('email') | ||
export const emailSymbol = Symbol('email') | ||
export const emailSchema = Brand(String, emailSymbol) | ||
export const Email = Brand(String, emailSymbol) | ||
export type Email = ResolveBrand<typeof emailSchema> | ||
export type Email = ResolveBrand<typeof Email> | ||
const uriSymbol = Symbol('uri') | ||
export const uriSymbol = Symbol('uri') | ||
@@ -15,32 +15,32 @@ export const uriSchema = Brand(String, uriSymbol) | ||
const integerSymbol = Symbol('integer') | ||
export const integerSymbol = Symbol('integer') | ||
export const integerSchema = Brand(Number, integerSymbol) | ||
export const Integer = Brand(Number, integerSymbol) | ||
export type Integer = ResolveBrand<typeof integerSchema> | ||
export type Integer = ResolveBrand<typeof Integer> | ||
const portSymbol = Symbol('port') | ||
export const portSymbol = Symbol('port') | ||
export const portSchema = Brand(integerSchema, portSymbol) | ||
export const Port = Brand(Integer, portSymbol) | ||
export type Port = ResolveBrand<typeof portSchema> | ||
export type Port = ResolveBrand<typeof Port> | ||
const ipSymbol = Symbol('ip') | ||
export const ipSymbol = Symbol('ip') | ||
export const ipSchema = Brand(String, ipSymbol) | ||
export const Ip = Brand(String, ipSymbol) | ||
export type Ip = ResolveBrand<typeof ipSchema> | ||
export type Ip = ResolveBrand<typeof Ip> | ||
const hostnameSymbol = Symbol('hostname') | ||
export const hostnameSymbol = Symbol('hostname') | ||
export const hostnameSchema = Brand(String, hostnameSymbol) | ||
export const Hostname = Brand(String, hostnameSymbol) | ||
export type Hostname = ResolveBrand<typeof hostnameSchema> | ||
export type Hostname = ResolveBrand<typeof Hostname> | ||
const uuidSymbol = Symbol('uuid') | ||
export const uuidSymbol = Symbol('uuid') | ||
export const uuidSchema = Brand(String, uuidSymbol) | ||
export const Uuid = Brand(String, uuidSymbol) | ||
export type Uuid = ResolveBrand<typeof uuidSchema> | ||
export type Uuid = ResolveBrand<typeof Uuid> | ||
export { IEncoder, IDecoder, ICodec } from './codec' |
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
0
9255