@cratestack/cbor-web 0.8.4 → 0.8.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.
package/dist/index.js
CHANGED
|
@@ -51,8 +51,8 @@ export async function createCborCodec() {
|
|
|
51
51
|
// The cast is TypeScript 5.7+ typed-array generics noise, not a
|
|
52
52
|
// real type mismatch: `Uint8Array` satisfies `BufferSource`
|
|
53
53
|
// (part of the `BodyInit` union) at runtime and per the DOM spec —
|
|
54
|
-
// see the same
|
|
55
|
-
// crates/cratestack-client-typescript/templates/src/
|
|
54
|
+
// see the same `BodyInit` usage in
|
|
55
|
+
// crates/cratestack-client-typescript/templates/src/rest-runtime.ts.j2.
|
|
56
56
|
return encode(value);
|
|
57
57
|
},
|
|
58
58
|
decode(bytes) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,iFAAiF;AACjF,8EAA8E;AAC9E,2EAA2E;AAC3E,sDAAsD;AACtD,OAAO,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAEvF,2EAA2E;AAC3E,uEAAuE;AACvE,0EAA0E;AAC1E,0EAA0E;AAC1E,mEAAmE;AACnE,qBAAqB;AACrB,IAAI,WAAW,GAAyB,IAAI,CAAC;AAE7C,SAAS,iBAAiB;IACxB,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,WAAW,GAAG,IAAI,EAAE;aACjB,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;aACrB,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACxB,WAAW,GAAG,IAAI,CAAC;YACnB,MAAM,KAAK,CAAC;QACd,CAAC,CAAC,CAAC;IACP,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,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M,CAAC,KAAiB;YACtB,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratestack/cbor-web",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"description": "wasm-bindgen CBOR codec for browser CrateStack RPC clients. Async one-time WASM init, synchronous encode/decode after — backed by the same Rust CborCodec the server and Rust client already use.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint": "biome check ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@cratestack/ts-types": "0.8.
|
|
46
|
+
"@cratestack/ts-types": "0.8.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"typescript": "^7.0.2",
|