ekms 8.0.0-beta.24 → 8.0.0-beta.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -184,11 +184,13 @@ const createConfig = async () => {
184
184
  await config.add(gdefaults)
185
185
 
186
186
  await config.setMultiApi(initializeApi)
187
- const isModule = require.main !== module
188
- if (!isModule) {
189
- await config.setApi(api2)
190
- await config.setApi(api)
191
- }
187
+ config.initializer( async ({isModule, km}) => {
188
+ if (!isModule) {
189
+ const config = km('characters')
190
+ await config.setApi(api2)
191
+ await config.setApi(api)
192
+ }
193
+ })
192
194
  await config.restart_auto_rebuild()
193
195
  return config
194
196
  }
package/common/reports.js CHANGED
@@ -592,14 +592,11 @@ const createConfig = async () => {
592
592
  await config.add(currencyKM, helpKM, math, events)
593
593
  await config.setMultiApi(initializeApi)
594
594
  // mode this to non-module init only
595
- const isModule = require.main !== module
596
- if (!isModule) {
597
- await config.addAPI(api1)
598
- await config.addAPI(api2)
599
- // config.addAPI(api1)
600
- // config.addAPI(api2)
601
- }
602
- await config.initializer(({config, objects, km, isModule}) => {
595
+ await config.initializer(async ({config, objects, km, kms, isModule}) => {
596
+ if (!isModule) {
597
+ await kms.reports.addAPI(api1)
598
+ await kms.reports.addAPI(api2)
599
+ }
603
600
  objects.tempReportId = 0
604
601
  objects.listings = {
605
602
  }
package/package.json CHANGED
@@ -280,8 +280,8 @@
280
280
  "table": "^6.7.1",
281
281
  "base-64": "^1.0.0",
282
282
  "argparse": "^2.0.1",
283
- "theprogrammablemind": "8.0.0-beta.24"
283
+ "theprogrammablemind": "8.0.0-beta.25"
284
284
  },
285
- "version": "8.0.0-beta.24",
285
+ "version": "8.0.0-beta.25",
286
286
  "license": "UNLICENSED"
287
287
  }