tpmkms 8.0.0-beta.43 → 8.0.0-beta.45
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/common/characters.js +2 -2
- package/common/helpers/properties.js +4 -0
- package/common/reports.js +2 -4
- package/common/stgame.js +3 -2
- package/package.json +2 -2
package/common/characters.js
CHANGED
@@ -183,8 +183,8 @@ const initializer = async ({isModule, km}) => {
|
|
183
183
|
const config = km('characters')
|
184
184
|
const api = new Sally(timeKM)
|
185
185
|
const api2 = new Bob(currencyKM)
|
186
|
-
await config.setApi(api2)
|
187
|
-
await config.setApi(api)
|
186
|
+
await config.setApi(() => api2)
|
187
|
+
await config.setApi(() => api)
|
188
188
|
}
|
189
189
|
}
|
190
190
|
// mode this to non-module init only
|
package/common/reports.js
CHANGED
@@ -377,9 +377,6 @@ let config = {
|
|
377
377
|
"literals": {
|
378
378
|
"tables": [{"id": "listingType", "initial": "{ value: 'tables' }" }],
|
379
379
|
"sentences": [{"id": "listingType", "initial": "{ value: 'sentences' }" }],
|
380
|
-
//"product1": [{"id": "reportObject", "initial": "{ value: 'api1' }" }],
|
381
|
-
//"api2": [{"id": "reportObject", "initial": "{ value: 'api2' }" }],
|
382
|
-
//" ([0-9]+)": [{"id": "amount", "initial": "{ value: int(group[0]) }" }],
|
383
380
|
}
|
384
381
|
},
|
385
382
|
|
@@ -570,7 +567,7 @@ let config = {
|
|
570
567
|
],
|
571
568
|
};
|
572
569
|
|
573
|
-
const initializeApi = (config, api
|
570
|
+
const initializeApi = (config, api) => {
|
574
571
|
const type = api.getName();
|
575
572
|
config.addWord(type, {"id": "product", "initial": "{ value: '" + type + `', api: '${type}'}` })
|
576
573
|
/*
|
@@ -590,6 +587,7 @@ const initializeApi = (config, api, km) => {
|
|
590
587
|
|
591
588
|
const initializer = async ({config, objects, km, kms, isModule}) => {
|
592
589
|
if (!isModule) {
|
590
|
+
debugger
|
593
591
|
await kms.reports.addAPI(api1)
|
594
592
|
await kms.reports.addAPI(api2)
|
595
593
|
}
|
package/common/stgame.js
CHANGED
@@ -53,6 +53,7 @@ class SpockAPI {
|
|
53
53
|
}
|
54
54
|
|
55
55
|
process(config, utterance) {
|
56
|
+
debugger
|
56
57
|
this.spock.server(config.getServer(), config.getAPIKey())
|
57
58
|
// return this.spock.process(utterance, { credentials: this.credentials })
|
58
59
|
return clientProcess(this.spock, utterance, { credentials: this.credentials })
|
@@ -67,8 +68,8 @@ const createCharactersHelper = async () => {
|
|
67
68
|
const characters = await createCharacters()
|
68
69
|
const kirk = await createKirk()
|
69
70
|
const spock = await createSpock()
|
70
|
-
await characters.setApi(new KirkAPI(kirk))
|
71
|
-
await characters.setApi(new SpockAPI(spock))
|
71
|
+
await characters.setApi(() => new KirkAPI(kirk))
|
72
|
+
await characters.setApi(() => new SpockAPI(spock))
|
72
73
|
return characters
|
73
74
|
}
|
74
75
|
|
package/package.json
CHANGED
@@ -294,8 +294,8 @@
|
|
294
294
|
"table": "^6.7.1",
|
295
295
|
"base-64": "^1.0.0",
|
296
296
|
"argparse": "^2.0.1",
|
297
|
-
"theprogrammablemind": "8.0.0-beta.
|
297
|
+
"theprogrammablemind": "8.0.0-beta.45"
|
298
298
|
},
|
299
|
-
"version": "8.0.0-beta.
|
299
|
+
"version": "8.0.0-beta.45",
|
300
300
|
"license": "UNLICENSED"
|
301
301
|
}
|