@excofy/utils 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/helpers/generateCode.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -659,8 +659,8 @@ function createValidator() {
|
|
|
659
659
|
|
|
660
660
|
// src/helpers/generateCode.ts
|
|
661
661
|
var generateCode = (length = 6, type = "alphanumeric") => {
|
|
662
|
-
const digits = "
|
|
663
|
-
const letters = "
|
|
662
|
+
const digits = "123456789";
|
|
663
|
+
const letters = "ABCDEFGHIJKLMNPQRSTUVWXYZ";
|
|
664
664
|
let charset;
|
|
665
665
|
switch (type) {
|
|
666
666
|
case "numeric":
|
package/dist/index.js
CHANGED
|
@@ -621,8 +621,8 @@ function createValidator() {
|
|
|
621
621
|
|
|
622
622
|
// src/helpers/generateCode.ts
|
|
623
623
|
var generateCode = (length = 6, type = "alphanumeric") => {
|
|
624
|
-
const digits = "
|
|
625
|
-
const letters = "
|
|
624
|
+
const digits = "123456789";
|
|
625
|
+
const letters = "ABCDEFGHIJKLMNPQRSTUVWXYZ";
|
|
626
626
|
let charset;
|
|
627
627
|
switch (type) {
|
|
628
628
|
case "numeric":
|
package/package.json
CHANGED
|
@@ -18,8 +18,8 @@ export const generateCode = (
|
|
|
18
18
|
length = 6,
|
|
19
19
|
type: 'alphanumeric' | 'numeric' | 'letters' = 'alphanumeric'
|
|
20
20
|
): string => {
|
|
21
|
-
const digits = '
|
|
22
|
-
const letters = '
|
|
21
|
+
const digits = '123456789';
|
|
22
|
+
const letters = 'ABCDEFGHIJKLMNPQRSTUVWXYZ';
|
|
23
23
|
let charset: string;
|
|
24
24
|
|
|
25
25
|
switch (type) {
|