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

uuidjs

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uuidjs - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

types/test_ts_class.ts

3

dist/uuid.core.js
/*
Version: v4.1.0
Version: v4.2.0
Deprecated: No longer tested, documented, or maintained.
Apache License 2.0: Copyright (c) 2010-2018 LiosK

@@ -4,0 +5,0 @@ */

{
"name": "uuidjs",
"version": "4.1.0",
"version": "4.2.0",
"title": "UUID.js",

@@ -13,3 +13,2 @@ "description": "RFC-compliant UUID Generator for JavaScript",

"bin": "bin",
"doc": "docs",
"test": "test"

@@ -22,3 +21,3 @@ },

"test": "qunit test/nodejs.js",
"test-ts": "tsc --strict --noEmit types/uuidjs/uuidjs-tests.ts"
"test-ts": "tsc --strict --noEmit types/*.ts"
},

@@ -49,4 +48,4 @@ "repository": {

"qunit": "^2.8.0",
"typescript": "^3.1.6"
"typescript": "^3.2.1"
}
}

@@ -21,5 +21,5 @@ # NAME

// TypeScript
import * as UUID from "uuidjs";
import UUID from 'uuidjs';
let str: string = UUID.generate();
let obj: UUID.UUID = UUID.genV4();
let obj: UUID = UUID.genV4();
```

@@ -26,0 +26,0 @@

@@ -6,3 +6,4 @@ /**

* @author LiosK
* @version v4.1.0
* @version v4.2.0
* @deprecated No longer tested, documented, or maintained.
* @license Apache License 2.0: Copyright (c) 2010-2018 LiosK

@@ -9,0 +10,0 @@ */

@@ -6,3 +6,3 @@ /**

* @author LiosK
* @version v4.1.0
* @version v4.2.0
* @license Apache License 2.0: Copyright (c) 2010-2018 LiosK

@@ -9,0 +9,0 @@ */

@@ -0,11 +1,23 @@

/** @deprecated Use class-based API */
export function generate(): string;
/** @deprecated Use class-based API */
export function genV4(): UUID;
/** @deprecated Use class-based API */
export function genV1(): UUID;
/** @deprecated Use class-based API */
export function parse(strId: string): UUID;
/** @deprecated Use class-based API */
export const FIELD_NAMES: string[];
/** @deprecated Use class-based API */
export const FIELD_SIZES: number[];
/** @deprecated Use class-based API */
export const NIL: UUID;
/** @deprecated Use class-based API */
interface UUID {

@@ -24,6 +36,9 @@ intFields: UUIDFields<number>;

/** @deprecated Use class-based API */
export function resetState(): void;
/** @deprecated Use class-based API */
export function useMathRandom(): void;
// Hide unnecessary methods
/** @deprecated Use class-based API */
export let overwrittenUUID: any;

@@ -39,1 +54,35 @@

}
/**
* Modern class-based definition
*
* @since v4.2.0
*/
export default class UUIDClass {
static generate(): string;
static genV4(): UUIDClass;
static genV1(): UUIDClass;
static parse(strId: string): UUIDClass;
static readonly FIELD_NAMES: string[];
static readonly FIELD_SIZES: number[];
static readonly NIL: UUIDClass;
readonly intFields: UUIDFields<number>;
readonly bitFields: UUIDFields<string>;
readonly hexFields: UUIDFields<string>;
readonly version: number;
readonly bitString: string;
readonly hexNoDelim: string;
readonly hexString: string;
readonly urn: string;
toString(): string;
equals(uuid: UUIDClass): boolean;
static resetState(): void;
static useMathRandom(): void;
// Hide unnecessary methods
static overwrittenUUID: any;
}
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