nazuchem 0.0.0-stage → 0.2.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/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +21 -0
- package/NOTICE +58 -0
- package/README.md +104 -2
- package/THIRD-PARTY-NOTICES.txt +9584 -0
- package/dist/bundler/index.d.ts +109 -0
- package/dist/bundler/index.js +68 -0
- package/dist/bundler/nazuchem.js +8 -0
- package/dist/bundler/package.json +1 -0
- package/dist/nazuchem-ir-1.schema.json +494 -0
- package/dist/nazuchem_bg.js +256 -0
- package/dist/nazuchem_bg.wasm +0 -0
- package/dist/node/index.cjs +70 -0
- package/dist/node/index.d.cts +109 -0
- package/dist/node/nazuchem.js +263 -0
- package/dist/node/package.json +1 -0
- package/dist/web/index.cjs +926 -0
- package/dist/web/index.d.cts +119 -0
- package/dist/web/index.d.ts +119 -0
- package/dist/web/index.js +70 -0
- package/dist/web/nazuchem.js +358 -0
- package/dist/web/package.json +1 -0
- package/package.json +73 -4
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accept the same IR object or JSON string as the facade's JSON reader.
|
|
3
|
+
* @param {any} input
|
|
4
|
+
* @returns {any}
|
|
5
|
+
*/
|
|
6
|
+
export function moleculeToName(input) {
|
|
7
|
+
const ret = wasm.moleculeToName(input);
|
|
8
|
+
if (ret[2]) {
|
|
9
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
10
|
+
}
|
|
11
|
+
return takeFromExternrefTable0(ret[0]);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Return a validated IR v1 plain object with the Rust JSON field names.
|
|
16
|
+
* @param {string} name
|
|
17
|
+
* @returns {any}
|
|
18
|
+
*/
|
|
19
|
+
export function nameToMolecule(name) {
|
|
20
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
21
|
+
const len0 = WASM_VECTOR_LEN;
|
|
22
|
+
const ret = wasm.nameToMolecule(ptr0, len0);
|
|
23
|
+
if (ret[2]) {
|
|
24
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
25
|
+
}
|
|
26
|
+
return takeFromExternrefTable0(ret[0]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Interpret a name using the facade's strict name-to-structure policy.
|
|
31
|
+
* @param {string} name
|
|
32
|
+
* @returns {string}
|
|
33
|
+
*/
|
|
34
|
+
export function nameToSmiles(name) {
|
|
35
|
+
let deferred3_0;
|
|
36
|
+
let deferred3_1;
|
|
37
|
+
try {
|
|
38
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
39
|
+
const len0 = WASM_VECTOR_LEN;
|
|
40
|
+
const ret = wasm.nameToSmiles(ptr0, len0);
|
|
41
|
+
var ptr2 = ret[0];
|
|
42
|
+
var len2 = ret[1];
|
|
43
|
+
if (ret[3]) {
|
|
44
|
+
ptr2 = 0; len2 = 0;
|
|
45
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
46
|
+
}
|
|
47
|
+
deferred3_0 = ptr2;
|
|
48
|
+
deferred3_1 = len2;
|
|
49
|
+
return getStringFromWasm0(ptr2, len2);
|
|
50
|
+
} finally {
|
|
51
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Return the complete Rust Name, including nested preference assessment.
|
|
57
|
+
* @param {string} smiles
|
|
58
|
+
* @returns {any}
|
|
59
|
+
*/
|
|
60
|
+
export function smilesToName(smiles) {
|
|
61
|
+
const ptr0 = passStringToWasm0(smiles, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
62
|
+
const len0 = WASM_VECTOR_LEN;
|
|
63
|
+
const ret = wasm.smilesToName(ptr0, len0);
|
|
64
|
+
if (ret[2]) {
|
|
65
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
66
|
+
}
|
|
67
|
+
return takeFromExternrefTable0(ret[0]);
|
|
68
|
+
}
|
|
69
|
+
function __wbg_get_imports() {
|
|
70
|
+
const import0 = {
|
|
71
|
+
__proto__: null,
|
|
72
|
+
__wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
|
|
73
|
+
const ret = arg0 === undefined;
|
|
74
|
+
return ret;
|
|
75
|
+
},
|
|
76
|
+
__wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
|
|
77
|
+
const obj = arg1;
|
|
78
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
79
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
80
|
+
var len1 = WASM_VECTOR_LEN;
|
|
81
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
82
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
83
|
+
},
|
|
84
|
+
__wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
|
|
85
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
86
|
+
},
|
|
87
|
+
__wbg_new_a32a1ab6c6655abe: function(arg0, arg1) {
|
|
88
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
89
|
+
return ret;
|
|
90
|
+
},
|
|
91
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
92
|
+
const ret = arg0.now();
|
|
93
|
+
return ret;
|
|
94
|
+
},
|
|
95
|
+
__wbg_parse_6937a9050adfb0e1: function() { return handleError(function (arg0, arg1) {
|
|
96
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
97
|
+
return ret;
|
|
98
|
+
}, arguments); },
|
|
99
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
100
|
+
const ret = arg0.performance;
|
|
101
|
+
return ret;
|
|
102
|
+
},
|
|
103
|
+
__wbg_set_a377297433dfea63: function() { return handleError(function (arg0, arg1, arg2) {
|
|
104
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
105
|
+
return ret;
|
|
106
|
+
}, arguments); },
|
|
107
|
+
__wbg_set_name_6e2a5da46a9ae1e7: function(arg0, arg1, arg2) {
|
|
108
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
109
|
+
},
|
|
110
|
+
__wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
|
|
111
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
112
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
113
|
+
},
|
|
114
|
+
__wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db: function() {
|
|
115
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
116
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
117
|
+
},
|
|
118
|
+
__wbg_static_accessor_SELF_d8b50611246a6d92: function() {
|
|
119
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
120
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
121
|
+
},
|
|
122
|
+
__wbg_static_accessor_WINDOW_fd0bc376bf0f8b42: function() {
|
|
123
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
124
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
125
|
+
},
|
|
126
|
+
__wbg_stringify_54b3d9b61602aee6: function() { return handleError(function (arg0) {
|
|
127
|
+
const ret = JSON.stringify(arg0);
|
|
128
|
+
return ret;
|
|
129
|
+
}, arguments); },
|
|
130
|
+
__wbindgen_generic_0000000000000001: function(arg0, arg1) {
|
|
131
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
132
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
133
|
+
return ret;
|
|
134
|
+
},
|
|
135
|
+
__wbindgen_init_externref_table: function() {
|
|
136
|
+
const table = wasm.__wbindgen_externrefs;
|
|
137
|
+
const offset = table.grow(4);
|
|
138
|
+
table.set(0, undefined);
|
|
139
|
+
table.set(offset + 0, undefined);
|
|
140
|
+
table.set(offset + 1, null);
|
|
141
|
+
table.set(offset + 2, true);
|
|
142
|
+
table.set(offset + 3, false);
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
return {
|
|
146
|
+
__proto__: null,
|
|
147
|
+
"./nazuchem_bg.js": import0,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function addToExternrefTable0(obj) {
|
|
152
|
+
const idx = wasm.__externref_table_alloc();
|
|
153
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
154
|
+
return idx;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
let cachedDataViewMemory0 = null;
|
|
158
|
+
function getDataViewMemory0() {
|
|
159
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
160
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
161
|
+
}
|
|
162
|
+
return cachedDataViewMemory0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function getStringFromWasm0(ptr, len) {
|
|
166
|
+
return decodeText(ptr >>> 0, len);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
let cachedUint8ArrayMemory0 = null;
|
|
170
|
+
function getUint8ArrayMemory0() {
|
|
171
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
172
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
173
|
+
}
|
|
174
|
+
return cachedUint8ArrayMemory0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function handleError(f, args) {
|
|
178
|
+
try {
|
|
179
|
+
return f.apply(this, args);
|
|
180
|
+
} catch (e) {
|
|
181
|
+
const idx = addToExternrefTable0(e);
|
|
182
|
+
wasm.__wbindgen_exn_store(idx);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function isLikeNone(x) {
|
|
187
|
+
return x === undefined || x === null;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
191
|
+
if (realloc === undefined) {
|
|
192
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
193
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
194
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
195
|
+
WASM_VECTOR_LEN = buf.length;
|
|
196
|
+
return ptr;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
let len = arg.length;
|
|
200
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
201
|
+
|
|
202
|
+
const mem = getUint8ArrayMemory0();
|
|
203
|
+
|
|
204
|
+
let offset = 0;
|
|
205
|
+
|
|
206
|
+
for (; offset < len; offset++) {
|
|
207
|
+
const code = arg.charCodeAt(offset);
|
|
208
|
+
if (code > 0x7F) break;
|
|
209
|
+
mem[ptr + offset] = code;
|
|
210
|
+
}
|
|
211
|
+
if (offset !== len) {
|
|
212
|
+
if (offset !== 0) {
|
|
213
|
+
arg = arg.slice(offset);
|
|
214
|
+
}
|
|
215
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
216
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
217
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
218
|
+
|
|
219
|
+
offset += ret.written;
|
|
220
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
WASM_VECTOR_LEN = offset;
|
|
224
|
+
return ptr;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function takeFromExternrefTable0(idx) {
|
|
228
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
229
|
+
wasm.__externref_table_dealloc(idx);
|
|
230
|
+
return value;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
234
|
+
cachedTextDecoder.decode();
|
|
235
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
236
|
+
let numBytesDecoded = 0;
|
|
237
|
+
function decodeText(ptr, len) {
|
|
238
|
+
numBytesDecoded += len;
|
|
239
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
240
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
241
|
+
cachedTextDecoder.decode();
|
|
242
|
+
numBytesDecoded = len;
|
|
243
|
+
}
|
|
244
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const cachedTextEncoder = new TextEncoder();
|
|
248
|
+
|
|
249
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
250
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
251
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
252
|
+
view.set(buf);
|
|
253
|
+
return {
|
|
254
|
+
read: arg.length,
|
|
255
|
+
written: buf.length
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
let WASM_VECTOR_LEN = 0;
|
|
261
|
+
|
|
262
|
+
let wasmModule, wasmInstance, wasm;
|
|
263
|
+
function __wbg_finalize_init(instance, module) {
|
|
264
|
+
wasmInstance = instance;
|
|
265
|
+
wasm = instance.exports;
|
|
266
|
+
wasmModule = module;
|
|
267
|
+
cachedDataViewMemory0 = null;
|
|
268
|
+
cachedUint8ArrayMemory0 = null;
|
|
269
|
+
wasm.__wbindgen_start();
|
|
270
|
+
return wasm;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
async function __wbg_load(module, imports) {
|
|
274
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
275
|
+
if (!module.ok) {
|
|
276
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
280
|
+
try {
|
|
281
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
282
|
+
} catch (e) {
|
|
283
|
+
const validResponse = expectedResponseType(module.type);
|
|
284
|
+
|
|
285
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
286
|
+
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);
|
|
287
|
+
|
|
288
|
+
} else { throw e; }
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const bytes = await module.arrayBuffer();
|
|
293
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
294
|
+
} else {
|
|
295
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
296
|
+
|
|
297
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
298
|
+
return { instance, module };
|
|
299
|
+
} else {
|
|
300
|
+
return instance;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function expectedResponseType(type) {
|
|
305
|
+
switch (type) {
|
|
306
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
307
|
+
}
|
|
308
|
+
return false;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function initSync(module) {
|
|
313
|
+
if (wasm !== undefined) return wasm;
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
if (module !== undefined) {
|
|
317
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
318
|
+
({module} = module)
|
|
319
|
+
} else {
|
|
320
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const imports = __wbg_get_imports();
|
|
325
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
326
|
+
module = new WebAssembly.Module(module);
|
|
327
|
+
}
|
|
328
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
329
|
+
return __wbg_finalize_init(instance, module);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
async function __wbg_init(module_or_path) {
|
|
333
|
+
if (wasm !== undefined) return wasm;
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
if (module_or_path !== undefined) {
|
|
337
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
338
|
+
({module_or_path} = module_or_path)
|
|
339
|
+
} else {
|
|
340
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (module_or_path === undefined) {
|
|
345
|
+
module_or_path = new URL('../nazuchem_bg.wasm', import.meta.url);
|
|
346
|
+
}
|
|
347
|
+
const imports = __wbg_get_imports();
|
|
348
|
+
|
|
349
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
350
|
+
module_or_path = fetch(module_or_path);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
354
|
+
|
|
355
|
+
return __wbg_finalize_init(instance, module);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
export { initSync, __wbg_init as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nazuchem",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "npm/WebAssembly bindings for nazuchem chemical naming",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Ameyanagi/nazuchem.git",
|
|
8
|
+
"directory": "bindings/wasm"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/Ameyanagi/nazuchem",
|
|
11
|
+
"license": "(MIT OR Apache-2.0) AND MIT AND BSD-3-Clause AND BSD-2-Clause AND Python-2.0",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/node/index.cjs",
|
|
14
|
+
"module": "./dist/bundler/index.js",
|
|
15
|
+
"types": "./dist/node/index.d.cts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"node": {
|
|
19
|
+
"types": "./dist/node/index.d.cts",
|
|
20
|
+
"default": "./dist/node/index.cjs"
|
|
21
|
+
},
|
|
22
|
+
"types": "./dist/bundler/index.d.ts",
|
|
23
|
+
"default": "./dist/bundler/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./web": {
|
|
26
|
+
"node": {
|
|
27
|
+
"import": {
|
|
28
|
+
"types": "./dist/web/index.d.ts",
|
|
29
|
+
"default": "./dist/web/index.js"
|
|
30
|
+
},
|
|
31
|
+
"require": {
|
|
32
|
+
"types": "./dist/web/index.d.cts",
|
|
33
|
+
"default": "./dist/web/index.cjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"types": "./dist/web/index.d.ts",
|
|
37
|
+
"default": "./dist/web/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./node": {
|
|
40
|
+
"types": "./dist/node/index.d.cts",
|
|
41
|
+
"default": "./dist/node/index.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./schema.json": "./dist/nazuchem-ir-1.schema.json"
|
|
44
|
+
},
|
|
45
|
+
"files": ["dist/", "README.md", "LICENSE-MIT", "LICENSE-APACHE", "NOTICE", "THIRD-PARTY-NOTICES.txt"],
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "bun scripts/build.ts",
|
|
48
|
+
"test": "bun scripts/check-types.ts && bun test tests",
|
|
49
|
+
"test:types": "bun scripts/check-types.ts",
|
|
50
|
+
"check:package": "bun scripts/check-package.ts"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/bun": "^1.3.10",
|
|
54
|
+
"ajv": "^8.18.0",
|
|
55
|
+
"typescript": "^5.9.3"
|
|
56
|
+
},
|
|
57
|
+
"x-nazuchem-provenance": {
|
|
58
|
+
"SPDX-License-Identifier": "MIT OR Apache-2.0",
|
|
59
|
+
"Origin": "original",
|
|
60
|
+
"Source": "Nazuchem | bindings/wasm/package.json | Phase B step 9"
|
|
61
|
+
},
|
|
62
|
+
"typesVersions": {
|
|
63
|
+
"*": {
|
|
64
|
+
"node": [
|
|
65
|
+
"dist/node/index.d.cts"
|
|
66
|
+
],
|
|
67
|
+
"web": [
|
|
68
|
+
"dist/web/index.d.ts"
|
|
69
|
+
],
|
|
70
|
+
"schema.json": [
|
|
71
|
+
"dist/nazuchem-ir-1.schema.json"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|