Comparing version 1.20.0 to 1.21.0
@@ -1,3 +0,2 @@ | ||
export declare const alphabet: string[]; | ||
export declare const replaceSymbols: (value: string) => string; | ||
export declare const replaceRangeSymbols: (value: string) => string; |
@@ -211,2 +211,3 @@ import { CreditCardProvider } from './data/creditCardProviders'; | ||
}) => Date; | ||
export declare const bitcoinAddress: () => string; | ||
declare const _default: { | ||
@@ -373,3 +374,4 @@ setDefaultLocale: (locale: string) => void; | ||
}) => Date; | ||
bitcoinAddress: () => string; | ||
}; | ||
export default _default; |
@@ -40,2 +40,3 @@ var __create = Object.create; | ||
arrayElement: () => arrayElement2, | ||
bitcoinAddress: () => bitcoinAddress, | ||
boolean: () => boolean2, | ||
@@ -199,4 +200,4 @@ cityName: () => cityName, | ||
var import__ = __toModule(require("../index")); | ||
var alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]; | ||
var replaceSymbols = (value) => { | ||
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""); | ||
return value.split("").map((c) => { | ||
@@ -645,2 +646,8 @@ if (c === "#") | ||
}; | ||
var bitcoinAddress = () => { | ||
const prefix = arrayElement2(["1", "3", "bc1"]); | ||
const count = number2({ min: 27, max: 34 }); | ||
const characters = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"; | ||
return `${prefix}${array2(count, () => arrayElement2(characters.split(""))).join("")}`; | ||
}; | ||
var src_default = { | ||
@@ -696,3 +703,4 @@ setDefaultLocale, | ||
weekday, | ||
date | ||
date, | ||
bitcoinAddress | ||
}; | ||
@@ -714,2 +722,3 @@ // Annotate the CommonJS export names for ESM import in node: | ||
arrayElement, | ||
bitcoinAddress, | ||
boolean, | ||
@@ -716,0 +725,0 @@ cityName, |
{ | ||
"name": "minifaker", | ||
"version": "1.20.0", | ||
"version": "1.21.0", | ||
"description": "lightweight faker.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts", |
@@ -132,1 +132,2 @@ # minifaker | ||
date|all|date | ||
bitcoinAddress|n/a|bitcoinAddress |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
656961
46264
133