Socket
Socket
Sign inDemoInstall

@types/uuid

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/uuid - npm Package Compare versions

Comparing version 3.3.28 to 3.4.0

uuid/interfaces.d.ts

91

uuid/index.d.ts

@@ -1,82 +0,21 @@

// Type definitions for UUID.js v3.3.0
// Project: https://github.com/LiosK/UUID.js
// Definitions by: Jason Jarrett <https://github.com/staxmanade/>
// Type definitions for uuid 3.4
// Project: https://github.com/kelektiv/node-uuid
// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius/>
// Felipe Ochoa <https://github.com/felipeochoa/>
// Chris Barth <https://github.com/cjbarth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
// The version number has been artificially set to 3.4, instead of 3.0,
// because of the existing uuid-js npm types package being at 3.3.28,
// meaning that `npm install @types/uuid` was installing the typings for uuid-js, not this
import { v1, v4 } from './interfaces';
interface UUID {
intFields: UUIDArray<number>;
bitFields: UUIDArray<string>;
hexFields: UUIDArray<string>;
version: number;
bitString: string;
hexString: string;
urn: string;
/**
* Tests if two {@link UUID} objects are equal.
* @param {UUID} uuid
* @returns {bool} True if two {@link UUID} objects are equal.
*/
equals(uuid: UUID): boolean;
/**
* Returns UUID string representation.
* @returns {string} {@link UUID#hexString}.
*/
toString(): string;
interface UuidStatic {
v1: v1;
v4: v4;
}
interface UUIDArray<T> extends Array<T> {
timeLow: string;
timeMid: string;
timeHiAndVersion: string;
clockSeqHiAndReserved: string;
clockSeqLow: string;
node: string;
}
/**
* The simplest function to get an UUID string.
* @returns {string} A version 4 UUID string.
*/
export declare function generate(): string;
/**
* Generates a version 4 {@link UUID}.
* @returns {UUID} A version 4 {@link UUID} object.
* @since 3.0
*/
export declare function genV4(): UUID;
/**
* Generates a version 1 {@link UUID}.
* @returns {UUID} A version 1 {@link UUID} object.
* @since 3.0
*/
export declare function genV1(): UUID;
/**
* Converts hexadecimal UUID string to an {@link UUID} object.
* @param {string} uuid UUID hexadecimal string representation ("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").
* @returns {UUID} {@link UUID} object or null.
* @since 3.0
*/
export declare function parse(uuid: string): UUID;
/**
* Re-initializes version 1 UUID state.
* @since 3.0
*/
export declare function resetState(): void;
/**
* Reinstalls {@link UUID.generate} method to emulate the interface of UUID.js version 2.x.
* @since 3.1
* @deprecated Version 2.x. compatible interface is not recommended.
*/
export declare function makeBackwardCompatible(): void;
declare const uuid: UuidStatic & v4;
export = uuid;
{
"name": "@types/uuid",
"version": "3.3.28",
"description": "TypeScript definitions for UUID.js v3.3.0",
"version": "3.4.0",
"description": "TypeScript definitions for uuid",
"license": "MIT",
"author": "Jason Jarrett <https://github.com/staxmanade/>",
"contributors": [
{
"name": "Oliver Hoffmann",
"url": "https://github.com/iamolivinius/"
},
{
"name": "Felipe Ochoa",
"url": "https://github.com/felipeochoa/"
},
{
"name": "Chris Barth",
"url": "https://github.com/cjbarth"
}
],
"main": "",

@@ -13,5 +26,8 @@ "repository": {

"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "792c7866c66ccc9a9728dbc1353bf21379975c57df2c3c0dd40513a0e640066c"
"dependencies": {
"@types/node": "*"
},
"peerDependencies": {},
"typesPublisherContentHash": "6003007882c8acc88d20dcd2f7de4224121211b3a183f7bdfc25cb037bdc3f54",
"typeScriptVersion": "2.2"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for UUID.js v3.3.0 (https://github.com/LiosK/UUID.js).
This package contains type definitions for uuid (https://github.com/kelektiv/node-uuid).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/uuid
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Mon, 17 Jul 2017 16:49:37 GMT
* Dependencies: node
* Global values: none
# Credits
These definitions were written by Jason Jarrett <https://github.com/staxmanade/>.
These definitions were written by Oliver Hoffmann <https://github.com/iamolivinius/>, Felipe Ochoa <https://github.com/felipeochoa/>, Chris Barth <https://github.com/cjbarth>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc