@types/ref-array
Advanced tools
| 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 |
+55
-20
@@ -6,3 +6,3 @@ // Type definitions for ref-array | ||
| import ref = require('ref'); | ||
| import ref = require("ref"); | ||
@@ -21,29 +21,64 @@ interface ArrayType<T> extends ref.Type { | ||
| untilZeros(buffer: Buffer): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new (length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| new(length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new (data: number[], length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| new(data: number[], length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| new (data: Buffer, length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| new(data: Buffer, length?: number): { | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (data: number[], length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
| (data: Buffer, length?: number): { | ||
| [i: number]: T; length: number; toArray(): T[]; | ||
| toJSON(): T[]; inspect(): string; buffer: Buffer; ref(): Buffer; | ||
| [i: number]: T; | ||
| length: number; | ||
| toArray(): T[]; | ||
| toJSON(): T[]; | ||
| inspect(): string; | ||
| buffer: Buffer; | ||
| ref(): Buffer; | ||
| }; | ||
@@ -58,4 +93,4 @@ } | ||
| declare var ArrayType: { | ||
| new <T>(type: ref.Type, length?: number): ArrayType<T>; | ||
| new <T>(type: string, length?: number): ArrayType<T>; | ||
| new<T>(type: ref.Type, length?: number): ArrayType<T>; | ||
| new<T>(type: string, length?: number): ArrayType<T>; | ||
| <T>(type: ref.Type, length?: number): ArrayType<T>; | ||
@@ -62,0 +97,0 @@ <T>(type: string, length?: number): ArrayType<T>; |
| { | ||
| "name": "@types/ref-array", | ||
| "version": "0.0.28", | ||
| "version": "0.0.29", | ||
| "description": "TypeScript definitions for ref-array", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ref-array", | ||
| "license": "MIT", | ||
| "author": "Paul Loyd <https://github.com/loyd>", | ||
| "contributors": [ | ||
| { | ||
| "name": "Paul Loyd", | ||
| "url": "https://github.com/loyd", | ||
| "githubUsername": "loyd" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/ref-array" | ||
| }, | ||
@@ -16,4 +25,4 @@ "scripts": {}, | ||
| }, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "a6c3041b6b180f3d46a77f883c91c2c3d6c09ea7f82cfa4015dae3f9623a87fa" | ||
| "typesPublisherContentHash": "e5059a6bae92162f96f25b42636721e26a89aedbdf013538157256497c601335", | ||
| "typeScriptVersion": "4.5" | ||
| } |
@@ -8,12 +8,10 @@ # Installation | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/ref-array | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ref-array. | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: ref | ||
| * Global values: ArrayType | ||
| ### Additional Details | ||
| * Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
| * Dependencies: [@types/ref](https://npmjs.com/package/@types/ref) | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Paul Loyd <https://github.com/loyd>. | ||
| These definitions were written by [Paul Loyd](https://github.com/loyd). |
| { | ||
| "authors": "Paul Loyd <https://github.com/loyd>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [ | ||
| "ref" | ||
| ], | ||
| "libraryMajorVersion": "0", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "ref-array", | ||
| "typingsPackageName": "ref-array", | ||
| "projectName": "https://github.com/TooTallNate/ref-array", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "ArrayType" | ||
| ], | ||
| "declaredModules": [ | ||
| "ref-array" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "a6c3041b6b180f3d46a77f883c91c2c3d6c09ea7f82cfa4015dae3f9623a87fa" | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5050
21.66%91
10.98%1
-50%17
-10.53%