@ngneat/falso
Advanced tools
Comparing version
{ | ||
"name": "@ngneat/falso", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"license": "MIT", | ||
@@ -38,6 +38,4 @@ "description": "All the Fake Data for All Your Real Needs", | ||
}, | ||
"module": "./index.js", | ||
"main": "./index.cjs", | ||
"type": "module", | ||
"types": "./src/index.d.ts" | ||
"module": "./index.esm.js", | ||
"main": "./index.cjs.js" | ||
} |
@@ -16,2 +16,2 @@ import { FakeOptions } from './core/core'; | ||
*/ | ||
export declare function randBitcoinAddress<Options extends FakeOptions = never>(options?: Options): import("./core/core").Return<string, Options>; | ||
export declare function randBitcoinAddress<Options extends FakeOptions = never>(options?: Options): import("./core/core").Return<string[], Options>; |
@@ -6,2 +6,3 @@ import { FakeOptions } from './core/core'; | ||
grayscale?: boolean; | ||
random?: boolean; | ||
} | ||
@@ -33,4 +34,8 @@ /** | ||
* | ||
* @example | ||
* | ||
* randImg({ random: true }) // default is true, prevent the image from being cached | ||
* | ||
*/ | ||
export declare function randImg<Options extends ImgOptions = never>(options?: Options): import("./core/core").Return<string, Options>; | ||
export {}; |
@@ -23,2 +23,2 @@ import { FakeOptions } from './core/core'; | ||
*/ | ||
export declare function randPassword<Options extends PasswordOptions = never>(options?: Options): import("./core/core").Return<string, Options>; | ||
export declare function randPassword<Options extends PasswordOptions = never>(options?: Options): import("./core/core").Return<string[], Options>; |
@@ -6,10 +6,9 @@ import { FakeOptions, Return } from './core/core'; | ||
export declare const numericAlphaChars: string; | ||
type RandomSequenceOptions = { | ||
type CharTypes = 'numeric' | 'alpha' | 'alphaNumeric' | 'special'; | ||
type RandomSequenceOptions2 = { | ||
size?: number; | ||
charType?: CharTypes; | ||
chars?: string; | ||
} & FakeOptions; | ||
type RandomSequenceOptions2 = { | ||
size?: number; | ||
charType?: 'numeric' | 'alpha' | 'alphaNumeric' | 'special'; | ||
} & FakeOptions; | ||
type ReturnTypeFromCharType<CharType extends CharTypes | undefined> = CharType extends 'numeric' | 'alpha' | 'alphaNumeric' | 'special' ? string : string[]; | ||
/** | ||
@@ -34,3 +33,3 @@ * Generate a random sequence. | ||
* | ||
* randSequence({ charType: 'numeric' }) // numeric | alpha | alphaNumeric | special | ||
* randSequence({ charType: 'numeric' }) | ||
* | ||
@@ -42,4 +41,3 @@ * @example | ||
*/ | ||
export declare function randSequence<Options extends RandomSequenceOptions = never>(options?: RandomSequenceOptions): Return<string, Options>; | ||
export declare function randSequence<Options extends RandomSequenceOptions2 = never>(options?: RandomSequenceOptions2): Return<string, Options>; | ||
export declare function randSequence<Options extends RandomSequenceOptions2 = never>(options?: Options): Return<ReturnTypeFromCharType<Options['charType']>, Options>; | ||
export {}; |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1164148
7.25%397
19.58%9474
12.84%12
9.09%No
NaN