@structured-world/structured-zstd 0.0.49 → 0.0.50
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/LICENSE +1 -1
- package/README.md +1 -1
- package/package.json +2 -2
- package/scalar/structured_zstd_wasm.d.ts +1 -1
- package/scalar/structured_zstd_wasm.js +7 -3
- package/scalar/structured_zstd_wasm_bg.wasm +0 -0
- package/scalar/structured_zstd_wasm_bg.wasm.d.ts +1 -1
- package/simd/structured_zstd_wasm.d.ts +1 -1
- package/simd/structured_zstd_wasm.js +7 -3
- package/simd/structured_zstd_wasm_bg.wasm +0 -0
- package/simd/structured_zstd_wasm_bg.wasm.d.ts +1 -1
package/LICENSE
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
|
188
188
|
identification within third-party archives.
|
|
189
189
|
|
|
190
|
-
Copyright 2026
|
|
190
|
+
Copyright 2026 Dmitry Prudnikov
|
|
191
191
|
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
193
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -111,5 +111,5 @@ the browser/Deno they are fetched relative to the module.
|
|
|
111
111
|
|
|
112
112
|
## License
|
|
113
113
|
|
|
114
|
-
[Apache-2.0](./LICENSE) ©
|
|
114
|
+
[Apache-2.0](./LICENSE) © Dmitry Prudnikov. Built from
|
|
115
115
|
[`structured-zstd`](https://github.com/structured-world/structured-zstd).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@structured-world/structured-zstd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.50",
|
|
4
4
|
"description": "Pure-Rust Zstandard (zstd) codec compiled to WebAssembly — compress and decompress in the browser, Node.js and Deno, with automatic SIMD (simd128) acceleration and a scalar fallback. No native addons, no FFI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"pure-rust"
|
|
48
48
|
],
|
|
49
49
|
"license": "Apache-2.0",
|
|
50
|
-
"author": "
|
|
50
|
+
"author": "Dmitry Prudnikov <mail@polaz.com>",
|
|
51
51
|
"homepage": "https://github.com/structured-world/structured-zstd#readme",
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|
|
@@ -251,8 +251,8 @@ export interface InitOutput {
|
|
|
251
251
|
readonly zstddictionary_new: (a: number, b: number) => [number, number, number];
|
|
252
252
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
253
253
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
254
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
255
254
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
255
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
256
256
|
readonly __wbindgen_start: () => void;
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -466,11 +466,11 @@ export function decompressUsingDict(data, dict, checksum) {
|
|
|
466
466
|
function __wbg_get_imports() {
|
|
467
467
|
const import0 = {
|
|
468
468
|
__proto__: null,
|
|
469
|
-
|
|
469
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
470
470
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
471
471
|
return ret;
|
|
472
472
|
},
|
|
473
|
-
|
|
473
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
474
474
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
475
475
|
},
|
|
476
476
|
__wbindgen_init_externref_table: function() {
|
|
@@ -567,11 +567,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
567
567
|
|
|
568
568
|
async function __wbg_load(module, imports) {
|
|
569
569
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
570
|
+
if (!module.ok) {
|
|
571
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
572
|
+
}
|
|
573
|
+
|
|
570
574
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
571
575
|
try {
|
|
572
576
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
573
577
|
} catch (e) {
|
|
574
|
-
const validResponse =
|
|
578
|
+
const validResponse = expectedResponseType(module.type);
|
|
575
579
|
|
|
576
580
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
577
581
|
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);
|
|
Binary file
|
|
@@ -26,6 +26,6 @@ export const zstddictionary_id: (a: number) => number;
|
|
|
26
26
|
export const zstddictionary_new: (a: number, b: number) => [number, number, number];
|
|
27
27
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
28
28
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
29
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
30
29
|
export const __externref_table_dealloc: (a: number) => void;
|
|
30
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
31
31
|
export const __wbindgen_start: () => void;
|
|
@@ -251,8 +251,8 @@ export interface InitOutput {
|
|
|
251
251
|
readonly zstddictionary_new: (a: number, b: number) => [number, number, number];
|
|
252
252
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
253
253
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
254
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
255
254
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
255
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
256
256
|
readonly __wbindgen_start: () => void;
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -466,11 +466,11 @@ export function decompressUsingDict(data, dict, checksum) {
|
|
|
466
466
|
function __wbg_get_imports() {
|
|
467
467
|
const import0 = {
|
|
468
468
|
__proto__: null,
|
|
469
|
-
|
|
469
|
+
__wbg_Error_67e7344beaa85059: function(arg0, arg1) {
|
|
470
470
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
471
471
|
return ret;
|
|
472
472
|
},
|
|
473
|
-
|
|
473
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
474
474
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
475
475
|
},
|
|
476
476
|
__wbindgen_init_externref_table: function() {
|
|
@@ -567,11 +567,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
567
567
|
|
|
568
568
|
async function __wbg_load(module, imports) {
|
|
569
569
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
570
|
+
if (!module.ok) {
|
|
571
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
572
|
+
}
|
|
573
|
+
|
|
570
574
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
571
575
|
try {
|
|
572
576
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
573
577
|
} catch (e) {
|
|
574
|
-
const validResponse =
|
|
578
|
+
const validResponse = expectedResponseType(module.type);
|
|
575
579
|
|
|
576
580
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
577
581
|
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);
|
|
Binary file
|
|
@@ -26,6 +26,6 @@ export const zstddictionary_id: (a: number) => number;
|
|
|
26
26
|
export const zstddictionary_new: (a: number, b: number) => [number, number, number];
|
|
27
27
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
28
28
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
29
|
-
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
30
29
|
export const __externref_table_dealloc: (a: number) => void;
|
|
30
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
31
31
|
export const __wbindgen_start: () => void;
|