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

@anzenjs/extra

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anzenjs/extra - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4-alpha.0

4

package.json
{
"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'
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