diff --git a/notNeededPackages.json b/notNeededPackages.json index 331fd7569b..ae99f74a3d 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1602,6 +1602,12 @@ "sourceRepoURL": "https://github.com/trufflesuite/ganache-core#readme", "asOfVersion": "2.7.0" }, + { + "libraryName": "generate-password", + "typingsPackageName": "generate-password", + "sourceRepoURL": "https://github.com/brendanashworth/generate-password.git", + "asOfVersion": "1.5.1" + }, { "libraryName": "geolib", "typingsPackageName": "geolib", diff --git a/types/generate-password/generate-password-tests.ts b/types/generate-password/generate-password-tests.ts deleted file mode 100644 index acbf6c02fe..0000000000 --- a/types/generate-password/generate-password-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import generator = require('generate-password'); - -generator.generate(); // $ExpectType string -generator.generateMultiple(1); // $ExpectType string[] - -// generateMultiple method called without required properties should error -generator.generateMultiple(); // $ExpectError diff --git a/types/generate-password/index.d.ts b/types/generate-password/index.d.ts deleted file mode 100644 index 1ff552fd68..0000000000 --- a/types/generate-password/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -// Type definitions for generate-password 1.5 -// Project: https://github.com/brendanashworth/generate-password -// Definitions by: Eddie CooRo -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export interface GenerateOptions { - /** - * Length of the generated password. - * @default 10 - */ - length?: number; - /** - * Should the password include numbers - * @default false - */ - numbers?: boolean; - /** - * Should the password include symbols - * @default false - */ - symbols?: boolean; - /** - * Should the password include lowercase characters - * @default true - */ - lowercase?: boolean; - /** - * Should the password include uppercase characters - * @default true - */ - uppercase?: boolean; - /** - * Should exclude visually similar characters like 'i' and 'I' - * @default false - */ - excludeSimilarCharacters?: boolean; - /** - * List of characters to be excluded from the password - * @default "" - */ - exclude?: string; - /** - * Password should include at least one character from each pool - * @default false - */ - strict?: boolean; -} - -/** - * Generate one password with the given options. - */ -export function generate(options?: GenerateOptions): string; -/** - * Bulk generate multiple passwords at once, with the same options for all. - */ -export function generateMultiple(count: number, options?: GenerateOptions): string[]; diff --git a/types/generate-password/tsconfig.json b/types/generate-password/tsconfig.json deleted file mode 100644 index e1001d8af9..0000000000 --- a/types/generate-password/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictFunctionTypes": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "generate-password-tests.ts" - ] -} diff --git a/types/generate-password/tslint.json b/types/generate-password/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/generate-password/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" }