@antseed/node 0.2.3 → 0.2.5

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":"http.d.ts","sourceRoot":"","sources":["../../src/types/http.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,wBAAwB,CAAC;AACvE,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAC9D,iGAAiG;AACjG,eAAO,MAAM,yBAAyB,QAAkB,CAAC;AAEzD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf"}
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/types/http.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,wBAAwB,CAAC;AACvE,kGAAkG;AAClG,eAAO,MAAM,2BAA2B,qBAAqB,CAAC;AAC9D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,QAAW,CAAC;AAElD,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -1,6 +1,10 @@
1
1
  export const ANTSEED_STREAMING_RESPONSE_HEADER = 'x-antseed-streaming';
2
2
  /** Marker header set on HttpRequest frames whose body is sent via HttpRequestChunk/End frames. */
3
3
  export const ANTSEED_UPLOAD_CHUNK_HEADER = 'x-antseed-upload';
4
- /** Body size threshold above which ProxyMux automatically switches to chunked upload (1 MiB). */
5
- export const ANTSEED_UPLOAD_CHUNK_SIZE = 1 * 1024 * 1024;
4
+ /**
5
+ * Body size threshold/chunk size used by ProxyMux for request uploads.
6
+ * Kept deliberately small for cross-peer RTC compatibility where max message
7
+ * size can vary across environments.
8
+ */
9
+ export const ANTSEED_UPLOAD_CHUNK_SIZE = 8 * 1024;
6
10
  //# sourceMappingURL=http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/types/http.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE,kGAAkG;AAClG,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AAC9D,iGAAiG;AACjG,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/types/http.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AACvE,kGAAkG;AAClG,MAAM,CAAC,MAAM,2BAA2B,GAAG,kBAAkB,CAAC;AAC9D;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,GAAG,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antseed/node",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Antseed Network protocol SDK — P2P inference marketplace",
5
5
  "type": "module",
6
6
  "files": [
@@ -38,6 +38,14 @@
38
38
  "types": "./dist/types/index.d.ts"
39
39
  }
40
40
  },
41
+ "scripts": {
42
+ "postinstall": "node scripts/patch-ethers.js",
43
+ "ensure:native": "node scripts/ensure-node-native-modules.mjs",
44
+ "build": "tsc",
45
+ "pretest": "npm run ensure:native",
46
+ "test": "\"$npm_node_execpath\" ./node_modules/vitest/vitest.mjs run",
47
+ "typecheck": "tsc --noEmit"
48
+ },
41
49
  "dependencies": {
42
50
  "@noble/ed25519": "^2.1.0",
43
51
  "@silentbot1/nat-api": "^0.4.9",
@@ -54,13 +62,5 @@
54
62
  "@types/node": "^20.11.0",
55
63
  "typescript": "^5.3.0",
56
64
  "vitest": "^1.2.0"
57
- },
58
- "scripts": {
59
- "postinstall": "node scripts/patch-ethers.js",
60
- "ensure:native": "node scripts/ensure-node-native-modules.mjs",
61
- "build": "tsc",
62
- "pretest": "npm run ensure:native",
63
- "test": "\"$npm_node_execpath\" ./node_modules/vitest/vitest.mjs run",
64
- "typecheck": "tsc --noEmit"
65
65
  }
66
- }
66
+ }