logisheets 1.12.0 → 1.12.1

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,5 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Render a text value with an Excel number-format code (for the `@` text
5
+ * section). Falls back to the text itself on an unsupported format.
6
+ */
7
+ export function format_text(fmt: string, text: string): string;
3
8
  /**
4
9
  * Input: AsyncFuncResult
5
10
  * Output: ActionAffect
@@ -12,9 +17,4 @@ export function input_async_result(id: number, result: any): any;
12
17
  * JavaScript `String(value)` representation, matching the previous behavior.
13
18
  */
14
19
  export function format_number(fmt: string, value: number): string;
15
- /**
16
- * Render a text value with an Excel number-format code (for the `@` text
17
- * section). Falls back to the text itself on an unsupported format.
18
- */
19
- export function format_text(fmt: string, text: string): string;
20
20
  export function handle(msg: any, book_id?: number | null): any;
@@ -170,6 +170,30 @@ function debugString(val) {
170
170
  // TODO we could test for more things here, like `Set`s and `Map`s.
171
171
  return className;
172
172
  }
173
+ /**
174
+ * Render a text value with an Excel number-format code (for the `@` text
175
+ * section). Falls back to the text itself on an unsupported format.
176
+ * @param {string} fmt
177
+ * @param {string} text
178
+ * @returns {string}
179
+ */
180
+ module.exports.format_text = function(fmt, text) {
181
+ let deferred3_0;
182
+ let deferred3_1;
183
+ try {
184
+ const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
185
+ const len0 = WASM_VECTOR_LEN;
186
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
187
+ const len1 = WASM_VECTOR_LEN;
188
+ const ret = wasm.format_text(ptr0, len0, ptr1, len1);
189
+ deferred3_0 = ret[0];
190
+ deferred3_1 = ret[1];
191
+ return getStringFromWasm0(ret[0], ret[1]);
192
+ } finally {
193
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
194
+ }
195
+ };
196
+
173
197
  /**
174
198
  * Input: AsyncFuncResult
175
199
  * Output: ActionAffect
@@ -206,30 +230,6 @@ module.exports.format_number = function(fmt, value) {
206
230
  }
207
231
  };
208
232
 
209
- /**
210
- * Render a text value with an Excel number-format code (for the `@` text
211
- * section). Falls back to the text itself on an unsupported format.
212
- * @param {string} fmt
213
- * @param {string} text
214
- * @returns {string}
215
- */
216
- module.exports.format_text = function(fmt, text) {
217
- let deferred3_0;
218
- let deferred3_1;
219
- try {
220
- const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
221
- const len0 = WASM_VECTOR_LEN;
222
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
- const len1 = WASM_VECTOR_LEN;
224
- const ret = wasm.format_text(ptr0, len0, ptr1, len1);
225
- deferred3_0 = ret[0];
226
- deferred3_1 = ret[1];
227
- return getStringFromWasm0(ret[0], ret[1]);
228
- } finally {
229
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
230
- }
231
- };
232
-
233
233
  /**
234
234
  * @param {any} msg
235
235
  * @param {number | null} [book_id]
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.12.0",
6
+ "version": "1.12.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logisheets",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Node.js bindings for LogiSheets — a Rust + WebAssembly spreadsheet engine that reads, edits, and writes real .xlsx (Excel) files (formulas, styles, and structure preserved) with no browser required.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,5 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ /**
4
+ * Render a text value with an Excel number-format code (for the `@` text
5
+ * section). Falls back to the text itself on an unsupported format.
6
+ */
7
+ export function format_text(fmt: string, text: string): string;
3
8
  /**
4
9
  * Input: AsyncFuncResult
5
10
  * Output: ActionAffect
@@ -12,9 +17,4 @@ export function input_async_result(id: number, result: any): any;
12
17
  * JavaScript `String(value)` representation, matching the previous behavior.
13
18
  */
14
19
  export function format_number(fmt: string, value: number): string;
15
- /**
16
- * Render a text value with an Excel number-format code (for the `@` text
17
- * section). Falls back to the text itself on an unsupported format.
18
- */
19
- export function format_text(fmt: string, text: string): string;
20
20
  export function handle(msg: any, book_id?: number | null): any;
@@ -170,6 +170,30 @@ function debugString(val) {
170
170
  // TODO we could test for more things here, like `Set`s and `Map`s.
171
171
  return className;
172
172
  }
173
+ /**
174
+ * Render a text value with an Excel number-format code (for the `@` text
175
+ * section). Falls back to the text itself on an unsupported format.
176
+ * @param {string} fmt
177
+ * @param {string} text
178
+ * @returns {string}
179
+ */
180
+ module.exports.format_text = function(fmt, text) {
181
+ let deferred3_0;
182
+ let deferred3_1;
183
+ try {
184
+ const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
185
+ const len0 = WASM_VECTOR_LEN;
186
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
187
+ const len1 = WASM_VECTOR_LEN;
188
+ const ret = wasm.format_text(ptr0, len0, ptr1, len1);
189
+ deferred3_0 = ret[0];
190
+ deferred3_1 = ret[1];
191
+ return getStringFromWasm0(ret[0], ret[1]);
192
+ } finally {
193
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
194
+ }
195
+ };
196
+
173
197
  /**
174
198
  * Input: AsyncFuncResult
175
199
  * Output: ActionAffect
@@ -206,30 +230,6 @@ module.exports.format_number = function(fmt, value) {
206
230
  }
207
231
  };
208
232
 
209
- /**
210
- * Render a text value with an Excel number-format code (for the `@` text
211
- * section). Falls back to the text itself on an unsupported format.
212
- * @param {string} fmt
213
- * @param {string} text
214
- * @returns {string}
215
- */
216
- module.exports.format_text = function(fmt, text) {
217
- let deferred3_0;
218
- let deferred3_1;
219
- try {
220
- const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
221
- const len0 = WASM_VECTOR_LEN;
222
- const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
- const len1 = WASM_VECTOR_LEN;
224
- const ret = wasm.format_text(ptr0, len0, ptr1, len1);
225
- deferred3_0 = ret[0];
226
- deferred3_1 = ret[1];
227
- return getStringFromWasm0(ret[0], ret[1]);
228
- } finally {
229
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
230
- }
231
- };
232
-
233
233
  /**
234
234
  * @param {any} msg
235
235
  * @param {number | null} [book_id]
Binary file
package/wasm/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "JeremyHe <yiliang.he@qq.com>"
5
5
  ],
6
- "version": "1.12.0",
6
+ "version": "1.12.1",
7
7
  "files": [
8
8
  "logisheets_wasm_server_bg.wasm",
9
9
  "logisheets_wasm_server.js",