@marcoappio/marco-config 2.0.241 → 2.0.243
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.d.ts +0 -6
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +0 -18
- 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';
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export type MarcoEnvironment = 'production' | 'staging' | 'development';
|
|
2
2
|
export declare const MARCO_ENV: MarcoEnvironment;
|
|
3
3
|
type MarcoPublicConfig = {
|
|
4
|
-
jitsu: {
|
|
5
|
-
ingestEndpoint: string;
|
|
6
|
-
writeKeys: {
|
|
7
|
-
app: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
marco: {
|
|
11
5
|
api: {
|
|
12
6
|
baseUrl: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAA6D,CAAA;AAEnF,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AA6DD,eAAO,MAAM,iBAAiB,mBAAuB,CAAA"}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
export const MARCO_ENV = process.env.MARCO_ENV || 'development';
|
|
2
2
|
const configMap = {
|
|
3
3
|
development: {
|
|
4
|
-
jitsu: {
|
|
5
|
-
ingestEndpoint: 'https://cm36fa1j100003b6vwh3r64th.d.jitsu.com/api/s',
|
|
6
|
-
writeKeys: {
|
|
7
|
-
app: 'N2K3afC689D8HAPXvJdXRqM8GYpUEQv6:XYr4XgLrnxuqfre5UpKytZw16SKXEUrg',
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
4
|
marco: {
|
|
11
5
|
api: {
|
|
12
6
|
baseUrl: 'https://api.staging.marcoapp.io',
|
|
@@ -25,12 +19,6 @@ const configMap = {
|
|
|
25
19
|
},
|
|
26
20
|
},
|
|
27
21
|
staging: {
|
|
28
|
-
jitsu: {
|
|
29
|
-
ingestEndpoint: 'https://cm36fa1j100003b6vwh3r64th.d.jitsu.com/api/s',
|
|
30
|
-
writeKeys: {
|
|
31
|
-
app: 'N2K3afC689D8HAPXvJdXRqM8GYpUEQv6:XYr4XgLrnxuqfre5UpKytZw16SKXEUrg',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
22
|
marco: {
|
|
35
23
|
api: {
|
|
36
24
|
baseUrl: 'https://api.staging.marcoapp.io',
|
|
@@ -50,12 +38,6 @@ const configMap = {
|
|
|
50
38
|
},
|
|
51
39
|
// eslint-disable-next-line sort-keys, sort-keys-fix/sort-keys-fix
|
|
52
40
|
production: {
|
|
53
|
-
jitsu: {
|
|
54
|
-
ingestEndpoint: 'https://cm36fhigi00003b6vkib0qe5y.d.jitsu.com/api/s',
|
|
55
|
-
writeKeys: {
|
|
56
|
-
app: 'UpI8ZdDBOjiPg56ZLju3aP9my6fSbZdG:viIewGsLm6qhMfneNbvJWquTjMwFmMIR',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
41
|
marco: {
|
|
60
42
|
api: {
|
|
61
43
|
baseUrl: 'https://api.marcoapp.io',
|
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.243",
|
|
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": {
|