mod-arch-shared 1.2.2 → 1.4.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../utilities/string.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,YAAO,KAAG,MAItB,CAAC"}
1
+ {"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../utilities/string.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,GAAI,YAAO,KAAG,MAOxC,CAAC"}
@@ -1,5 +1,9 @@
1
- export const genRandomChars = (len = 6) => Math.random()
2
- .toString(36)
3
- .replace(/[^a-z0-9]+/g, '')
4
- .substr(1, len);
1
+ export const genRandomChars = (len = 6) => {
2
+ const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
3
+ let result = '';
4
+ for (let i = 0; i < len; i++) {
5
+ result += chars.charAt(Math.floor(Math.random() * chars.length));
6
+ }
7
+ return result;
8
+ };
5
9
  //# sourceMappingURL=string.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"string.js","sourceRoot":"","sources":["../../utilities/string.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,GAAG,CAAC,EAAU,EAAE,CAChD,IAAI,CAAC,MAAM,EAAE;KACV,QAAQ,CAAC,EAAE,CAAC;KACZ,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC;KAC1B,MAAM,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"string.js","sourceRoot":"","sources":["../../utilities/string.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAG,GAAG,CAAC,EAAU,EAAE;IAChD,MAAM,KAAK,GAAG,sCAAsC,CAAC;IACrD,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-arch-shared",
3
- "version": "1.2.2",
3
+ "version": "1.4.0",
4
4
  "description": "Shared UI components and utilities for modular architecture micro-frontend projects",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",