@xenosystem/primitives 0.1.0 → 0.2.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.
- package/README.md +1 -0
- package/dist/cjs/updates/index.d.ts +67 -0
- package/dist/cjs/updates/index.js +102 -0
- package/dist/esm/updates/index.d.ts +67 -0
- package/dist/esm/updates/index.js +97 -0
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ XENO back-end rung 1. Two families, one subpath each:
|
|
|
6
6
|
the layout version, atomic writes, locks, the copy-only migrator, `doctor`, and the static check.
|
|
7
7
|
- `@xenosystem/primitives/secrets` – envelope-encrypted credentials; the OS store holds one key per person per machine.
|
|
8
8
|
- `@xenosystem/primitives/secrets/testing` – an in-memory key store for tests only.
|
|
9
|
+
- `@xenosystem/primitives/updates` – an installed app updates only for an account allowed to: points electron-updater at the platform's gated feed (`/api/updates/<slug>/feed`) with the account's own fresh token. Signed out and no plan are states, not errors.
|
|
9
10
|
|
|
10
11
|
Authority: `XENO LOCAL HOME - SPEC.md` (LOCKED). Zero runtime dependencies. Proprietary (`UNLICENSED`).
|
|
11
12
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xenosystem/primitives/updates` — an installed XENO app updates only for an account allowed to.
|
|
3
|
+
*
|
|
4
|
+
* Owner, 2026-10-25: "nobody without a plan should be able to download them." The platform serves each app's
|
|
5
|
+
* update feed behind sign-in and the plan (`GET /api/updates/<slug>/feed/latest.yml`, xeno-platform
|
|
6
|
+
* `productDownloadRoutes.js`): every installer URL in it is a five-minute grant for exactly that version, and
|
|
7
|
+
* the sha512 is untouched, so electron-updater still verifies the bytes. This family points an app's
|
|
8
|
+
* electron-updater at that feed with the account's own token. It is the ONE place every app does this, so the
|
|
9
|
+
* gate cannot be implemented differently, or forgotten, per app (`docs/DOWNLOAD-GATE.md` Phase 3b).
|
|
10
|
+
*
|
|
11
|
+
* Model-free and dependency-free: the app passes its own `autoUpdater` and a function that returns its current
|
|
12
|
+
* access token (its account SDK). Nothing here stores a token, and no token appears in any result or error.
|
|
13
|
+
*
|
|
14
|
+
* Outcomes are states, not exceptions, because "not signed in" and "no plan" are normal for a free install:
|
|
15
|
+
* signed-out no token: the network is never touched
|
|
16
|
+
* not-entitled the platform said 401/403: the account has no plan that allows updates
|
|
17
|
+
* up-to-date / available / error
|
|
18
|
+
*/
|
|
19
|
+
/** The slice of electron-updater's `autoUpdater` this uses. */
|
|
20
|
+
export interface AutoUpdaterLike {
|
|
21
|
+
setFeedURL(options: {
|
|
22
|
+
provider: 'generic';
|
|
23
|
+
url: string;
|
|
24
|
+
}): void;
|
|
25
|
+
requestHeaders: Record<string, string> | null;
|
|
26
|
+
disableDifferentialDownload: boolean;
|
|
27
|
+
autoDownload: boolean;
|
|
28
|
+
checkForUpdates(): Promise<{
|
|
29
|
+
updateInfo: {
|
|
30
|
+
version: string;
|
|
31
|
+
};
|
|
32
|
+
} | null>;
|
|
33
|
+
}
|
|
34
|
+
export interface GrantedUpdaterOptions {
|
|
35
|
+
/** The product's catalog slug: `hub`, `canvas`, … */
|
|
36
|
+
slug: string;
|
|
37
|
+
/** The platform origin, e.g. `https://xenosystem.ai`. */
|
|
38
|
+
platformBase: string;
|
|
39
|
+
/** The account's current access token, refreshed by the app's account SDK; `null` when signed out. */
|
|
40
|
+
getAccessToken: () => Promise<string | null>;
|
|
41
|
+
updater: AutoUpdaterLike;
|
|
42
|
+
/** The running app's version (`app.getVersion()`). */
|
|
43
|
+
currentVersion: string;
|
|
44
|
+
}
|
|
45
|
+
export type UpdateCheck = {
|
|
46
|
+
state: 'signed-out';
|
|
47
|
+
} | {
|
|
48
|
+
state: 'not-entitled';
|
|
49
|
+
} | {
|
|
50
|
+
state: 'up-to-date';
|
|
51
|
+
version: string;
|
|
52
|
+
} | {
|
|
53
|
+
state: 'available';
|
|
54
|
+
version: string;
|
|
55
|
+
} | {
|
|
56
|
+
state: 'error';
|
|
57
|
+
code: string;
|
|
58
|
+
};
|
|
59
|
+
/** The gated feed for a product. electron-updater appends `/latest.yml` (or `-linux`/`-mac`) itself. */
|
|
60
|
+
export declare function gatedFeedUrl(platformBase: string, slug: string): string;
|
|
61
|
+
/** Compare dotted versions numerically; a pre-release tag sorts below its release. */
|
|
62
|
+
export declare function isNewer(candidate: string, current: string): boolean;
|
|
63
|
+
export declare function createGrantedUpdater(options: GrantedUpdaterOptions): {
|
|
64
|
+
feedUrl: string;
|
|
65
|
+
/** Configure the updater with a FRESH token and ask the gated feed. Call before every check. */
|
|
66
|
+
check(): Promise<UpdateCheck>;
|
|
67
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* `@xenosystem/primitives/updates` — an installed XENO app updates only for an account allowed to.
|
|
4
|
+
*
|
|
5
|
+
* Owner, 2026-10-25: "nobody without a plan should be able to download them." The platform serves each app's
|
|
6
|
+
* update feed behind sign-in and the plan (`GET /api/updates/<slug>/feed/latest.yml`, xeno-platform
|
|
7
|
+
* `productDownloadRoutes.js`): every installer URL in it is a five-minute grant for exactly that version, and
|
|
8
|
+
* the sha512 is untouched, so electron-updater still verifies the bytes. This family points an app's
|
|
9
|
+
* electron-updater at that feed with the account's own token. It is the ONE place every app does this, so the
|
|
10
|
+
* gate cannot be implemented differently, or forgotten, per app (`docs/DOWNLOAD-GATE.md` Phase 3b).
|
|
11
|
+
*
|
|
12
|
+
* Model-free and dependency-free: the app passes its own `autoUpdater` and a function that returns its current
|
|
13
|
+
* access token (its account SDK). Nothing here stores a token, and no token appears in any result or error.
|
|
14
|
+
*
|
|
15
|
+
* Outcomes are states, not exceptions, because "not signed in" and "no plan" are normal for a free install:
|
|
16
|
+
* signed-out no token: the network is never touched
|
|
17
|
+
* not-entitled the platform said 401/403: the account has no plan that allows updates
|
|
18
|
+
* up-to-date / available / error
|
|
19
|
+
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
exports.gatedFeedUrl = gatedFeedUrl;
|
|
22
|
+
exports.isNewer = isNewer;
|
|
23
|
+
exports.createGrantedUpdater = createGrantedUpdater;
|
|
24
|
+
/** The gated feed for a product. electron-updater appends `/latest.yml` (or `-linux`/`-mac`) itself. */
|
|
25
|
+
function gatedFeedUrl(platformBase, slug) {
|
|
26
|
+
if (!/^[a-z0-9-]+$/.test(slug))
|
|
27
|
+
throw new Error(`invalid product slug: ${slug}`);
|
|
28
|
+
const base = String(platformBase).replace(/\/+$/, '');
|
|
29
|
+
if (!/^https:\/\//.test(base) && !/^http:\/\/(127\.0\.0\.1|localhost)(:\d+)?$/.test(base)) {
|
|
30
|
+
// A token must never ride plain HTTP to anything but a local test server.
|
|
31
|
+
throw new Error('platformBase must be https (or a loopback test server)');
|
|
32
|
+
}
|
|
33
|
+
return `${base}/api/updates/${slug}/feed`;
|
|
34
|
+
}
|
|
35
|
+
/** Compare dotted versions numerically; a pre-release tag sorts below its release. */
|
|
36
|
+
function isNewer(candidate, current) {
|
|
37
|
+
const parse = (v) => {
|
|
38
|
+
const [core = '', pre] = String(v).replace(/^v/i, '').split('-', 2);
|
|
39
|
+
return { nums: core.split('.').map((n) => Number.parseInt(n, 10) || 0), pre: pre ?? null };
|
|
40
|
+
};
|
|
41
|
+
const a = parse(candidate);
|
|
42
|
+
const b = parse(current);
|
|
43
|
+
for (let i = 0; i < Math.max(a.nums.length, b.nums.length); i += 1) {
|
|
44
|
+
const d = (a.nums[i] ?? 0) - (b.nums[i] ?? 0);
|
|
45
|
+
if (d !== 0)
|
|
46
|
+
return d > 0;
|
|
47
|
+
}
|
|
48
|
+
if (a.pre === b.pre)
|
|
49
|
+
return false;
|
|
50
|
+
if (a.pre === null)
|
|
51
|
+
return true;
|
|
52
|
+
if (b.pre === null)
|
|
53
|
+
return false;
|
|
54
|
+
return a.pre > b.pre;
|
|
55
|
+
}
|
|
56
|
+
const statusOf = (error) => {
|
|
57
|
+
const e = error;
|
|
58
|
+
const direct = Number(e?.statusCode ?? e?.status);
|
|
59
|
+
if (Number.isInteger(direct) && direct > 0)
|
|
60
|
+
return direct;
|
|
61
|
+
// electron-updater's HttpError message starts with the status ("403 Forbidden …")
|
|
62
|
+
const m = /\b(4\d\d|5\d\d)\b/.exec(String(e?.message ?? ''));
|
|
63
|
+
return m ? Number(m[1]) : null;
|
|
64
|
+
};
|
|
65
|
+
function createGrantedUpdater(options) {
|
|
66
|
+
const { slug, platformBase, getAccessToken, updater, currentVersion } = options;
|
|
67
|
+
const url = gatedFeedUrl(platformBase, slug);
|
|
68
|
+
return {
|
|
69
|
+
feedUrl: url,
|
|
70
|
+
/** Configure the updater with a FRESH token and ask the gated feed. Call before every check. */
|
|
71
|
+
async check() {
|
|
72
|
+
let token = null;
|
|
73
|
+
try {
|
|
74
|
+
token = await getAccessToken();
|
|
75
|
+
}
|
|
76
|
+
catch {
|
|
77
|
+
token = null;
|
|
78
|
+
}
|
|
79
|
+
if (!token) {
|
|
80
|
+
updater.requestHeaders = null;
|
|
81
|
+
return { state: 'signed-out' };
|
|
82
|
+
}
|
|
83
|
+
updater.setFeedURL({ provider: 'generic', url });
|
|
84
|
+
updater.requestHeaders = { Authorization: `Bearer ${token}` };
|
|
85
|
+
// A grant URL with `.blockmap` appended is not a file; a full download is correct and is what runs.
|
|
86
|
+
updater.disableDifferentialDownload = true;
|
|
87
|
+
try {
|
|
88
|
+
const result = await updater.checkForUpdates();
|
|
89
|
+
const version = result?.updateInfo?.version;
|
|
90
|
+
if (!version)
|
|
91
|
+
return { state: 'up-to-date', version: currentVersion };
|
|
92
|
+
return isNewer(version, currentVersion) ? { state: 'available', version } : { state: 'up-to-date', version: currentVersion };
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
const status = statusOf(error);
|
|
96
|
+
if (status === 401 || status === 403)
|
|
97
|
+
return { state: status === 401 ? 'signed-out' : 'not-entitled' };
|
|
98
|
+
return { state: 'error', code: status ? `http_${status}` : 'network' };
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xenosystem/primitives/updates` — an installed XENO app updates only for an account allowed to.
|
|
3
|
+
*
|
|
4
|
+
* Owner, 2026-10-25: "nobody without a plan should be able to download them." The platform serves each app's
|
|
5
|
+
* update feed behind sign-in and the plan (`GET /api/updates/<slug>/feed/latest.yml`, xeno-platform
|
|
6
|
+
* `productDownloadRoutes.js`): every installer URL in it is a five-minute grant for exactly that version, and
|
|
7
|
+
* the sha512 is untouched, so electron-updater still verifies the bytes. This family points an app's
|
|
8
|
+
* electron-updater at that feed with the account's own token. It is the ONE place every app does this, so the
|
|
9
|
+
* gate cannot be implemented differently, or forgotten, per app (`docs/DOWNLOAD-GATE.md` Phase 3b).
|
|
10
|
+
*
|
|
11
|
+
* Model-free and dependency-free: the app passes its own `autoUpdater` and a function that returns its current
|
|
12
|
+
* access token (its account SDK). Nothing here stores a token, and no token appears in any result or error.
|
|
13
|
+
*
|
|
14
|
+
* Outcomes are states, not exceptions, because "not signed in" and "no plan" are normal for a free install:
|
|
15
|
+
* signed-out no token: the network is never touched
|
|
16
|
+
* not-entitled the platform said 401/403: the account has no plan that allows updates
|
|
17
|
+
* up-to-date / available / error
|
|
18
|
+
*/
|
|
19
|
+
/** The slice of electron-updater's `autoUpdater` this uses. */
|
|
20
|
+
export interface AutoUpdaterLike {
|
|
21
|
+
setFeedURL(options: {
|
|
22
|
+
provider: 'generic';
|
|
23
|
+
url: string;
|
|
24
|
+
}): void;
|
|
25
|
+
requestHeaders: Record<string, string> | null;
|
|
26
|
+
disableDifferentialDownload: boolean;
|
|
27
|
+
autoDownload: boolean;
|
|
28
|
+
checkForUpdates(): Promise<{
|
|
29
|
+
updateInfo: {
|
|
30
|
+
version: string;
|
|
31
|
+
};
|
|
32
|
+
} | null>;
|
|
33
|
+
}
|
|
34
|
+
export interface GrantedUpdaterOptions {
|
|
35
|
+
/** The product's catalog slug: `hub`, `canvas`, … */
|
|
36
|
+
slug: string;
|
|
37
|
+
/** The platform origin, e.g. `https://xenosystem.ai`. */
|
|
38
|
+
platformBase: string;
|
|
39
|
+
/** The account's current access token, refreshed by the app's account SDK; `null` when signed out. */
|
|
40
|
+
getAccessToken: () => Promise<string | null>;
|
|
41
|
+
updater: AutoUpdaterLike;
|
|
42
|
+
/** The running app's version (`app.getVersion()`). */
|
|
43
|
+
currentVersion: string;
|
|
44
|
+
}
|
|
45
|
+
export type UpdateCheck = {
|
|
46
|
+
state: 'signed-out';
|
|
47
|
+
} | {
|
|
48
|
+
state: 'not-entitled';
|
|
49
|
+
} | {
|
|
50
|
+
state: 'up-to-date';
|
|
51
|
+
version: string;
|
|
52
|
+
} | {
|
|
53
|
+
state: 'available';
|
|
54
|
+
version: string;
|
|
55
|
+
} | {
|
|
56
|
+
state: 'error';
|
|
57
|
+
code: string;
|
|
58
|
+
};
|
|
59
|
+
/** The gated feed for a product. electron-updater appends `/latest.yml` (or `-linux`/`-mac`) itself. */
|
|
60
|
+
export declare function gatedFeedUrl(platformBase: string, slug: string): string;
|
|
61
|
+
/** Compare dotted versions numerically; a pre-release tag sorts below its release. */
|
|
62
|
+
export declare function isNewer(candidate: string, current: string): boolean;
|
|
63
|
+
export declare function createGrantedUpdater(options: GrantedUpdaterOptions): {
|
|
64
|
+
feedUrl: string;
|
|
65
|
+
/** Configure the updater with a FRESH token and ask the gated feed. Call before every check. */
|
|
66
|
+
check(): Promise<UpdateCheck>;
|
|
67
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@xenosystem/primitives/updates` — an installed XENO app updates only for an account allowed to.
|
|
3
|
+
*
|
|
4
|
+
* Owner, 2026-10-25: "nobody without a plan should be able to download them." The platform serves each app's
|
|
5
|
+
* update feed behind sign-in and the plan (`GET /api/updates/<slug>/feed/latest.yml`, xeno-platform
|
|
6
|
+
* `productDownloadRoutes.js`): every installer URL in it is a five-minute grant for exactly that version, and
|
|
7
|
+
* the sha512 is untouched, so electron-updater still verifies the bytes. This family points an app's
|
|
8
|
+
* electron-updater at that feed with the account's own token. It is the ONE place every app does this, so the
|
|
9
|
+
* gate cannot be implemented differently, or forgotten, per app (`docs/DOWNLOAD-GATE.md` Phase 3b).
|
|
10
|
+
*
|
|
11
|
+
* Model-free and dependency-free: the app passes its own `autoUpdater` and a function that returns its current
|
|
12
|
+
* access token (its account SDK). Nothing here stores a token, and no token appears in any result or error.
|
|
13
|
+
*
|
|
14
|
+
* Outcomes are states, not exceptions, because "not signed in" and "no plan" are normal for a free install:
|
|
15
|
+
* signed-out no token: the network is never touched
|
|
16
|
+
* not-entitled the platform said 401/403: the account has no plan that allows updates
|
|
17
|
+
* up-to-date / available / error
|
|
18
|
+
*/
|
|
19
|
+
/** The gated feed for a product. electron-updater appends `/latest.yml` (or `-linux`/`-mac`) itself. */
|
|
20
|
+
export function gatedFeedUrl(platformBase, slug) {
|
|
21
|
+
if (!/^[a-z0-9-]+$/.test(slug))
|
|
22
|
+
throw new Error(`invalid product slug: ${slug}`);
|
|
23
|
+
const base = String(platformBase).replace(/\/+$/, '');
|
|
24
|
+
if (!/^https:\/\//.test(base) && !/^http:\/\/(127\.0\.0\.1|localhost)(:\d+)?$/.test(base)) {
|
|
25
|
+
// A token must never ride plain HTTP to anything but a local test server.
|
|
26
|
+
throw new Error('platformBase must be https (or a loopback test server)');
|
|
27
|
+
}
|
|
28
|
+
return `${base}/api/updates/${slug}/feed`;
|
|
29
|
+
}
|
|
30
|
+
/** Compare dotted versions numerically; a pre-release tag sorts below its release. */
|
|
31
|
+
export function isNewer(candidate, current) {
|
|
32
|
+
const parse = (v) => {
|
|
33
|
+
const [core = '', pre] = String(v).replace(/^v/i, '').split('-', 2);
|
|
34
|
+
return { nums: core.split('.').map((n) => Number.parseInt(n, 10) || 0), pre: pre ?? null };
|
|
35
|
+
};
|
|
36
|
+
const a = parse(candidate);
|
|
37
|
+
const b = parse(current);
|
|
38
|
+
for (let i = 0; i < Math.max(a.nums.length, b.nums.length); i += 1) {
|
|
39
|
+
const d = (a.nums[i] ?? 0) - (b.nums[i] ?? 0);
|
|
40
|
+
if (d !== 0)
|
|
41
|
+
return d > 0;
|
|
42
|
+
}
|
|
43
|
+
if (a.pre === b.pre)
|
|
44
|
+
return false;
|
|
45
|
+
if (a.pre === null)
|
|
46
|
+
return true;
|
|
47
|
+
if (b.pre === null)
|
|
48
|
+
return false;
|
|
49
|
+
return a.pre > b.pre;
|
|
50
|
+
}
|
|
51
|
+
const statusOf = (error) => {
|
|
52
|
+
const e = error;
|
|
53
|
+
const direct = Number(e?.statusCode ?? e?.status);
|
|
54
|
+
if (Number.isInteger(direct) && direct > 0)
|
|
55
|
+
return direct;
|
|
56
|
+
// electron-updater's HttpError message starts with the status ("403 Forbidden …")
|
|
57
|
+
const m = /\b(4\d\d|5\d\d)\b/.exec(String(e?.message ?? ''));
|
|
58
|
+
return m ? Number(m[1]) : null;
|
|
59
|
+
};
|
|
60
|
+
export function createGrantedUpdater(options) {
|
|
61
|
+
const { slug, platformBase, getAccessToken, updater, currentVersion } = options;
|
|
62
|
+
const url = gatedFeedUrl(platformBase, slug);
|
|
63
|
+
return {
|
|
64
|
+
feedUrl: url,
|
|
65
|
+
/** Configure the updater with a FRESH token and ask the gated feed. Call before every check. */
|
|
66
|
+
async check() {
|
|
67
|
+
let token = null;
|
|
68
|
+
try {
|
|
69
|
+
token = await getAccessToken();
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
token = null;
|
|
73
|
+
}
|
|
74
|
+
if (!token) {
|
|
75
|
+
updater.requestHeaders = null;
|
|
76
|
+
return { state: 'signed-out' };
|
|
77
|
+
}
|
|
78
|
+
updater.setFeedURL({ provider: 'generic', url });
|
|
79
|
+
updater.requestHeaders = { Authorization: `Bearer ${token}` };
|
|
80
|
+
// A grant URL with `.blockmap` appended is not a file; a full download is correct and is what runs.
|
|
81
|
+
updater.disableDifferentialDownload = true;
|
|
82
|
+
try {
|
|
83
|
+
const result = await updater.checkForUpdates();
|
|
84
|
+
const version = result?.updateInfo?.version;
|
|
85
|
+
if (!version)
|
|
86
|
+
return { state: 'up-to-date', version: currentVersion };
|
|
87
|
+
return isNewer(version, currentVersion) ? { state: 'available', version } : { state: 'up-to-date', version: currentVersion };
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
const status = statusOf(error);
|
|
91
|
+
if (status === 401 || status === 403)
|
|
92
|
+
return { state: status === 401 ? 'signed-out' : 'not-entitled' };
|
|
93
|
+
return { state: 'error', code: status ? `http_${status}` : 'network' };
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/primitives",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "XENO back-end rung 1 primitives: dirs (the XENO local home)
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "XENO back-end rung 1 primitives: dirs (the XENO local home), secrets (envelope-encrypted credentials) and updates (the gated app updater).",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"import": { "types": "./dist/esm/secrets/index.d.ts", "default": "./dist/esm/secrets/index.js" },
|
|
17
17
|
"require": { "types": "./dist/cjs/secrets/index.d.ts", "default": "./dist/cjs/secrets/index.js" }
|
|
18
18
|
},
|
|
19
|
+
"./updates": {
|
|
20
|
+
"import": { "types": "./dist/esm/updates/index.d.ts", "default": "./dist/esm/updates/index.js" },
|
|
21
|
+
"require": { "types": "./dist/cjs/updates/index.d.ts", "default": "./dist/cjs/updates/index.js" }
|
|
22
|
+
},
|
|
19
23
|
"./secrets/testing": {
|
|
20
24
|
"import": { "types": "./dist/esm/secrets/testing.d.ts", "default": "./dist/esm/secrets/testing.js" },
|
|
21
25
|
"require": { "types": "./dist/cjs/secrets/testing.d.ts", "default": "./dist/cjs/secrets/testing.js" }
|