lenix 1.0.5 → 1.1.1

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.
@@ -17,7 +17,6 @@ echo "===================================="
17
17
  echo ""
18
18
  echo "This script will add the following lines to: $SHELL_CONFIG"
19
19
  echo ""
20
- echo "# Lua local modules setup"
21
20
  echo "eval \$(luarocks path --bin)"
22
21
  echo "export LUA_PATH=\"./lua_modules/share/lua/5.4/?.lua;./lua_modules/share/lua/5.4/?/init.lua;;\""
23
22
  echo "export LUA_CPATH=\"./lua_modules/lib/lua/5.4/?.so;;\""
@@ -1,4 +1,4 @@
1
1
  import { writeFile } from 'fs/promises';
2
2
  type FileContent = Parameters<typeof writeFile>[1];
3
- declare const createFxmanifest: (content?: FileContent) => Promise<void>;
4
- export { createFxmanifest };
3
+ export declare const createFxmanifest: (content?: FileContent) => Promise<void>;
4
+ export {};
@@ -20,5 +20,4 @@ const generateContent = () => {
20
20
  }
21
21
  return defaultContent;
22
22
  };
23
- const createFxmanifest = async (content) => await writeFile('fxmanifest.lua', content || generateContent());
24
- export { createFxmanifest };
23
+ export const createFxmanifest = async (content) => await writeFile('fxmanifest.lua', content || generateContent());
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- declare const _default: {};
2
- export default _default;
1
+ export { wait } from '~/wait';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export default {};
1
+ export { wait } from '~/wait';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Delay execution for a given duration.
3
+ * @param ms - Duration in milliseconds (1000ms = 1 second)
4
+ */
5
+ export declare const wait: (ms: number) => Promise<unknown>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Delay execution for a given duration.
3
+ * @param ms - Duration in milliseconds (1000ms = 1 second)
4
+ */
5
+ export const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "lenix",
3
- "version": "1.0.5",
4
- "description": "",
3
+ "version": "1.1.1",
4
+ "description": "Helpful modules for the software engineers",
5
5
  "author": "Lenix",
6
6
  "license": "GPL-3.0",
7
7
  "keywords": [
8
8
  "lenix",
9
+ "modules",
10
+ "typescript",
9
11
  "lua",
10
12
  "luarocks",
11
- "modules"
13
+ "fivem",
14
+ "fxmanifest"
12
15
  ],
13
16
  "repository": {
14
17
  "type": "git",
@@ -23,13 +26,13 @@
23
26
  "dist",
24
27
  "bin"
25
28
  ],
26
- "scripts": {
27
- "build": "tsc -p src/fxmanifest/tsconfig.json"
28
- },
29
29
  "devDependencies": {
30
30
  "typescript": "^5.3.3"
31
31
  },
32
32
  "dependencies": {
33
33
  "@types/node": "^20.7.1"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -p src/fxmanifest/tsconfig.json"
34
37
  }
35
- }
38
+ }