@stll/docx-core 0.36.1 → 0.36.3
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/docx_kernel_bg.wasm +0 -0
- package/dist/projection.js +14 -13
- package/package.json +2 -2
package/dist/docx_kernel_bg.wasm
CHANGED
|
Binary file
|
package/dist/projection.js
CHANGED
|
@@ -135,36 +135,36 @@ function __wbg_get_imports() {
|
|
|
135
135
|
__proto__: null,
|
|
136
136
|
"./docx_kernel_bg.js": {
|
|
137
137
|
__proto__: null,
|
|
138
|
-
|
|
138
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
139
139
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
140
140
|
},
|
|
141
|
-
|
|
142
|
-
return addHeapObject(new Array());
|
|
143
|
-
},
|
|
144
|
-
__wbg_new_b667d279fd5aa943: function(arg0, arg1) {
|
|
141
|
+
__wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
|
|
145
142
|
return addHeapObject(new Error(getStringFromWasm0(arg0, arg1)));
|
|
146
143
|
},
|
|
147
|
-
|
|
144
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
148
145
|
return addHeapObject(/* @__PURE__ */ new Object());
|
|
149
146
|
},
|
|
150
|
-
|
|
147
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
148
|
+
return addHeapObject(new Array());
|
|
149
|
+
},
|
|
150
|
+
__wbg_new_with_length_469fcc27bd71672e: function(arg0) {
|
|
151
151
|
return addHeapObject(new Array(arg0 >>> 0));
|
|
152
152
|
},
|
|
153
|
-
|
|
153
|
+
__wbg_push_2baf45db356cf468: function(arg0, arg1) {
|
|
154
154
|
return getObject(arg0).push(getObject(arg1));
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
__wbg_set_145a351398b48c65: function() {
|
|
157
157
|
return handleError(function(arg0, arg1, arg2) {
|
|
158
158
|
return Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
159
159
|
}, arguments);
|
|
160
160
|
},
|
|
161
|
-
|
|
161
|
+
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
162
162
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
163
163
|
},
|
|
164
|
-
|
|
164
|
+
__wbindgen_generic_0000000000000001: function(arg0) {
|
|
165
165
|
return addHeapObject(arg0);
|
|
166
166
|
},
|
|
167
|
-
|
|
167
|
+
__wbindgen_generic_0000000000000002: function(arg0, arg1) {
|
|
168
168
|
return addHeapObject(getStringFromWasm0(arg0, arg1));
|
|
169
169
|
},
|
|
170
170
|
__wbindgen_object_drop_ref: function(arg0) {
|
|
@@ -251,10 +251,11 @@ function __wbg_finalize_init(instance, module) {
|
|
|
251
251
|
}
|
|
252
252
|
async function __wbg_load(module, imports) {
|
|
253
253
|
if (typeof Response === "function" && module instanceof Response) {
|
|
254
|
+
if (!module.ok) throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
254
255
|
if (typeof WebAssembly.instantiateStreaming === "function") try {
|
|
255
256
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
256
257
|
} catch (e) {
|
|
257
|
-
if (
|
|
258
|
+
if (expectedResponseType(module.type) && module.headers.get("Content-Type") !== "application/wasm") console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
258
259
|
else throw e;
|
|
259
260
|
}
|
|
260
261
|
const bytes = await module.arrayBuffer();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/docx-core",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.3",
|
|
4
4
|
"description": "Typed OOXML/DOCX model, validation, serialization, legal-source compilation, and browser-native package projection.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"document-model",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"build": "rm -rf dist && tsdown",
|
|
66
66
|
"pack:dry-run": "bun pm pack --dry-run",
|
|
67
67
|
"test": "bun test src",
|
|
68
|
-
"typecheck": "bun
|
|
68
|
+
"typecheck": "bun check --no-pretty --all --project=tsconfig.build.json",
|
|
69
69
|
"wasm:check": "bun ../../scripts/build-docx-kernel-wasm.ts --check",
|
|
70
70
|
"wasm:generate": "bun ../../scripts/build-docx-kernel-wasm.ts --write",
|
|
71
71
|
"format": "oxfmt .",
|