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 8.0.1 to 8.3.0

67

uuid/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for uuid 8.0
// Type definitions for uuid 8.3
// Project: https://github.com/uuidjs/uuid

@@ -11,4 +11,66 @@ // Definitions by: Oliver Hoffmann <https://github.com/iamolivinius>

import { v1, v3, v4, v5, validate } from './interfaces';
// disable automatic export
export {};
// Uses ArrayLike to admit Unit8 and co.
type OutputBuffer = ArrayLike<number>;
type InputBuffer = ArrayLike<number>;
interface RandomOptions {
random?: InputBuffer;
}
interface RngOptions {
rng?: () => InputBuffer;
}
interface V1BaseOptions {
node?: InputBuffer;
clockseq?: number;
msecs?: number | Date;
nsecs?: number;
}
interface V1RandomOptions extends V1BaseOptions, RandomOptions {}
interface V1RngOptions extends V1BaseOptions, RngOptions {}
export type V1Options = V1RandomOptions | V1RngOptions;
export type V4Options = RandomOptions | RngOptions;
type v1String = (options?: V1Options) => string;
type v1Buffer = <T extends OutputBuffer>(options: V1Options | null | undefined, buffer: T, offset?: number) => T;
type v1 = v1Buffer & v1String;
type v4String = (options?: V4Options) => string;
type v4Buffer = <T extends OutputBuffer>(options: V4Options | null | undefined, buffer: T, offset?: number) => T;
type v4 = v4Buffer & v4String;
type v3String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
type v3Buffer = <T extends OutputBuffer>(name: string | InputBuffer, namespace: string | InputBuffer, buffer: T, offset?: number) => T;
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;
}
type v3 = v3Buffer & v3String & v3Static;
type v5String = (name: string | InputBuffer, namespace: string | InputBuffer) => string;
type v5Buffer = <T extends OutputBuffer>(name: string | InputBuffer, namespace: string | InputBuffer, buffer: T, offset?: number) => T;
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;
}
type v5 = v5Buffer & v5String & v5Static;
type NIL = string;
type parse = (uuid: string) => OutputBuffer;
type stringify = (buffer: InputBuffer, offset?: number) => string;
type validate = (uuid: string) => boolean;
type version = (uuid: string) => number;
export const NIL: NIL;
export const parse: parse;
export const stringify: stringify;
export const v1: v1;

@@ -19,1 +81,2 @@ export const v3: v3;

export const validate: validate;
export const version: version;

4

uuid/package.json
{
"name": "@types/uuid",
"version": "8.0.1",
"version": "8.3.0",
"description": "TypeScript definitions for uuid",

@@ -42,4 +42,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "95d8a374b9b70cdf0fb18780287a2d7f298122aaa0bd9b09e4f1011dc077e6f4",
"typesPublisherContentHash": "ad6e3cc91784463861502ee3a21d504b2b1708a3cbda624b0d0b662a24946484",
"typeScriptVersion": "3.0"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 05 Aug 2020 03:49:24 GMT
* Last updated: Wed, 12 Aug 2020 06:13:39 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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