@marcoappio/marco-config 2.0.240 → 2.0.242
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.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/marcoPublicConfig.js +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/shortUUID/index.d.ts +2 -0
- package/dist/utils/shortUUID/index.d.ts.map +1 -0
- package/dist/utils/shortUUID/index.js +1 -0
- package/dist/utils/shortUUID/shortUUID.d.ts +7 -0
- package/dist/utils/shortUUID/shortUUID.d.ts.map +1 -0
- package/dist/utils/shortUUID/shortUUID.js +7 -0
- package/dist/utils/shortUUID/shortUUID.test.d.ts +2 -0
- package/dist/utils/shortUUID/shortUUID.test.d.ts.map +1 -0
- package/dist/utils/shortUUID/shortUUID.test.js +15 -0
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accountUtils, stringPatch } from './utils';
|
|
1
|
+
export { accountUtils, shortUUID, stringPatch } from './utils';
|
|
2
2
|
export { marcoClients, marcoClientsUtils } from './clients';
|
|
3
3
|
export { marcoConstants } from './constants';
|
|
4
4
|
export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicConfig';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,IAAI,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { accountUtils, stringPatch } from './utils';
|
|
1
|
+
export { accountUtils, shortUUID, stringPatch } from './utils';
|
|
2
2
|
export { marcoClients, marcoClientsUtils } from './clients';
|
|
3
3
|
export { marcoConstants } from './constants';
|
|
4
4
|
export { marcoPublicConfig, MARCO_ENV } from './marcoPublicConfig';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/utils/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { shortUUID } from './shortUUID';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortUUID.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/shortUUID.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,YAAY,CAAA;AAI9B,eAAO,MAAM,SAAS;;;;CAIrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shortUUID.test.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/shortUUID.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { describe, expect, it } from 'bun:test';
|
|
2
|
+
import { shortUUID } from './shortUUID';
|
|
3
|
+
describe('shortUUID', () => {
|
|
4
|
+
const testUUID = '123e4567-e89b-12d3-a456-426614174000';
|
|
5
|
+
const testShortUUID = '3fEgj34VWmVufdDCYA2MKE';
|
|
6
|
+
it('should abbreviate a UUID to a short UUID', () => {
|
|
7
|
+
expect(shortUUID.fromUUID(testUUID)).toBe(testShortUUID);
|
|
8
|
+
});
|
|
9
|
+
it('should expand a short UUID to a UUID', () => {
|
|
10
|
+
expect(shortUUID.toUUID(testShortUUID)).toBe(testUUID);
|
|
11
|
+
});
|
|
12
|
+
it('should create a new UUID', () => {
|
|
13
|
+
expect(typeof shortUUID.createUUID()).toBe('string');
|
|
14
|
+
});
|
|
15
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcoappio/marco-config",
|
|
3
3
|
"packageManager": "bun@1.2.0",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.242",
|
|
5
5
|
"author": "team@marcoapp.io",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": "git@github.com:marcoappio/marco-config.git",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"eslint-plugin-sort-destructure-keys": "1.4.0",
|
|
34
34
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
35
35
|
"eslint-plugin-typescript-sort-keys": "2.3.0",
|
|
36
|
+
"short-uuid": "5.2.0",
|
|
36
37
|
"valibot": "1.0.0-beta.9"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|