@premai/api-sdk 1.0.32 → 1.0.34
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/cli.cjs +2 -2
- package/dist/core.browser.cjs +2 -2
- package/dist/core.browser.mjs +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/dist/utils/attestation.d.ts +1 -1
- package/package.json +3 -3
package/dist/cli.cjs
CHANGED
|
@@ -56,10 +56,10 @@ async function loadPrem() {
|
|
|
56
56
|
return cachedPrem;
|
|
57
57
|
const isBare = typeof globalThis.Bare !== "undefined";
|
|
58
58
|
if (isBare) {
|
|
59
|
-
cachedPrem = await import("@premai/
|
|
59
|
+
cachedPrem = await (async (s, y) => await import(s, y))("@premai/reticle", { with: { type: "script" } });
|
|
60
60
|
return cachedPrem;
|
|
61
61
|
}
|
|
62
|
-
cachedPrem = await import("@premai/
|
|
62
|
+
cachedPrem = await import("@premai/reticle");
|
|
63
63
|
return cachedPrem;
|
|
64
64
|
}
|
|
65
65
|
async function attest(apiKey, options = { enabled: true }) {
|
package/dist/core.browser.cjs
CHANGED
|
@@ -24,10 +24,10 @@ async function loadPrem() {
|
|
|
24
24
|
return cachedPrem;
|
|
25
25
|
const isBare = typeof globalThis.Bare !== "undefined";
|
|
26
26
|
if (isBare) {
|
|
27
|
-
cachedPrem = await import("@premai/
|
|
27
|
+
cachedPrem = await (async (s, y) => await import(s, y))("@premai/reticle", { with: { type: "script" } });
|
|
28
28
|
return cachedPrem;
|
|
29
29
|
}
|
|
30
|
-
cachedPrem = await import("@premai/
|
|
30
|
+
cachedPrem = await import("@premai/reticle");
|
|
31
31
|
return cachedPrem;
|
|
32
32
|
}
|
|
33
33
|
function isAttestationError(err) {
|
package/dist/core.browser.mjs
CHANGED
|
@@ -255,10 +255,10 @@ async function loadPrem() {
|
|
|
255
255
|
return cachedPrem;
|
|
256
256
|
const isBare = typeof globalThis.Bare !== "undefined";
|
|
257
257
|
if (isBare) {
|
|
258
|
-
cachedPrem = await import("@premai/
|
|
258
|
+
cachedPrem = await (async (s, y) => await import(s, y))("@premai/reticle", { with: { type: "script" } });
|
|
259
259
|
return cachedPrem;
|
|
260
260
|
}
|
|
261
|
-
cachedPrem = await import("@premai/
|
|
261
|
+
cachedPrem = await import("@premai/reticle");
|
|
262
262
|
return cachedPrem;
|
|
263
263
|
}
|
|
264
264
|
function isAttestationError(err) {
|
package/dist/index.cjs
CHANGED
|
@@ -104,10 +104,10 @@ async function loadPrem() {
|
|
|
104
104
|
return cachedPrem;
|
|
105
105
|
const isBare = typeof globalThis.Bare !== "undefined";
|
|
106
106
|
if (isBare) {
|
|
107
|
-
cachedPrem = await import("@premai/
|
|
107
|
+
cachedPrem = await (async (s, y) => await import(s, y))("@premai/reticle", { with: { type: "script" } });
|
|
108
108
|
return cachedPrem;
|
|
109
109
|
}
|
|
110
|
-
cachedPrem = await import("@premai/
|
|
110
|
+
cachedPrem = await import("@premai/reticle");
|
|
111
111
|
return cachedPrem;
|
|
112
112
|
}
|
|
113
113
|
function isAttestationError(err) {
|
package/dist/index.mjs
CHANGED
|
@@ -27,10 +27,10 @@ async function loadPrem() {
|
|
|
27
27
|
return cachedPrem;
|
|
28
28
|
const isBare = typeof globalThis.Bare !== "undefined";
|
|
29
29
|
if (isBare) {
|
|
30
|
-
cachedPrem = await import("@premai/
|
|
30
|
+
cachedPrem = await (async (s, y) => await import(s, y))("@premai/reticle", { with: { type: "script" } });
|
|
31
31
|
return cachedPrem;
|
|
32
32
|
}
|
|
33
|
-
cachedPrem = await import("@premai/
|
|
33
|
+
cachedPrem = await import("@premai/reticle");
|
|
34
34
|
return cachedPrem;
|
|
35
35
|
}
|
|
36
36
|
function isAttestationError(err) {
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
},
|
|
5
5
|
"homepage": "https://github.com/premai-io/api-sdk-ts",
|
|
6
6
|
"name": "@premai/api-sdk",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.34",
|
|
8
8
|
"main": "./dist/index.cjs",
|
|
9
9
|
"bin": {
|
|
10
10
|
"pcci-proxy": "./dist/cli.cjs"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@noble/curves": "^1.8.1",
|
|
66
66
|
"@noble/hashes": "^1.7.1",
|
|
67
67
|
"@noble/post-quantum": "^0.5.2",
|
|
68
|
-
"@premai/
|
|
68
|
+
"@premai/reticle": "0.3.1",
|
|
69
69
|
"bare-abort-controller": "^1.1.1",
|
|
70
70
|
"bare-crypto": "^1.13.5",
|
|
71
71
|
"bare-encoding": "^1.0.3",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@biomejs/biome": "2.3.10",
|
|
85
|
-
"@types/bun": "^1.3.
|
|
85
|
+
"@types/bun": "^1.3.13",
|
|
86
86
|
"@types/express": "^4.17.21",
|
|
87
87
|
"@types/multer": "^2.0.0",
|
|
88
88
|
"@types/node": "^22.15.21",
|