kjarni-wasm 0.2.0 → 0.2.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.
- package/package.json +1 -1
- package/pkg/kjarni_wasm.d.ts +2 -2
- package/pkg/kjarni_wasm.js +49 -49
- package/pkg/kjarni_wasm_bg.wasm +0 -0
- package/pkg/kjarni_wasm_bg.wasm.d.ts +2 -2
package/package.json
CHANGED
package/pkg/kjarni_wasm.d.ts
CHANGED
|
@@ -255,8 +255,8 @@ export interface InitOutput {
|
|
|
255
255
|
readonly wasmsearch_search_keywords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
256
256
|
readonly wasmsearch_search_semantic: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
257
257
|
readonly wasmsearch_update_file: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
258
|
-
readonly
|
|
259
|
-
readonly
|
|
258
|
+
readonly __wasm_bindgen_func_elem_5677: (a: number, b: number, c: number, d: number) => void;
|
|
259
|
+
readonly __wasm_bindgen_func_elem_5695: (a: number, b: number, c: number, d: number) => void;
|
|
260
260
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
261
261
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
262
262
|
readonly __wbindgen_export3: (a: number) => void;
|
package/pkg/kjarni_wasm.js
CHANGED
|
@@ -960,7 +960,7 @@ export function set_debug_logging(enabled) {
|
|
|
960
960
|
function __wbg_get_imports() {
|
|
961
961
|
const import0 = {
|
|
962
962
|
__proto__: null,
|
|
963
|
-
|
|
963
|
+
__wbg_Error_30c8987f7c2ed4e2: function(arg0, arg1) {
|
|
964
964
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
965
965
|
return addHeapObject(ret);
|
|
966
966
|
},
|
|
@@ -971,31 +971,31 @@ function __wbg_get_imports() {
|
|
|
971
971
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
972
972
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
973
973
|
},
|
|
974
|
-
|
|
974
|
+
__wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
|
|
975
975
|
const ret = debugString(getObject(arg1));
|
|
976
976
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
977
977
|
const len1 = WASM_VECTOR_LEN;
|
|
978
978
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
979
979
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
980
980
|
},
|
|
981
|
-
|
|
981
|
+
__wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
|
|
982
982
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
983
983
|
return ret;
|
|
984
984
|
},
|
|
985
|
-
|
|
985
|
+
__wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
|
|
986
986
|
const val = getObject(arg0);
|
|
987
987
|
const ret = typeof(val) === 'object' && val !== null;
|
|
988
988
|
return ret;
|
|
989
989
|
},
|
|
990
|
-
|
|
990
|
+
__wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
|
|
991
991
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
992
992
|
return ret;
|
|
993
993
|
},
|
|
994
|
-
|
|
994
|
+
__wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
|
|
995
995
|
const ret = getObject(arg0) === undefined;
|
|
996
996
|
return ret;
|
|
997
997
|
},
|
|
998
|
-
|
|
998
|
+
__wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
|
|
999
999
|
const obj = getObject(arg1);
|
|
1000
1000
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1001
1001
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -1003,17 +1003,17 @@ function __wbg_get_imports() {
|
|
|
1003
1003
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1004
1004
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1005
1005
|
},
|
|
1006
|
-
|
|
1006
|
+
__wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
|
|
1007
1007
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1008
1008
|
},
|
|
1009
|
-
|
|
1009
|
+
__wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
|
|
1010
1010
|
getObject(arg0)._wbg_cb_unref();
|
|
1011
1011
|
},
|
|
1012
|
-
|
|
1012
|
+
__wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
|
|
1013
1013
|
const ret = getObject(arg0).arrayBuffer();
|
|
1014
1014
|
return addHeapObject(ret);
|
|
1015
1015
|
}, arguments); },
|
|
1016
|
-
|
|
1016
|
+
__wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1017
1017
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
1018
1018
|
return addHeapObject(ret);
|
|
1019
1019
|
}, arguments); },
|
|
@@ -1032,11 +1032,11 @@ function __wbg_get_imports() {
|
|
|
1032
1032
|
wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
|
|
1033
1033
|
}
|
|
1034
1034
|
},
|
|
1035
|
-
|
|
1035
|
+
__wbg_fetch_4178962c570137ca: function(arg0, arg1, arg2) {
|
|
1036
1036
|
const ret = getObject(arg0).fetch(getStringFromWasm0(arg1, arg2));
|
|
1037
1037
|
return addHeapObject(ret);
|
|
1038
1038
|
},
|
|
1039
|
-
|
|
1039
|
+
__wbg_fetch_4a78764f83137409: function(arg0, arg1, arg2) {
|
|
1040
1040
|
const ret = getObject(arg0).fetch(getStringFromWasm0(arg1, arg2));
|
|
1041
1041
|
return addHeapObject(ret);
|
|
1042
1042
|
},
|
|
@@ -1046,7 +1046,7 @@ function __wbg_get_imports() {
|
|
|
1046
1046
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1047
1047
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
1048
1048
|
}, arguments); },
|
|
1049
|
-
|
|
1049
|
+
__wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
|
|
1050
1050
|
let result;
|
|
1051
1051
|
try {
|
|
1052
1052
|
result = getObject(arg0) instanceof Response;
|
|
@@ -1056,7 +1056,7 @@ function __wbg_get_imports() {
|
|
|
1056
1056
|
const ret = result;
|
|
1057
1057
|
return ret;
|
|
1058
1058
|
},
|
|
1059
|
-
|
|
1059
|
+
__wbg_instanceof_Window_82d71df4eddf88bc: function(arg0) {
|
|
1060
1060
|
let result;
|
|
1061
1061
|
try {
|
|
1062
1062
|
result = getObject(arg0) instanceof Window;
|
|
@@ -1066,7 +1066,7 @@ function __wbg_get_imports() {
|
|
|
1066
1066
|
const ret = result;
|
|
1067
1067
|
return ret;
|
|
1068
1068
|
},
|
|
1069
|
-
|
|
1069
|
+
__wbg_instanceof_WorkerGlobalScope_8966e756dd00e8b7: function(arg0) {
|
|
1070
1070
|
let result;
|
|
1071
1071
|
try {
|
|
1072
1072
|
result = getObject(arg0) instanceof WorkerGlobalScope;
|
|
@@ -1076,18 +1076,18 @@ function __wbg_get_imports() {
|
|
|
1076
1076
|
const ret = result;
|
|
1077
1077
|
return ret;
|
|
1078
1078
|
},
|
|
1079
|
-
|
|
1079
|
+
__wbg_length_7f3c00c40364105e: function(arg0) {
|
|
1080
1080
|
const ret = getObject(arg0).length;
|
|
1081
1081
|
return ret;
|
|
1082
1082
|
},
|
|
1083
|
-
|
|
1083
|
+
__wbg_log_17c30ef363c61cf4: function(arg0) {
|
|
1084
1084
|
console.log(getObject(arg0));
|
|
1085
1085
|
},
|
|
1086
1086
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1087
1087
|
const ret = getObject(arg0).msCrypto;
|
|
1088
1088
|
return addHeapObject(ret);
|
|
1089
1089
|
},
|
|
1090
|
-
|
|
1090
|
+
__wbg_new_1dbf7428bba60a42: function(arg0) {
|
|
1091
1091
|
const ret = new Uint8Array(getObject(arg0));
|
|
1092
1092
|
return addHeapObject(ret);
|
|
1093
1093
|
},
|
|
@@ -1095,26 +1095,26 @@ function __wbg_get_imports() {
|
|
|
1095
1095
|
const ret = new Error();
|
|
1096
1096
|
return addHeapObject(ret);
|
|
1097
1097
|
},
|
|
1098
|
-
|
|
1098
|
+
__wbg_new_28744009d011f847: function() {
|
|
1099
1099
|
const ret = new Map();
|
|
1100
1100
|
return addHeapObject(ret);
|
|
1101
1101
|
},
|
|
1102
|
-
|
|
1102
|
+
__wbg_new_617a8cdb8bb1130e: function() {
|
|
1103
1103
|
const ret = new Object();
|
|
1104
1104
|
return addHeapObject(ret);
|
|
1105
1105
|
},
|
|
1106
|
-
|
|
1106
|
+
__wbg_new_ee2291f50781bf1d: function() {
|
|
1107
1107
|
const ret = new Array();
|
|
1108
1108
|
return addHeapObject(ret);
|
|
1109
1109
|
},
|
|
1110
|
-
|
|
1110
|
+
__wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
|
|
1111
1111
|
try {
|
|
1112
1112
|
var state0 = {a: arg0, b: arg1};
|
|
1113
1113
|
var cb0 = (arg0, arg1) => {
|
|
1114
1114
|
const a = state0.a;
|
|
1115
1115
|
state0.a = 0;
|
|
1116
1116
|
try {
|
|
1117
|
-
return
|
|
1117
|
+
return __wasm_bindgen_func_elem_5695(a, state0.b, arg0, arg1);
|
|
1118
1118
|
} finally {
|
|
1119
1119
|
state0.a = a;
|
|
1120
1120
|
}
|
|
@@ -1125,7 +1125,7 @@ function __wbg_get_imports() {
|
|
|
1125
1125
|
state0.a = 0;
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
|
-
|
|
1128
|
+
__wbg_new_with_length_3da0ad195f6f63ba: function(arg0) {
|
|
1129
1129
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1130
1130
|
return addHeapObject(ret);
|
|
1131
1131
|
},
|
|
@@ -1133,7 +1133,7 @@ function __wbg_get_imports() {
|
|
|
1133
1133
|
const ret = getObject(arg0).node;
|
|
1134
1134
|
return addHeapObject(ret);
|
|
1135
1135
|
},
|
|
1136
|
-
|
|
1136
|
+
__wbg_now_aa4ccb83129e9e55: function() {
|
|
1137
1137
|
const ret = Date.now();
|
|
1138
1138
|
return ret;
|
|
1139
1139
|
},
|
|
@@ -1149,14 +1149,14 @@ function __wbg_get_imports() {
|
|
|
1149
1149
|
const ret = getObject(arg0).process;
|
|
1150
1150
|
return addHeapObject(ret);
|
|
1151
1151
|
},
|
|
1152
|
-
|
|
1152
|
+
__wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
|
|
1153
1153
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
1154
1154
|
},
|
|
1155
|
-
|
|
1155
|
+
__wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
|
|
1156
1156
|
const ret = getObject(arg0).queueMicrotask;
|
|
1157
1157
|
return addHeapObject(ret);
|
|
1158
1158
|
},
|
|
1159
|
-
|
|
1159
|
+
__wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
|
|
1160
1160
|
queueMicrotask(getObject(arg0));
|
|
1161
1161
|
},
|
|
1162
1162
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1166,19 +1166,19 @@ function __wbg_get_imports() {
|
|
|
1166
1166
|
const ret = module.require;
|
|
1167
1167
|
return addHeapObject(ret);
|
|
1168
1168
|
}, arguments); },
|
|
1169
|
-
|
|
1169
|
+
__wbg_resolve_0076e10020304ede: function(arg0) {
|
|
1170
1170
|
const ret = Promise.resolve(getObject(arg0));
|
|
1171
1171
|
return addHeapObject(ret);
|
|
1172
1172
|
},
|
|
1173
|
-
|
|
1174
|
-
getObject(arg0)
|
|
1173
|
+
__wbg_set_6ae97e73113c4f0b: function(arg0, arg1, arg2) {
|
|
1174
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
1175
|
+
return addHeapObject(ret);
|
|
1175
1176
|
},
|
|
1176
1177
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1177
1178
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
1178
1179
|
},
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
return addHeapObject(ret);
|
|
1180
|
+
__wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
|
|
1181
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
1182
1182
|
},
|
|
1183
1183
|
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1184
1184
|
const ret = getObject(arg1).stack;
|
|
@@ -1187,35 +1187,35 @@ function __wbg_get_imports() {
|
|
|
1187
1187
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1188
1188
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1189
1189
|
},
|
|
1190
|
-
|
|
1190
|
+
__wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
|
|
1191
1191
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1192
1192
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1193
1193
|
},
|
|
1194
|
-
|
|
1194
|
+
__wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
|
|
1195
1195
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1196
1196
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1197
1197
|
},
|
|
1198
|
-
|
|
1198
|
+
__wbg_static_accessor_SELF_0b583911f537483a: function() {
|
|
1199
1199
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1200
1200
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1201
1201
|
},
|
|
1202
|
-
|
|
1202
|
+
__wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
|
|
1203
1203
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1204
1204
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1205
1205
|
},
|
|
1206
|
-
|
|
1206
|
+
__wbg_subarray_002b94d5e13d1411: function(arg0, arg1, arg2) {
|
|
1207
1207
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1208
1208
|
return addHeapObject(ret);
|
|
1209
1209
|
},
|
|
1210
|
-
|
|
1210
|
+
__wbg_text_ff3f476b3d6b1246: function() { return handleError(function (arg0) {
|
|
1211
1211
|
const ret = getObject(arg0).text();
|
|
1212
1212
|
return addHeapObject(ret);
|
|
1213
1213
|
}, arguments); },
|
|
1214
|
-
|
|
1214
|
+
__wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
|
|
1215
1215
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1216
1216
|
return addHeapObject(ret);
|
|
1217
1217
|
},
|
|
1218
|
-
|
|
1218
|
+
__wbg_then_e71170d78fcf8954: function(arg0, arg1) {
|
|
1219
1219
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
1220
1220
|
return addHeapObject(ret);
|
|
1221
1221
|
},
|
|
@@ -1228,8 +1228,8 @@ function __wbg_get_imports() {
|
|
|
1228
1228
|
return addHeapObject(ret);
|
|
1229
1229
|
},
|
|
1230
1230
|
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
1231
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1232
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1231
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2083, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1232
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_5677);
|
|
1233
1233
|
return addHeapObject(ret);
|
|
1234
1234
|
},
|
|
1235
1235
|
__wbindgen_generic_0000000000000002: function(arg0) {
|
|
@@ -1266,14 +1266,14 @@ function __wbg_get_imports() {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
1268
|
|
|
1269
|
-
function
|
|
1270
|
-
wasm.
|
|
1269
|
+
function __wasm_bindgen_func_elem_5695(arg0, arg1, arg2, arg3) {
|
|
1270
|
+
wasm.__wasm_bindgen_func_elem_5695(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
1271
1271
|
}
|
|
1272
1272
|
|
|
1273
|
-
function
|
|
1273
|
+
function __wasm_bindgen_func_elem_5677(arg0, arg1, arg2) {
|
|
1274
1274
|
try {
|
|
1275
1275
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
1276
|
-
wasm.
|
|
1276
|
+
wasm.__wasm_bindgen_func_elem_5677(retptr, arg0, arg1, addHeapObject(arg2));
|
|
1277
1277
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
1278
1278
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
1279
1279
|
if (r1) {
|
package/pkg/kjarni_wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -47,8 +47,8 @@ export const wasmsearch_search: (a: number, b: number, c: number, d: number, e:
|
|
|
47
47
|
export const wasmsearch_search_keywords: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
48
48
|
export const wasmsearch_search_semantic: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
49
49
|
export const wasmsearch_update_file: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
50
|
-
export const
|
|
51
|
-
export const
|
|
50
|
+
export const __wasm_bindgen_func_elem_5677: (a: number, b: number, c: number, d: number) => void;
|
|
51
|
+
export const __wasm_bindgen_func_elem_5695: (a: number, b: number, c: number, d: number) => void;
|
|
52
52
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
53
53
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
54
54
|
export const __wbindgen_export3: (a: number) => void;
|