logisheets 1.9.0 → 1.10.0
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/wasm/logisheets_wasm_server.d.ts +5 -5
- package/dist/wasm/logisheets_wasm_server.js +24 -24
- package/dist/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/dist/wasm/package.json +2 -2
- package/package.json +1 -1
- package/wasm/logisheets_wasm_server.d.ts +5 -5
- package/wasm/logisheets_wasm_server.js +24 -24
- package/wasm/logisheets_wasm_server_bg.wasm +0 -0
- package/wasm/package.json +2 -2
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function handle(msg: any, book_id?: number | null): any;
|
|
4
|
+
/**
|
|
5
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
6
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
7
|
+
*/
|
|
8
|
+
export function format_text(fmt: string, text: string): string;
|
|
4
9
|
/**
|
|
5
10
|
* Input: AsyncFuncResult
|
|
6
11
|
* Output: ActionAffect
|
|
@@ -13,8 +18,3 @@ export function input_async_result(id: number, result: any): any;
|
|
|
13
18
|
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
14
19
|
*/
|
|
15
20
|
export function format_number(fmt: string, value: number): string;
|
|
16
|
-
/**
|
|
17
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
18
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
19
|
-
*/
|
|
20
|
-
export function format_text(fmt: string, text: string): string;
|
|
@@ -180,6 +180,30 @@ module.exports.handle = function(msg, book_id) {
|
|
|
180
180
|
return ret;
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
185
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
186
|
+
* @param {string} fmt
|
|
187
|
+
* @param {string} text
|
|
188
|
+
* @returns {string}
|
|
189
|
+
*/
|
|
190
|
+
module.exports.format_text = function(fmt, text) {
|
|
191
|
+
let deferred3_0;
|
|
192
|
+
let deferred3_1;
|
|
193
|
+
try {
|
|
194
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
+
const len0 = WASM_VECTOR_LEN;
|
|
196
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
+
const len1 = WASM_VECTOR_LEN;
|
|
198
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
199
|
+
deferred3_0 = ret[0];
|
|
200
|
+
deferred3_1 = ret[1];
|
|
201
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
202
|
+
} finally {
|
|
203
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
183
207
|
/**
|
|
184
208
|
* Input: AsyncFuncResult
|
|
185
209
|
* Output: ActionAffect
|
|
@@ -216,30 +240,6 @@ module.exports.format_number = function(fmt, value) {
|
|
|
216
240
|
}
|
|
217
241
|
};
|
|
218
242
|
|
|
219
|
-
/**
|
|
220
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
221
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
222
|
-
* @param {string} fmt
|
|
223
|
-
* @param {string} text
|
|
224
|
-
* @returns {string}
|
|
225
|
-
*/
|
|
226
|
-
module.exports.format_text = function(fmt, text) {
|
|
227
|
-
let deferred3_0;
|
|
228
|
-
let deferred3_1;
|
|
229
|
-
try {
|
|
230
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
-
const len0 = WASM_VECTOR_LEN;
|
|
232
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
|
-
const len1 = WASM_VECTOR_LEN;
|
|
234
|
-
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
235
|
-
deferred3_0 = ret[0];
|
|
236
|
-
deferred3_1 = ret[1];
|
|
237
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
238
|
-
} finally {
|
|
239
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
|
|
243
243
|
module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
|
|
244
244
|
const ret = String(arg1);
|
|
245
245
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
Binary file
|
package/dist/wasm/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"collaborators": [
|
|
4
4
|
"JeremyHe <yiliang.he@qq.com>"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.10.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"logisheets_wasm_server_bg.wasm",
|
|
9
9
|
"logisheets_wasm_server.js",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "logisheets_wasm_server.js",
|
|
13
13
|
"types": "logisheets_wasm_server.d.ts"
|
|
14
|
-
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function handle(msg: any, book_id?: number | null): any;
|
|
4
|
+
/**
|
|
5
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
6
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
7
|
+
*/
|
|
8
|
+
export function format_text(fmt: string, text: string): string;
|
|
4
9
|
/**
|
|
5
10
|
* Input: AsyncFuncResult
|
|
6
11
|
* Output: ActionAffect
|
|
@@ -13,8 +18,3 @@ export function input_async_result(id: number, result: any): any;
|
|
|
13
18
|
* JavaScript `String(value)` representation, matching the previous behavior.
|
|
14
19
|
*/
|
|
15
20
|
export function format_number(fmt: string, value: number): string;
|
|
16
|
-
/**
|
|
17
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
18
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
19
|
-
*/
|
|
20
|
-
export function format_text(fmt: string, text: string): string;
|
|
@@ -180,6 +180,30 @@ module.exports.handle = function(msg, book_id) {
|
|
|
180
180
|
return ret;
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Render a text value with an Excel number-format code (for the `@` text
|
|
185
|
+
* section). Falls back to the text itself on an unsupported format.
|
|
186
|
+
* @param {string} fmt
|
|
187
|
+
* @param {string} text
|
|
188
|
+
* @returns {string}
|
|
189
|
+
*/
|
|
190
|
+
module.exports.format_text = function(fmt, text) {
|
|
191
|
+
let deferred3_0;
|
|
192
|
+
let deferred3_1;
|
|
193
|
+
try {
|
|
194
|
+
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
|
+
const len0 = WASM_VECTOR_LEN;
|
|
196
|
+
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
197
|
+
const len1 = WASM_VECTOR_LEN;
|
|
198
|
+
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
199
|
+
deferred3_0 = ret[0];
|
|
200
|
+
deferred3_1 = ret[1];
|
|
201
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
202
|
+
} finally {
|
|
203
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
183
207
|
/**
|
|
184
208
|
* Input: AsyncFuncResult
|
|
185
209
|
* Output: ActionAffect
|
|
@@ -216,30 +240,6 @@ module.exports.format_number = function(fmt, value) {
|
|
|
216
240
|
}
|
|
217
241
|
};
|
|
218
242
|
|
|
219
|
-
/**
|
|
220
|
-
* Render a text value with an Excel number-format code (for the `@` text
|
|
221
|
-
* section). Falls back to the text itself on an unsupported format.
|
|
222
|
-
* @param {string} fmt
|
|
223
|
-
* @param {string} text
|
|
224
|
-
* @returns {string}
|
|
225
|
-
*/
|
|
226
|
-
module.exports.format_text = function(fmt, text) {
|
|
227
|
-
let deferred3_0;
|
|
228
|
-
let deferred3_1;
|
|
229
|
-
try {
|
|
230
|
-
const ptr0 = passStringToWasm0(fmt, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
231
|
-
const len0 = WASM_VECTOR_LEN;
|
|
232
|
-
const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
|
-
const len1 = WASM_VECTOR_LEN;
|
|
234
|
-
const ret = wasm.format_text(ptr0, len0, ptr1, len1);
|
|
235
|
-
deferred3_0 = ret[0];
|
|
236
|
-
deferred3_1 = ret[1];
|
|
237
|
-
return getStringFromWasm0(ret[0], ret[1]);
|
|
238
|
-
} finally {
|
|
239
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
240
|
-
}
|
|
241
|
-
};
|
|
242
|
-
|
|
243
243
|
module.exports.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
|
|
244
244
|
const ret = String(arg1);
|
|
245
245
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
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.
|
|
6
|
+
"version": "1.10.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"logisheets_wasm_server_bg.wasm",
|
|
9
9
|
"logisheets_wasm_server.js",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
],
|
|
12
12
|
"main": "logisheets_wasm_server.js",
|
|
13
13
|
"types": "logisheets_wasm_server.d.ts"
|
|
14
|
-
}
|
|
14
|
+
}
|