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.4.7 to 7.0.0

17

uuid/index.d.ts

@@ -1,3 +0,3 @@

// Type definitions for uuid 3.4
// Project: https://github.com/kelektiv/node-uuid
// Type definitions for uuid 7.0
// Project: https://github.com/uuidjs/uuid
// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius>

@@ -8,17 +8,16 @@ // Felipe Ochoa <https://github.com/felipeochoa>

// Linus Unnebäck <https://github.com/LinusU>
// Christoph Tavan <https://github.com/ctavan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
// TypeScript Version: 2.8
// 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, v3, v4, v5 } from './interfaces';
import { v1, v4 } from './interfaces';
interface UuidStatic {
v1: v1;
v3: v3;
v4: v4;
v5: v5;
}
declare const uuid: UuidStatic & v4;
declare const uuid: UuidStatic;
export = uuid;

@@ -5,3 +5,10 @@ // Uses ArrayLike to admit Unit8 and co.

export interface V1Options {
export interface RandomOptions {
random?: InputBuffer;
}
export interface RngOptions {
rng?: () => InputBuffer;
}
export interface V1BaseOptions {
node?: InputBuffer;

@@ -12,4 +19,7 @@ clockseq?: number;

}
export interface V1RandomOptions extends V1BaseOptions, RandomOptions {}
export interface V1RngOptions extends V1BaseOptions, RngOptions {}
export type V4Options = {random: InputBuffer} | {rng(): InputBuffer};
export type V1Options = V1RandomOptions | V1RngOptions;
export type V4Options = RandomOptions | RngOptions;

@@ -24,4 +34,20 @@ export type v1String = (options?: V1Options) => string;

export type v3String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
export type v3Buffer = <T extends OutputBuffer>(name: string | InputBuffer, namespace: string | InputBuffer, buffer: T, offset?: number) => T;
export interface v3Static {
// https://github.com/uuidjs/uuid/blob/master/src/v35.js#L22
DNS: string;
// https://github.com/uuidjs/uuid/blob/master/src/v35.js#L23
URL: string;
}
export type v3 = v3Buffer & v3String & v3Static;
export type v5String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
export type v5Buffer = <T extends OutputBuffer>(name: string | InputBuffer, namespace: string | InputBuffer, buffer: T, offset?: number) => T;
export type v5 = v5Buffer & v5String;
export interface v5Static {
// https://github.com/uuidjs/uuid/blob/master/src/v35.js#L22
DNS: string;
// https://github.com/uuidjs/uuid/blob/master/src/v35.js#L23
URL: string;
}
export type v5 = v5Buffer & v5String & v5Static;
{
"name": "@types/uuid",
"version": "3.4.7",
"version": "7.0.0",
"description": "TypeScript definitions for uuid",

@@ -31,2 +31,7 @@ "license": "MIT",

"githubUsername": "LinusU"
},
{
"name": "Christoph Tavan",
"url": "https://github.com/ctavan",
"githubUsername": "ctavan"
}

@@ -43,4 +48,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "4cbce2a7748c8c1eaad4f86d1d9e68666740eec3d489f05af3805fad8d5e98bf",
"typesPublisherContentHash": "d947d77225cb456082268d70a5fe638ff4b0c112a9a20eebcea50296a59f984e",
"typeScriptVersion": "2.8"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for uuid (https://github.com/kelektiv/node-uuid).
This package contains type definitions for uuid (https://github.com/uuidjs/uuid).

@@ -12,3 +12,3 @@ # Details

### Additional Details
* Last updated: Tue, 28 Jan 2020 20:11:18 GMT
* Last updated: Tue, 25 Feb 2020 18:51:14 GMT
* Dependencies: none

@@ -18,2 +18,2 @@ * Global values: none

# Credits
These definitions were written by Oliver Hoffmann (https://github.com/iamolivinius), Felipe Ochoa (https://github.com/felipeochoa), Chris Barth (https://github.com/cjbarth), Rauno Viskus (https://github.com/rauno56), and Linus Unnebäck (https://github.com/LinusU).
These definitions were written by [Oliver Hoffmann](https://github.com/iamolivinius), [Felipe Ochoa](https://github.com/felipeochoa), [Chris Barth](https://github.com/cjbarth), [Rauno Viskus](https://github.com/rauno56), [Linus Unnebäck](https://github.com/LinusU), and [Christoph Tavan](https://github.com/ctavan).
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