@open-discord-bots/framework 0.2.14 → 0.2.15

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 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.14"));
45
+ this.versions.add(ODVersion.fromString("opendiscord:api", "v0.2.15"));
46
46
  this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
47
47
  this.debugfile = managers.debugfile;
48
48
  this.console = managers.console;
@@ -29,7 +29,7 @@ export type ODValidId = string | number | symbol | ODId;
29
29
  */
30
30
  export type ODValidJsonType = string | number | boolean | {
31
31
  [key: string]: ODValidJsonType;
32
- } | ODValidJsonType[] | null;
32
+ } | ODValidJsonType[] | null | object;
33
33
  /**## ODInterfaceWithPartialProperty `type`
34
34
  * A utility type to create an interface where some properties are optional!
35
35
  */
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.14",
4
+ "version": "0.2.15",
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.14"))
145
+ this.versions.add(ODVersion.fromString("opendiscord:api","v0.2.15"))
146
146
  this.versions.add(ODVersion.fromString("opendiscord:livestatus","v2.0.0"))
147
147
 
148
148
  this.debugfile = managers.debugfile
@@ -37,7 +37,7 @@ export type ODValidId = string|number|symbol|ODId
37
37
  *
38
38
  * list: `string`, `number`, `boolean`, `array`, `object`, `null`
39
39
  */
40
- export type ODValidJsonType = string|number|boolean|{[key:string]:ODValidJsonType}|ODValidJsonType[]|null
40
+ export type ODValidJsonType = string|number|boolean|{[key:string]:ODValidJsonType}|ODValidJsonType[]|null|object
41
41
 
42
42
  /**## ODInterfaceWithPartialProperty `type`
43
43
  * A utility type to create an interface where some properties are optional!
@@ -486,7 +486,7 @@ export class ODCliEditConfigInstance {
486
486
  else if (answer.selectedText.startsWith("Edit as null") && structure.options.null) await this.renderConfigNullStructureEditor(checker,async () => {await this.renderConfigTypeSwitchStructureEditor(checker,backFn,structure,data,parent,parentIndex,path)},structure.options.null,null,parent,parentIndex,path)
487
487
  }
488
488
 
489
- private getArrayPreviewStructureNameLength(structure:api.ODCheckerStructure,data:api.ODValidJsonType,parent:Record<string,any>,parentIndex:string|number): number {
489
+ private getArrayPreviewStructureNameLength(structure:api.ODCheckerStructure,data:any,parent:Record<string,any>,parentIndex:string|number): number {
490
490
  if (structure instanceof api.ODCheckerBooleanStructure && typeof data == "boolean") return data.toString().length
491
491
  else if (structure instanceof api.ODCheckerNumberStructure && typeof data == "number") return data.toString().length
492
492
  else if (structure instanceof api.ODCheckerStringStructure && typeof data == "string") return data.length
@@ -522,7 +522,7 @@ export class ODCliEditConfigInstance {
522
522
  }else return "<unknown-property>".length
523
523
  }
524
524
 
525
- private getArrayPreviewFromStructure(structure:api.ODCheckerStructure,data:api.ODValidJsonType,parent:Record<string,any>,parentIndex:string|number,nameLength:number): string {
525
+ private getArrayPreviewFromStructure(structure:api.ODCheckerStructure,data:any,parent:Record<string,any>,parentIndex:string|number,nameLength:number): string {
526
526
  if (structure instanceof api.ODCheckerBooleanStructure && typeof data == "boolean") return data.toString()
527
527
  else if (structure instanceof api.ODCheckerNumberStructure && typeof data == "number") return data.toString()
528
528
  else if (structure instanceof api.ODCheckerStringStructure && typeof data == "string") return data