tinfoil 0.11.14 → 0.11.15
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":"secure-fetch.d.ts","sourceRoot":"","sources":["../src/secure-fetch.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secure-fetch.d.ts","sourceRoot":"","sources":["../src/secure-fetch.ts"],"names":[],"mappings":"AAGA,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,uBAAuB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,KAAK,CAAC,CAuB7J"}
|
package/dist/secure-fetch.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { createEncryptedBodyFetch } from "./encrypted-body-fetch.js";
|
|
2
1
|
import { createPinnedTlsFetch } from "./pinned-tls-fetch.js";
|
|
3
2
|
import { isRealBrowser } from "./env.js";
|
|
4
3
|
export async function createSecureFetch(baseURL, enclaveURL, hpkePublicKey, tlsPublicKeyFingerprint) {
|
|
5
4
|
if (hpkePublicKey) {
|
|
5
|
+
// Dynamically import encrypted-body-fetch to avoid loading ehbp/hpke modules
|
|
6
|
+
// when using TLS-only mode. This prevents WebCrypto X25519 errors in runtimes
|
|
7
|
+
// that don't support it (like Bun).
|
|
8
|
+
const { createEncryptedBodyFetch } = await import("./encrypted-body-fetch.js");
|
|
6
9
|
return createEncryptedBodyFetch(baseURL, hpkePublicKey, enclaveURL);
|
|
7
10
|
}
|
|
8
11
|
if (isRealBrowser()) {
|
package/dist/secure-fetch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure-fetch.js","sourceRoot":"","sources":["../src/secure-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"secure-fetch.js","sourceRoot":"","sources":["../src/secure-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,OAAe,EAAE,UAAmB,EAAE,aAAsB,EAAE,uBAAgC;IACpI,IAAI,aAAa,EAAE,CAAC;QAClB,6EAA6E;QAC7E,8EAA8E;QAC9E,oCAAoC;QACpC,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC;QAC/E,OAAO,wBAAwB,CAAC,OAAO,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IACtE,CAAC;IAED,IAAI,aAAa,EAAE,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,wFAAwF;YACxF,iEAAiE,CAClE,CAAC;IACJ,CAAC;IAED,IAAI,CAAC,uBAAuB,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CACb,mFAAmF,CACpF,CAAC;IACJ,CAAC;IAED,OAAO,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;AAChE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinfoil",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.15",
|
|
4
4
|
"description": "Tinfoil secure OpenAI client wrapper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@ai-sdk/openai-compatible": "^1.0.10",
|
|
84
84
|
"@freedomofpress/sigstore-browser": "^0.1.11",
|
|
85
|
-
"@tinfoilsh/verifier": "0.11.
|
|
85
|
+
"@tinfoilsh/verifier": "0.11.15",
|
|
86
86
|
"ehbp": "^0.1.2",
|
|
87
87
|
"openai": "^5.13.1"
|
|
88
88
|
},
|