nucleation 0.1.135 → 0.1.136

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.
@@ -259,12 +259,12 @@ function passArray8ToWasm0(arg, malloc) {
259
259
  * @param {SchematicWrapper} schematic
260
260
  * @returns {string}
261
261
  */
262
- export function debug_json_schematic(schematic) {
262
+ export function debug_schematic(schematic) {
263
263
  let deferred1_0;
264
264
  let deferred1_1;
265
265
  try {
266
266
  _assertClass(schematic, SchematicWrapper);
267
- const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
267
+ const ret = wasm.debug_schematic(schematic.__wbg_ptr);
268
268
  deferred1_0 = ret[0];
269
269
  deferred1_1 = ret[1];
270
270
  return getStringFromWasm0(ret[0], ret[1]);
@@ -273,16 +273,23 @@ export function debug_json_schematic(schematic) {
273
273
  }
274
274
  }
275
275
 
276
+ /**
277
+ * Initialize WASM module with panic hook for better error messages
278
+ */
279
+ export function start() {
280
+ wasm.start();
281
+ }
282
+
276
283
  /**
277
284
  * @param {SchematicWrapper} schematic
278
285
  * @returns {string}
279
286
  */
280
- export function debug_schematic(schematic) {
287
+ export function debug_json_schematic(schematic) {
281
288
  let deferred1_0;
282
289
  let deferred1_1;
283
290
  try {
284
291
  _assertClass(schematic, SchematicWrapper);
285
- const ret = wasm.debug_schematic(schematic.__wbg_ptr);
292
+ const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
286
293
  deferred1_0 = ret[0];
287
294
  deferred1_1 = ret[1];
288
295
  return getStringFromWasm0(ret[0], ret[1]);
@@ -291,13 +298,6 @@ export function debug_schematic(schematic) {
291
298
  }
292
299
  }
293
300
 
294
- /**
295
- * Initialize WASM module with panic hook for better error messages
296
- */
297
- export function start() {
298
- wasm.start();
299
- }
300
-
301
301
  const BlockPositionFinalization = (typeof FinalizationRegistry === 'undefined')
302
302
  ? { register: () => {}, unregister: () => {} }
303
303
  : new FinalizationRegistry(ptr => wasm.__wbg_blockposition_free(ptr >>> 0, 1));
package/nucleation.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function debug_json_schematic(schematic: SchematicWrapper): string;
4
3
  export function debug_schematic(schematic: SchematicWrapper): string;
5
4
  /**
6
5
  * Initialize WASM module with panic hook for better error messages
7
6
  */
8
7
  export function start(): void;
8
+ export function debug_json_schematic(schematic: SchematicWrapper): string;
9
9
  export class BlockPosition {
10
10
  free(): void;
11
11
  [Symbol.dispose](): void;
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Nano nano@schem.at"
6
6
  ],
7
7
  "description": "A high-performance Minecraft schematic parser and utility library",
8
- "version": "0.1.135",
8
+ "version": "0.1.136",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",