nagami-rs 2026.7.0 → 2026.7.2
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/nagami.js +24 -20
- package/nagami_bg.wasm +0 -0
- package/package.json +1 -1
package/nagami.js
CHANGED
|
@@ -65,35 +65,35 @@ export function version() {
|
|
|
65
65
|
function __wbg_get_imports() {
|
|
66
66
|
const import0 = {
|
|
67
67
|
__proto__: null,
|
|
68
|
-
|
|
68
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
69
69
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
70
70
|
return addHeapObject(ret);
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
__wbg___wbindgen_boolean_get_c9c83ebd41b34df3: function(arg0) {
|
|
73
73
|
const v = getObject(arg0);
|
|
74
74
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
75
75
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
__wbg___wbindgen_is_null_7d13f41e1a2d5140: function(arg0) {
|
|
78
78
|
const ret = getObject(arg0) === null;
|
|
79
79
|
return ret;
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
__wbg___wbindgen_is_object_a2790eb24c211ea0: function(arg0) {
|
|
82
82
|
const val = getObject(arg0);
|
|
83
83
|
const ret = typeof(val) === 'object' && val !== null;
|
|
84
84
|
return ret;
|
|
85
85
|
},
|
|
86
|
-
|
|
86
|
+
__wbg___wbindgen_is_undefined_6cff064c44e0d823: function(arg0) {
|
|
87
87
|
const ret = getObject(arg0) === undefined;
|
|
88
88
|
return ret;
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
__wbg___wbindgen_number_get_136b9679cab35cfb: function(arg0, arg1) {
|
|
91
91
|
const obj = getObject(arg1);
|
|
92
92
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
93
93
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
94
94
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
__wbg___wbindgen_string_get_d154f1e671052120: function(arg0, arg1) {
|
|
97
97
|
const obj = getObject(arg1);
|
|
98
98
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
99
99
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -101,41 +101,41 @@ function __wbg_get_imports() {
|
|
|
101
101
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
102
102
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
103
103
|
},
|
|
104
|
-
|
|
104
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
105
105
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
106
106
|
},
|
|
107
|
-
|
|
107
|
+
__wbg_error_7f1e71fe68e5559e: function(arg0, arg1) {
|
|
108
108
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
109
109
|
},
|
|
110
|
-
|
|
110
|
+
__wbg_get_971a0c45d172643f: function() { return handleError(function (arg0, arg1) {
|
|
111
111
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
112
112
|
return addHeapObject(ret);
|
|
113
113
|
}, arguments); },
|
|
114
|
-
|
|
114
|
+
__wbg_get_unchecked_e20b893aeafc3fca: function(arg0, arg1) {
|
|
115
115
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
116
116
|
return addHeapObject(ret);
|
|
117
117
|
},
|
|
118
|
-
|
|
118
|
+
__wbg_isArray_6339f732981044bf: function(arg0) {
|
|
119
119
|
const ret = Array.isArray(getObject(arg0));
|
|
120
120
|
return ret;
|
|
121
121
|
},
|
|
122
|
-
|
|
122
|
+
__wbg_length_ecfa2c63d3d0d82c: function(arg0) {
|
|
123
123
|
const ret = getObject(arg0).length;
|
|
124
124
|
return ret;
|
|
125
125
|
},
|
|
126
|
-
|
|
127
|
-
const ret = new
|
|
126
|
+
__wbg_new_116be93542d39019: function() {
|
|
127
|
+
const ret = new Array();
|
|
128
128
|
return addHeapObject(ret);
|
|
129
129
|
},
|
|
130
|
-
|
|
131
|
-
const ret = new
|
|
130
|
+
__wbg_new_ebe3e0f6837f0879: function() {
|
|
131
|
+
const ret = new Object();
|
|
132
132
|
return addHeapObject(ret);
|
|
133
133
|
},
|
|
134
|
-
|
|
134
|
+
__wbg_push_adb0107829f02d75: function(arg0, arg1) {
|
|
135
135
|
const ret = getObject(arg0).push(getObject(arg1));
|
|
136
136
|
return ret;
|
|
137
137
|
},
|
|
138
|
-
|
|
138
|
+
__wbg_set_8155bb79a948541b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
139
139
|
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
140
140
|
return ret;
|
|
141
141
|
}, arguments); },
|
|
@@ -298,11 +298,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
298
298
|
|
|
299
299
|
async function __wbg_load(module, imports) {
|
|
300
300
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
301
|
+
if (!module.ok) {
|
|
302
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
303
|
+
}
|
|
304
|
+
|
|
301
305
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
302
306
|
try {
|
|
303
307
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
304
308
|
} catch (e) {
|
|
305
|
-
const validResponse =
|
|
309
|
+
const validResponse = expectedResponseType(module.type);
|
|
306
310
|
|
|
307
311
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
308
312
|
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/nagami_bg.wasm
CHANGED
|
Binary file
|