@windingtree/org.id-utils
Advanced tools
Comparing version 0.2.2 to 0.2.3
export declare const phone: RegExp; | ||
export declare const uri: RegExp; | ||
export declare const email: RegExp; | ||
export declare const isoDate: RegExp; | ||
export declare const ethereumAddress: RegExp; | ||
@@ -5,0 +6,0 @@ export declare const bitcoinAddress: RegExp; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.did = exports.iban = exports.swift = exports.bytes32 = exports.secp256k1 = exports.X25519 = exports.bitcoinAddress = exports.ethereumAddress = exports.email = exports.uri = exports.phone = void 0; | ||
exports.did = exports.iban = exports.swift = exports.bytes32 = exports.secp256k1 = exports.X25519 = exports.bitcoinAddress = exports.ethereumAddress = exports.isoDate = exports.email = exports.uri = exports.phone = void 0; | ||
// Common | ||
exports.phone = /^([+]{0,1})([0-9- ()/]+)$/; | ||
exports.uri = /^(https|http|wss|ws)+:\/\/([\w.-]+)(:(\d*))?(\/\w*(\/[\w\-?=#]*)?)?$/i; | ||
exports.email = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-_0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
exports.email = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-_0-9]+\.)+[a-zA-Z]{2,}))$/i; | ||
exports.isoDate = /(\d{4})-(\d{2})-(\d{2})T((\d{2}):(\d{2}):(\d{2}))\.(\d{3})Z/; | ||
// Crypto addresses | ||
@@ -15,3 +16,3 @@ exports.ethereumAddress = /^0x[a-fA-F0-9]{40}$/i; | ||
// Hashes | ||
exports.bytes32 = /^0x[a-fA-F0-9]{64}$/i; | ||
exports.bytes32 = /^0x[a-fA-F0-9]{64}$/; | ||
// Banks accounts | ||
@@ -18,0 +19,0 @@ exports.swift = /^[a-zA-Z]{4}[ -]{0,1}[a-zA-Z]{2}[ -]{0,1}[a-zA-Z0-9]{2}[ -]{0,1}[XXX0-9]{0,3}$/; |
{ | ||
"name": "@windingtree/org.id-utils", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Shared ORGiD utilities", | ||
@@ -44,5 +44,5 @@ "main": "dist/index.js", | ||
"@types/jest": "26.0.23", | ||
"eslint": "7.26.0", | ||
"@typescript-eslint/eslint-plugin": "4.24.0", | ||
"@typescript-eslint/parser": "4.24.0", | ||
"eslint": "7.27.0", | ||
"@typescript-eslint/eslint-plugin": "4.25.0", | ||
"@typescript-eslint/parser": "4.25.0", | ||
"typedoc": "0.20.36", | ||
@@ -49,0 +49,0 @@ "typedoc-plugin-markdown": "3.8.1", |
@@ -40,2 +40,3 @@ [](https://www.npmjs.com/package/@windingtree/org.id-utils) | ||
email, | ||
isoDate, | ||
ethereumAddress, | ||
@@ -42,0 +43,0 @@ bitcoinAddress, |
Sorry, the diff of this file is not supported yet
12739
187
85