@hastehaul/common 1.0.19 → 1.0.20

Sign up to get free protection for your applications and to get access to all the features.
package/build/index.d.ts CHANGED
@@ -86,6 +86,7 @@ export * from "./utils/enums";
86
86
  */
87
87
  export * from "./utils/read-dir";
88
88
  export * from "./utils/schemas";
89
+ export * from "./utils/random-codes";
89
90
  /**
90
91
  *? Re-exports all the contents from the "base-producers" module.
91
92
  *
package/build/index.js CHANGED
@@ -113,6 +113,8 @@ __exportStar(require("./utils/enums"), exports);
113
113
  __exportStar(require("./utils/read-dir"), exports);
114
114
  //TODO: DOCUMENT
115
115
  __exportStar(require("./utils/schemas"), exports);
116
+ //TODO: DOCUMENT
117
+ __exportStar(require("./utils/random-codes"), exports);
116
118
  /**
117
119
  *? Re-exports all the contents from the "base-producers" module.
118
120
  *
@@ -9,4 +9,4 @@
9
9
  *
10
10
  * @returns {Promise<string>} - A Promise that resolves with the generated codes as a string.
11
11
  */
12
- declare function generateRandomCodesAsync(characters: string, numberOfCodes: number, codeSize: number, includeHyphens: boolean, chunkSize: number): Promise<string>;
12
+ export declare function generateRandomCodesAsync(characters: string, numberOfCodes: number, codeSize: number, includeHyphens: boolean, chunkSize: number): Promise<string>;
@@ -8,6 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.generateRandomCodesAsync = void 0;
11
13
  /**
12
14
  * Generates random codes as an async function using await.
13
15
  *
@@ -50,3 +52,4 @@ function generateRandomCodesAsync(characters, numberOfCodes, codeSize, includeHy
50
52
  return codes;
51
53
  });
52
54
  }
55
+ exports.generateRandomCodesAsync = generateRandomCodesAsync;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",