@devup-ui/wasm 1.0.19 → 1.0.20

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 CHANGED
@@ -17,7 +17,7 @@
17
17
  "react",
18
18
  "wasm"
19
19
  ],
20
- "version": "1.0.19",
20
+ "version": "1.0.20",
21
21
  "publishConfig": {
22
22
  "access": "public"
23
23
  },
package/pkg/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export function setDebug(debug: boolean): void;
4
- export function isDebug(): void;
4
+ export function isDebug(): boolean;
5
5
  export function importSheet(sheet_object: any): void;
6
6
  export function exportSheet(): string;
7
7
  export function importClassMap(sheet_object: any): void;
package/pkg/index.js CHANGED
@@ -177,8 +177,12 @@ module.exports.setDebug = function(debug) {
177
177
  wasm.setDebug(debug);
178
178
  };
179
179
 
180
+ /**
181
+ * @returns {boolean}
182
+ */
180
183
  module.exports.isDebug = function() {
181
- wasm.isDebug();
184
+ const ret = wasm.isDebug();
185
+ return ret !== 0;
182
186
  };
183
187
 
184
188
  function takeFromExternrefTable0(idx) {
package/pkg/index_bg.wasm CHANGED
Binary file
@@ -6,7 +6,7 @@ export const output_code: (a: number) => [number, number];
6
6
  export const output_map: (a: number) => [number, number];
7
7
  export const output_css: (a: number) => [number, number];
8
8
  export const setDebug: (a: number) => void;
9
- export const isDebug: () => void;
9
+ export const isDebug: () => number;
10
10
  export const importSheet: (a: any) => [number, number];
11
11
  export const exportSheet: () => [number, number, number, number];
12
12
  export const importClassMap: (a: any) => [number, number];