mirror of
https://github.com/github/codeql-action.git
synced 2026-01-02 20:50:05 +08:00
Install @types/uuid and eliminate a cast
This commit is contained in:
5
node_modules/.package-lock.json
generated
vendored
5
node_modules/.package-lock.json
generated
vendored
@@ -830,6 +830,11 @@
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/uuid": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.0.tgz",
|
||||
"integrity": "sha512-kr90f+ERiQtKWMz5rP32ltJ/BtULDI5RVO0uavn1HQUOwjx0R1h0rnDYNL0CepF1zL5bSY6FISAfd9tOdDhU5Q=="
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "5.48.2",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.48.2.tgz",
|
||||
|
||||
21
node_modules/@types/uuid/LICENSE
generated
vendored
Executable file
21
node_modules/@types/uuid/LICENSE
generated
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
||||
16
node_modules/@types/uuid/README.md
generated
vendored
Executable file
16
node_modules/@types/uuid/README.md
generated
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
> `npm install --save @types/uuid`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for uuid (https://github.com/uuidjs/uuid).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Tue, 29 Nov 2022 18:32:57 GMT
|
||||
* Dependencies: none
|
||||
* 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), [Linus Unnebäck](https://github.com/LinusU), and [Christoph Tavan](https://github.com/ctavan).
|
||||
10
node_modules/@types/uuid/index.d.mts
generated
vendored
Executable file
10
node_modules/@types/uuid/index.d.mts
generated
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
import uuid from './index.js';
|
||||
export import v1 = uuid.v1;
|
||||
export import v3 = uuid.v3;
|
||||
export import v4 = uuid.v4;
|
||||
export import v5 = uuid.v5;
|
||||
export import NIL = uuid.NIL;
|
||||
export import version = uuid.version;
|
||||
export import validate = uuid.validate;
|
||||
export import stringify = uuid.stringify;
|
||||
export import parse = uuid.parse;
|
||||
79
node_modules/@types/uuid/index.d.ts
generated
vendored
Executable file
79
node_modules/@types/uuid/index.d.ts
generated
vendored
Executable file
@@ -0,0 +1,79 @@
|
||||
// Type definitions for uuid 9.0
|
||||
// Project: https://github.com/uuidjs/uuid
|
||||
// Definitions by: Oliver Hoffmann <https://github.com/iamolivinius>
|
||||
// Felipe Ochoa <https://github.com/felipeochoa>
|
||||
// Chris Barth <https://github.com/cjbarth>
|
||||
// Linus Unnebäck <https://github.com/LinusU>
|
||||
// Christoph Tavan <https://github.com/ctavan>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// disable automatic export
|
||||
export {};
|
||||
|
||||
// Uses ArrayLike to admit Unit8 and co.
|
||||
type OutputBuffer = ArrayLike<number>;
|
||||
type InputBuffer = ArrayLike<number>;
|
||||
|
||||
interface RandomOptions {
|
||||
random?: InputBuffer | undefined;
|
||||
}
|
||||
interface RngOptions {
|
||||
rng?: (() => InputBuffer) | undefined;
|
||||
}
|
||||
|
||||
interface V1BaseOptions {
|
||||
node?: InputBuffer | undefined;
|
||||
clockseq?: number | undefined;
|
||||
msecs?: number | Date | undefined;
|
||||
nsecs?: number | undefined;
|
||||
}
|
||||
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;
|
||||
export const v3: v3;
|
||||
export const v4: v4;
|
||||
export const v5: v5;
|
||||
export const validate: validate;
|
||||
export const version: version;
|
||||
54
node_modules/@types/uuid/package.json
generated
vendored
Executable file
54
node_modules/@types/uuid/package.json
generated
vendored
Executable file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "@types/uuid",
|
||||
"version": "9.0.0",
|
||||
"description": "TypeScript definitions for uuid",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uuid",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Oliver Hoffmann",
|
||||
"url": "https://github.com/iamolivinius",
|
||||
"githubUsername": "iamolivinius"
|
||||
},
|
||||
{
|
||||
"name": "Felipe Ochoa",
|
||||
"url": "https://github.com/felipeochoa",
|
||||
"githubUsername": "felipeochoa"
|
||||
},
|
||||
{
|
||||
"name": "Chris Barth",
|
||||
"url": "https://github.com/cjbarth",
|
||||
"githubUsername": "cjbarth"
|
||||
},
|
||||
{
|
||||
"name": "Linus Unnebäck",
|
||||
"url": "https://github.com/LinusU",
|
||||
"githubUsername": "LinusU"
|
||||
},
|
||||
{
|
||||
"name": "Christoph Tavan",
|
||||
"url": "https://github.com/ctavan",
|
||||
"githubUsername": "ctavan"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/uuid"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "fcbbe0ed3964850f2ba3f7c63e9bf38a037f990945fb14bb976e9420e2d9d0b0",
|
||||
"typeScriptVersion": "4.1",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
".": {
|
||||
"types": {
|
||||
"import": "./index.d.mts",
|
||||
"default": "./index.d.ts"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user