@ms-cloudpack/api-server 0.13.3 → 0.13.4

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.
@@ -599,6 +599,7 @@ export declare function createAppRouter(): {
599
599
  outputPath?: string | undefined;
600
600
  bundlerType?: string | undefined;
601
601
  disableSourceMaps?: boolean | undefined;
602
+ enqueueDependencies?: boolean | undefined;
602
603
  shouldRerun?: boolean | undefined;
603
604
  shouldWatch?: boolean | undefined;
604
605
  shouldForce?: boolean | undefined;
@@ -609,111 +610,230 @@ export declare function createAppRouter(): {
609
610
  outputPath?: string | undefined;
610
611
  bundlerType?: string | undefined;
611
612
  disableSourceMaps?: boolean | undefined;
613
+ enqueueDependencies?: boolean | undefined;
612
614
  shouldRerun?: boolean | undefined;
613
615
  shouldWatch?: boolean | undefined;
614
616
  shouldForce?: boolean | undefined;
615
617
  };
616
618
  _output_in: {
617
- bundlerName?: string | undefined;
618
- inputPath?: string | undefined;
619
- outputPath?: string | undefined;
620
- entries?: Record<string, string> | undefined;
621
- dependencies?: string[] | undefined;
622
- hash?: string | undefined;
623
- outputFiles?: {
619
+ dependencies: Promise<{
620
+ name: string;
624
621
  outputPath: string;
625
- entryPoint?: string | undefined;
626
- exports?: string[] | undefined;
627
- }[] | undefined;
628
- errors?: {
629
- text: string;
630
- pluginName?: string | undefined;
631
- type?: string | undefined;
632
- location?: {
633
- line: number;
634
- column: number;
635
- file: string;
636
- } | undefined;
637
- notes?: {
638
- text?: string | undefined;
622
+ version: string;
623
+ isExternal: boolean;
624
+ bundlerName?: string | undefined;
625
+ inputPath?: string | undefined;
626
+ entries?: Record<string, string> | undefined;
627
+ dependencies?: string[] | undefined;
628
+ hash?: string | undefined;
629
+ outputFiles?: {
630
+ outputPath: string;
631
+ entryPoint?: string | undefined;
632
+ exports?: string[] | undefined;
633
+ }[] | undefined;
634
+ errors?: {
635
+ text: string;
636
+ pluginName?: string | undefined;
637
+ type?: string | undefined;
639
638
  location?: {
640
639
  line: number;
641
640
  column: number;
642
641
  file: string;
643
642
  } | undefined;
643
+ notes?: {
644
+ text?: string | undefined;
645
+ location?: {
646
+ line: number;
647
+ column: number;
648
+ file: string;
649
+ } | undefined;
650
+ }[] | undefined;
644
651
  }[] | undefined;
645
- }[] | undefined;
646
- warnings?: {
647
- text: string;
648
- pluginName?: string | undefined;
649
- type?: string | undefined;
650
- location?: {
651
- line: number;
652
- column: number;
653
- file: string;
654
- } | undefined;
655
- notes?: {
656
- text?: string | undefined;
652
+ warnings?: {
653
+ text: string;
654
+ pluginName?: string | undefined;
655
+ type?: string | undefined;
657
656
  location?: {
658
657
  line: number;
659
658
  column: number;
660
659
  file: string;
661
660
  } | undefined;
661
+ notes?: {
662
+ text?: string | undefined;
663
+ location?: {
664
+ line: number;
665
+ column: number;
666
+ file: string;
667
+ } | undefined;
668
+ }[] | undefined;
662
669
  }[] | undefined;
663
- }[] | undefined;
664
- rawInput?: Record<string, unknown> | undefined;
665
- rawOutput?: Record<string, unknown> | undefined;
670
+ rawInput?: Record<string, unknown> | undefined;
671
+ rawOutput?: Record<string, unknown> | undefined;
672
+ }[]>;
673
+ result: {
674
+ name: string;
675
+ outputPath: string;
676
+ version: string;
677
+ isExternal: boolean;
678
+ bundlerName?: string | undefined;
679
+ inputPath?: string | undefined;
680
+ entries?: Record<string, string> | undefined;
681
+ dependencies?: string[] | undefined;
682
+ hash?: string | undefined;
683
+ outputFiles?: {
684
+ outputPath: string;
685
+ entryPoint?: string | undefined;
686
+ exports?: string[] | undefined;
687
+ }[] | undefined;
688
+ errors?: {
689
+ text: string;
690
+ pluginName?: string | undefined;
691
+ type?: string | undefined;
692
+ location?: {
693
+ line: number;
694
+ column: number;
695
+ file: string;
696
+ } | undefined;
697
+ notes?: {
698
+ text?: string | undefined;
699
+ location?: {
700
+ line: number;
701
+ column: number;
702
+ file: string;
703
+ } | undefined;
704
+ }[] | undefined;
705
+ }[] | undefined;
706
+ warnings?: {
707
+ text: string;
708
+ pluginName?: string | undefined;
709
+ type?: string | undefined;
710
+ location?: {
711
+ line: number;
712
+ column: number;
713
+ file: string;
714
+ } | undefined;
715
+ notes?: {
716
+ text?: string | undefined;
717
+ location?: {
718
+ line: number;
719
+ column: number;
720
+ file: string;
721
+ } | undefined;
722
+ }[] | undefined;
723
+ }[] | undefined;
724
+ rawInput?: Record<string, unknown> | undefined;
725
+ rawOutput?: Record<string, unknown> | undefined;
726
+ };
666
727
  };
667
728
  _output_out: {
668
- bundlerName?: string | undefined;
669
- inputPath?: string | undefined;
670
- outputPath?: string | undefined;
671
- entries?: Record<string, string> | undefined;
672
- dependencies?: string[] | undefined;
673
- hash?: string | undefined;
674
- outputFiles?: {
729
+ dependencies: Promise<{
730
+ name: string;
675
731
  outputPath: string;
676
- entryPoint?: string | undefined;
677
- exports?: string[] | undefined;
678
- }[] | undefined;
679
- errors?: {
680
- text: string;
681
- pluginName?: string | undefined;
682
- type?: string | undefined;
683
- location?: {
684
- line: number;
685
- column: number;
686
- file: string;
687
- } | undefined;
688
- notes?: {
689
- text?: string | undefined;
732
+ version: string;
733
+ isExternal: boolean;
734
+ bundlerName?: string | undefined;
735
+ inputPath?: string | undefined;
736
+ entries?: Record<string, string> | undefined;
737
+ dependencies?: string[] | undefined;
738
+ hash?: string | undefined;
739
+ outputFiles?: {
740
+ outputPath: string;
741
+ entryPoint?: string | undefined;
742
+ exports?: string[] | undefined;
743
+ }[] | undefined;
744
+ errors?: {
745
+ text: string;
746
+ pluginName?: string | undefined;
747
+ type?: string | undefined;
690
748
  location?: {
691
749
  line: number;
692
750
  column: number;
693
751
  file: string;
694
752
  } | undefined;
753
+ notes?: {
754
+ text?: string | undefined;
755
+ location?: {
756
+ line: number;
757
+ column: number;
758
+ file: string;
759
+ } | undefined;
760
+ }[] | undefined;
695
761
  }[] | undefined;
696
- }[] | undefined;
697
- warnings?: {
698
- text: string;
699
- pluginName?: string | undefined;
700
- type?: string | undefined;
701
- location?: {
702
- line: number;
703
- column: number;
704
- file: string;
705
- } | undefined;
706
- notes?: {
707
- text?: string | undefined;
762
+ warnings?: {
763
+ text: string;
764
+ pluginName?: string | undefined;
765
+ type?: string | undefined;
708
766
  location?: {
709
767
  line: number;
710
768
  column: number;
711
769
  file: string;
712
770
  } | undefined;
771
+ notes?: {
772
+ text?: string | undefined;
773
+ location?: {
774
+ line: number;
775
+ column: number;
776
+ file: string;
777
+ } | undefined;
778
+ }[] | undefined;
713
779
  }[] | undefined;
714
- }[] | undefined;
715
- rawInput?: Record<string, unknown> | undefined;
716
- rawOutput?: Record<string, unknown> | undefined;
780
+ rawInput?: Record<string, unknown> | undefined;
781
+ rawOutput?: Record<string, unknown> | undefined;
782
+ }[]>;
783
+ result: {
784
+ name: string;
785
+ outputPath: string;
786
+ version: string;
787
+ isExternal: boolean;
788
+ bundlerName?: string | undefined;
789
+ inputPath?: string | undefined;
790
+ entries?: Record<string, string> | undefined;
791
+ dependencies?: string[] | undefined;
792
+ hash?: string | undefined;
793
+ outputFiles?: {
794
+ outputPath: string;
795
+ entryPoint?: string | undefined;
796
+ exports?: string[] | undefined;
797
+ }[] | undefined;
798
+ errors?: {
799
+ text: string;
800
+ pluginName?: string | undefined;
801
+ type?: string | undefined;
802
+ location?: {
803
+ line: number;
804
+ column: number;
805
+ file: string;
806
+ } | undefined;
807
+ notes?: {
808
+ text?: string | undefined;
809
+ location?: {
810
+ line: number;
811
+ column: number;
812
+ file: string;
813
+ } | undefined;
814
+ }[] | undefined;
815
+ }[] | undefined;
816
+ warnings?: {
817
+ text: string;
818
+ pluginName?: string | undefined;
819
+ type?: string | undefined;
820
+ location?: {
821
+ line: number;
822
+ column: number;
823
+ file: string;
824
+ } | undefined;
825
+ notes?: {
826
+ text?: string | undefined;
827
+ location?: {
828
+ line: number;
829
+ column: number;
830
+ file: string;
831
+ } | undefined;
832
+ }[] | undefined;
833
+ }[] | undefined;
834
+ rawInput?: Record<string, unknown> | undefined;
835
+ rawOutput?: Record<string, unknown> | undefined;
836
+ };
717
837
  };
718
838
  }, unknown>;
719
839
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"createAppRouter.d.ts","sourceRoot":"","sources":["../../src/trpc/createAppRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAGzC,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9B;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC"}
1
+ {"version":3,"file":"createAppRouter.d.ts","sourceRoot":"","sources":["../../src/trpc/createAppRouter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,kBAAkB,CAAC;AAGzC,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK9B;AAED,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC"}
@@ -68,59 +68,119 @@ export declare function createCloudpackServer(options: {
68
68
  outputPath?: string | undefined;
69
69
  bundlerType?: string | undefined;
70
70
  disableSourceMaps?: boolean | undefined;
71
+ enqueueDependencies?: boolean | undefined;
71
72
  shouldRerun?: boolean | undefined;
72
73
  shouldWatch?: boolean | undefined;
73
74
  shouldForce?: boolean | undefined;
74
75
  }) => Promise<{
75
- bundlerName?: string | undefined;
76
- inputPath?: string | undefined;
77
- outputPath?: string | undefined;
78
- entries?: Record<string, string> | undefined;
79
- dependencies?: string[] | undefined;
80
- hash?: string | undefined;
81
- outputFiles?: {
76
+ dependencies: Promise<{
77
+ name: string;
82
78
  outputPath: string;
83
- entryPoint?: string | undefined;
84
- exports?: string[] | undefined;
85
- }[] | undefined;
86
- errors?: {
87
- text: string;
88
- pluginName?: string | undefined;
89
- type?: string | undefined;
90
- location?: {
91
- line: number;
92
- column: number;
93
- file: string;
94
- } | undefined;
95
- notes?: {
96
- text?: string | undefined;
79
+ version: string;
80
+ isExternal: boolean;
81
+ bundlerName?: string | undefined;
82
+ inputPath?: string | undefined;
83
+ entries?: Record<string, string> | undefined;
84
+ dependencies?: string[] | undefined;
85
+ hash?: string | undefined;
86
+ outputFiles?: {
87
+ outputPath: string;
88
+ entryPoint?: string | undefined;
89
+ exports?: string[] | undefined;
90
+ }[] | undefined;
91
+ errors?: {
92
+ text: string;
93
+ pluginName?: string | undefined;
94
+ type?: string | undefined;
97
95
  location?: {
98
96
  line: number;
99
97
  column: number;
100
98
  file: string;
101
99
  } | undefined;
100
+ notes?: {
101
+ text?: string | undefined;
102
+ location?: {
103
+ line: number;
104
+ column: number;
105
+ file: string;
106
+ } | undefined;
107
+ }[] | undefined;
102
108
  }[] | undefined;
103
- }[] | undefined;
104
- warnings?: {
105
- text: string;
106
- pluginName?: string | undefined;
107
- type?: string | undefined;
108
- location?: {
109
- line: number;
110
- column: number;
111
- file: string;
112
- } | undefined;
113
- notes?: {
114
- text?: string | undefined;
109
+ warnings?: {
110
+ text: string;
111
+ pluginName?: string | undefined;
112
+ type?: string | undefined;
115
113
  location?: {
116
114
  line: number;
117
115
  column: number;
118
116
  file: string;
119
117
  } | undefined;
118
+ notes?: {
119
+ text?: string | undefined;
120
+ location?: {
121
+ line: number;
122
+ column: number;
123
+ file: string;
124
+ } | undefined;
125
+ }[] | undefined;
120
126
  }[] | undefined;
121
- }[] | undefined;
122
- rawInput?: Record<string, unknown> | undefined;
123
- rawOutput?: Record<string, unknown> | undefined;
127
+ rawInput?: Record<string, unknown> | undefined;
128
+ rawOutput?: Record<string, unknown> | undefined;
129
+ }[]>;
130
+ result: {
131
+ name: string;
132
+ outputPath: string;
133
+ version: string;
134
+ isExternal: boolean;
135
+ bundlerName?: string | undefined;
136
+ inputPath?: string | undefined;
137
+ entries?: Record<string, string> | undefined;
138
+ dependencies?: string[] | undefined;
139
+ hash?: string | undefined;
140
+ outputFiles?: {
141
+ outputPath: string;
142
+ entryPoint?: string | undefined;
143
+ exports?: string[] | undefined;
144
+ }[] | undefined;
145
+ errors?: {
146
+ text: string;
147
+ pluginName?: string | undefined;
148
+ type?: string | undefined;
149
+ location?: {
150
+ line: number;
151
+ column: number;
152
+ file: string;
153
+ } | undefined;
154
+ notes?: {
155
+ text?: string | undefined;
156
+ location?: {
157
+ line: number;
158
+ column: number;
159
+ file: string;
160
+ } | undefined;
161
+ }[] | undefined;
162
+ }[] | undefined;
163
+ warnings?: {
164
+ text: string;
165
+ pluginName?: string | undefined;
166
+ type?: string | undefined;
167
+ location?: {
168
+ line: number;
169
+ column: number;
170
+ file: string;
171
+ } | undefined;
172
+ notes?: {
173
+ text?: string | undefined;
174
+ location?: {
175
+ line: number;
176
+ column: number;
177
+ file: string;
178
+ } | undefined;
179
+ }[] | undefined;
180
+ }[] | undefined;
181
+ rawInput?: Record<string, unknown> | undefined;
182
+ rawOutput?: Record<string, unknown> | undefined;
183
+ };
124
184
  }>;
125
185
  }>;
126
186
  export type CloudpackServer = ReturnType<typeof createCloudpackServer>;
@@ -1 +1 @@
1
- {"version":3,"file":"createCloudpackServer.d.ts","sourceRoot":"","sources":["../../src/trpc/createCloudpackServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCA;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
1
+ {"version":3,"file":"createCloudpackServer.d.ts","sourceRoot":"","sources":["../../src/trpc/createCloudpackServer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAIpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,wBAAsB,qBAAqB,CAAC,OAAO,EAAE;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,uBAAuB,CAAC;CACnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCA;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -7,6 +7,7 @@ export declare function createBundleRequestForPackage(options: {
7
7
  outputPath?: string;
8
8
  bundlerType?: string;
9
9
  disableSourceMaps?: boolean;
10
+ enableFindImports?: boolean;
10
11
  }, context: {
11
12
  config: CloudpackConfig;
12
13
  packages: PackageDefinitionsCache;
@@ -1 +1 @@
1
- {"version":3,"file":"createBundleRequestForPackage.d.ts","sourceRoot":"","sources":["../../src/utilities/createBundleRequestForPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wBAAsB,6BAA6B,CACjD,OAAO,EAAE;IACP,YAAY,EAAE,eAAe,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,EACD,OAAO,EAAE;IACP,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,uBAAuB,CAAC;CACnC,GACA,OAAO,CAAC,aAAa,CAAC,CAoBxB"}
1
+ {"version":3,"file":"createBundleRequestForPackage.d.ts","sourceRoot":"","sources":["../../src/utilities/createBundleRequestForPackage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,wBAAsB,6BAA6B,CACjD,OAAO,EAAE;IACP,YAAY,EAAE,eAAe,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,EACD,OAAO,EAAE;IACP,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,uBAAuB,CAAC;CACnC,GACA,OAAO,CAAC,aAAa,CAAC,CAoBxB"}
@@ -13,7 +13,7 @@ export async function createBundleRequestForPackage(options, context) {
13
13
  outputPath: options.outputPath ?? outputLocation.path,
14
14
  version,
15
15
  disableSourceMaps: options.disableSourceMaps ?? features.disableSourceMaps,
16
- enableFindImports: features.enqueueDependencies,
16
+ enableFindImports: options.enableFindImports ?? features.enqueueDependencies,
17
17
  enableCacheInternalPackages: features.cacheInternalPackages,
18
18
  bundlerType: options.bundlerType,
19
19
  ...context,
@@ -1 +1 @@
1
- {"version":3,"file":"createBundleRequestForPackage.js","sourceRoot":"","sources":["../../src/utilities/createBundleRequestForPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,OAKC,EACD,OAGC;IAED,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;IAC7C,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,MAAM,gBAAgB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAExG,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,IAAI;QACjB,UAAU;QACV,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC,IAAI;QACrD,OAAO;QACP,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,IAAI,QAAQ,CAAC,iBAAiB;QAC1E,iBAAiB,EAAE,QAAQ,CAAC,mBAAmB;QAC/C,2BAA2B,EAAE,QAAQ,CAAC,qBAAqB;QAC3D,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,OAAO;KACX,CAAC;AACJ,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/config';\nimport type { ResolveMapEntry } from '@ms-cloudpack/package-utilities';\nimport type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { getBundleDetails } from '../utilities/getBundleDetails.js';\nimport type { BundleRequest } from '../types/BundleRequest.js';\n\nexport async function createBundleRequestForPackage(\n options: {\n packageEntry: ResolveMapEntry;\n outputPath?: string;\n bundlerType?: string;\n disableSourceMaps?: boolean;\n },\n context: {\n config: CloudpackConfig;\n packages: PackageDefinitionsCache;\n },\n): Promise<BundleRequest> {\n const { packageEntry } = options;\n const { config } = context;\n const { features = {} } = config;\n const { path, version, name } = packageEntry;\n const { bundleId, isExternal, outputLocation } = await getBundleDetails({ packagePath: path }, context);\n\n return {\n id: bundleId,\n packagePath: path,\n packageName: name,\n isExternal,\n outputPath: options.outputPath ?? outputLocation.path,\n version,\n disableSourceMaps: options.disableSourceMaps ?? features.disableSourceMaps,\n enableFindImports: features.enqueueDependencies,\n enableCacheInternalPackages: features.cacheInternalPackages,\n bundlerType: options.bundlerType,\n ...context,\n };\n}\n"]}
1
+ {"version":3,"file":"createBundleRequestForPackage.js","sourceRoot":"","sources":["../../src/utilities/createBundleRequestForPackage.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAGpE,MAAM,CAAC,KAAK,UAAU,6BAA6B,CACjD,OAMC,EACD,OAGC;IAED,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC;IACjC,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IACjC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,YAAY,CAAC;IAC7C,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,MAAM,gBAAgB,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAExG,OAAO;QACL,EAAE,EAAE,QAAQ;QACZ,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,IAAI;QACjB,UAAU;QACV,UAAU,EAAE,OAAO,CAAC,UAAU,IAAI,cAAc,CAAC,IAAI;QACrD,OAAO;QACP,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,IAAI,QAAQ,CAAC,iBAAiB;QAC1E,iBAAiB,EAAE,OAAO,CAAC,iBAAiB,IAAI,QAAQ,CAAC,mBAAmB;QAC5E,2BAA2B,EAAE,QAAQ,CAAC,qBAAqB;QAC3D,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,GAAG,OAAO;KACX,CAAC;AACJ,CAAC","sourcesContent":["import type { CloudpackConfig } from '@ms-cloudpack/config';\nimport type { ResolveMapEntry } from '@ms-cloudpack/package-utilities';\nimport type { PackageDefinitionsCache } from '@ms-cloudpack/bundler-types';\nimport { getBundleDetails } from '../utilities/getBundleDetails.js';\nimport type { BundleRequest } from '../types/BundleRequest.js';\n\nexport async function createBundleRequestForPackage(\n options: {\n packageEntry: ResolveMapEntry;\n outputPath?: string;\n bundlerType?: string;\n disableSourceMaps?: boolean;\n enableFindImports?: boolean;\n },\n context: {\n config: CloudpackConfig;\n packages: PackageDefinitionsCache;\n },\n): Promise<BundleRequest> {\n const { packageEntry } = options;\n const { config } = context;\n const { features = {} } = config;\n const { path, version, name } = packageEntry;\n const { bundleId, isExternal, outputLocation } = await getBundleDetails({ packagePath: path }, context);\n\n return {\n id: bundleId,\n packagePath: path,\n packageName: name,\n isExternal,\n outputPath: options.outputPath ?? outputLocation.path,\n version,\n disableSourceMaps: options.disableSourceMaps ?? features.disableSourceMaps,\n enableFindImports: options.enableFindImports ?? features.enqueueDependencies,\n enableCacheInternalPackages: features.cacheInternalPackages,\n bundlerType: options.bundlerType,\n ...context,\n };\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Ensures that the given optional fields are present on the object. Throws an error if they are not.
3
+ * @param input - The object to validate.
4
+ * @param fields - The names of the fields to validate.
5
+ * @returns - The object with the fields.
6
+ */
7
+ export declare function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, ...fields: TKey[]): Omit<T, TKey> & Required<Pick<T, TKey>>;
8
+ //# sourceMappingURL=ensureFieldsExist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureFieldsExist.d.ts","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,SAAS,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,2CAYhH"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Ensures that the given optional fields are present on the object. Throws an error if they are not.
3
+ * @param input - The object to validate.
4
+ * @param fields - The names of the fields to validate.
5
+ * @returns - The object with the fields.
6
+ */
7
+ export function ensureFieldsExist(input, ...fields) {
8
+ if (!input) {
9
+ throw new Error('Input is missing.');
10
+ }
11
+ for (const field of fields) {
12
+ if (!input[field]) {
13
+ throw new Error(`${field} is missing.`);
14
+ }
15
+ }
16
+ return input;
17
+ }
18
+ //# sourceMappingURL=ensureFieldsExist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureFieldsExist.js","sourceRoot":"","sources":["../../src/utilities/ensureFieldsExist.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAyC,KAAoB,EAAE,GAAG,MAAc;IAC/G,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;KACtC;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,GAAG,KAAe,cAAc,CAAC,CAAC;SACnD;KACF;IAED,OAAO,KAAgD,CAAC;AAC1D,CAAC","sourcesContent":["/**\n * Ensures that the given optional fields are present on the object. Throws an error if they are not.\n * @param input - The object to validate.\n * @param fields - The names of the fields to validate.\n * @returns - The object with the fields.\n */\nexport function ensureFieldsExist<T extends object, TKey extends keyof T>(input: T | undefined, ...fields: TKey[]) {\n if (!input) {\n throw new Error('Input is missing.');\n }\n\n for (const field of fields) {\n if (!input[field]) {\n throw new Error(`${field as string} is missing.`);\n }\n }\n\n return input as Omit<T, TKey> & Required<Pick<T, TKey>>;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/api-server",
3
- "version": "0.13.3",
3
+ "version": "0.13.4",
4
4
  "description": "An implementation of the API server that does interacts with a task scheduler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,6 +14,10 @@
14
14
  "./client": {
15
15
  "types": "./lib/client.d.ts",
16
16
  "import": "./lib/client.js"
17
+ },
18
+ "./apis": {
19
+ "types": "./lib/apis/index.d.ts",
20
+ "import": "./lib/apis/index.js"
17
21
  }
18
22
  },
19
23
  "dependencies": {
@@ -33,7 +37,7 @@
33
37
  "@ms-cloudpack/path-utilities": "^2.3.2",
34
38
  "@ms-cloudpack/task-reporter": "^0.7.2",
35
39
  "@ms-cloudpack/telemetry": "^0.3.6",
36
- "@ms-cloudpack/remote-cache": "^0.1.2",
40
+ "@ms-cloudpack/remote-cache": "^0.1.3",
37
41
  "@trpc/client": "^10.21.1",
38
42
  "@trpc/server": "^10.21.1",
39
43
  "chokidar": "^3.5.3",