@premai/api-sdk 1.0.42 → 1.0.43

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/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.42",
7
+ "version": "1.0.43",
8
8
  "main": "./dist/index.cjs",
9
9
  "bin": {
10
10
  "confidential-proxy": "./dist/cli.mjs",
@@ -16,8 +16,7 @@
16
16
  "description": "",
17
17
  "exports": {
18
18
  ".": {
19
- "bare": "./dist/core.browser.mjs",
20
- "node": "./dist/index.cjs",
19
+ "bare": "./dist/bare.mjs",
21
20
  "require": "./dist/index.cjs",
22
21
  "import": "./dist/index.mjs",
23
22
  "types": "./dist/index.d.ts"
@@ -27,9 +26,10 @@
27
26
  "import": "./dist/core.browser.mjs",
28
27
  "types": "./dist/index.d.ts"
29
28
  },
30
- "./bare-global": {
31
- "import": "./dist/bare-global.mjs",
32
- "types": "./dist/bare-global.d.ts"
29
+ "./bare": {
30
+ "require": "./dist/bare.cjs",
31
+ "import": "./dist/bare.mjs",
32
+ "types": "./dist/bare.d.ts"
33
33
  }
34
34
  },
35
35
  "imports": {
@@ -66,14 +66,19 @@
66
66
  "@noble/curves": "^1.8.1",
67
67
  "@noble/hashes": "^1.7.1",
68
68
  "@noble/post-quantum": "^0.5.2",
69
- "@premai/reticle": "^0.4.7",
69
+ "@premai/bare-wasm3": "^0.1.5",
70
+ "@premai/reticle": "^0.4.8",
70
71
  "@types/react": "^19.2.15",
71
- "bare-abort-controller": "^1.1.1",
72
- "bare-crypto": "^1.13.5",
72
+ "bare-abort-controller": "^1.1.2",
73
+ "bare-buffer": "^3.6.0",
74
+ "bare-crypto": "^1.13.7",
73
75
  "bare-encoding": "^1.0.3",
76
+ "bare-events": "^2.8.3",
74
77
  "bare-fetch": "^3.0.0",
78
+ "bare-form-data": "^1.2.2",
75
79
  "bare-fs": "^4.7.1",
76
80
  "bare-process": "^4.4.1",
81
+ "bare-url": "^2.4.3",
77
82
  "date-fns": "^4.1.0",
78
83
  "dotenv": "^17.2.3",
79
84
  "env-paths": "^4.0.0",
@@ -1,4 +0,0 @@
1
- import "bare-abort-controller/global";
2
- import "bare-crypto/global";
3
- import "bare-encoding/global";
4
- import "bare-fetch/global";
@@ -1,30 +0,0 @@
1
- // src/bare-global.ts
2
- import"bare-abort-controller/global";
3
- import"bare-crypto/global";
4
- import"bare-encoding/global";
5
- import"bare-fetch/global";
6
- import bareProcess from "bare-process";
7
- if (typeof globalThis.process === "undefined") {
8
- globalThis.process = bareProcess;
9
- }
10
- var SHIMS = [
11
- ["fs", "bare-fs"],
12
- ["crypto", "bare-crypto"]
13
- ];
14
- var seen = new WeakSet;
15
- for (const mod of Object.values(import.meta.cache)) {
16
- const proto = mod?._protocol;
17
- if (!proto || seen.has(proto))
18
- continue;
19
- seen.add(proto);
20
- const original = proto.preresolve.bind(proto);
21
- proto.preresolve = function(specifier, parentURL) {
22
- for (const [from, to] of SHIMS) {
23
- if (specifier === from)
24
- return to;
25
- if (specifier.startsWith(from + "/"))
26
- return to + specifier.slice(from.length);
27
- }
28
- return original(specifier, parentURL);
29
- };
30
- }