@open-discord-bots/framework 0.2.13 → 0.2.14
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/dist/api/main.js +1 -1
- package/dist/api/modules/plugin.js +1 -1
- package/dist/startup/compilation.js +1 -1
- package/dist/utilities/index.js +1 -1
- package/package.json +1 -1
- package/src/api/main.ts +1 -1
- package/src/api/modules/component.txt +1 -1
- package/src/api/modules/plugin.ts +1 -1
- package/src/startup/compilation.ts +1 -1
- package/src/utilities/index.ts +1 -1
package/dist/api/main.js
CHANGED
|
@@ -42,7 +42,7 @@ export class ODMain {
|
|
|
42
42
|
constructor(managers, project) {
|
|
43
43
|
this.project = project;
|
|
44
44
|
this.versions = managers.versions;
|
|
45
|
-
this.versions.add(ODVersion.fromString("opendiscord:api", "v0.2.
|
|
45
|
+
this.versions.add(ODVersion.fromString("opendiscord:api", "v0.2.14"));
|
|
46
46
|
this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
|
|
47
47
|
this.debugfile = managers.debugfile;
|
|
48
48
|
this.console = managers.console;
|
|
@@ -126,7 +126,7 @@ export function frameworkStartup(startupFlags, project, startCallback) {
|
|
|
126
126
|
const missingDeps = [];
|
|
127
127
|
for (const dep of requiredDependencies) {
|
|
128
128
|
try {
|
|
129
|
-
|
|
129
|
+
import.meta.resolve(dep);
|
|
130
130
|
}
|
|
131
131
|
catch (err) {
|
|
132
132
|
missingDeps.push(dep);
|
package/dist/utilities/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-discord-bots/framework",
|
|
3
3
|
"author": "DJj123dj",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.14",
|
|
5
5
|
"description": "The core framework of the popular open-source discord bots: Open Ticket & Open Moderation.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
package/src/api/main.ts
CHANGED
|
@@ -142,7 +142,7 @@ export class ODMain implements ODMainManagers {
|
|
|
142
142
|
constructor(managers:ODMainManagers,project:ODProjectType){
|
|
143
143
|
this.project = project
|
|
144
144
|
this.versions = managers.versions
|
|
145
|
-
this.versions.add(ODVersion.fromString("opendiscord:api","v0.2.
|
|
145
|
+
this.versions.add(ODVersion.fromString("opendiscord:api","v0.2.14"))
|
|
146
146
|
this.versions.add(ODVersion.fromString("opendiscord:livestatus","v2.0.0"))
|
|
147
147
|
|
|
148
148
|
this.debugfile = managers.debugfile
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
///////////////////////////////////////
|
|
4
4
|
import { ODId, ODValidId, ODSystemError, ODManagerData, ODNoGeneric, ODManager } from "./base.js"
|
|
5
5
|
import * as discord from "discord.js"
|
|
6
|
-
import { ODWorkerManager, ODWorkerCallback, ODWorker } from "./worker"
|
|
6
|
+
import { ODWorkerManager, ODWorkerCallback, ODWorker } from "./worker.js"
|
|
7
7
|
import { ODDebugger } from "./console.js"
|
|
8
8
|
|
|
9
9
|
/**## ODComponentFactoryInstance `class`
|
|
@@ -136,7 +136,7 @@ export function frameworkStartup(startupFlags:string[],project:ODProjectType,sta
|
|
|
136
136
|
const missingDeps: string[] = []
|
|
137
137
|
for (const dep of requiredDependencies){
|
|
138
138
|
try{
|
|
139
|
-
|
|
139
|
+
import.meta.resolve(dep)
|
|
140
140
|
}catch(err){
|
|
141
141
|
missingDeps.push(dep)
|
|
142
142
|
}
|
package/src/utilities/index.ts
CHANGED
|
@@ -25,7 +25,7 @@ export function checkNodeVersion(project:api.ODProjectType){
|
|
|
25
25
|
*/
|
|
26
26
|
export function moduleInstalled(id:string,throwError?:boolean): boolean {
|
|
27
27
|
try{
|
|
28
|
-
|
|
28
|
+
import.meta.resolve(id)
|
|
29
29
|
return true
|
|
30
30
|
}catch{
|
|
31
31
|
if (throwError) throw new Error("npm module \""+id+"\" is not installed! Install it via 'npm install "+id+"'")
|