@genesislcap/foundation-utils 15.46.6-alpha-606571609.0 → 15.48.0

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.
@@ -71,14 +71,6 @@
71
71
  "package": "./error"
72
72
  }
73
73
  },
74
- {
75
- "kind": "js",
76
- "name": "*",
77
- "declaration": {
78
- "name": "*",
79
- "package": "./error-monitoring"
80
- }
81
- },
82
74
  {
83
75
  "kind": "js",
84
76
  "name": "*",
@@ -658,44 +650,6 @@
658
650
  }
659
651
  ]
660
652
  },
661
- {
662
- "kind": "javascript-module",
663
- "path": "src/directives/index.ts",
664
- "declarations": [],
665
- "exports": [
666
- {
667
- "kind": "js",
668
- "name": "*",
669
- "declaration": {
670
- "name": "*",
671
- "package": "./sync"
672
- }
673
- },
674
- {
675
- "kind": "js",
676
- "name": "*",
677
- "declaration": {
678
- "name": "*",
679
- "package": "./when-else"
680
- }
681
- }
682
- ]
683
- },
684
- {
685
- "kind": "javascript-module",
686
- "path": "src/encoding/index.ts",
687
- "declarations": [],
688
- "exports": [
689
- {
690
- "kind": "js",
691
- "name": "*",
692
- "declaration": {
693
- "name": "*",
694
- "package": "./base64"
695
- }
696
- }
697
- ]
698
- },
699
653
  {
700
654
  "kind": "javascript-module",
701
655
  "path": "src/decorators/index.ts",
@@ -751,7 +705,7 @@
751
705
  },
752
706
  {
753
707
  "kind": "javascript-module",
754
- "path": "src/env/index.ts",
708
+ "path": "src/directives/index.ts",
755
709
  "declarations": [],
756
710
  "exports": [
757
711
  {
@@ -759,7 +713,7 @@
759
713
  "name": "*",
760
714
  "declaration": {
761
715
  "name": "*",
762
- "package": "./is-dev"
716
+ "package": "./sync"
763
717
  }
764
718
  },
765
719
  {
@@ -767,100 +721,67 @@
767
721
  "name": "*",
768
722
  "declaration": {
769
723
  "name": "*",
770
- "package": "./runtime-config"
724
+ "package": "./when-else"
771
725
  }
772
- },
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "kind": "javascript-module",
731
+ "path": "src/encoding/index.ts",
732
+ "declarations": [],
733
+ "exports": [
773
734
  {
774
735
  "kind": "js",
775
736
  "name": "*",
776
737
  "declaration": {
777
738
  "name": "*",
778
- "package": "./variables"
739
+ "package": "./base64"
779
740
  }
780
741
  }
781
742
  ]
782
743
  },
783
744
  {
784
745
  "kind": "javascript-module",
785
- "path": "src/env/is-dev.ts",
786
- "declarations": [
787
- {
788
- "kind": "function",
789
- "name": "isDev",
790
- "description": "Determines if the current environment is a development environment.",
791
- "privacy": "public"
792
- }
793
- ],
746
+ "path": "src/env/index.ts",
747
+ "declarations": [],
794
748
  "exports": [
795
749
  {
796
750
  "kind": "js",
797
- "name": "isDev",
751
+ "name": "*",
798
752
  "declaration": {
799
- "name": "isDev",
800
- "module": "src/env/is-dev.ts"
753
+ "name": "*",
754
+ "package": "./is-dev"
755
+ }
756
+ },
757
+ {
758
+ "kind": "js",
759
+ "name": "*",
760
+ "declaration": {
761
+ "name": "*",
762
+ "package": "./variables"
801
763
  }
802
764
  }
803
765
  ]
804
766
  },
805
767
  {
806
768
  "kind": "javascript-module",
807
- "path": "src/env/runtime-config.ts",
769
+ "path": "src/env/is-dev.ts",
808
770
  "declarations": [
809
- {
810
- "kind": "variable",
811
- "name": "DEFAULT_RUNTIME_CONFIG_URL",
812
- "type": {
813
- "text": "string"
814
- },
815
- "default": "'/env.json'",
816
- "description": "The default URL fetchRuntimeConfig reads from.",
817
- "privacy": "public"
818
- },
819
771
  {
820
772
  "kind": "function",
821
- "name": "fetchRuntimeConfig",
822
- "return": {
823
- "type": {
824
- "text": ""
825
- }
826
- },
827
- "parameters": [
828
- {
829
- "name": "url",
830
- "default": "DEFAULT_RUNTIME_CONFIG_URL",
831
- "type": {
832
- "text": "string"
833
- },
834
- "description": "The config URL. Defaults to {@link DEFAULT_RUNTIME_CONFIG_URL}.\n * "
835
- },
836
- {
837
- "name": "fallback",
838
- "default": "{}",
839
- "type": {
840
- "text": "Partial<T>"
841
- },
842
- "description": "Values to use when the config can't be read, and defaults for keys it omits."
843
- }
844
- ],
845
- "description": "Fetches per-deployment JSON config, such as an error-monitoring DSN or environment name, that\ncan't be baked in at build time because the same image is promoted across environments.",
773
+ "name": "isDev",
774
+ "description": "Determines if the current environment is a development environment.",
846
775
  "privacy": "public"
847
776
  }
848
777
  ],
849
778
  "exports": [
850
779
  {
851
780
  "kind": "js",
852
- "name": "DEFAULT_RUNTIME_CONFIG_URL",
853
- "declaration": {
854
- "name": "DEFAULT_RUNTIME_CONFIG_URL",
855
- "module": "src/env/runtime-config.ts"
856
- }
857
- },
858
- {
859
- "kind": "js",
860
- "name": "fetchRuntimeConfig",
781
+ "name": "isDev",
861
782
  "declaration": {
862
- "name": "fetchRuntimeConfig",
863
- "module": "src/env/runtime-config.ts"
783
+ "name": "isDev",
784
+ "module": "src/env/is-dev.ts"
864
785
  }
865
786
  }
866
787
  ]
@@ -1518,175 +1439,6 @@
1518
1439
  }
1519
1440
  ]
1520
1441
  },
1521
- {
1522
- "kind": "javascript-module",
1523
- "path": "src/error-monitoring/error-monitoring.ts",
1524
- "declarations": [
1525
- {
1526
- "kind": "function",
1527
- "name": "createErrorMonitoringReporter",
1528
- "return": {
1529
- "type": {
1530
- "text": "ConsolaReporter"
1531
- }
1532
- },
1533
- "parameters": [
1534
- {
1535
- "name": "client",
1536
- "type": {
1537
- "text": "ErrorMonitoringClient"
1538
- },
1539
- "description": "The monitoring client."
1540
- },
1541
- {
1542
- "name": "{ breadcrumbs = true }",
1543
- "default": "{}",
1544
- "type": {
1545
- "text": "Pick<ErrorMonitoringOptions, 'breadcrumbs'>"
1546
- }
1547
- },
1548
- {
1549
- "description": "Set `breadcrumbs: false` to skip breadcrumbs.",
1550
- "name": "options"
1551
- }
1552
- ],
1553
- "description": "Creates a global log reporter that sends foundation logger output to a monitoring client.",
1554
- "privacy": "public"
1555
- },
1556
- {
1557
- "kind": "function",
1558
- "name": "isFoundationLoggerConsoleBreadcrumb",
1559
- "return": {
1560
- "type": {
1561
- "text": "boolean"
1562
- }
1563
- },
1564
- "parameters": [
1565
- {
1566
- "name": "breadcrumb",
1567
- "type": {
1568
- "text": "ErrorMonitoringBreadcrumb"
1569
- }
1570
- }
1571
- ],
1572
- "description": "True for a console breadcrumb written by a foundation logger.",
1573
- "privacy": "public"
1574
- },
1575
- {
1576
- "kind": "function",
1577
- "name": "setupErrorMonitoring",
1578
- "return": {
1579
- "type": {
1580
- "text": ""
1581
- }
1582
- },
1583
- "parameters": [
1584
- {
1585
- "name": "client",
1586
- "type": {
1587
- "text": "ErrorMonitoringClient"
1588
- },
1589
- "description": "The monitoring SDK (for example the Sentry namespace) or an adapter for one."
1590
- },
1591
- {
1592
- "name": "options",
1593
- "default": "{}",
1594
- "type": {
1595
- "text": "ErrorMonitoringOptions"
1596
- },
1597
- "description": "Config location and keys, and extra init options."
1598
- }
1599
- ],
1600
- "description": "Sets up error monitoring for a Genesis app in one call.",
1601
- "privacy": "public"
1602
- }
1603
- ],
1604
- "exports": [
1605
- {
1606
- "kind": "js",
1607
- "name": "createErrorMonitoringReporter",
1608
- "declaration": {
1609
- "name": "createErrorMonitoringReporter",
1610
- "module": "src/error-monitoring/error-monitoring.ts"
1611
- }
1612
- },
1613
- {
1614
- "kind": "js",
1615
- "name": "isFoundationLoggerConsoleBreadcrumb",
1616
- "declaration": {
1617
- "name": "isFoundationLoggerConsoleBreadcrumb",
1618
- "module": "src/error-monitoring/error-monitoring.ts"
1619
- }
1620
- },
1621
- {
1622
- "kind": "js",
1623
- "name": "setupErrorMonitoring",
1624
- "declaration": {
1625
- "name": "setupErrorMonitoring",
1626
- "module": "src/error-monitoring/error-monitoring.ts"
1627
- }
1628
- }
1629
- ]
1630
- },
1631
- {
1632
- "kind": "javascript-module",
1633
- "path": "src/error-monitoring/format-log-args.ts",
1634
- "declarations": [
1635
- {
1636
- "kind": "function",
1637
- "name": "formatLogArgs",
1638
- "return": {
1639
- "type": {
1640
- "text": "string"
1641
- }
1642
- },
1643
- "parameters": [
1644
- {
1645
- "name": "args",
1646
- "type": {
1647
- "text": "readonly unknown[]"
1648
- },
1649
- "description": "The arguments passed to the logger."
1650
- }
1651
- ],
1652
- "description": "Builds a readable one-line message from a log call's arguments.",
1653
- "privacy": "public"
1654
- }
1655
- ],
1656
- "exports": [
1657
- {
1658
- "kind": "js",
1659
- "name": "formatLogArgs",
1660
- "declaration": {
1661
- "name": "formatLogArgs",
1662
- "module": "src/error-monitoring/format-log-args.ts"
1663
- }
1664
- }
1665
- ]
1666
- },
1667
- {
1668
- "kind": "javascript-module",
1669
- "path": "src/error-monitoring/index.ts",
1670
- "declarations": [],
1671
- "exports": [
1672
- {
1673
- "kind": "js",
1674
- "name": "*",
1675
- "declaration": {
1676
- "name": "*",
1677
- "package": "./error-monitoring"
1678
- }
1679
- },
1680
- {
1681
- "kind": "js",
1682
- "name": "*",
1683
- "declaration": {
1684
- "name": "*",
1685
- "package": "./format-log-args"
1686
- }
1687
- }
1688
- ]
1689
- },
1690
1442
  {
1691
1443
  "kind": "javascript-module",
1692
1444
  "path": "src/feature-flags/featureFlags.ts",
@@ -1,4 +1,3 @@
1
1
  export * from './is-dev';
2
- export * from './runtime-config';
3
2
  export * from './variables';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/env/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/env/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -6,7 +6,6 @@ export * from './directives';
6
6
  export * from './encoding';
7
7
  export * from './env';
8
8
  export * from './error';
9
- export * from './error-monitoring';
10
9
  export * from './feature-flags';
11
10
  export * from './formatters';
12
11
  export * from './logger';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
@@ -1,3 +1,2 @@
1
1
  export * from './is-dev';
2
- export * from './runtime-config';
3
2
  export * from './variables';
package/dist/esm/index.js CHANGED
@@ -6,7 +6,6 @@ export * from './directives';
6
6
  export * from './encoding';
7
7
  export * from './env';
8
8
  export * from './error';
9
- export * from './error-monitoring';
10
9
  export * from './feature-flags';
11
10
  export * from './formatters';
12
11
  export * from './logger';