nucleation 0.1.133 → 0.1.134

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.
@@ -255,16 +255,23 @@ function passArray8ToWasm0(arg, malloc) {
255
255
  WASM_VECTOR_LEN = arg.length;
256
256
  return ptr;
257
257
  }
258
+ /**
259
+ * Initialize WASM module with panic hook for better error messages
260
+ */
261
+ export function start() {
262
+ wasm.start();
263
+ }
264
+
258
265
  /**
259
266
  * @param {SchematicWrapper} schematic
260
267
  * @returns {string}
261
268
  */
262
- export function debug_schematic(schematic) {
269
+ export function debug_json_schematic(schematic) {
263
270
  let deferred1_0;
264
271
  let deferred1_1;
265
272
  try {
266
273
  _assertClass(schematic, SchematicWrapper);
267
- const ret = wasm.debug_schematic(schematic.__wbg_ptr);
274
+ const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
268
275
  deferred1_0 = ret[0];
269
276
  deferred1_1 = ret[1];
270
277
  return getStringFromWasm0(ret[0], ret[1]);
@@ -273,23 +280,16 @@ export function debug_schematic(schematic) {
273
280
  }
274
281
  }
275
282
 
276
- /**
277
- * Initialize WASM module with panic hook for better error messages
278
- */
279
- export function start() {
280
- wasm.start();
281
- }
282
-
283
283
  /**
284
284
  * @param {SchematicWrapper} schematic
285
285
  * @returns {string}
286
286
  */
287
- export function debug_json_schematic(schematic) {
287
+ export function debug_schematic(schematic) {
288
288
  let deferred1_0;
289
289
  let deferred1_1;
290
290
  try {
291
291
  _assertClass(schematic, SchematicWrapper);
292
- const ret = wasm.debug_json_schematic(schematic.__wbg_ptr);
292
+ const ret = wasm.debug_schematic(schematic.__wbg_ptr);
293
293
  deferred1_0 = ret[0];
294
294
  deferred1_1 = ret[1];
295
295
  return getStringFromWasm0(ret[0], ret[1]);
package/nucleation.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function debug_schematic(schematic: SchematicWrapper): string;
4
3
  /**
5
4
  * Initialize WASM module with panic hook for better error messages
6
5
  */
7
6
  export function start(): void;
8
7
  export function debug_json_schematic(schematic: SchematicWrapper): string;
8
+ export function debug_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.133",
8
+ "version": "0.1.134",
9
9
  "license": "AGPL-3.0-only",
10
10
  "repository": {
11
11
  "type": "git",