New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@windingtree/org.id-utils

Package Overview
Dependencies
Maintainers
3
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@windingtree/org.id-utils - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

1

dist/regexp/index.d.ts

@@ -16,1 +16,2 @@ export declare const phone: RegExp;

export declare const didGrouped: RegExp;
export declare const uuid4: RegExp;

4

dist/regexp/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.didGrouped = exports.did = exports.iban = exports.swift = exports.bytes32 = exports.secp256k1 = exports.X25519 = exports.blockchainAccountIdGrouped = exports.blockchainAccountId = exports.bitcoinAddress = exports.ethereumAddress = exports.isoDate = exports.email = exports.uri = exports.phone = void 0;
exports.uuid4 = exports.didGrouped = exports.did = exports.iban = exports.swift = exports.bytes32 = exports.secp256k1 = exports.X25519 = exports.blockchainAccountIdGrouped = exports.blockchainAccountId = exports.bitcoinAddress = exports.ethereumAddress = exports.isoDate = exports.email = exports.uri = exports.phone = void 0;
// Common

@@ -25,2 +25,4 @@ exports.phone = /^([+]{0,1})([0-9- ()/]+)$/;

exports.didGrouped = /^(?<did>did:(?<method>[a-zA-Z]+):(?<submethod>[a-zA-Z]+)?([:]{1})?(?<id>0x[a-fA-F0-9]{64}))?(\?(?<query>[0-9a-zA-Z_=&%-]+))?((?:#)(?<fragment>[[0-9a-zA-Z-]+))?$/;
// UUID
exports.uuid4 = /^(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)$/;
//# sourceMappingURL=index.js.map

@@ -9,1 +9,7 @@ /**

export declare const simpleUid: (length?: number) => string;
/**
* UUID v4
* @example
* uuid4(); // 955a781f-f427-2d8e-e895-4ab3f87026c1
*/
export declare const uuid4: () => string;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.simpleUid = void 0;
exports.uuid4 = exports.simpleUid = void 0;
/**

@@ -16,6 +16,17 @@ * Simple unique ID generator

return Math.random()
.toString(36)
.toString(16)
.substr(2, length);
};
exports.simpleUid = simpleUid;
/**
* UUID v4
* @example
* uuid4(); // 955a781f-f427-2d8e-e895-4ab3f87026c1
*/
const uuid4 = () => 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
const r = Math.random() * 16 | 0;
const v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(36);
});
exports.uuid4 = uuid4;
//# sourceMappingURL=index.js.map
{
"name": "@windingtree/org.id-utils",
"version": "0.2.7",
"version": "0.2.8",
"description": "Shared ORGiD utilities",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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