@intechstudio/grid-protocol 1.20251126.1325 → 1.20260102.1801

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.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Initialize the WASM Lua formatter module.
3
+ * MUST be called before using minifyLua() or beautifyLua()
4
+ * @returns Promise that resolves when initialization is complete
5
+ */
6
+ export declare function initLuaFormatter(): Promise<void>;
7
+ /**
8
+ * Minifies Lua code by removing unnecessary whitespace while preserving comments
9
+ * @param code - The Lua code to minify
10
+ * @returns Minified Lua code
11
+ * @throws Error if formatter not initialized
12
+ */
13
+ export declare function minifyLua(code: string): string;
14
+ /**
15
+ * Beautifies Lua code with proper formatting
16
+ * @param code - The Lua code to beautify
17
+ * @returns Beautified Lua code
18
+ * @throws Error if formatter not initialized
19
+ */
20
+ export declare function beautifyLua(code: string): string;
@@ -5,8 +5,8 @@ export declare class GridScript {
5
5
  static shortify(script: string): string;
6
6
  static typeCheck(type: string, value: string): boolean;
7
7
  static splitArrayToString(splitArray: any[], direction: string): string;
8
- static minifyScript(value: string): any;
9
- static compressScript(script: string): any;
8
+ static minifyScript(value: string): string;
9
+ static compressScript(script: string): string;
10
10
  static expandScript(script: string): string;
11
11
  static checkSyntax(script: string): boolean;
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intechstudio/grid-protocol",
3
- "version": "1.20251126.1325",
3
+ "version": "1.20260102.1801",
4
4
  "description": "Grid protocol descriptors automatically generated from the grid-fw repository!",
5
5
  "scripts": {
6
6
  "test": "npx patch-package && vitest run",
@@ -34,6 +34,7 @@
34
34
  "@rollup/plugin-json": "^6.1.0",
35
35
  "@rollup/plugin-node-resolve": "^15.2.3",
36
36
  "@types/lodash": "^4.17.4",
37
+ "@wasm-fmt/lua_fmt": "^0.2.0",
37
38
  "patch-package": "^8.0.0",
38
39
  "rollup": "^4.18.0",
39
40
  "rollup-plugin-typescript2": "^0.36.0",
@@ -41,8 +42,6 @@
41
42
  "tslib": "^2.6.2",
42
43
  "typescript": "^5.4.5",
43
44
  "vitest": "^1.6.0",
44
- "@intechstudio/grid-luafmt": "^1.20241030.1555",
45
- "lodash": "^4.17.21",
46
- "luamin": "^1.0.4"
45
+ "lodash": "^4.17.21"
47
46
  }
48
47
  }