@types/uuid
Advanced tools
Comparing version 2.0.29 to 3.0.0
@@ -1,35 +0,16 @@ | ||
// Type definitions for uuid v2.0.3 | ||
// Type definitions for uuid 3.0 | ||
// Project: https://github.com/defunctzombie/node-uuid | ||
// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius/> | ||
// Felipe Ochoa <https://github.com/felipeochoa/> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
/// <reference types="node" /> | ||
import { v1, v4 } from './interfaces'; | ||
declare namespace uuid { | ||
interface V1Options { | ||
node?: number[]; | ||
clockseq?: number; | ||
msecs?: number | Date; | ||
nsecs?: number; | ||
} | ||
type V4Options = { random: number[] } | { rng: () => number[]; } | ||
interface UuidStatic { | ||
(options?: V4Options): string; | ||
(options: V4Options | null, buffer: number[], offset?: number): number[]; | ||
(options: V4Options | null, buffer: Buffer, offset?: number): Buffer; | ||
v1(options?: V1Options): string; | ||
v1(options: V1Options | null, buffer: number[], offset?: number): number[]; | ||
v1(options: V1Options | null, buffer: Buffer, offset?: number): Buffer; | ||
v4: UuidStatic; | ||
parse(id: string): number[]; | ||
parse(id: string, buffer: number[], offset?: number): number[]; | ||
parse(id: string, buffer: Buffer, offset?: number): Buffer; | ||
unparse(buffer: number[] | Buffer, offset?: number): string; | ||
} | ||
interface UuidStatic { | ||
v1: v1; | ||
v4: v4; | ||
} | ||
declare const uuid: uuid.UuidStatic | ||
export = uuid | ||
declare const uuid: UuidStatic & v4; | ||
export = uuid; |
{ | ||
"name": "@types/uuid", | ||
"version": "2.0.29", | ||
"description": "TypeScript definitions for uuid v2.0.3", | ||
"version": "3.0.0", | ||
"description": "TypeScript definitions for uuid", | ||
"license": "MIT", | ||
"author": "Oliver Hoffmann <https://github.com/iamolivinius/>", | ||
"contributors": [ | ||
{ | ||
"name": "Oliver Hoffmann", | ||
"url": "https://github.com/iamolivinius/" | ||
}, | ||
{ | ||
"name": "Felipe Ochoa", | ||
"url": "https://github.com/felipeochoa/" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +26,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "cf0029ab9b8fa688f8685324ccd9e6507a1c8abbd0216e5ef2952bdc93d24047" | ||
"typesPublisherContentHash": "ef6c4c27a076aa48aa33e53345e776b09012b59dced69aacc3860c3b304bdeae", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -5,15 +5,13 @@ # Installation | ||
# Summary | ||
This package contains type definitions for uuid v2.0.3 (https://github.com/defunctzombie/node-uuid). | ||
This package contains type definitions for uuid (https://github.com/defunctzombie/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: Thu, 06 Oct 2016 14:10:03 GMT | ||
* File structure: ProperModule | ||
* Library Dependencies: node | ||
* Module Dependencies: none | ||
* Global values: uuid | ||
* Last updated: Fri, 02 Jun 2017 13:55:42 GMT | ||
* Dependencies: node | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Oliver Hoffmann <https://github.com/iamolivinius/>. | ||
These definitions were written by Oliver Hoffmann <https://github.com/iamolivinius/>, Felipe Ochoa <https://github.com/felipeochoa/>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3884
7
35
17