Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minifaker

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minifaker - npm Package Compare versions

Comparing version 1.20.0 to 1.21.0

1

dist/helpers/replaceStrings.d.ts

@@ -1,3 +0,2 @@

export declare const alphabet: string[];
export declare const replaceSymbols: (value: string) => string;
export declare const replaceRangeSymbols: (value: string) => string;

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc