ekms 8.0.0-beta.20 → 8.0.0-beta.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/common/animals.instance.json +0 -88
  2. package/common/animals.js +2 -2
  3. package/common/avatar.js +2 -2
  4. package/common/characters.js +12 -16
  5. package/common/colors.instance.json +10 -326
  6. package/common/colors.js +2 -2
  7. package/common/comparable.js +2 -2
  8. package/common/concept.js +4 -5
  9. package/common/countable.js +2 -2
  10. package/common/crew.instance.json +0 -416
  11. package/common/crew.js +3 -3
  12. package/common/currency.js +4 -4
  13. package/common/dialogues.js +4 -4
  14. package/common/dimension.js +4 -4
  15. package/common/edible.instance.json +17 -93
  16. package/common/edible.js +2 -2
  17. package/common/emotions.instance.json +0 -60
  18. package/common/emotions.js +3 -3
  19. package/common/events.js +3 -3
  20. package/common/fastfood.instance.json +237 -517
  21. package/common/fastfood.js +4 -4
  22. package/common/formulas.js +4 -4
  23. package/common/gdefaults.js +2 -2
  24. package/common/help.js +3 -3
  25. package/common/helpers/concept.js +0 -1
  26. package/common/hierarchy.js +3 -3
  27. package/common/javascript.js +3 -3
  28. package/common/kirk.js +2 -2
  29. package/common/length.instance.json +0 -60
  30. package/common/length.js +2 -2
  31. package/common/math.js +2 -2
  32. package/common/meta.js +3 -3
  33. package/common/negation.js +1 -1
  34. package/common/numbers.js +2 -2
  35. package/common/ordering.js +4 -4
  36. package/common/people.js +3 -3
  37. package/common/percentages.js +2 -2
  38. package/common/pipboy.instance.json +10 -78
  39. package/common/pipboy.js +4 -4
  40. package/common/pokemon.instance.json +0 -44
  41. package/common/pokemon.js +3 -3
  42. package/common/pos.js +1 -1
  43. package/common/pressure.js +2 -2
  44. package/common/properties.js +4 -4
  45. package/common/punctuation.js +1 -1
  46. package/common/reports.instance.json +1 -1
  47. package/common/reports.js +11 -11
  48. package/common/scorekeeper.js +3 -3
  49. package/common/sdefaults.js +1 -1
  50. package/common/sizeable.js +2 -2
  51. package/common/spock.js +2 -2
  52. package/common/stgame.js +13 -9
  53. package/common/stm.js +3 -3
  54. package/common/tell.js +4 -4
  55. package/common/temperature.instance.json +84 -60
  56. package/common/temperature.js +2 -2
  57. package/common/tester.js +2 -2
  58. package/common/testing.js +2 -2
  59. package/common/time.js +4 -4
  60. package/common/tokenize.js +1 -1
  61. package/common/ui.js +4 -4
  62. package/common/weight.js +2 -2
  63. package/common/yesno.js +1 -1
  64. package/package.json +2 -2
@@ -5555,28 +5555,6 @@
5555
5555
  1
5556
5556
  ]
5557
5557
  ],
5558
- [
5559
- [
5560
- "is",
5561
- 0
5562
- ],
5563
- [
5564
- "list",
5565
- 0
5566
- ],
5567
- [
5568
- "mammal",
5569
- 0
5570
- ],
5571
- [
5572
- "unknown",
5573
- 0
5574
- ],
5575
- [
5576
- "unknown",
5577
- 1
5578
- ]
5579
- ],
5580
5558
  [
5581
5559
  [
5582
5560
  "is",
@@ -6601,28 +6579,6 @@
6601
6579
  1
6602
6580
  ]
6603
6581
  ],
6604
- [
6605
- [
6606
- "bird",
6607
- 0
6608
- ],
6609
- [
6610
- "is",
6611
- 0
6612
- ],
6613
- [
6614
- "list",
6615
- 0
6616
- ],
6617
- [
6618
- "unknown",
6619
- 0
6620
- ],
6621
- [
6622
- "unknown",
6623
- 1
6624
- ]
6625
- ],
6626
6582
  [
6627
6583
  [
6628
6584
  "bird",
@@ -9873,28 +9829,6 @@
9873
9829
  1
9874
9830
  ]
9875
9831
  ],
9876
- [
9877
- [
9878
- "bird",
9879
- 0
9880
- ],
9881
- [
9882
- "is",
9883
- 0
9884
- ],
9885
- [
9886
- "list",
9887
- 0
9888
- ],
9889
- [
9890
- "unknown",
9891
- 0
9892
- ],
9893
- [
9894
- "unknown",
9895
- 1
9896
- ]
9897
- ],
9898
9832
  [
9899
9833
  [
9900
9834
  "bird",
@@ -10271,28 +10205,6 @@
10271
10205
  1
10272
10206
  ]
10273
10207
  ],
10274
- [
10275
- [
10276
- "is",
10277
- 0
10278
- ],
10279
- [
10280
- "list",
10281
- 0
10282
- ],
10283
- [
10284
- "mammal",
10285
- 0
10286
- ],
10287
- [
10288
- "unknown",
10289
- 0
10290
- ],
10291
- [
10292
- "unknown",
10293
- 1
10294
- ]
10295
- ],
10296
10208
  [
10297
10209
  [
10298
10210
  "is",
package/common/animals.js CHANGED
@@ -25,9 +25,9 @@ const template = {
25
25
  ],
26
26
  }
27
27
 
28
- const createConfig = () => {
28
+ const createConfig = async () => {
29
29
  const config = new Config({ name: 'animals' }, module)
30
- config.add(hierarchy())
30
+ await config.add(hierarchy)
31
31
  return config
32
32
  }
33
33
 
package/common/avatar.js CHANGED
@@ -68,9 +68,9 @@ let configStruct = {
68
68
 
69
69
  };
70
70
 
71
- const createConfig = () => {
71
+ const createConfig = async () => {
72
72
  const config = new Config(configStruct, module)
73
- config.add(hierarchy(), emotions())
73
+ await config.add(hierarchy, emotions)
74
74
  return config
75
75
  }
76
76
 
@@ -173,27 +173,23 @@ const initializeApi = (config, api) => {
173
173
  }
174
174
 
175
175
 
176
- const createConfig = () => {
177
- const timeKM = createTimeKM()
178
- const currencyKM = createCurrencyKM()
176
+ const createConfig = async () => {
177
+ const timeKM = await createTimeKM()
178
+ const currencyKM = await createCurrencyKM()
179
179
  const api = new Sally(timeKM)
180
180
  const api2 = new Bob(currencyKM)
181
181
 
182
182
  const config = new Config(configStruct, module)
183
183
  config.stop_auto_rebuild()
184
- config.add(gdefaults())
185
-
186
- config.multiApi = initializeApi
187
- config.initializer( ({isModule, config, km}) => {
188
- if (!isModule) {
189
- // config.api = api2
190
- // config.api = api
191
- const config = km('characters')
192
- config.api = api2
193
- config.api = api
194
- }
195
- })
196
- config.restart_auto_rebuild()
184
+ await config.add(gdefaults)
185
+
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
+ }
192
+ await config.restart_auto_rebuild()
197
193
  return config
198
194
  }
199
195
 
@@ -3116,20 +3116,12 @@
3116
3116
  "list",
3117
3117
  0
3118
3118
  ],
3119
- [
3120
- "unknown",
3121
- 0
3122
- ],
3123
3119
  [
3124
3120
  "unknown",
3125
3121
  1
3126
3122
  ]
3127
3123
  ],
3128
3124
  [
3129
- [
3130
- "comma",
3131
- 0
3132
- ],
3133
3125
  [
3134
3126
  "is",
3135
3127
  0
@@ -3150,7 +3142,7 @@
3150
3142
  ],
3151
3143
  [
3152
3144
  "list",
3153
- 0
3145
+ 1
3154
3146
  ],
3155
3147
  [
3156
3148
  "unknown",
@@ -7076,36 +7068,6 @@
7076
7068
  1
7077
7069
  ]
7078
7070
  ],
7079
- [
7080
- [
7081
- "a",
7082
- 0
7083
- ],
7084
- [
7085
- "comma",
7086
- 0
7087
- ],
7088
- [
7089
- "is",
7090
- 0
7091
- ],
7092
- [
7093
- "list",
7094
- 0
7095
- ],
7096
- [
7097
- "purple_colors",
7098
- 0
7099
- ],
7100
- [
7101
- "unknown",
7102
- 0
7103
- ],
7104
- [
7105
- "unknown",
7106
- 1
7107
- ]
7108
- ],
7109
7071
  [
7110
7072
  [
7111
7073
  "a",
@@ -8942,36 +8904,6 @@
8942
8904
  1
8943
8905
  ]
8944
8906
  ],
8945
- [
8946
- [
8947
- "a",
8948
- 0
8949
- ],
8950
- [
8951
- "comma",
8952
- 0
8953
- ],
8954
- [
8955
- "green_colors",
8956
- 0
8957
- ],
8958
- [
8959
- "is",
8960
- 0
8961
- ],
8962
- [
8963
- "list",
8964
- 0
8965
- ],
8966
- [
8967
- "unknown",
8968
- 0
8969
- ],
8970
- [
8971
- "unknown",
8972
- 1
8973
- ]
8974
- ],
8975
8907
  [
8976
8908
  [
8977
8909
  "a",
@@ -11131,36 +11063,6 @@
11131
11063
  1
11132
11064
  ]
11133
11065
  ],
11134
- [
11135
- [
11136
- "a",
11137
- 0
11138
- ],
11139
- [
11140
- "blue_colors",
11141
- 0
11142
- ],
11143
- [
11144
- "comma",
11145
- 0
11146
- ],
11147
- [
11148
- "is",
11149
- 0
11150
- ],
11151
- [
11152
- "list",
11153
- 0
11154
- ],
11155
- [
11156
- "unknown",
11157
- 0
11158
- ],
11159
- [
11160
- "unknown",
11161
- 1
11162
- ]
11163
- ],
11164
11066
  [
11165
11067
  [
11166
11068
  "a",
@@ -13210,36 +13112,6 @@
13210
13112
  1
13211
13113
  ]
13212
13114
  ],
13213
- [
13214
- [
13215
- "a",
13216
- 0
13217
- ],
13218
- [
13219
- "brown_colors",
13220
- 0
13221
- ],
13222
- [
13223
- "comma",
13224
- 0
13225
- ],
13226
- [
13227
- "is",
13228
- 0
13229
- ],
13230
- [
13231
- "list",
13232
- 0
13233
- ],
13234
- [
13235
- "unknown",
13236
- 0
13237
- ],
13238
- [
13239
- "unknown",
13240
- 1
13241
- ]
13242
- ],
13243
13115
  [
13244
13116
  [
13245
13117
  "a",
@@ -15530,36 +15402,6 @@
15530
15402
  0
15531
15403
  ]
15532
15404
  ],
15533
- [
15534
- [
15535
- "a",
15536
- 0
15537
- ],
15538
- [
15539
- "comma",
15540
- 0
15541
- ],
15542
- [
15543
- "is",
15544
- 0
15545
- ],
15546
- [
15547
- "list",
15548
- 0
15549
- ],
15550
- [
15551
- "unknown",
15552
- 0
15553
- ],
15554
- [
15555
- "unknown",
15556
- 1
15557
- ],
15558
- [
15559
- "white_colors",
15560
- 0
15561
- ]
15562
- ],
15563
15405
  [
15564
15406
  [
15565
15407
  "a",
@@ -24128,36 +23970,6 @@
24128
23970
  1
24129
23971
  ]
24130
23972
  ],
24131
- [
24132
- [
24133
- "a",
24134
- 0
24135
- ],
24136
- [
24137
- "blue_colors",
24138
- 0
24139
- ],
24140
- [
24141
- "comma",
24142
- 0
24143
- ],
24144
- [
24145
- "is",
24146
- 0
24147
- ],
24148
- [
24149
- "list",
24150
- 0
24151
- ],
24152
- [
24153
- "unknown",
24154
- 0
24155
- ],
24156
- [
24157
- "unknown",
24158
- 1
24159
- ]
24160
- ],
24161
23973
  [
24162
23974
  [
24163
23975
  "a",
@@ -24302,36 +24114,6 @@
24302
24114
  1
24303
24115
  ]
24304
24116
  ],
24305
- [
24306
- [
24307
- "a",
24308
- 0
24309
- ],
24310
- [
24311
- "brown_colors",
24312
- 0
24313
- ],
24314
- [
24315
- "comma",
24316
- 0
24317
- ],
24318
- [
24319
- "is",
24320
- 0
24321
- ],
24322
- [
24323
- "list",
24324
- 0
24325
- ],
24326
- [
24327
- "unknown",
24328
- 0
24329
- ],
24330
- [
24331
- "unknown",
24332
- 1
24333
- ]
24334
- ],
24335
24117
  [
24336
24118
  [
24337
24119
  "a",
@@ -24476,36 +24258,6 @@
24476
24258
  1
24477
24259
  ]
24478
24260
  ],
24479
- [
24480
- [
24481
- "a",
24482
- 0
24483
- ],
24484
- [
24485
- "comma",
24486
- 0
24487
- ],
24488
- [
24489
- "green_colors",
24490
- 0
24491
- ],
24492
- [
24493
- "is",
24494
- 0
24495
- ],
24496
- [
24497
- "list",
24498
- 0
24499
- ],
24500
- [
24501
- "unknown",
24502
- 0
24503
- ],
24504
- [
24505
- "unknown",
24506
- 1
24507
- ]
24508
- ],
24509
24261
  [
24510
24262
  [
24511
24263
  "a",
@@ -24609,69 +24361,9 @@
24609
24361
  "purple_colors",
24610
24362
  0
24611
24363
  ],
24612
- [
24613
- "unknown",
24614
- 0
24615
- ],
24616
- [
24617
- "unknown",
24618
- 1
24619
- ]
24620
- ],
24621
- [
24622
- [
24623
- "a",
24624
- 0
24625
- ],
24626
- [
24627
- "comma",
24628
- 0
24629
- ],
24630
- [
24631
- "is",
24632
- 0
24633
- ],
24634
- [
24635
- "list",
24636
- 0
24637
- ],
24638
- [
24639
- "purple_colors",
24640
- 0
24641
- ],
24642
- [
24643
- "unknown",
24644
- 1
24645
- ]
24646
- ],
24647
- [
24648
- [
24649
- "a",
24650
- 0
24651
- ],
24652
- [
24653
- "comma",
24654
- 0
24655
- ],
24656
- [
24657
- "is",
24658
- 0
24659
- ],
24660
- [
24661
- "list",
24662
- 0
24663
- ],
24664
- [
24665
- "unknown",
24666
- 0
24667
- ],
24668
24364
  [
24669
24365
  "unknown",
24670
24366
  1
24671
- ],
24672
- [
24673
- "white_colors",
24674
- 0
24675
24367
  ]
24676
24368
  ],
24677
24369
  [
@@ -25371,20 +25063,12 @@
25371
25063
  "list",
25372
25064
  0
25373
25065
  ],
25374
- [
25375
- "unknown",
25376
- 0
25377
- ],
25378
25066
  [
25379
25067
  "unknown",
25380
25068
  1
25381
25069
  ]
25382
25070
  ],
25383
25071
  [
25384
- [
25385
- "comma",
25386
- 0
25387
- ],
25388
25072
  [
25389
25073
  "is",
25390
25074
  0
@@ -25395,7 +25079,7 @@
25395
25079
  ],
25396
25080
  [
25397
25081
  "unknown",
25398
- 1
25082
+ 0
25399
25083
  ]
25400
25084
  ],
25401
25085
  [
@@ -25410,6 +25094,10 @@
25410
25094
  [
25411
25095
  "unknown",
25412
25096
  0
25097
+ ],
25098
+ [
25099
+ "unknown",
25100
+ 1
25413
25101
  ]
25414
25102
  ],
25415
25103
  [
@@ -25421,10 +25109,6 @@
25421
25109
  "list",
25422
25110
  0
25423
25111
  ],
25424
- [
25425
- "unknown",
25426
- 0
25427
- ],
25428
25112
  [
25429
25113
  "unknown",
25430
25114
  1
@@ -25451,10 +25135,6 @@
25451
25135
  ],
25452
25136
  [
25453
25137
  "list",
25454
- 0
25455
- ],
25456
- [
25457
- "unknown",
25458
25138
  1
25459
25139
  ]
25460
25140
  ],
@@ -25526,6 +25206,10 @@
25526
25206
  [
25527
25207
  "list",
25528
25208
  1
25209
+ ],
25210
+ [
25211
+ "unknown",
25212
+ 1
25529
25213
  ]
25530
25214
  ],
25531
25215
  [
package/common/colors.js CHANGED
@@ -46,9 +46,9 @@ const template = {
46
46
  ],
47
47
  }
48
48
 
49
- const createConfig = () => {
49
+ const createConfig = async () => {
50
50
  const config = new Config({ name: 'colors' }, module)
51
- config.add(hierarchy())
51
+ await config.add(hierarchy)
52
52
  return config
53
53
  }
54
54
 
@@ -60,9 +60,9 @@ let configStruct = {
60
60
  */
61
61
  };
62
62
 
63
- const createConfig = () => {
63
+ const createConfig = async () => {
64
64
  const config = new Config(configStruct, module)
65
- config.add(dialogues(), numbers())
65
+ await config.add(dialogues, numbers)
66
66
  return config
67
67
  }
68
68
 
package/common/concept.js CHANGED
@@ -14,7 +14,7 @@ const concept_instance = require('./concept.instance.json')
14
14
  plain and regular fries mean the same thing
15
15
  */
16
16
 
17
- const createConfig = () => {
17
+ const createConfig = async () => {
18
18
  const config = new Config({
19
19
  name: 'concept',
20
20
  operators: [
@@ -121,7 +121,6 @@ const createConfig = () => {
121
121
  let modifiers
122
122
  if (context.literally) {
123
123
  literalModifiers = context.modifiers[0]
124
- debugger
125
124
  // modifiers = literalModifiers.value.map(modifier => modifier.value)
126
125
  modifiers = literalModifiers.value
127
126
  modifiers = modifiers.slice(0, -1).concat([literalModifiers.marker]).concat(modifiers.slice(-1))
@@ -136,9 +135,9 @@ const createConfig = () => {
136
135
  ],
137
136
  }, module)
138
137
  config.stop_auto_rebuild()
139
- config.api = new API()
140
- config.add(dialogues())
141
- config.restart_auto_rebuild()
138
+ await config.setApi(new API())
139
+ await config.add(dialogues)
140
+ await config.restart_auto_rebuild()
142
141
  return config
143
142
  }
144
143
 
@@ -75,9 +75,9 @@ let configStruct = {
75
75
  ]
76
76
  };
77
77
 
78
- const createConfig = () => {
78
+ const createConfig = async () => {
79
79
  const config = new Config(configStruct, module)
80
- config.add(dialogues(), numbers())
80
+ await config.add(dialogues, numbers)
81
81
  return config
82
82
  }
83
83