@nordcraft/std-lib 1.0.11 → 1.0.13

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/lib.ts +32 -221
  2. package/package.json +3 -3
package/dist/lib.ts CHANGED
@@ -90,9 +90,9 @@
90
90
  "type": "value",
91
91
  "value": null
92
92
  },
93
- "description": "The input record",
93
+ "description": "The input record.",
94
94
  "type": {
95
- "type": "Object"
95
+ "type": "Array \\| Object"
96
96
  }
97
97
  },
98
98
  {
@@ -103,15 +103,7 @@
103
103
  },
104
104
  "description": "The path can be either a Number (if the first argument is an array), a String, or an Array of strings. If an Array is given, the property at that path will be removed.",
105
105
  "type": {
106
- "type": "Union",
107
- "types": [
108
- {
109
- "type": "Array"
110
- },
111
- {
112
- "type": "String"
113
- }
114
- ]
106
+ "type": "Array<Number \\| String> \\| Number \\| String"
115
107
  }
116
108
  }
117
109
  ],
@@ -342,18 +334,7 @@
342
334
  },
343
335
  "description": "The Path can be either a Number, a String or an Array of Strings.",
344
336
  "type": {
345
- "type": "Union",
346
- "types": [
347
- {
348
- "type": "Array"
349
- },
350
- {
351
- "type": "String"
352
- },
353
- {
354
- "type": "Number"
355
- }
356
- ]
337
+ "type": "Array \\| Number \\| String"
357
338
  }
358
339
  },
359
340
  {
@@ -393,7 +374,7 @@
393
374
  "name": "Locale(s)",
394
375
  "description": "Optional locale to use for formatting the Number, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
395
376
  "type": {
396
- "type": "String | Array"
377
+ "type": "Array \\| String"
397
378
  },
398
379
  "formula": {
399
380
  "type": "value",
@@ -491,17 +472,9 @@
491
472
  "type": "value",
492
473
  "value": null
493
474
  },
494
- "description": "Input Array or String.",
475
+ "description": "The input value.",
495
476
  "type": {
496
- "type": "Union",
497
- "types": [
498
- {
499
- "type": "String"
500
- },
501
- {
502
- "type": "Array"
503
- }
504
- ]
477
+ "type": "Array \\| String"
505
478
  }
506
479
  },
507
480
  {
@@ -519,15 +492,7 @@
519
492
  "output": {
520
493
  "description": "The last items from the Array or String.",
521
494
  "type": {
522
- "type": "Union",
523
- "types": [
524
- {
525
- "type": "String"
526
- },
527
- {
528
- "type": "Array"
529
- }
530
- ]
495
+ "type": "Array \\| String"
531
496
  }
532
497
  }
533
498
  },
@@ -610,17 +575,9 @@
610
575
  "type": "value",
611
576
  "value": null
612
577
  },
613
- "description": "Input array",
578
+ "description": "The input value.",
614
579
  "type": {
615
- "type": "Union",
616
- "types": [
617
- {
618
- "type": "String"
619
- },
620
- {
621
- "type": "Array"
622
- }
623
- ]
580
+ "type": "Array \\| String"
624
581
  }
625
582
  },
626
583
  {
@@ -638,15 +595,7 @@
638
595
  "output": {
639
596
  "description": "A copy of the list without the last item(s).",
640
597
  "type": {
641
- "type": "Union",
642
- "types": [
643
- {
644
- "type": "String"
645
- },
646
- {
647
- "type": "Array"
648
- }
649
- ]
598
+ "type": "Array \\| String"
650
599
  }
651
600
  }
652
601
  },
@@ -662,15 +611,7 @@
662
611
  },
663
612
  "description": "Input Array or String.",
664
613
  "type": {
665
- "type": "Union",
666
- "types": [
667
- {
668
- "type": "String"
669
- },
670
- {
671
- "type": "Array"
672
- }
673
- ]
614
+ "type": "Array \\| String"
674
615
  }
675
616
  },
676
617
  {
@@ -688,15 +629,7 @@
688
629
  "output": {
689
630
  "description": "The first items from the Array or String.",
690
631
  "type": {
691
- "type": "Union",
692
- "types": [
693
- {
694
- "type": "String"
695
- },
696
- {
697
- "type": "Array"
698
- }
699
- ]
632
+ "type": "Array \\| String"
700
633
  }
701
634
  }
702
635
  },
@@ -739,18 +672,7 @@
739
672
  },
740
673
  "description": "The collection to get the size of.",
741
674
  "type": {
742
- "type": "Union",
743
- "types": [
744
- {
745
- "type": "String"
746
- },
747
- {
748
- "type": "Array"
749
- },
750
- {
751
- "type": "Object"
752
- }
753
- ]
675
+ "type": "Array \\| Object \\| String"
754
676
  }
755
677
  }
756
678
  ],
@@ -1033,36 +955,14 @@
1033
955
  "value": ""
1034
956
  },
1035
957
  "type": {
1036
- "type": "Union",
1037
- "types": [
1038
- {
1039
- "type": "String"
1040
- },
1041
- {
1042
- "type": "Array",
1043
- "ofType": {
1044
- "type": "Any"
1045
- }
1046
- }
1047
- ]
958
+ "type": "Array \\| String"
1048
959
  }
1049
960
  }
1050
961
  ],
1051
962
  "variableArguments": true,
1052
963
  "output": {
1053
964
  "type": {
1054
- "type": "Union",
1055
- "types": [
1056
- {
1057
- "type": "String"
1058
- },
1059
- {
1060
- "type": "Array",
1061
- "ofType": {
1062
- "type": "Any"
1063
- }
1064
- }
1065
- ]
965
+ "type": "Array \\| String"
1066
966
  },
1067
967
  "description": "Returns a String or Array containing all the specified input values."
1068
968
  }
@@ -1477,15 +1377,7 @@
1477
1377
  },
1478
1378
  "description": "The Array or Object of items to be reduced.",
1479
1379
  "type": {
1480
- "type": "Union",
1481
- "types": [
1482
- {
1483
- "type": "Array"
1484
- },
1485
- {
1486
- "type": "Object"
1487
- }
1488
- ]
1380
+ "type": "Array \\| Object"
1489
1381
  }
1490
1382
  },
1491
1383
  {
@@ -1841,17 +1733,9 @@
1841
1733
  "type": "value",
1842
1734
  "value": ""
1843
1735
  },
1844
- "description": "The Array or String to search.",
1736
+ "description": "The value to search.",
1845
1737
  "type": {
1846
- "type": "Union",
1847
- "types": [
1848
- {
1849
- "type": "String"
1850
- },
1851
- {
1852
- "type": "Array"
1853
- }
1854
- ]
1738
+ "type": "Array \\| String"
1855
1739
  }
1856
1740
  },
1857
1741
  {
@@ -1941,17 +1825,9 @@
1941
1825
  "type": "value",
1942
1826
  "value": ""
1943
1827
  },
1944
- "description": "The Array or String to search.",
1828
+ "description": "The value to search.",
1945
1829
  "type": {
1946
- "type": "Union",
1947
- "types": [
1948
- {
1949
- "type": "String"
1950
- },
1951
- {
1952
- "type": "Array"
1953
- }
1954
- ]
1830
+ "type": "Array \\| String"
1955
1831
  }
1956
1832
  },
1957
1833
  {
@@ -2349,7 +2225,7 @@
2349
2225
  "name": "Locale(s)",
2350
2226
  "description": "Optional locale to use for formatting the Date, e.g. \"en\" or \"fr\". Multiple locales can be provided (as an Array of Strings) to provide a fallback locale. The default value is the runtime's locale.",
2351
2227
  "type": {
2352
- "type": "String | Array"
2228
+ "type": "Array \\| String"
2353
2229
  },
2354
2230
  "formula": {
2355
2231
  "type": "value",
@@ -2525,18 +2401,7 @@
2525
2401
  },
2526
2402
  "description": "The Object, Array or String you want to extract an item from.",
2527
2403
  "type": {
2528
- "type": "Union",
2529
- "types": [
2530
- {
2531
- "type": "Object"
2532
- },
2533
- {
2534
- "type": "Array"
2535
- },
2536
- {
2537
- "type": "String"
2538
- }
2539
- ]
2404
+ "type": "Array \\| Object \\| String"
2540
2405
  }
2541
2406
  },
2542
2407
  {
@@ -2547,21 +2412,7 @@
2547
2412
  },
2548
2413
  "description": "The Path can be either a Number, a String, or an Array.",
2549
2414
  "type": {
2550
- "type": "Union",
2551
- "types": [
2552
- {
2553
- "type": "Array",
2554
- "ofType": {
2555
- "type": "String"
2556
- }
2557
- },
2558
- {
2559
- "type": "String"
2560
- },
2561
- {
2562
- "type": "Number"
2563
- }
2564
- ]
2415
+ "type": "Array<String> \\| Number \\| String"
2565
2416
  }
2566
2417
  }
2567
2418
  ],
@@ -2665,32 +2516,16 @@
2665
2516
  "type": "value",
2666
2517
  "value": null
2667
2518
  },
2668
- "description": "Input Array or String.",
2519
+ "description": "The input value.",
2669
2520
  "type": {
2670
- "type": "Union",
2671
- "types": [
2672
- {
2673
- "type": "String"
2674
- },
2675
- {
2676
- "type": "Array"
2677
- }
2678
- ]
2521
+ "type": "Array \\| String"
2679
2522
  }
2680
2523
  }
2681
2524
  ],
2682
2525
  "output": {
2683
2526
  "description": "The shuffled Array or String.",
2684
2527
  "type": {
2685
- "type": "Union",
2686
- "types": [
2687
- {
2688
- "type": "String"
2689
- },
2690
- {
2691
- "type": "Array"
2692
- }
2693
- ]
2528
+ "type": "Array \\| String"
2694
2529
  }
2695
2530
  }
2696
2531
  },
@@ -2775,17 +2610,9 @@
2775
2610
  "type": "value",
2776
2611
  "value": ""
2777
2612
  },
2778
- "description": "The Array to search.",
2613
+ "description": "The value to search.",
2779
2614
  "type": {
2780
- "type": "Union",
2781
- "types": [
2782
- {
2783
- "type": "String"
2784
- },
2785
- {
2786
- "type": "Array"
2787
- }
2788
- ]
2615
+ "type": "Array \\| String"
2789
2616
  }
2790
2617
  },
2791
2618
  {
@@ -3004,17 +2831,9 @@
3004
2831
  "type": "value",
3005
2832
  "value": null
3006
2833
  },
3007
- "description": "Input array",
2834
+ "description": "The input value.",
3008
2835
  "type": {
3009
- "type": "Union",
3010
- "types": [
3011
- {
3012
- "type": "String"
3013
- },
3014
- {
3015
- "type": "Array"
3016
- }
3017
- ]
2836
+ "type": "Array \\| String"
3018
2837
  }
3019
2838
  },
3020
2839
  {
@@ -3032,15 +2851,7 @@
3032
2851
  "output": {
3033
2852
  "description": "A copy of the list without the first items.",
3034
2853
  "type": {
3035
- "type": "Union",
3036
- "types": [
3037
- {
3038
- "type": "String"
3039
- },
3040
- {
3041
- "type": "Array"
3042
- }
3043
- ]
2854
+ "type": "Array \\| String"
3044
2855
  }
3045
2856
  }
3046
2857
  },
package/package.json CHANGED
@@ -5,10 +5,10 @@
5
5
  "homepage": "https://github.com/nordcraftengine/nordcraft",
6
6
  "dependencies": {
7
7
  "fast-deep-equal": "3.1.3",
8
- "@nordcraft/core": "1.0.11"
8
+ "@nordcraft/core": "1.0.13"
9
9
  },
10
10
  "devDependencies": {
11
- "@types/node": "22.15.17"
11
+ "@types/node": "22.15.19"
12
12
  },
13
13
  "scripts": {
14
14
  "build": "bun ./bin/generate.js && tsc --project tsconfig.build.json",
@@ -17,5 +17,5 @@
17
17
  "typecheck:watch": "tsc --noEmit -w"
18
18
  },
19
19
  "files": ["dist"],
20
- "version": "1.0.11"
20
+ "version": "1.0.13"
21
21
  }