ogi-addon 0.1.1 → 0.1.4
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/build/EventResponse.cjs +46 -0
- package/build/EventResponse.cjs.map +1 -0
- package/build/EventResponse.d.cts +13 -0
- package/build/EventResponse.d.ts +3 -1
- package/build/EventResponse.js +24 -22
- package/build/EventResponse.js.map +1 -1
- package/build/SearchEngine.cjs +19 -0
- package/build/SearchEngine.cjs.map +1 -0
- package/build/SearchEngine.d.cts +11 -0
- package/build/SearchEngine.d.ts +3 -1
- package/build/SearchEngine.js +0 -1
- package/build/SearchEngine.js.map +1 -1
- package/build/config/Configuration.cjs +282 -0
- package/build/config/Configuration.cjs.map +1 -0
- package/build/config/Configuration.d.cts +20 -0
- package/build/config/Configuration.d.ts +6 -3
- package/build/config/Configuration.js +230 -60
- package/build/config/Configuration.js.map +1 -1
- package/build/config/ConfigurationBuilder.cjs +208 -0
- package/build/config/ConfigurationBuilder.cjs.map +1 -0
- package/build/config/ConfigurationBuilder.d.cts +57 -0
- package/build/config/ConfigurationBuilder.d.ts +12 -10
- package/build/config/ConfigurationBuilder.js +159 -163
- package/build/config/ConfigurationBuilder.js.map +1 -1
- package/build/main.cjs +434 -0
- package/build/main.cjs.map +1 -0
- package/build/main.d.cts +76 -0
- package/build/main.d.ts +17 -14
- package/build/main.js +391 -150
- package/build/main.js.map +1 -1
- package/package.json +49 -23
- package/src/config/Configuration.ts +4 -2
- package/tsconfig.json +2 -3
- package/tsup.config.js +11 -0
package/package.json
CHANGED
|
@@ -1,24 +1,50 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ogi-addon",
|
|
3
|
-
"module": "./build/main.js",
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./build/main.
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "ogi-addon",
|
|
3
|
+
"module": "./build/main.js",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./build/main.cjs",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": {
|
|
9
|
+
"default": "./build/main.js",
|
|
10
|
+
"types": "./build/main.d.ts"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"default": "./build/main.cjs",
|
|
14
|
+
"types": "./build/main.d.cts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"./config": {
|
|
18
|
+
"import": {
|
|
19
|
+
"default": "./build/config/Configuration.js",
|
|
20
|
+
"types": "./build/config/Configuration.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"require": {
|
|
23
|
+
"default": "./build/config/Configuration.cjs",
|
|
24
|
+
"types": "./build/config/Configuration.d.cts"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"typings": "./build/main.d.ts",
|
|
29
|
+
"author": {
|
|
30
|
+
"name": "Nat3z",
|
|
31
|
+
"email": "me@nat3z.com",
|
|
32
|
+
"url": "https://nat3z.com/"
|
|
33
|
+
},
|
|
34
|
+
"version": "0.1.4",
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"ws": "^8.4.0",
|
|
37
|
+
"zod": "^3.23.8"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"auto-build": "tsc -w",
|
|
41
|
+
"build": "tsup --config tsup.config.js",
|
|
42
|
+
"release": "bun run build && npm publish"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^20.14.12",
|
|
46
|
+
"@types/ws": "^8.4.0",
|
|
47
|
+
"tsup": "^8.2.3",
|
|
48
|
+
"typescript": "^5.0.0"
|
|
49
|
+
}
|
|
24
50
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigurationFile } from "./ConfigurationBuilder";
|
|
1
|
+
import { ConfigurationFile, ConfigurationBuilder, BooleanOption, ConfigurationOption, ConfigurationOptionType, NumberOption, StringOption, isBooleanOption, isNumberOption, isStringOption } from "./ConfigurationBuilder";
|
|
2
2
|
|
|
3
3
|
interface DefiniteConfig {
|
|
4
4
|
[key: string]: string | number | boolean;
|
|
@@ -78,4 +78,6 @@ export class Configuration {
|
|
|
78
78
|
}
|
|
79
79
|
return this.definiteConfig[optionName];
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export { ConfigurationFile, ConfigurationBuilder, BooleanOption, ConfigurationOption, ConfigurationOptionType, NumberOption, StringOption, isBooleanOption, isNumberOption, isStringOption };
|
package/tsconfig.json
CHANGED
|
@@ -5,9 +5,8 @@
|
|
|
5
5
|
"ESNext",
|
|
6
6
|
"DOM"
|
|
7
7
|
], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
|
|
8
|
-
"outDir": "build", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory.,
|
|
9
8
|
"removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
|
|
10
|
-
"target": "
|
|
9
|
+
"target": "ESNext", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)
|
|
11
10
|
"declaration": true,
|
|
12
11
|
|
|
13
12
|
// Module resolution
|
|
@@ -29,7 +28,7 @@
|
|
|
29
28
|
// Linter Checks
|
|
30
29
|
"noImplicitReturns": true,
|
|
31
30
|
"noUnusedLocals": true, // Report errors on unused local variables.
|
|
32
|
-
"noUnusedParameters": true // Report errors on unused parameters in functions
|
|
31
|
+
"noUnusedParameters": true, // Report errors on unused parameters in functions
|
|
33
32
|
},
|
|
34
33
|
"include": ["./**/*.ts"],
|
|
35
34
|
"exclude": [
|