@genesislcap/foundation-utils 14.143.1 → 14.143.2
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/custom-elements.json +198 -198
- package/package.json +5 -5
|
@@ -151,6 +151,204 @@
|
|
|
151
151
|
}
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "javascript-module",
|
|
156
|
+
"path": "src/data/inMemoryDatabase.ts",
|
|
157
|
+
"declarations": [
|
|
158
|
+
{
|
|
159
|
+
"kind": "class",
|
|
160
|
+
"description": "An in memory database of specific DatabaseRecord types.",
|
|
161
|
+
"name": "InMemoryDatabase",
|
|
162
|
+
"members": [
|
|
163
|
+
{
|
|
164
|
+
"kind": "field",
|
|
165
|
+
"name": "isWorking",
|
|
166
|
+
"type": {
|
|
167
|
+
"text": "boolean"
|
|
168
|
+
},
|
|
169
|
+
"privacy": "public",
|
|
170
|
+
"default": "false"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"kind": "field",
|
|
174
|
+
"name": "records",
|
|
175
|
+
"type": {
|
|
176
|
+
"text": "Record<string, T>"
|
|
177
|
+
},
|
|
178
|
+
"privacy": "private",
|
|
179
|
+
"default": "{}"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"kind": "field",
|
|
183
|
+
"name": "beforeUpdateListeners",
|
|
184
|
+
"privacy": "private"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"kind": "field",
|
|
188
|
+
"name": "afterUpdateListeners",
|
|
189
|
+
"privacy": "private"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"kind": "method",
|
|
193
|
+
"name": "create",
|
|
194
|
+
"privacy": "public",
|
|
195
|
+
"return": {
|
|
196
|
+
"type": {
|
|
197
|
+
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "newValue",
|
|
203
|
+
"type": {
|
|
204
|
+
"text": "Omit<T, 'id'>"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"kind": "method",
|
|
211
|
+
"name": "read",
|
|
212
|
+
"privacy": "public",
|
|
213
|
+
"return": {
|
|
214
|
+
"type": {
|
|
215
|
+
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"parameters": [
|
|
219
|
+
{
|
|
220
|
+
"name": "id",
|
|
221
|
+
"type": {
|
|
222
|
+
"text": "string"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"kind": "method",
|
|
229
|
+
"name": "update",
|
|
230
|
+
"privacy": "public",
|
|
231
|
+
"return": {
|
|
232
|
+
"type": {
|
|
233
|
+
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"parameters": [
|
|
237
|
+
{
|
|
238
|
+
"name": "id",
|
|
239
|
+
"type": {
|
|
240
|
+
"text": "string"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "newValue",
|
|
245
|
+
"type": {
|
|
246
|
+
"text": "Omit<Partial<T>, 'id'>"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"kind": "method",
|
|
253
|
+
"name": "delete",
|
|
254
|
+
"privacy": "public",
|
|
255
|
+
"return": {
|
|
256
|
+
"type": {
|
|
257
|
+
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
"parameters": [
|
|
261
|
+
{
|
|
262
|
+
"name": "id",
|
|
263
|
+
"type": {
|
|
264
|
+
"text": "string"
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"kind": "method",
|
|
271
|
+
"name": "visit",
|
|
272
|
+
"privacy": "public",
|
|
273
|
+
"return": {
|
|
274
|
+
"type": {
|
|
275
|
+
"text": "Promise<void>"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"parameters": [
|
|
279
|
+
{
|
|
280
|
+
"name": "visitor",
|
|
281
|
+
"type": {
|
|
282
|
+
"text": "(record: T) => void"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "method",
|
|
289
|
+
"name": "onBeforeUpdate",
|
|
290
|
+
"privacy": "public",
|
|
291
|
+
"return": {
|
|
292
|
+
"type": {
|
|
293
|
+
"text": "() => void"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
"parameters": [
|
|
297
|
+
{
|
|
298
|
+
"name": "listener",
|
|
299
|
+
"type": {
|
|
300
|
+
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"kind": "method",
|
|
307
|
+
"name": "onAfterUpdate",
|
|
308
|
+
"privacy": "public",
|
|
309
|
+
"return": {
|
|
310
|
+
"type": {
|
|
311
|
+
"text": "() => void"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"parameters": [
|
|
315
|
+
{
|
|
316
|
+
"name": "listener",
|
|
317
|
+
"type": {
|
|
318
|
+
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
]
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"exports": [
|
|
327
|
+
{
|
|
328
|
+
"kind": "js",
|
|
329
|
+
"name": "InMemoryDatabase",
|
|
330
|
+
"declaration": {
|
|
331
|
+
"name": "InMemoryDatabase",
|
|
332
|
+
"module": "src/data/inMemoryDatabase.ts"
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"kind": "javascript-module",
|
|
339
|
+
"path": "src/data/index.ts",
|
|
340
|
+
"declarations": [],
|
|
341
|
+
"exports": [
|
|
342
|
+
{
|
|
343
|
+
"kind": "js",
|
|
344
|
+
"name": "*",
|
|
345
|
+
"declaration": {
|
|
346
|
+
"name": "*",
|
|
347
|
+
"package": "./inMemoryDatabase"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
},
|
|
154
352
|
{
|
|
155
353
|
"kind": "javascript-module",
|
|
156
354
|
"path": "src/decorators/index.ts",
|
|
@@ -500,204 +698,6 @@
|
|
|
500
698
|
}
|
|
501
699
|
]
|
|
502
700
|
},
|
|
503
|
-
{
|
|
504
|
-
"kind": "javascript-module",
|
|
505
|
-
"path": "src/data/inMemoryDatabase.ts",
|
|
506
|
-
"declarations": [
|
|
507
|
-
{
|
|
508
|
-
"kind": "class",
|
|
509
|
-
"description": "An in memory database of specific DatabaseRecord types.",
|
|
510
|
-
"name": "InMemoryDatabase",
|
|
511
|
-
"members": [
|
|
512
|
-
{
|
|
513
|
-
"kind": "field",
|
|
514
|
-
"name": "isWorking",
|
|
515
|
-
"type": {
|
|
516
|
-
"text": "boolean"
|
|
517
|
-
},
|
|
518
|
-
"privacy": "public",
|
|
519
|
-
"default": "false"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
"kind": "field",
|
|
523
|
-
"name": "records",
|
|
524
|
-
"type": {
|
|
525
|
-
"text": "Record<string, T>"
|
|
526
|
-
},
|
|
527
|
-
"privacy": "private",
|
|
528
|
-
"default": "{}"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
"kind": "field",
|
|
532
|
-
"name": "beforeUpdateListeners",
|
|
533
|
-
"privacy": "private"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
"kind": "field",
|
|
537
|
-
"name": "afterUpdateListeners",
|
|
538
|
-
"privacy": "private"
|
|
539
|
-
},
|
|
540
|
-
{
|
|
541
|
-
"kind": "method",
|
|
542
|
-
"name": "create",
|
|
543
|
-
"privacy": "public",
|
|
544
|
-
"return": {
|
|
545
|
-
"type": {
|
|
546
|
-
"text": "Promise<DatabaseAccessResult.Create<T>>"
|
|
547
|
-
}
|
|
548
|
-
},
|
|
549
|
-
"parameters": [
|
|
550
|
-
{
|
|
551
|
-
"name": "newValue",
|
|
552
|
-
"type": {
|
|
553
|
-
"text": "Omit<T, 'id'>"
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
]
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
"kind": "method",
|
|
560
|
-
"name": "read",
|
|
561
|
-
"privacy": "public",
|
|
562
|
-
"return": {
|
|
563
|
-
"type": {
|
|
564
|
-
"text": "Promise<DatabaseAccessResult.Read<T>>"
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
"parameters": [
|
|
568
|
-
{
|
|
569
|
-
"name": "id",
|
|
570
|
-
"type": {
|
|
571
|
-
"text": "string"
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
]
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"kind": "method",
|
|
578
|
-
"name": "update",
|
|
579
|
-
"privacy": "public",
|
|
580
|
-
"return": {
|
|
581
|
-
"type": {
|
|
582
|
-
"text": "Promise<DatabaseAccessResult.Update<T>>"
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
"parameters": [
|
|
586
|
-
{
|
|
587
|
-
"name": "id",
|
|
588
|
-
"type": {
|
|
589
|
-
"text": "string"
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
{
|
|
593
|
-
"name": "newValue",
|
|
594
|
-
"type": {
|
|
595
|
-
"text": "Omit<Partial<T>, 'id'>"
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
]
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
"kind": "method",
|
|
602
|
-
"name": "delete",
|
|
603
|
-
"privacy": "public",
|
|
604
|
-
"return": {
|
|
605
|
-
"type": {
|
|
606
|
-
"text": "Promise<DatabaseAccessResult.Delete>"
|
|
607
|
-
}
|
|
608
|
-
},
|
|
609
|
-
"parameters": [
|
|
610
|
-
{
|
|
611
|
-
"name": "id",
|
|
612
|
-
"type": {
|
|
613
|
-
"text": "string"
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
]
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"kind": "method",
|
|
620
|
-
"name": "visit",
|
|
621
|
-
"privacy": "public",
|
|
622
|
-
"return": {
|
|
623
|
-
"type": {
|
|
624
|
-
"text": "Promise<void>"
|
|
625
|
-
}
|
|
626
|
-
},
|
|
627
|
-
"parameters": [
|
|
628
|
-
{
|
|
629
|
-
"name": "visitor",
|
|
630
|
-
"type": {
|
|
631
|
-
"text": "(record: T) => void"
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
]
|
|
635
|
-
},
|
|
636
|
-
{
|
|
637
|
-
"kind": "method",
|
|
638
|
-
"name": "onBeforeUpdate",
|
|
639
|
-
"privacy": "public",
|
|
640
|
-
"return": {
|
|
641
|
-
"type": {
|
|
642
|
-
"text": "() => void"
|
|
643
|
-
}
|
|
644
|
-
},
|
|
645
|
-
"parameters": [
|
|
646
|
-
{
|
|
647
|
-
"name": "listener",
|
|
648
|
-
"type": {
|
|
649
|
-
"text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
]
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
"kind": "method",
|
|
656
|
-
"name": "onAfterUpdate",
|
|
657
|
-
"privacy": "public",
|
|
658
|
-
"return": {
|
|
659
|
-
"type": {
|
|
660
|
-
"text": "() => void"
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
"parameters": [
|
|
664
|
-
{
|
|
665
|
-
"name": "listener",
|
|
666
|
-
"type": {
|
|
667
|
-
"text": "Listener<DatabaseEvent.AfterUpdate<T>>"
|
|
668
|
-
}
|
|
669
|
-
}
|
|
670
|
-
]
|
|
671
|
-
}
|
|
672
|
-
]
|
|
673
|
-
}
|
|
674
|
-
],
|
|
675
|
-
"exports": [
|
|
676
|
-
{
|
|
677
|
-
"kind": "js",
|
|
678
|
-
"name": "InMemoryDatabase",
|
|
679
|
-
"declaration": {
|
|
680
|
-
"name": "InMemoryDatabase",
|
|
681
|
-
"module": "src/data/inMemoryDatabase.ts"
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
]
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
"kind": "javascript-module",
|
|
688
|
-
"path": "src/data/index.ts",
|
|
689
|
-
"declarations": [],
|
|
690
|
-
"exports": [
|
|
691
|
-
{
|
|
692
|
-
"kind": "js",
|
|
693
|
-
"name": "*",
|
|
694
|
-
"declaration": {
|
|
695
|
-
"name": "*",
|
|
696
|
-
"package": "./inMemoryDatabase"
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
]
|
|
700
|
-
},
|
|
701
701
|
{
|
|
702
702
|
"kind": "javascript-module",
|
|
703
703
|
"path": "src/error/errorMap.ts",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.143.
|
|
4
|
+
"version": "14.143.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"test": "genx test"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@genesislcap/foundation-testing": "14.143.
|
|
23
|
-
"@genesislcap/genx": "14.143.
|
|
22
|
+
"@genesislcap/foundation-testing": "14.143.2",
|
|
23
|
+
"@genesislcap/genx": "14.143.2",
|
|
24
24
|
"rimraf": "^3.0.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@genesislcap/foundation-logger": "14.143.
|
|
27
|
+
"@genesislcap/foundation-logger": "14.143.2",
|
|
28
28
|
"@microsoft/fast-components": "^2.30.6",
|
|
29
29
|
"@microsoft/fast-element": "^1.12.0",
|
|
30
30
|
"@microsoft/fast-foundation": "^2.49.4",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"customElements": "dist/custom-elements.json",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "126575303f48e0bcf0254498a0341d39fd1c8400"
|
|
46
46
|
}
|