renkin 0.52.0 → 0.53.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/package.json +1 -1
- package/renkin.js +6 -2
- package/renkin_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"kent-tokyo <kent-tokyo@users.noreply.github.com>"
|
|
6
6
|
],
|
|
7
7
|
"description": "Ultra-fast retrosynthesis engine for computer-aided synthesis planning (CASP) — pure Rust, WASM-ready, Python bindings via PyO3",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.53.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
package/renkin.js
CHANGED
|
@@ -347,7 +347,7 @@ export function version() {
|
|
|
347
347
|
function __wbg_get_imports() {
|
|
348
348
|
const import0 = {
|
|
349
349
|
__proto__: null,
|
|
350
|
-
|
|
350
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
351
351
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
352
352
|
},
|
|
353
353
|
__wbindgen_init_externref_table: function() {
|
|
@@ -456,11 +456,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
456
456
|
|
|
457
457
|
async function __wbg_load(module, imports) {
|
|
458
458
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
459
|
+
if (!module.ok) {
|
|
460
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
461
|
+
}
|
|
462
|
+
|
|
459
463
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
460
464
|
try {
|
|
461
465
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
462
466
|
} catch (e) {
|
|
463
|
-
const validResponse =
|
|
467
|
+
const validResponse = expectedResponseType(module.type);
|
|
464
468
|
|
|
465
469
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
466
470
|
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);
|
package/renkin_bg.wasm
CHANGED
|
Binary file
|