@genesislcap/foundation-utils 14.438.0 → 14.438.1

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.
Files changed (2) hide show
  1. package/dist/custom-elements.json +360 -360
  2. package/package.json +11 -11
@@ -250,6 +250,204 @@
250
250
  }
251
251
  ]
252
252
  },
253
+ {
254
+ "kind": "javascript-module",
255
+ "path": "src/data/inMemoryDatabase.ts",
256
+ "declarations": [
257
+ {
258
+ "kind": "class",
259
+ "description": "An in memory database of specific DatabaseRecord types.",
260
+ "name": "InMemoryDatabase",
261
+ "members": [
262
+ {
263
+ "kind": "field",
264
+ "name": "isWorking",
265
+ "type": {
266
+ "text": "boolean"
267
+ },
268
+ "privacy": "public",
269
+ "default": "false"
270
+ },
271
+ {
272
+ "kind": "field",
273
+ "name": "records",
274
+ "type": {
275
+ "text": "Record<string, T>"
276
+ },
277
+ "privacy": "private",
278
+ "default": "{}"
279
+ },
280
+ {
281
+ "kind": "field",
282
+ "name": "beforeUpdateListeners",
283
+ "privacy": "private"
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "afterUpdateListeners",
288
+ "privacy": "private"
289
+ },
290
+ {
291
+ "kind": "method",
292
+ "name": "create",
293
+ "privacy": "public",
294
+ "return": {
295
+ "type": {
296
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
297
+ }
298
+ },
299
+ "parameters": [
300
+ {
301
+ "name": "newValue",
302
+ "type": {
303
+ "text": "Omit<T, 'id'>"
304
+ }
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ "kind": "method",
310
+ "name": "read",
311
+ "privacy": "public",
312
+ "return": {
313
+ "type": {
314
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
315
+ }
316
+ },
317
+ "parameters": [
318
+ {
319
+ "name": "id",
320
+ "type": {
321
+ "text": "string"
322
+ }
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "kind": "method",
328
+ "name": "update",
329
+ "privacy": "public",
330
+ "return": {
331
+ "type": {
332
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
333
+ }
334
+ },
335
+ "parameters": [
336
+ {
337
+ "name": "id",
338
+ "type": {
339
+ "text": "string"
340
+ }
341
+ },
342
+ {
343
+ "name": "newValue",
344
+ "type": {
345
+ "text": "Omit<Partial<T>, 'id'>"
346
+ }
347
+ }
348
+ ]
349
+ },
350
+ {
351
+ "kind": "method",
352
+ "name": "delete",
353
+ "privacy": "public",
354
+ "return": {
355
+ "type": {
356
+ "text": "Promise<DatabaseAccessResult.Delete>"
357
+ }
358
+ },
359
+ "parameters": [
360
+ {
361
+ "name": "id",
362
+ "type": {
363
+ "text": "string"
364
+ }
365
+ }
366
+ ]
367
+ },
368
+ {
369
+ "kind": "method",
370
+ "name": "visit",
371
+ "privacy": "public",
372
+ "return": {
373
+ "type": {
374
+ "text": "Promise<void>"
375
+ }
376
+ },
377
+ "parameters": [
378
+ {
379
+ "name": "visitor",
380
+ "type": {
381
+ "text": "(record: T) => void"
382
+ }
383
+ }
384
+ ]
385
+ },
386
+ {
387
+ "kind": "method",
388
+ "name": "onBeforeUpdate",
389
+ "privacy": "public",
390
+ "return": {
391
+ "type": {
392
+ "text": "() => void"
393
+ }
394
+ },
395
+ "parameters": [
396
+ {
397
+ "name": "listener",
398
+ "type": {
399
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
400
+ }
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ "kind": "method",
406
+ "name": "onAfterUpdate",
407
+ "privacy": "public",
408
+ "return": {
409
+ "type": {
410
+ "text": "() => void"
411
+ }
412
+ },
413
+ "parameters": [
414
+ {
415
+ "name": "listener",
416
+ "type": {
417
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
418
+ }
419
+ }
420
+ ]
421
+ }
422
+ ]
423
+ }
424
+ ],
425
+ "exports": [
426
+ {
427
+ "kind": "js",
428
+ "name": "InMemoryDatabase",
429
+ "declaration": {
430
+ "name": "InMemoryDatabase",
431
+ "module": "src/data/inMemoryDatabase.ts"
432
+ }
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "kind": "javascript-module",
438
+ "path": "src/data/index.ts",
439
+ "declarations": [],
440
+ "exports": [
441
+ {
442
+ "kind": "js",
443
+ "name": "*",
444
+ "declaration": {
445
+ "name": "*",
446
+ "package": "./inMemoryDatabase"
447
+ }
448
+ }
449
+ ]
450
+ },
253
451
  {
254
452
  "kind": "javascript-module",
255
453
  "path": "src/decorators/index.ts",
@@ -507,198 +705,23 @@
507
705
  },
508
706
  {
509
707
  "kind": "javascript-module",
510
- "path": "src/data/inMemoryDatabase.ts",
511
- "declarations": [
512
- {
513
- "kind": "class",
514
- "description": "An in memory database of specific DatabaseRecord types.",
515
- "name": "InMemoryDatabase",
516
- "members": [
517
- {
518
- "kind": "field",
519
- "name": "isWorking",
520
- "type": {
521
- "text": "boolean"
522
- },
523
- "privacy": "public",
524
- "default": "false"
525
- },
526
- {
527
- "kind": "field",
528
- "name": "records",
529
- "type": {
530
- "text": "Record<string, T>"
531
- },
532
- "privacy": "private",
533
- "default": "{}"
534
- },
535
- {
536
- "kind": "field",
537
- "name": "beforeUpdateListeners",
538
- "privacy": "private"
539
- },
540
- {
541
- "kind": "field",
542
- "name": "afterUpdateListeners",
543
- "privacy": "private"
544
- },
545
- {
546
- "kind": "method",
547
- "name": "create",
548
- "privacy": "public",
549
- "return": {
550
- "type": {
551
- "text": "Promise<DatabaseAccessResult.Create<T>>"
552
- }
553
- },
554
- "parameters": [
555
- {
556
- "name": "newValue",
557
- "type": {
558
- "text": "Omit<T, 'id'>"
559
- }
560
- }
561
- ]
562
- },
563
- {
564
- "kind": "method",
565
- "name": "read",
566
- "privacy": "public",
567
- "return": {
568
- "type": {
569
- "text": "Promise<DatabaseAccessResult.Read<T>>"
570
- }
571
- },
572
- "parameters": [
573
- {
574
- "name": "id",
575
- "type": {
576
- "text": "string"
577
- }
578
- }
579
- ]
580
- },
581
- {
582
- "kind": "method",
583
- "name": "update",
584
- "privacy": "public",
585
- "return": {
586
- "type": {
587
- "text": "Promise<DatabaseAccessResult.Update<T>>"
588
- }
589
- },
590
- "parameters": [
591
- {
592
- "name": "id",
593
- "type": {
594
- "text": "string"
595
- }
596
- },
597
- {
598
- "name": "newValue",
599
- "type": {
600
- "text": "Omit<Partial<T>, 'id'>"
601
- }
602
- }
603
- ]
604
- },
605
- {
606
- "kind": "method",
607
- "name": "delete",
608
- "privacy": "public",
609
- "return": {
610
- "type": {
611
- "text": "Promise<DatabaseAccessResult.Delete>"
612
- }
613
- },
614
- "parameters": [
615
- {
616
- "name": "id",
617
- "type": {
618
- "text": "string"
619
- }
620
- }
621
- ]
622
- },
623
- {
624
- "kind": "method",
625
- "name": "visit",
626
- "privacy": "public",
627
- "return": {
628
- "type": {
629
- "text": "Promise<void>"
630
- }
631
- },
632
- "parameters": [
633
- {
634
- "name": "visitor",
635
- "type": {
636
- "text": "(record: T) => void"
637
- }
638
- }
639
- ]
640
- },
641
- {
642
- "kind": "method",
643
- "name": "onBeforeUpdate",
644
- "privacy": "public",
645
- "return": {
646
- "type": {
647
- "text": "() => void"
648
- }
649
- },
650
- "parameters": [
651
- {
652
- "name": "listener",
653
- "type": {
654
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
655
- }
656
- }
657
- ]
658
- },
659
- {
660
- "kind": "method",
661
- "name": "onAfterUpdate",
662
- "privacy": "public",
663
- "return": {
664
- "type": {
665
- "text": "() => void"
666
- }
667
- },
668
- "parameters": [
669
- {
670
- "name": "listener",
671
- "type": {
672
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
673
- }
674
- }
675
- ]
676
- }
677
- ]
678
- }
679
- ],
680
- "exports": [
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
710
+ "exports": [
681
711
  {
682
712
  "kind": "js",
683
- "name": "InMemoryDatabase",
713
+ "name": "*",
684
714
  "declaration": {
685
- "name": "InMemoryDatabase",
686
- "module": "src/data/inMemoryDatabase.ts"
715
+ "name": "*",
716
+ "package": "./sync"
687
717
  }
688
- }
689
- ]
690
- },
691
- {
692
- "kind": "javascript-module",
693
- "path": "src/data/index.ts",
694
- "declarations": [],
695
- "exports": [
718
+ },
696
719
  {
697
720
  "kind": "js",
698
721
  "name": "*",
699
722
  "declaration": {
700
723
  "name": "*",
701
- "package": "./inMemoryDatabase"
724
+ "package": "./when-else"
702
725
  }
703
726
  }
704
727
  ]
@@ -1193,29 +1216,6 @@
1193
1216
  }
1194
1217
  ]
1195
1218
  },
1196
- {
1197
- "kind": "javascript-module",
1198
- "path": "src/directives/index.ts",
1199
- "declarations": [],
1200
- "exports": [
1201
- {
1202
- "kind": "js",
1203
- "name": "*",
1204
- "declaration": {
1205
- "name": "*",
1206
- "package": "./sync"
1207
- }
1208
- },
1209
- {
1210
- "kind": "js",
1211
- "name": "*",
1212
- "declaration": {
1213
- "name": "*",
1214
- "package": "./when-else"
1215
- }
1216
- }
1217
- ]
1218
- },
1219
1219
  {
1220
1220
  "kind": "javascript-module",
1221
1221
  "path": "src/error/errorMap.ts",
@@ -4823,160 +4823,6 @@
4823
4823
  }
4824
4824
  ]
4825
4825
  },
4826
- {
4827
- "kind": "javascript-module",
4828
- "path": "src/encoding/base64/decode.ts",
4829
- "declarations": [
4830
- {
4831
- "kind": "function",
4832
- "name": "decodeFromBase64",
4833
- "return": {
4834
- "type": {
4835
- "text": ""
4836
- }
4837
- },
4838
- "parameters": [
4839
- {
4840
- "name": "base64Value",
4841
- "type": {
4842
- "text": "string"
4843
- }
4844
- },
4845
- {
4846
- "description": "The value to decode from base64.",
4847
- "name": "value"
4848
- }
4849
- ],
4850
- "description": "Decodes a value from base64.",
4851
- "privacy": "public"
4852
- },
4853
- {
4854
- "kind": "function",
4855
- "name": "decodeFromBase64WithPrefix",
4856
- "return": {
4857
- "type": {
4858
- "text": ""
4859
- }
4860
- },
4861
- "parameters": [
4862
- {
4863
- "name": "value",
4864
- "type": {
4865
- "text": "string"
4866
- },
4867
- "description": "The value to decode from base64."
4868
- }
4869
- ],
4870
- "description": "Decodes a value from base64 with a prefix.",
4871
- "privacy": "public"
4872
- }
4873
- ],
4874
- "exports": [
4875
- {
4876
- "kind": "js",
4877
- "name": "decodeFromBase64",
4878
- "declaration": {
4879
- "name": "decodeFromBase64",
4880
- "module": "src/encoding/base64/decode.ts"
4881
- }
4882
- },
4883
- {
4884
- "kind": "js",
4885
- "name": "decodeFromBase64WithPrefix",
4886
- "declaration": {
4887
- "name": "decodeFromBase64WithPrefix",
4888
- "module": "src/encoding/base64/decode.ts"
4889
- }
4890
- }
4891
- ]
4892
- },
4893
- {
4894
- "kind": "javascript-module",
4895
- "path": "src/encoding/base64/encode.ts",
4896
- "declarations": [
4897
- {
4898
- "kind": "function",
4899
- "name": "encodeToBase64",
4900
- "return": {
4901
- "type": {
4902
- "text": ""
4903
- }
4904
- },
4905
- "parameters": [
4906
- {
4907
- "name": "value",
4908
- "type": {
4909
- "text": "string | ArrayBuffer"
4910
- },
4911
- "description": "The value to encode to base64."
4912
- }
4913
- ],
4914
- "description": "Encodes the given value to base64.",
4915
- "privacy": "public"
4916
- },
4917
- {
4918
- "kind": "function",
4919
- "name": "encodeToBase64WithPrefix",
4920
- "return": {
4921
- "type": {
4922
- "text": ""
4923
- }
4924
- },
4925
- "parameters": [
4926
- {
4927
- "name": "value",
4928
- "type": {
4929
- "text": "string | ArrayBuffer"
4930
- },
4931
- "description": "The value to encode to base64."
4932
- }
4933
- ],
4934
- "description": "Encodes the given value with a prefix to base64.",
4935
- "privacy": "public"
4936
- }
4937
- ],
4938
- "exports": [
4939
- {
4940
- "kind": "js",
4941
- "name": "encodeToBase64",
4942
- "declaration": {
4943
- "name": "encodeToBase64",
4944
- "module": "src/encoding/base64/encode.ts"
4945
- }
4946
- },
4947
- {
4948
- "kind": "js",
4949
- "name": "encodeToBase64WithPrefix",
4950
- "declaration": {
4951
- "name": "encodeToBase64WithPrefix",
4952
- "module": "src/encoding/base64/encode.ts"
4953
- }
4954
- }
4955
- ]
4956
- },
4957
- {
4958
- "kind": "javascript-module",
4959
- "path": "src/encoding/base64/index.ts",
4960
- "declarations": [],
4961
- "exports": [
4962
- {
4963
- "kind": "js",
4964
- "name": "*",
4965
- "declaration": {
4966
- "name": "*",
4967
- "package": "./decode"
4968
- }
4969
- },
4970
- {
4971
- "kind": "js",
4972
- "name": "*",
4973
- "declaration": {
4974
- "name": "*",
4975
- "package": "./encode"
4976
- }
4977
- }
4978
- ]
4979
- },
4980
4826
  {
4981
4827
  "kind": "javascript-module",
4982
4828
  "path": "src/directives/sync/index.ts",
@@ -5131,6 +4977,160 @@
5131
4977
  }
5132
4978
  ]
5133
4979
  },
4980
+ {
4981
+ "kind": "javascript-module",
4982
+ "path": "src/encoding/base64/decode.ts",
4983
+ "declarations": [
4984
+ {
4985
+ "kind": "function",
4986
+ "name": "decodeFromBase64",
4987
+ "return": {
4988
+ "type": {
4989
+ "text": ""
4990
+ }
4991
+ },
4992
+ "parameters": [
4993
+ {
4994
+ "name": "base64Value",
4995
+ "type": {
4996
+ "text": "string"
4997
+ }
4998
+ },
4999
+ {
5000
+ "description": "The value to decode from base64.",
5001
+ "name": "value"
5002
+ }
5003
+ ],
5004
+ "description": "Decodes a value from base64.",
5005
+ "privacy": "public"
5006
+ },
5007
+ {
5008
+ "kind": "function",
5009
+ "name": "decodeFromBase64WithPrefix",
5010
+ "return": {
5011
+ "type": {
5012
+ "text": ""
5013
+ }
5014
+ },
5015
+ "parameters": [
5016
+ {
5017
+ "name": "value",
5018
+ "type": {
5019
+ "text": "string"
5020
+ },
5021
+ "description": "The value to decode from base64."
5022
+ }
5023
+ ],
5024
+ "description": "Decodes a value from base64 with a prefix.",
5025
+ "privacy": "public"
5026
+ }
5027
+ ],
5028
+ "exports": [
5029
+ {
5030
+ "kind": "js",
5031
+ "name": "decodeFromBase64",
5032
+ "declaration": {
5033
+ "name": "decodeFromBase64",
5034
+ "module": "src/encoding/base64/decode.ts"
5035
+ }
5036
+ },
5037
+ {
5038
+ "kind": "js",
5039
+ "name": "decodeFromBase64WithPrefix",
5040
+ "declaration": {
5041
+ "name": "decodeFromBase64WithPrefix",
5042
+ "module": "src/encoding/base64/decode.ts"
5043
+ }
5044
+ }
5045
+ ]
5046
+ },
5047
+ {
5048
+ "kind": "javascript-module",
5049
+ "path": "src/encoding/base64/encode.ts",
5050
+ "declarations": [
5051
+ {
5052
+ "kind": "function",
5053
+ "name": "encodeToBase64",
5054
+ "return": {
5055
+ "type": {
5056
+ "text": ""
5057
+ }
5058
+ },
5059
+ "parameters": [
5060
+ {
5061
+ "name": "value",
5062
+ "type": {
5063
+ "text": "string | ArrayBuffer"
5064
+ },
5065
+ "description": "The value to encode to base64."
5066
+ }
5067
+ ],
5068
+ "description": "Encodes the given value to base64.",
5069
+ "privacy": "public"
5070
+ },
5071
+ {
5072
+ "kind": "function",
5073
+ "name": "encodeToBase64WithPrefix",
5074
+ "return": {
5075
+ "type": {
5076
+ "text": ""
5077
+ }
5078
+ },
5079
+ "parameters": [
5080
+ {
5081
+ "name": "value",
5082
+ "type": {
5083
+ "text": "string | ArrayBuffer"
5084
+ },
5085
+ "description": "The value to encode to base64."
5086
+ }
5087
+ ],
5088
+ "description": "Encodes the given value with a prefix to base64.",
5089
+ "privacy": "public"
5090
+ }
5091
+ ],
5092
+ "exports": [
5093
+ {
5094
+ "kind": "js",
5095
+ "name": "encodeToBase64",
5096
+ "declaration": {
5097
+ "name": "encodeToBase64",
5098
+ "module": "src/encoding/base64/encode.ts"
5099
+ }
5100
+ },
5101
+ {
5102
+ "kind": "js",
5103
+ "name": "encodeToBase64WithPrefix",
5104
+ "declaration": {
5105
+ "name": "encodeToBase64WithPrefix",
5106
+ "module": "src/encoding/base64/encode.ts"
5107
+ }
5108
+ }
5109
+ ]
5110
+ },
5111
+ {
5112
+ "kind": "javascript-module",
5113
+ "path": "src/encoding/base64/index.ts",
5114
+ "declarations": [],
5115
+ "exports": [
5116
+ {
5117
+ "kind": "js",
5118
+ "name": "*",
5119
+ "declaration": {
5120
+ "name": "*",
5121
+ "package": "./decode"
5122
+ }
5123
+ },
5124
+ {
5125
+ "kind": "js",
5126
+ "name": "*",
5127
+ "declaration": {
5128
+ "name": "*",
5129
+ "package": "./encode"
5130
+ }
5131
+ }
5132
+ ]
5133
+ },
5134
5134
  {
5135
5135
  "kind": "javascript-module",
5136
5136
  "path": "src/mappers/dto/index.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.438.0",
4
+ "version": "14.438.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,18 +29,18 @@
29
29
  }
30
30
  },
31
31
  "devDependencies": {
32
- "@genesislcap/foundation-testing": "14.438.0",
33
- "@genesislcap/genx": "14.438.0",
34
- "@genesislcap/rollup-builder": "14.438.0",
35
- "@genesislcap/ts-builder": "14.438.0",
36
- "@genesislcap/uvu-playwright-builder": "14.438.0",
37
- "@genesislcap/vite-builder": "14.438.0",
38
- "@genesislcap/webpack-builder": "14.438.0",
32
+ "@genesislcap/foundation-testing": "14.438.1",
33
+ "@genesislcap/genx": "14.438.1",
34
+ "@genesislcap/rollup-builder": "14.438.1",
35
+ "@genesislcap/ts-builder": "14.438.1",
36
+ "@genesislcap/uvu-playwright-builder": "14.438.1",
37
+ "@genesislcap/vite-builder": "14.438.1",
38
+ "@genesislcap/webpack-builder": "14.438.1",
39
39
  "@types/json-schema": "^7.0.11"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/expression-builder": "14.438.0",
43
- "@genesislcap/foundation-logger": "14.438.0",
42
+ "@genesislcap/expression-builder": "14.438.1",
43
+ "@genesislcap/foundation-logger": "14.438.1",
44
44
  "@microsoft/fast-components": "2.30.6",
45
45
  "@microsoft/fast-element": "1.14.0",
46
46
  "@microsoft/fast-foundation": "2.50.0",
@@ -58,5 +58,5 @@
58
58
  "access": "public"
59
59
  },
60
60
  "customElements": "dist/custom-elements.json",
61
- "gitHead": "2aadae08b54d594c850d65c00a18e3ce5064069c"
61
+ "gitHead": "65abdfa1a8d4d0ad873ed356dff62952dd2e2a92"
62
62
  }