lenix 1.4.1 → 1.4.3
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/Readme.md +19 -1
- package/modules/src/edge/index.ts +22 -0
- package/modules/src/index.ts +4 -4
- package/modules/src/lint/preset.json +3 -11
- package/package.json +8 -4
- package/modules/src/lint/index.ts +0 -6
package/Readme.md
CHANGED
|
@@ -17,4 +17,22 @@ The All-in-one Repository
|
|
|
17
17
|
### OOP
|
|
18
18
|
- [ ] Implement the complete annotation
|
|
19
19
|
- [ ] Provide Documentation
|
|
20
|
-
- [ ] Clearify the installation steps
|
|
20
|
+
- [ ] Clearify the installation steps
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
### Lint
|
|
24
|
+
```ts
|
|
25
|
+
import lint from 'lenix/lint' with { type: "json" }
|
|
26
|
+
languageOptions: {
|
|
27
|
+
[....],
|
|
28
|
+
parserOptions: {
|
|
29
|
+
projectService: true,
|
|
30
|
+
tsconfigRootDir: import.meta.dirname,
|
|
31
|
+
},
|
|
32
|
+
[....],
|
|
33
|
+
}
|
|
34
|
+
rules: {
|
|
35
|
+
[....],
|
|
36
|
+
...lint.strict
|
|
37
|
+
[....],
|
|
38
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type Events = "users-management"
|
|
2
|
+
export interface CreateUser<Role> {
|
|
3
|
+
identifier: string
|
|
4
|
+
role: Role
|
|
5
|
+
password: string
|
|
6
|
+
}
|
|
7
|
+
export interface UserAccount<Role, Label> {
|
|
8
|
+
id: string
|
|
9
|
+
identifier: string
|
|
10
|
+
role: Role
|
|
11
|
+
roleLabel: Label
|
|
12
|
+
}
|
|
13
|
+
export interface DeleteUser {
|
|
14
|
+
identifier: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* DON NOT USE
|
|
20
|
+
* @description
|
|
21
|
+
* A proxy between client and server contexts that can provide a one source of truth instead of duplicating codes, lack of clearancy, race conditions, ...
|
|
22
|
+
*/
|
package/modules/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { wait } from '
|
|
2
|
-
export { caughtFetch } from '
|
|
3
|
-
export { entries } from '
|
|
4
|
-
export
|
|
1
|
+
export { wait } from './wait'
|
|
2
|
+
export { caughtFetch } from './fetch'
|
|
3
|
+
export { entries } from './entries'
|
|
4
|
+
export * as edge from './edge'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"rules": {
|
|
2
|
+
"strict": {
|
|
4
3
|
"accessor-pairs": "error",
|
|
5
4
|
"array-callback-return": "warn",
|
|
6
5
|
"arrow-body-style": "error",
|
|
@@ -338,7 +337,7 @@
|
|
|
338
337
|
"@typescript-eslint/prefer-promise-reject-errors": "error",
|
|
339
338
|
"@typescript-eslint/prefer-readonly": "error",
|
|
340
339
|
"@typescript-eslint/prefer-readonly-parameter-types": [
|
|
341
|
-
"
|
|
340
|
+
"warn",
|
|
342
341
|
{
|
|
343
342
|
"ignoreInferredTypes": true
|
|
344
343
|
}
|
|
@@ -359,12 +358,5 @@
|
|
|
359
358
|
"@typescript-eslint/switch-exhaustiveness-check": "error",
|
|
360
359
|
"@typescript-eslint/unbound-method": "warn",
|
|
361
360
|
"@typescript-eslint/use-unknown-in-catch-callback-variable": "error"
|
|
362
|
-
}
|
|
363
|
-
"completedSections": [
|
|
364
|
-
"Core — Other",
|
|
365
|
-
"TypeScript",
|
|
366
|
-
"TypeScript — type-aware"
|
|
367
|
-
],
|
|
368
|
-
"pausedSection": null,
|
|
369
|
-
"pausedAt": 0
|
|
361
|
+
}
|
|
370
362
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lenix",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"description": "The All-in-one Package",
|
|
5
5
|
"author": "Lenix",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -26,15 +26,19 @@
|
|
|
26
26
|
},
|
|
27
27
|
"main": "./modules/src/index.ts",
|
|
28
28
|
"types": "./modules/src/index.ts",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
29
|
+
"exports": {
|
|
30
|
+
".": "./modules/src/index.ts",
|
|
31
|
+
"./lint": "./modules/src/lint/preset.json"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"modules/src",
|
|
35
35
|
"oop",
|
|
36
36
|
"lint/dist"
|
|
37
37
|
],
|
|
38
|
+
"bin": {
|
|
39
|
+
"mac-lua-modules": "oop/mac-lua-modules.sh",
|
|
40
|
+
"lenix": "./lint/dist/lint.mjs"
|
|
41
|
+
},
|
|
38
42
|
"dependencies": {
|
|
39
43
|
"@eslint/js": "^10.0.1",
|
|
40
44
|
"eslint": "^10.0.3",
|