@applemusic-like-lyrics/lyric 0.2.4 → 0.3.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.
Binary file
@@ -1,24 +1,25 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function stringifyAss(a: number, b: number): void;
5
- export function decryptQrcHex(a: number, b: number, c: number): void;
6
- export function parseEslrc(a: number, b: number): number;
7
- export function stringifyEslrc(a: number, b: number): void;
8
- export function parseLrc(a: number, b: number): number;
9
- export function stringifyLrc(a: number, b: number): void;
10
- export function parseLys(a: number, b: number): number;
11
- export function stringifyLys(a: number, b: number): void;
12
- export function parseQrc(a: number, b: number): number;
13
- export function stringifyQrc(a: number, b: number): void;
14
- export function parseTTML(a: number, b: number): number;
15
- export function stringifyTTML(a: number, b: number): void;
16
- export function parseYrc(a: number, b: number): number;
17
- export function stringifyYrc(a: number, b: number): void;
18
- export function wasm_start(): void;
19
- export function __wbindgen_malloc(a: number, b: number): number;
20
- export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
21
- export function __wbindgen_add_to_stack_pointer(a: number): number;
22
- export function __wbindgen_free(a: number, b: number, c: number): void;
23
- export function __wbindgen_exn_store(a: number): void;
24
- export function __wbindgen_start(): void;
4
+ export const stringifyAss: (a: any) => [number, number];
5
+ export const decryptQrcHex: (a: number, b: number) => [number, number];
6
+ export const parseEslrc: (a: number, b: number) => any;
7
+ export const stringifyEslrc: (a: any) => [number, number];
8
+ export const parseLrc: (a: number, b: number) => any;
9
+ export const stringifyLrc: (a: any) => [number, number];
10
+ export const parseLys: (a: number, b: number) => any;
11
+ export const stringifyLys: (a: any) => [number, number];
12
+ export const parseQrc: (a: number, b: number) => any;
13
+ export const stringifyQrc: (a: any) => [number, number];
14
+ export const parseTTML: (a: number, b: number) => any;
15
+ export const stringifyTTML: (a: any) => [number, number];
16
+ export const parseYrc: (a: number, b: number) => any;
17
+ export const stringifyYrc: (a: any) => [number, number];
18
+ export const wasm_start: () => void;
19
+ export const __wbindgen_exn_store: (a: number) => void;
20
+ export const __externref_table_alloc: () => number;
21
+ export const __wbindgen_export_2: WebAssembly.Table;
22
+ export const __wbindgen_malloc: (a: number, b: number) => number;
23
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
24
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
25
+ export const __wbindgen_start: () => void;
package/pkg/lyric_bg.js CHANGED
@@ -227,10 +227,10 @@ function getBigInt64Memory0() {
227
227
  * @param {string} src
228
228
  * @returns {any}
229
229
  */
230
- export function parseLrc(src) {
230
+ export function parseLys(src) {
231
231
  const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
232
232
  const len0 = WASM_VECTOR_LEN;
233
- const ret = wasm.parseLrc(ptr0, len0);
233
+ const ret = wasm.parseLys(ptr0, len0);
234
234
  return takeObject(ret);
235
235
  }
236
236
 
@@ -238,12 +238,12 @@ export function parseLrc(src) {
238
238
  * @param {any} lrc
239
239
  * @returns {string}
240
240
  */
241
- export function stringifyLrc(lrc) {
241
+ export function stringifyLys(lrc) {
242
242
  let deferred1_0;
243
243
  let deferred1_1;
244
244
  try {
245
245
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
246
- wasm.stringifyLrc(retptr, addHeapObject(lrc));
246
+ wasm.stringifyLys(retptr, addHeapObject(lrc));
247
247
  var r0 = getInt32Memory0()[retptr / 4 + 0];
248
248
  var r1 = getInt32Memory0()[retptr / 4 + 1];
249
249
  deferred1_0 = r0;
@@ -282,10 +282,10 @@ export function decryptQrcHex(hex_data) {
282
282
  * @param {string} src
283
283
  * @returns {any}
284
284
  */
285
- export function parseLys(src) {
285
+ export function parseLrc(src) {
286
286
  const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
287
287
  const len0 = WASM_VECTOR_LEN;
288
- const ret = wasm.parseLys(ptr0, len0);
288
+ const ret = wasm.parseLrc(ptr0, len0);
289
289
  return takeObject(ret);
290
290
  }
291
291
 
@@ -293,12 +293,12 @@ export function parseLys(src) {
293
293
  * @param {any} lrc
294
294
  * @returns {string}
295
295
  */
296
- export function stringifyLys(lrc) {
296
+ export function stringifyLrc(lrc) {
297
297
  let deferred1_0;
298
298
  let deferred1_1;
299
299
  try {
300
300
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
301
- wasm.stringifyLys(retptr, addHeapObject(lrc));
301
+ wasm.stringifyLrc(retptr, addHeapObject(lrc));
302
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
303
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
304
304
  deferred1_0 = r0;
@@ -310,27 +310,16 @@ export function stringifyLys(lrc) {
310
310
  }
311
311
  }
312
312
 
313
- /**
314
- * @param {string} src
315
- * @returns {any}
316
- */
317
- export function parseEslrc(src) {
318
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
319
- const len0 = WASM_VECTOR_LEN;
320
- const ret = wasm.parseEslrc(ptr0, len0);
321
- return takeObject(ret);
322
- }
323
-
324
313
  /**
325
314
  * @param {any} lrc
326
315
  * @returns {string}
327
316
  */
328
- export function stringifyEslrc(lrc) {
317
+ export function stringifyAss(lrc) {
329
318
  let deferred1_0;
330
319
  let deferred1_1;
331
320
  try {
332
321
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- wasm.stringifyEslrc(retptr, addHeapObject(lrc));
322
+ wasm.stringifyAss(retptr, addHeapObject(lrc));
334
323
  var r0 = getInt32Memory0()[retptr / 4 + 0];
335
324
  var r1 = getInt32Memory0()[retptr / 4 + 1];
336
325
  deferred1_0 = r0;
@@ -374,6 +363,18 @@ export function stringifyYrc(lrc) {
374
363
  }
375
364
  }
376
365
 
366
+ /**
367
+ * When the `console_error_panic_hook` feature is enabled, we can call the
368
+ * `set_panic_hook` function at least once during initialization, and then
369
+ * we will get better error messages if our code ever panics.
370
+ *
371
+ * For more details see
372
+ * https://github.com/rustwasm/console_error_panic_hook#readme
373
+ */
374
+ export function set_panic_hook() {
375
+ wasm.set_panic_hook();
376
+ }
377
+
377
378
  /**
378
379
  * @param {string} src
379
380
  * @returns {any}
@@ -406,16 +407,27 @@ export function stringifyQrc(lrc) {
406
407
  }
407
408
  }
408
409
 
410
+ /**
411
+ * @param {string} src
412
+ * @returns {any}
413
+ */
414
+ export function parseEslrc(src) {
415
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
416
+ const len0 = WASM_VECTOR_LEN;
417
+ const ret = wasm.parseEslrc(ptr0, len0);
418
+ return takeObject(ret);
419
+ }
420
+
409
421
  /**
410
422
  * @param {any} lrc
411
423
  * @returns {string}
412
424
  */
413
- export function stringifyAss(lrc) {
425
+ export function stringifyEslrc(lrc) {
414
426
  let deferred1_0;
415
427
  let deferred1_1;
416
428
  try {
417
429
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
418
- wasm.stringifyAss(retptr, addHeapObject(lrc));
430
+ wasm.stringifyEslrc(retptr, addHeapObject(lrc));
419
431
  var r0 = getInt32Memory0()[retptr / 4 + 0];
420
432
  var r1 = getInt32Memory0()[retptr / 4 + 1];
421
433
  deferred1_0 = r0;
@@ -427,18 +439,6 @@ export function stringifyAss(lrc) {
427
439
  }
428
440
  }
429
441
 
430
- /**
431
- * When the `console_error_panic_hook` feature is enabled, we can call the
432
- * `set_panic_hook` function at least once during initialization, and then
433
- * we will get better error messages if our code ever panics.
434
- *
435
- * For more details see
436
- * https://github.com/rustwasm/console_error_panic_hook#readme
437
- */
438
- export function set_panic_hook() {
439
- wasm.set_panic_hook();
440
- }
441
-
442
442
  function logError(f, args) {
443
443
  try {
444
444
  return f.apply(this, args);
@@ -549,6 +549,15 @@ export function __wbg_stack_658279fe44541cf6() { return logError(function (arg0,
549
549
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
550
550
  }, arguments) };
551
551
 
552
+ export function __wbg_getwithrefkey_4a92a5eca60879b9() { return logError(function (arg0, arg1) {
553
+ const ret = getObject(arg0)[getObject(arg1)];
554
+ return addHeapObject(ret);
555
+ }, arguments) };
556
+
557
+ export function __wbg_set_9182712abebf82ef() { return logError(function (arg0, arg1, arg2) {
558
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
559
+ }, arguments) };
560
+
552
561
  export function __wbindgen_as_number(arg0) {
553
562
  const ret = +getObject(arg0);
554
563
  return ret;
@@ -585,15 +594,6 @@ export function __wbindgen_object_clone_ref(arg0) {
585
594
  return addHeapObject(ret);
586
595
  };
587
596
 
588
- export function __wbg_getwithrefkey_4a92a5eca60879b9() { return logError(function (arg0, arg1) {
589
- const ret = getObject(arg0)[getObject(arg1)];
590
- return addHeapObject(ret);
591
- }, arguments) };
592
-
593
- export function __wbg_set_9182712abebf82ef() { return logError(function (arg0, arg1, arg2) {
594
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
595
- }, arguments) };
596
-
597
597
  export function __wbg_new_898a68150f225f2e() { return logError(function () {
598
598
  const ret = new Array();
599
599
  return addHeapObject(ret);
@@ -707,13 +707,13 @@ export function __wbindgen_is_function(arg0) {
707
707
  return ret;
708
708
  };
709
709
 
710
- export function __wbg_get_97b561fb56f034b5() { return handleError(function (arg0, arg1) {
711
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
710
+ export function __wbg_buffer_085ec1f694018c4f() { return logError(function (arg0) {
711
+ const ret = getObject(arg0).buffer;
712
712
  return addHeapObject(ret);
713
713
  }, arguments) };
714
714
 
715
- export function __wbg_buffer_085ec1f694018c4f() { return logError(function (arg0) {
716
- const ret = getObject(arg0).buffer;
715
+ export function __wbg_get_97b561fb56f034b5() { return handleError(function (arg0, arg1) {
716
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
717
717
  return addHeapObject(ret);
718
718
  }, arguments) };
719
719
 
package/pkg/lyric_bg.wasm CHANGED
Binary file
@@ -1,19 +1,19 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function parseLrc(a: number, b: number): number;
5
- export function stringifyLrc(a: number, b: number): void;
6
- export function decryptQrcHex(a: number, b: number, c: number): void;
7
4
  export function parseLys(a: number, b: number): number;
8
5
  export function stringifyLys(a: number, b: number): void;
9
- export function parseEslrc(a: number, b: number): number;
10
- export function stringifyEslrc(a: number, b: number): void;
6
+ export function decryptQrcHex(a: number, b: number, c: number): void;
7
+ export function parseLrc(a: number, b: number): number;
8
+ export function stringifyLrc(a: number, b: number): void;
9
+ export function stringifyAss(a: number, b: number): void;
11
10
  export function parseYrc(a: number, b: number): number;
12
11
  export function stringifyYrc(a: number, b: number): void;
12
+ export function set_panic_hook(): void;
13
13
  export function parseQrc(a: number, b: number): number;
14
14
  export function stringifyQrc(a: number, b: number): void;
15
- export function stringifyAss(a: number, b: number): void;
16
- export function set_panic_hook(): void;
15
+ export function parseEslrc(a: number, b: number): number;
16
+ export function stringifyEslrc(a: number, b: number): void;
17
17
  export function __wbindgen_malloc(a: number, b: number): number;
18
18
  export function __wbindgen_realloc(a: number, b: number, c: number, d: number): number;
19
19
  export function __wbindgen_add_to_stack_pointer(a: number): number;