@rushstack/rush-http-build-cache-plugin 5.109.1 → 5.109.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.
Files changed (31) hide show
  1. package/.rush/temp/operation/_phase_build/all.log +2 -2
  2. package/.rush/temp/operation/_phase_build/state.json +1 -1
  3. package/.rush/temp/operation/_phase_test/all.log +3 -3
  4. package/.rush/temp/operation/_phase_test/state.json +1 -1
  5. package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_build-7d401680bf3bf0eed7a5fd5643898d15e32a9b69.tar.log → rushstack+rush-http-build-cache-plugin-_phase_build-a54fa33e112a2bf1d9a56a3bbddaf090e3f76881.tar.log} +2 -2
  6. package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_build-7d401680bf3bf0eed7a5fd5643898d15e32a9b69.untar.log → rushstack+rush-http-build-cache-plugin-_phase_build-a54fa33e112a2bf1d9a56a3bbddaf090e3f76881.untar.log} +2 -2
  7. package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_test-feaedf2fd3e8683d195ad4842d74adbfdde78aee.tar.log → rushstack+rush-http-build-cache-plugin-_phase_test-ea1f6e9f8a47341e02cdcd9e55a9da439c6424a7.tar.log} +2 -2
  8. package/.rush/temp/{rushstack+rush-http-build-cache-plugin-_phase_test-feaedf2fd3e8683d195ad4842d74adbfdde78aee.untar.log → rushstack+rush-http-build-cache-plugin-_phase_test-ea1f6e9f8a47341e02cdcd9e55a9da439c6424a7.untar.log} +2 -2
  9. package/coverage/HttpBuildCacheProvider.ts.html +12 -12
  10. package/coverage/RushHttpBuildCachePlugin.ts.html +2 -2
  11. package/coverage/cobertura-coverage.xml +39 -39
  12. package/coverage/index.html +10 -10
  13. package/coverage/index.ts.html +1 -1
  14. package/coverage/junit.xml +4 -4
  15. package/lib/HttpBuildCacheProvider.d.ts +1 -2
  16. package/lib/HttpBuildCacheProvider.d.ts.map +1 -1
  17. package/lib/HttpBuildCacheProvider.js +4 -3
  18. package/lib/HttpBuildCacheProvider.js.map +1 -1
  19. package/lib/RushHttpBuildCachePlugin.js +1 -1
  20. package/lib/RushHttpBuildCachePlugin.js.map +1 -1
  21. package/lib/test/HttpBuildCacheProvider.test.js +1 -1
  22. package/lib/test/HttpBuildCacheProvider.test.js.map +1 -1
  23. package/package.json +3 -3
  24. package/rush-logs/rush-http-build-cache-plugin._phase_build.cache.log +3 -2
  25. package/rush-logs/rush-http-build-cache-plugin._phase_build.log +2 -2
  26. package/rush-logs/rush-http-build-cache-plugin._phase_test.cache.log +4 -3
  27. package/rush-logs/rush-http-build-cache-plugin._phase_test.log +3 -3
  28. package/src/HttpBuildCacheProvider.ts +5 -5
  29. package/src/RushHttpBuildCachePlugin.ts +1 -1
  30. package/src/test/HttpBuildCacheProvider.test.ts +3 -3
  31. package/temp/build/typescript/ts_l9Fw4VUO.json +1 -1
@@ -2,5 +2,5 @@ Invoking: heft run --only build -- --clean --production
2
2
  ---- build started ----
3
3
  [build:typescript] Using TypeScript version 5.0.4
4
4
  [build:typescript] Copied 1 folder or file and linked 0 files
5
- ---- build finished (7.587s) ----
6
- -------------------- Finished (7.593s) --------------------
5
+ ---- build finished (6.889s) ----
6
+ -------------------- Finished (6.894s) --------------------
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 8144.625750000124
2
+ "nonCachedDurationMs": 7314.012826999999
3
3
  }
@@ -5,11 +5,11 @@ The provided list of phases does not contain all phase dependencies. You may nee
5
5
  [test:jest]
6
6
  [test:jest] Run start. 1 test suite
7
7
  [test:jest] START lib/test/HttpBuildCacheProvider.test.js
8
- [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.952s, 2 passed, 0 failed)
8
+ [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.930s, 2 passed, 0 failed)
9
9
  [test:jest]
10
10
  [test:jest] Tests finished:
11
11
  [test:jest] Successes: 2
12
12
  [test:jest] Failures: 0
13
13
  [test:jest] Total: 2
14
- ---- test finished (1.852s) ----
15
- -------------------- Finished (1.859s) --------------------
14
+ ---- test finished (1.754s) ----
15
+ -------------------- Finished (1.76s) --------------------
@@ -1,3 +1,3 @@
1
1
  {
2
- "nonCachedDurationMs": 2474.0941769999918
2
+ "nonCachedDurationMs": 2185.646568999975
3
3
  }
@@ -1,5 +1,5 @@
1
- Start time: Sat Oct 07 2023 01:09:03 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -c -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-7d401680bf3bf0eed7a5fd5643898d15e32a9b69-5a592f374c5bfc38.temp -z --files-from=-"
1
+ Start time: Fri Oct 20 2023 01:44:05 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -c -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-a54fa33e112a2bf1d9a56a3bbddaf090e3f76881-108575df838c3a80.temp -z --files-from=-"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
  .rush/temp/operation/_phase_build/all.log
@@ -1,5 +1,5 @@
1
- Start time: Sat Oct 07 2023 01:20:47 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-7d401680bf3bf0eed7a5fd5643898d15e32a9b69"
1
+ Start time: Fri Oct 20 2023 01:54:14 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_build-a54fa33e112a2bf1d9a56a3bbddaf090e3f76881"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
 
@@ -1,5 +1,5 @@
1
- Start time: Sat Oct 07 2023 01:10:22 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -c -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-feaedf2fd3e8683d195ad4842d74adbfdde78aee-1e49e6410b7dac39.temp -z --files-from=-"
1
+ Start time: Fri Oct 20 2023 01:45:16 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -c -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-ea1f6e9f8a47341e02cdcd9e55a9da439c6424a7-7a479a360de7219a.temp -z --files-from=-"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
  .rush/temp/operation/_phase_test/all.log
@@ -1,5 +1,5 @@
1
- Start time: Sat Oct 07 2023 01:20:48 GMT+0000 (Coordinated Universal Time)
2
- Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-feaedf2fd3e8683d195ad4842d74adbfdde78aee"
1
+ Start time: Fri Oct 20 2023 01:54:14 GMT+0000 (Coordinated Universal Time)
2
+ Invoking "/usr/bin/tar -x -m -f /home/vsts/work/1/s/common/temp/build-cache/rushstack+rush-http-build-cache-plugin-_phase_test-ea1f6e9f8a47341e02cdcd9e55a9da439c6424a7"
3
3
 
4
4
  ======= BEGIN PROCESS INPUT ======
5
5
 
@@ -23,9 +23,9 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">65.56% </span>
26
+ <span class="strong">65.09% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>278/424</span>
28
+ <span class='fraction'>276/424</span>
29
29
  </div>
30
30
 
31
31
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">65.56% </span>
47
+ <span class="strong">65.09% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>278/424</span>
49
+ <span class='fraction'>276/424</span>
50
50
  </div>
51
51
 
52
52
 
@@ -548,7 +548,6 @@
548
548
  <span class="cline-any cline-yes">1x</span>
549
549
  <span class="cline-any cline-yes">1x</span>
550
550
  <span class="cline-any cline-yes">1x</span>
551
- <span class="cline-any cline-yes">1x</span>
552
551
  <span class="cline-any cline-no">&nbsp;</span>
553
552
  <span class="cline-any cline-no">&nbsp;</span>
554
553
  <span class="cline-any cline-yes">1x</span>
@@ -565,7 +564,6 @@
565
564
  <span class="cline-any cline-yes">2x</span>
566
565
  <span class="cline-any cline-yes">2x</span>
567
566
  <span class="cline-any cline-yes">2x</span>
568
- <span class="cline-any cline-yes">2x</span>
569
567
  <span class="cline-any cline-yes">1x</span>
570
568
  <span class="cline-any cline-yes">1x</span>
571
569
  <span class="cline-any cline-yes">2x</span>
@@ -660,6 +658,8 @@
660
658
  <span class="cline-any cline-no">&nbsp;</span>
661
659
  <span class="cline-any cline-no">&nbsp;</span>
662
660
  <span class="cline-any cline-no">&nbsp;</span>
661
+ <span class="cline-any cline-no">&nbsp;</span>
662
+ <span class="cline-any cline-no">&nbsp;</span>
663
663
  <span class="cline-any cline-yes">1x</span>
664
664
  <span class="cline-any cline-yes">1x</span>
665
665
  <span class="cline-any cline-no">&nbsp;</span>
@@ -952,7 +952,7 @@ export interface IHttpBuildCacheProviderOptions {
952
952
  cacheKeyPrefix?: string;
953
953
  isCacheWriteAllowed: boolean;
954
954
  pluginName: string;
955
- rushProjectRoot: string;
955
+ rushJsonFolder: string;
956
956
  }
957
957
  &nbsp;
958
958
  const MAX_HTTP_CACHE_ATTEMPTS: number = 3;
@@ -960,7 +960,6 @@ const DEFAULT_MIN_HTTP_RETRY_DELAY_MS = 2500;
960
960
  &nbsp;
961
961
  export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
962
962
  private readonly _pluginName: string;
963
- private readonly _rushSession: RushSession;
964
963
  private readonly _rushProjectRoot: string;
965
964
  private readonly _environmentCredential: string | undefined;
966
965
  private readonly _isCacheWriteAllowedByConfiguration: boolean;
@@ -978,8 +977,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
978
977
  &nbsp;
979
978
  public constructor(options: IHttpBuildCacheProviderOptions, rushSession: RushSession) {
980
979
  this._pluginName = options.pluginName;
981
- this._rushSession = rushSession;
982
- this._rushProjectRoot = options.rushProjectRoot;
980
+ this._rushProjectRoot = options.rushJsonFolder;
983
981
  &nbsp;
984
982
  this._environmentCredential = EnvironmentConfiguration.buildCacheCredential;
985
983
  this._isCacheWriteAllowedByConfiguration = options.isCacheWriteAllowed;
@@ -1069,7 +1067,9 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
1069
1067
  <span class="cstat-no" title="statement not covered" ></span>
1070
1068
  <span class="cstat-no" title="statement not covered" > const cmd: string = `${this._tokenHandler.exec} ${(this._tokenHandler.args || []).join(' ')}`;</span>
1071
1069
  <span class="cstat-no" title="statement not covered" > terminal.writeVerboseLine(`Running '${cmd}' to get credentials`);</span>
1072
- <span class="cstat-no" title="statement not covered" > const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || []);</span>
1070
+ <span class="cstat-no" title="statement not covered" > const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || [], {</span>
1071
+ <span class="cstat-no" title="statement not covered" > currentWorkingDirectory: this._rushProjectRoot</span>
1072
+ <span class="cstat-no" title="statement not covered" > });</span>
1073
1073
  <span class="cstat-no" title="statement not covered" ></span>
1074
1074
  <span class="cstat-no" title="statement not covered" > terminal.writeErrorLine(result.stderr);</span>
1075
1075
  <span class="cstat-no" title="statement not covered" ></span>
@@ -1342,7 +1342,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
1342
1342
  <div class='footer quiet pad2 space-top1 center small'>
1343
1343
  Code coverage generated by
1344
1344
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1345
- at 2023-10-07T01:10:22.716Z
1345
+ at 2023-10-20T01:45:16.716Z
1346
1346
  </div>
1347
1347
  <script src="prettify.js"></script>
1348
1348
  <script>
@@ -291,7 +291,7 @@
291
291
  <span class="cstat-no" title="statement not covered" ></span>
292
292
  <span class="cstat-no" title="statement not covered" > const options: IHttpBuildCacheProviderOptions = {</span>
293
293
  <span class="cstat-no" title="statement not covered" > pluginName: this.pluginName,</span>
294
- <span class="cstat-no" title="statement not covered" > rushProjectRoot: rushConfig.rushJsonFolder,</span>
294
+ <span class="cstat-no" title="statement not covered" > rushJsonFolder: rushConfig.rushJsonFolder,</span>
295
295
  <span class="cstat-no" title="statement not covered" > url: url,</span>
296
296
  <span class="cstat-no" title="statement not covered" > uploadMethod: uploadMethod,</span>
297
297
  <span class="cstat-no" title="statement not covered" > headers: headers,</span>
@@ -313,7 +313,7 @@
313
313
  <div class='footer quiet pad2 space-top1 center small'>
314
314
  Code coverage generated by
315
315
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
316
- at 2023-10-07T01:10:22.716Z
316
+ at 2023-10-20T01:45:16.716Z
317
317
  </div>
318
318
  <script src="prettify.js"></script>
319
319
  <script>
@@ -1,42 +1,42 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="509" lines-covered="278" line-rate="0.5461" branches-valid="60" branches-covered="32" branch-rate="0.5333" timestamp="1696641022701" complexity="0" version="0.1">
3
+ <coverage lines-valid="509" lines-covered="276" line-rate="0.5422" branches-valid="60" branches-covered="32" branch-rate="0.5333" timestamp="1697766316704" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin</source>
6
6
  </sources>
7
7
  <packages>
8
- <package name="main" line-rate="0.5461" branch-rate="0.5333">
8
+ <package name="main" line-rate="0.5422" branch-rate="0.5333">
9
9
  <classes>
10
- <class name="HttpBuildCacheProvider.ts" filename="src/HttpBuildCacheProvider.ts" line-rate="0.6556000000000001" branch-rate="0.5517">
10
+ <class name="HttpBuildCacheProvider.ts" filename="src/HttpBuildCacheProvider.ts" line-rate="0.6509" branch-rate="0.5517">
11
11
  <methods>
12
12
  <method name="get isCacheWriteAllowed" hits="0" signature="()V">
13
13
  <lines>
14
- <line number="62" hits="0"/>
14
+ <line number="61" hits="0"/>
15
15
  </lines>
16
16
  </method>
17
17
  <method name="HttpBuildCacheProvider" hits="2" signature="()V">
18
18
  <lines>
19
- <line number="66" hits="2"/>
19
+ <line number="65" hits="2"/>
20
20
  </lines>
21
21
  </method>
22
22
  <method name="tryGetCacheEntryBufferByIdAsync" hits="2" signature="()V">
23
23
  <lines>
24
- <line number="81" hits="2"/>
24
+ <line number="79" hits="2"/>
25
25
  </lines>
26
26
  </method>
27
27
  <method name="trySetCacheEntryBufferAsync" hits="0" signature="()V">
28
28
  <lines>
29
- <line number="103" hits="0"/>
29
+ <line number="101" hits="0"/>
30
30
  </lines>
31
31
  </method>
32
32
  <method name="updateCachedCredentialAsync" hits="0" signature="()V">
33
33
  <lines>
34
- <line number="133" hits="0"/>
34
+ <line number="131" hits="0"/>
35
35
  </lines>
36
36
  </method>
37
37
  <method name="updateCachedCredentialInteractiveAsync" hits="0" signature="()V">
38
38
  <lines>
39
- <line number="147" hits="0"/>
39
+ <line number="145" hits="0"/>
40
40
  </lines>
41
41
  </method>
42
42
  <method name="deleteCachedCredentialsAsync" hits="0" signature="()V">
@@ -137,26 +137,26 @@
137
137
  <line number="59" hits="1" branch="false"/>
138
138
  <line number="60" hits="1" branch="false"/>
139
139
  <line number="61" hits="1" branch="false"/>
140
- <line number="62" hits="1" branch="false"/>
140
+ <line number="62" hits="0" branch="false"/>
141
141
  <line number="63" hits="0" branch="false"/>
142
- <line number="64" hits="0" branch="false"/>
143
- <line number="65" hits="1" branch="false"/>
144
- <line number="66" hits="1" branch="true" condition-coverage="100% (1/1)"/>
142
+ <line number="64" hits="1" branch="false"/>
143
+ <line number="65" hits="1" branch="true" condition-coverage="100% (1/1)"/>
144
+ <line number="66" hits="2" branch="false"/>
145
145
  <line number="67" hits="2" branch="false"/>
146
146
  <line number="68" hits="2" branch="false"/>
147
147
  <line number="69" hits="2" branch="false"/>
148
148
  <line number="70" hits="2" branch="false"/>
149
- <line number="71" hits="2" branch="false"/>
150
- <line number="72" hits="2" branch="false"/>
149
+ <line number="71" hits="2" branch="true" condition-coverage="0% (0/1)"/>
150
+ <line number="72" hits="2" branch="true" condition-coverage="0% (0/1)"/>
151
151
  <line number="73" hits="2" branch="true" condition-coverage="0% (0/1)"/>
152
- <line number="74" hits="2" branch="true" condition-coverage="0% (0/1)"/>
152
+ <line number="74" hits="2" branch="false"/>
153
153
  <line number="75" hits="2" branch="true" condition-coverage="0% (0/1)"/>
154
- <line number="76" hits="2" branch="false"/>
155
- <line number="77" hits="2" branch="true" condition-coverage="0% (0/1)"/>
156
- <line number="78" hits="2" branch="true" condition-coverage="0% (0/1)"/>
157
- <line number="79" hits="2" branch="false"/>
158
- <line number="80" hits="1" branch="false"/>
159
- <line number="81" hits="1" branch="true" condition-coverage="100% (1/1)"/>
154
+ <line number="76" hits="2" branch="true" condition-coverage="0% (0/1)"/>
155
+ <line number="77" hits="2" branch="false"/>
156
+ <line number="78" hits="1" branch="false"/>
157
+ <line number="79" hits="1" branch="true" condition-coverage="100% (1/1)"/>
158
+ <line number="80" hits="2" branch="false"/>
159
+ <line number="81" hits="2" branch="false"/>
160
160
  <line number="82" hits="2" branch="false"/>
161
161
  <line number="83" hits="2" branch="false"/>
162
162
  <line number="84" hits="2" branch="false"/>
@@ -168,17 +168,17 @@
168
168
  <line number="90" hits="2" branch="false"/>
169
169
  <line number="91" hits="2" branch="false"/>
170
170
  <line number="92" hits="2" branch="false"/>
171
- <line number="93" hits="2" branch="false"/>
172
- <line number="94" hits="2" branch="false"/>
173
- <line number="95" hits="1" branch="true" condition-coverage="100% (1/1)"/>
174
- <line number="96" hits="2" branch="true" condition-coverage="50% (1/2)"/>
175
- <line number="97" hits="2" branch="true" condition-coverage="100% (1/1)"/>
171
+ <line number="93" hits="1" branch="true" condition-coverage="100% (1/1)"/>
172
+ <line number="94" hits="2" branch="true" condition-coverage="50% (1/2)"/>
173
+ <line number="95" hits="2" branch="true" condition-coverage="100% (1/1)"/>
174
+ <line number="96" hits="1" branch="false"/>
175
+ <line number="97" hits="1" branch="false"/>
176
176
  <line number="98" hits="1" branch="false"/>
177
- <line number="99" hits="1" branch="false"/>
177
+ <line number="99" hits="2" branch="false"/>
178
178
  <line number="100" hits="1" branch="false"/>
179
- <line number="101" hits="2" branch="false"/>
180
- <line number="102" hits="1" branch="false"/>
181
- <line number="103" hits="1" branch="false"/>
179
+ <line number="101" hits="1" branch="false"/>
180
+ <line number="102" hits="0" branch="false"/>
181
+ <line number="103" hits="0" branch="false"/>
182
182
  <line number="104" hits="0" branch="false"/>
183
183
  <line number="105" hits="0" branch="false"/>
184
184
  <line number="106" hits="0" branch="false"/>
@@ -205,10 +205,10 @@
205
205
  <line number="127" hits="0" branch="false"/>
206
206
  <line number="128" hits="0" branch="false"/>
207
207
  <line number="129" hits="0" branch="false"/>
208
- <line number="130" hits="0" branch="false"/>
209
- <line number="131" hits="0" branch="false"/>
210
- <line number="132" hits="1" branch="false"/>
211
- <line number="133" hits="1" branch="false"/>
208
+ <line number="130" hits="1" branch="false"/>
209
+ <line number="131" hits="1" branch="false"/>
210
+ <line number="132" hits="0" branch="false"/>
211
+ <line number="133" hits="0" branch="false"/>
212
212
  <line number="134" hits="0" branch="false"/>
213
213
  <line number="135" hits="0" branch="false"/>
214
214
  <line number="136" hits="0" branch="false"/>
@@ -219,10 +219,10 @@
219
219
  <line number="141" hits="0" branch="false"/>
220
220
  <line number="142" hits="0" branch="false"/>
221
221
  <line number="143" hits="0" branch="false"/>
222
- <line number="144" hits="0" branch="false"/>
223
- <line number="145" hits="0" branch="false"/>
224
- <line number="146" hits="1" branch="false"/>
225
- <line number="147" hits="1" branch="false"/>
222
+ <line number="144" hits="1" branch="false"/>
223
+ <line number="145" hits="1" branch="false"/>
224
+ <line number="146" hits="0" branch="false"/>
225
+ <line number="147" hits="0" branch="false"/>
226
226
  <line number="148" hits="0" branch="false"/>
227
227
  <line number="149" hits="0" branch="false"/>
228
228
  <line number="150" hits="0" branch="false"/>
@@ -23,9 +23,9 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">54.61% </span>
26
+ <span class="strong">54.22% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>278/509</span>
28
+ <span class='fraction'>276/509</span>
29
29
  </div>
30
30
 
31
31
 
@@ -44,9 +44,9 @@
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">54.61% </span>
47
+ <span class="strong">54.22% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>278/509</span>
49
+ <span class='fraction'>276/509</span>
50
50
  </div>
51
51
 
52
52
 
@@ -80,17 +80,17 @@
80
80
  </thead>
81
81
  <tbody><tr>
82
82
  <td class="file high" data-value="HttpBuildCacheProvider.ts"><a href="HttpBuildCacheProvider.ts.html">HttpBuildCacheProvider.ts</a></td>
83
- <td data-value="65.56" class="pic high">
83
+ <td data-value="65.09" class="pic high">
84
84
  <div class="chart"><div class="cover-fill" style="width: 65%"></div><div class="cover-empty" style="width: 35%"></div></div>
85
85
  </td>
86
- <td data-value="65.56" class="pct high">65.56%</td>
87
- <td data-value="424" class="abs high">278/424</td>
86
+ <td data-value="65.09" class="pct high">65.09%</td>
87
+ <td data-value="424" class="abs high">276/424</td>
88
88
  <td data-value="55.17" class="pct high">55.17%</td>
89
89
  <td data-value="58" class="abs high">32/58</td>
90
90
  <td data-value="61.53" class="pct high">61.53%</td>
91
91
  <td data-value="13" class="abs high">8/13</td>
92
- <td data-value="65.56" class="pct high">65.56%</td>
93
- <td data-value="424" class="abs high">278/424</td>
92
+ <td data-value="65.09" class="pct high">65.09%</td>
93
+ <td data-value="424" class="abs high">276/424</td>
94
94
  </tr>
95
95
 
96
96
  <tr>
@@ -131,7 +131,7 @@
131
131
  <div class='footer quiet pad2 space-top1 center small'>
132
132
  Code coverage generated by
133
133
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
- at 2023-10-07T01:10:22.716Z
134
+ at 2023-10-20T01:45:16.716Z
135
135
  </div>
136
136
  <script src="prettify.js"></script>
137
137
  <script>
@@ -82,7 +82,7 @@
82
82
  <div class='footer quiet pad2 space-top1 center small'>
83
83
  Code coverage generated by
84
84
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
85
- at 2023-10-07T01:10:22.716Z
85
+ at 2023-10-20T01:45:16.716Z
86
86
  </div>
87
87
  <script src="prettify.js"></script>
88
88
  <script>
@@ -1,9 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites name="jest tests" tests="2" failures="0" errors="0" time="1.16">
3
- <testsuite name="HttpBuildCacheProvider" errors="0" failures="0" skipped="0" timestamp="2023-10-07T01:10:21" time="0.952" tests="2">
4
- <testcase classname="HttpBuildCacheProvider tryGetCacheEntryBufferByIdAsync &gt; " name="prints warning if read credentials are not available (lib/test/HttpBuildCacheProvider.test.js)" time="0.014">
2
+ <testsuites name="jest tests" tests="2" failures="0" errors="0" time="1.167">
3
+ <testsuite name="HttpBuildCacheProvider" errors="0" failures="0" skipped="0" timestamp="2023-10-20T01:45:15" time="0.93" tests="2">
4
+ <testcase classname="HttpBuildCacheProvider tryGetCacheEntryBufferByIdAsync &gt; " name="prints warning if read credentials are not available (lib/test/HttpBuildCacheProvider.test.js)" time="0.012">
5
5
  </testcase>
6
- <testcase classname="HttpBuildCacheProvider tryGetCacheEntryBufferByIdAsync &gt; " name="attempts up to 3 times to download a cache entry (lib/test/HttpBuildCacheProvider.test.js)" time="0.013">
6
+ <testcase classname="HttpBuildCacheProvider tryGetCacheEntryBufferByIdAsync &gt; " name="attempts up to 3 times to download a cache entry (lib/test/HttpBuildCacheProvider.test.js)" time="0.004">
7
7
  </testcase>
8
8
  </testsuite>
9
9
  </testsuites>
@@ -17,11 +17,10 @@ export interface IHttpBuildCacheProviderOptions {
17
17
  cacheKeyPrefix?: string;
18
18
  isCacheWriteAllowed: boolean;
19
19
  pluginName: string;
20
- rushProjectRoot: string;
20
+ rushJsonFolder: string;
21
21
  }
22
22
  export declare class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
23
23
  private readonly _pluginName;
24
- private readonly _rushSession;
25
24
  private readonly _rushProjectRoot;
26
25
  private readonly _environmentCredential;
27
26
  private readonly _isCacheWriteAllowedByConfiguration;
@@ -1 +1 @@
1
- {"version":3,"file":"HttpBuildCacheProvider.d.ts","sourceRoot":"","sources":["../src/HttpBuildCacheProvider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EACL,wBAAwB,EAGxB,WAAW,EAEZ,MAAM,qBAAqB,CAAC;AAiB7B,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CACzB;AAKD,qBAAa,sBAAuB,YAAW,wBAAwB;IACrE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAS;IAC1C,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAq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,SAAS,CAAC;IAmBjB,2BAA2B,CACtC,QAAQ,EAAE,SAAS,EACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC;IA0BN,2BAA2B,CAAC,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAcnF,sCAAsC,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IA8B1E,4BAA4B,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAY7E,OAAO,KAAK,kBAAkB,GAY7B;YAEa,KAAK;YAgFL,kBAAkB;YAgClB,2BAA2B;IAoBzC,OAAO,CAAC,eAAe;IA+CvB,OAAO,CAAC,cAAc;CA4CvB"}
@@ -31,8 +31,7 @@ class HttpBuildCacheProvider {
31
31
  constructor(options, rushSession) {
32
32
  var _a, _b, _c, _d;
33
33
  this._pluginName = options.pluginName;
34
- this._rushSession = rushSession;
35
- this._rushProjectRoot = options.rushProjectRoot;
34
+ this._rushProjectRoot = options.rushJsonFolder;
36
35
  this._environmentCredential = rush_sdk_1.EnvironmentConfiguration.buildCacheCredential;
37
36
  this._isCacheWriteAllowedByConfiguration = options.isCacheWriteAllowed;
38
37
  this._url = new URL(options.url.endsWith('/') ? options.url : options.url + '/');
@@ -102,7 +101,9 @@ class HttpBuildCacheProvider {
102
101
  }
103
102
  const cmd = `${this._tokenHandler.exec} ${(this._tokenHandler.args || []).join(' ')}`;
104
103
  terminal.writeVerboseLine(`Running '${cmd}' to get credentials`);
105
- const result = node_core_library_1.Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || []);
104
+ const result = node_core_library_1.Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || [], {
105
+ currentWorkingDirectory: this._rushProjectRoot
106
+ });
106
107
  terminal.writeErrorLine(result.stderr);
107
108
  if (result.error) {
108
109
  throw new Error(`Could not obtain credentials. The command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AO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBACzF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,aAAa,CAAC,CAAC;gBAC9B,QAAQ,CAAC,SAAS,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBAClF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC;gBACrB,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBACvF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,cAAc,CAAC,CAAC;gBAC/B,MAAM,IAAI,KAAK,CACb;oBACE,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,mBAAmB,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,GAAG;oBAC9E,mDAAmD;oBACnD,6FAA6F;oBAC7F,EAAE;oBACF,4BAA4B;oBAC5B,EAAE;oBACF,iDAAiD;oBACjD,EAAE;iBACH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;aACH;SACF;IACH,CAAC;CACF;AAxXD,wDAwXC","sourcesContent":["import { ITerminal, Executable, Async } from '@rushstack/node-core-library';\nimport {\n ICloudBuildCacheProvider,\n ICredentialCacheEntry,\n CredentialCache,\n RushSession,\n EnvironmentConfiguration\n} from '@rushstack/rush-sdk';\nimport fetch, { BodyInit, Response } from 'node-fetch';\n\nenum CredentialsOptions {\n Optional,\n Required,\n Omit\n}\n\nenum FailureType {\n None,\n Informational,\n Warning,\n Error,\n Authentication\n}\n\nexport interface IHttpBuildCacheTokenHandler {\n exec: string;\n args?: string[];\n}\n\n/**\n * @public\n */\nexport interface IHttpBuildCacheProviderOptions {\n url: string;\n tokenHandler?: IHttpBuildCacheTokenHandler;\n uploadMethod?: string;\n minHttpRetryDelayMs?: number;\n headers?: Record<string, string>;\n cacheKeyPrefix?: string;\n isCacheWriteAllowed: boolean;\n pluginName: string;\n rushProjectRoot: string;\n}\n\nconst MAX_HTTP_CACHE_ATTEMPTS: number = 3;\nconst DEFAULT_MIN_HTTP_RETRY_DELAY_MS = 2500;\n\nexport class HttpBuildCacheProvider implements ICloudBuildCacheProvider {\n private readonly _pluginName: string;\n private readonly _rushSession: RushSession;\n private readonly _rushProjectRoot: string;\n private readonly _environmentCredential: string | undefined;\n private readonly _isCacheWriteAllowedByConfiguration: boolean;\n private readonly _url: URL;\n private readonly _uploadMethod: string;\n private readonly _headers: Record<string, string>;\n private readonly _cacheKeyPrefix: string;\n private readonly _tokenHandler: IHttpBuildCacheTokenHandler | undefined;\n private readonly _minHttpRetryDelayMs: number;\n private __credentialCacheId: string | undefined;\n\n public get isCacheWriteAllowed(): boolean {\n return EnvironmentConfiguration.buildCacheWriteAllowed ?? this._isCacheWriteAllowedByConfiguration;\n }\n\n public constructor(options: IHttpBuildCacheProviderOptions, rushSession: RushSession) {\n this._pluginName = options.pluginName;\n this._rushSession = rushSession;\n this._rushProjectRoot = options.rushProjectRoot;\n\n this._environmentCredential = EnvironmentConfiguration.buildCacheCredential;\n this._isCacheWriteAllowedByConfiguration = options.isCacheWriteAllowed;\n this._url = new URL(options.url.endsWith('/') ? options.url : options.url + '/');\n this._uploadMethod = options.uploadMethod ?? 'PUT';\n this._headers = options.headers ?? {};\n this._tokenHandler = options.tokenHandler;\n this._cacheKeyPrefix = options.cacheKeyPrefix ?? '';\n this._minHttpRetryDelayMs = options.minHttpRetryDelayMs ?? DEFAULT_MIN_HTTP_RETRY_DELAY_MS;\n }\n\n public async tryGetCacheEntryBufferByIdAsync(\n terminal: ITerminal,\n cacheId: string\n ): Promise<Buffer | undefined> {\n try {\n const result = await this._http({\n terminal: terminal,\n relUrl: `${this._cacheKeyPrefix}${cacheId}`,\n method: 'GET',\n body: undefined,\n warningText: 'Could not get cache entry',\n readBody: true,\n maxAttempts: MAX_HTTP_CACHE_ATTEMPTS\n });\n\n return Buffer.isBuffer(result) ? result : undefined;\n } catch (e) {\n terminal.writeWarningLine(`Error getting cache entry: ${e}`);\n return undefined;\n }\n }\n\n public async trySetCacheEntryBufferAsync(\n terminal: ITerminal,\n cacheId: string,\n objectBuffer: Buffer\n ): Promise<boolean> {\n if (!this.isCacheWriteAllowed) {\n terminal.writeErrorLine('Writing to cache is not allowed in the current configuration.');\n return false;\n }\n\n terminal.writeDebugLine('Uploading object with cacheId: ', cacheId);\n\n try {\n const result = await this._http({\n terminal: terminal,\n relUrl: `${this._cacheKeyPrefix}${cacheId}`,\n method: this._uploadMethod,\n body: objectBuffer,\n warningText: 'Could not write cache entry',\n readBody: false,\n maxAttempts: MAX_HTTP_CACHE_ATTEMPTS\n });\n\n return result !== false;\n } catch (e) {\n terminal.writeWarningLine(`Error uploading cache entry: ${e}`);\n return false;\n }\n }\n\n public async updateCachedCredentialAsync(terminal: ITerminal, credential: string): Promise<void> {\n await CredentialCache.usingAsync(\n {\n supportEditing: true\n },\n async (credentialsCache: CredentialCache) => {\n credentialsCache.setCacheEntry(this._credentialCacheId, {\n credential: credential\n });\n await credentialsCache.saveIfModifiedAsync();\n }\n );\n }\n\n public async updateCachedCredentialInteractiveAsync(terminal: ITerminal): Promise<void> {\n if (!this._tokenHandler) {\n throw new Error(\n `The interactive cloud credentials flow is not configured.\\n` +\n `Set the 'tokenHandler' setting in 'common/config/rush-plugins/${this._pluginName}.json' to a command that writes your credentials to standard output and exits with code 0 ` +\n `or provide your credentials to rush using the --credential flag instead. Credentials must be the ` +\n `'Authorization' header expected by ${this._url.href}`\n );\n }\n\n const cmd: string = `${this._tokenHandler.exec} ${(this._tokenHandler.args || []).join(' ')}`;\n terminal.writeVerboseLine(`Running '${cmd}' to get credentials`);\n const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || []);\n\n terminal.writeErrorLine(result.stderr);\n\n if (result.error) {\n throw new Error(`Could not obtain credentials. The command '${cmd}' failed.`);\n }\n\n const credential = result.stdout.trim();\n terminal.writeVerboseLine('Got credentials');\n\n await this.updateCachedCredentialAsync(terminal, credential);\n\n terminal.writeLine('Updated credentials cache');\n }\n\n public async deleteCachedCredentialsAsync(terminal: ITerminal): Promise<void> {\n await CredentialCache.usingAsync(\n {\n supportEditing: true\n },\n async (credentialsCache: CredentialCache) => {\n credentialsCache.deleteCacheEntry(this._credentialCacheId);\n await credentialsCache.saveIfModifiedAsync();\n }\n );\n }\n\n private get _credentialCacheId(): string {\n if (!this.__credentialCacheId) {\n const cacheIdParts: string[] = [this._url.href];\n\n if (this._isCacheWriteAllowedByConfiguration) {\n cacheIdParts.push('cacheWriteAllowed');\n }\n\n this.__credentialCacheId = cacheIdParts.join('|');\n }\n\n return this.__credentialCacheId;\n }\n\n private async _http(options: {\n terminal: ITerminal;\n relUrl: string;\n method: string;\n body: BodyInit | undefined;\n warningText: string;\n readBody: boolean;\n maxAttempts: number;\n credentialOptions?: CredentialsOptions;\n }): Promise<Buffer | boolean> {\n const { terminal, relUrl, method, body, warningText, readBody, credentialOptions } = options;\n const safeCredentialOptions = credentialOptions ?? CredentialsOptions.Optional;\n const credentials = await this._tryGetCredentials(safeCredentialOptions);\n const url = new URL(relUrl, this._url).href;\n\n const headers: Record<string, string> = {};\n if (typeof credentials === 'string') {\n headers.Authorization = credentials;\n }\n\n for (const [key, value] of Object.entries(this._headers)) {\n if (typeof value === 'string') {\n headers[key] = value;\n }\n }\n\n const bodyLength = (body as { length: number })?.length || 'unknown';\n\n terminal.writeDebugLine(`[http-build-cache] request: ${method} ${url} ${bodyLength} bytes`);\n\n const response = await fetch(url, {\n method: method,\n headers: headers,\n body: body,\n redirect: 'follow'\n });\n\n if (!response.ok) {\n const isNonCredentialResponse = response.status >= 500 && response.status < 600;\n\n if (\n !isNonCredentialResponse &&\n typeof credentials !== 'string' &&\n safeCredentialOptions === CredentialsOptions.Optional\n ) {\n // If we don't already have credentials yet, and we got a response from the server\n // that is a \"normal\" failure (4xx), then we assume that credentials are probably\n // required. Re-attempt the request, requiring credentials this time.\n //\n // This counts as part of the \"first attempt\", so it is not included in the max attempts\n return await this._http({ ...options, credentialOptions: CredentialsOptions.Required });\n }\n\n if (options.maxAttempts > 1) {\n // Pause a bit before retrying in case the server is busy\n // Add some random jitter to the retry so we can spread out load on the remote service\n // A proper solution might add exponential back off in case the retry count is high (10 or more)\n const factor = 1.0 + Math.random(); // A random number between 1.0 and 2.0\n const retryDelay = Math.floor(factor * this._minHttpRetryDelayMs);\n\n await Async.sleep(retryDelay);\n\n return await this._http({ ...options, maxAttempts: options.maxAttempts - 1 });\n }\n\n this._reportFailure(terminal, method, response, false, warningText);\n return false;\n }\n\n const result: Buffer | boolean = readBody ? Buffer.from(await response.arrayBuffer()) : true;\n\n terminal.writeDebugLine(\n `[http-build-cache] actual response: ${response.status} ${url} ${\n result === true ? 'true' : result.length\n } bytes`\n );\n\n return result;\n }\n\n private async _tryGetCredentials(options: CredentialsOptions.Required): Promise<string>;\n private async _tryGetCredentials(options: CredentialsOptions.Optional): Promise<string | undefined>;\n private async _tryGetCredentials(options: CredentialsOptions.Omit): Promise<undefined>;\n private async _tryGetCredentials(options: CredentialsOptions): Promise<string | undefined>;\n private async _tryGetCredentials(options: CredentialsOptions): Promise<string | undefined> {\n if (options === CredentialsOptions.Omit) {\n return;\n }\n\n let credentials: string | undefined = this._environmentCredential;\n\n if (credentials === undefined) {\n credentials = await this._tryGetCredentialsFromCache();\n }\n\n if (typeof credentials !== 'string' && options === CredentialsOptions.Required) {\n throw new Error(\n [\n `Credentials for ${this._url.href} have not been provided.`,\n `In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.`,\n ``,\n `For local developers, run:`,\n ``,\n ` rush update-cloud-credentials --interactive`,\n ``\n ].join('\\n')\n );\n }\n\n return credentials;\n }\n\n private async _tryGetCredentialsFromCache(): Promise<string | undefined> {\n let cacheEntry: ICredentialCacheEntry | undefined;\n\n await CredentialCache.usingAsync(\n {\n supportEditing: false\n },\n (credentialsCache: CredentialCache) => {\n cacheEntry = credentialsCache.tryGetCacheEntry(this._credentialCacheId);\n }\n );\n\n if (cacheEntry) {\n const expirationTime: number | undefined = cacheEntry.expires?.getTime();\n if (!expirationTime || expirationTime >= Date.now()) {\n return cacheEntry.credential;\n }\n }\n }\n\n private _getFailureType(requestMethod: string, response: Response, isRedirect: boolean): FailureType {\n if (response.ok) {\n return FailureType.None;\n }\n\n switch (response.status) {\n case 503: {\n // We select 503 specifically because this represents \"service unavailable\" and\n // \"rate limit throttle\" errors, which are transient issues.\n //\n // There are other 5xx errors, such as 501, that can occur if the request is\n // malformed, so as a general rule we want to let through other 5xx errors\n // so the user can troubleshoot.\n\n // Don't fail production builds with warnings for transient issues\n return FailureType.Informational;\n }\n\n case 401:\n case 403:\n case 407: {\n if (requestMethod === 'GET' && (isRedirect || response.redirected)) {\n // Cache misses for GET requests are not errors\n // This is a workaround behavior where a server can issue a redirect and we fail to authenticate at the new location.\n // We do not want to signal this as an authentication failure because the authorization header is not passed on to redirects.\n // i.e The authentication header was accepted for the first request and therefore subsequent failures\n // where it was not present should not be attributed to the header.\n // This scenario usually comes up with services that redirect to pre-signed URLS that don't actually exist.\n // Those services then usually treat the 404 as a 403 to prevent leaking information.\n return FailureType.None;\n }\n\n return FailureType.Authentication;\n }\n\n case 404: {\n if (requestMethod === 'GET') {\n // Cache misses for GET requests are not errors\n return FailureType.None;\n }\n }\n }\n\n // Let dev builds succeed, let Prod builds fail\n return FailureType.Warning;\n }\n\n private _reportFailure(\n terminal: ITerminal,\n requestMethod: string,\n response: Response,\n isRedirect: boolean,\n message: string\n ): void {\n switch (this._getFailureType(requestMethod, response, isRedirect)) {\n default: {\n terminal.writeErrorLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Warning: {\n terminal.writeWarningLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Informational: {\n terminal.writeLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.None: {\n terminal.writeDebugLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Authentication: {\n throw new Error(\n [\n `${this._url.href} responded with ${response.status}: ${response.statusText}.`,\n `Credentials may be misconfigured or have expired.`,\n `In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.`,\n ``,\n `For local developers, run:`,\n ``,\n ` rush update-cloud-credentials --interactive`,\n ``\n ].join('\\n')\n );\n }\n }\n }\n}\n"]}
1
+ {"version":3,"file":"HttpBuildCacheProvider.js","sourceRoot":"","sources":["../src/HttpBuildCacheProvider.ts"],"names":[],"mappings":";;;;;;AAAA,oEAA4E;AAC5E,kDAM6B;AAC7B,4DAAuD;AAEvD,IAAK,kBAIJ;AAJD,WAAK,kBAAkB;IACrB,mEAAQ,CAAA;IACR,mEAAQ,CAAA;IACR,2DAAI,CAAA;AACN,CAAC,EAJI,kBAAkB,KAAlB,kBAAkB,QAItB;AAED,IAAK,WAMJ;AAND,WAAK,WAAW;IACd,6CAAI,CAAA;IACJ,+DAAa,CAAA;IACb,mDAAO,CAAA;IACP,+CAAK,CAAA;IACL,iEAAc,CAAA;AAChB,CAAC,EANI,WAAW,KAAX,WAAW,QAMf;AAsBD,MAAM,uBAAuB,GAAW,CAAC,CAAC;AAC1C,MAAM,+BAA+B,GAAG,IAAI,CAAC;AAE7C,MAAa,sBAAsB;IAajC,IAAW,mBAAmB;;QAC5B,OAAO,MAAA,mCAAwB,CAAC,sBAAsB,mCAAI,IAAI,CAAC,mCAAmC,CAAC;IACrG,CAAC;IAED,YAAmB,OAAuC,EAAE,WAAwB;;QAClF,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,OAAO,CAAC,cAAc,CAAC;QAE/C,IAAI,CAAC,sBAAsB,GAAG,mCAAwB,CAAC,oBAAoB,CAAC;QAC5E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AAmB,EACnB,OAAe;QAEf,QAAQ,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAE;YACjE,OAAO,CAAC,CAAC;gBACP,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBACvF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,OAAO,CAAC,CAAC;gBACxB,QAAQ,CAAC,gBAAgB,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBACzF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,aAAa,CAAC,CAAC;gBAC9B,QAAQ,CAAC,SAAS,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBAClF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC;gBACrB,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,UAAU,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;gBACvF,MAAM;aACP;YAED,KAAK,WAAW,CAAC,cAAc,CAAC,CAAC;gBAC/B,MAAM,IAAI,KAAK,CACb;oBACE,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,mBAAmB,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,UAAU,GAAG;oBAC9E,mDAAmD;oBACnD,6FAA6F;oBAC7F,EAAE;oBACF,4BAA4B;oBAC5B,EAAE;oBACF,iDAAiD;oBACjD,EAAE;iBACH,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;aACH;SACF;IACH,CAAC;CACF;AAxXD,wDAwXC","sourcesContent":["import { ITerminal, Executable, Async } from '@rushstack/node-core-library';\nimport {\n ICloudBuildCacheProvider,\n ICredentialCacheEntry,\n CredentialCache,\n RushSession,\n EnvironmentConfiguration\n} from '@rushstack/rush-sdk';\nimport fetch, { BodyInit, Response } from 'node-fetch';\n\nenum CredentialsOptions {\n Optional,\n Required,\n Omit\n}\n\nenum FailureType {\n None,\n Informational,\n Warning,\n Error,\n Authentication\n}\n\nexport interface IHttpBuildCacheTokenHandler {\n exec: string;\n args?: string[];\n}\n\n/**\n * @public\n */\nexport interface IHttpBuildCacheProviderOptions {\n url: string;\n tokenHandler?: IHttpBuildCacheTokenHandler;\n uploadMethod?: string;\n minHttpRetryDelayMs?: number;\n headers?: Record<string, string>;\n cacheKeyPrefix?: string;\n isCacheWriteAllowed: boolean;\n pluginName: string;\n rushJsonFolder: string;\n}\n\nconst MAX_HTTP_CACHE_ATTEMPTS: number = 3;\nconst DEFAULT_MIN_HTTP_RETRY_DELAY_MS = 2500;\n\nexport class HttpBuildCacheProvider implements ICloudBuildCacheProvider {\n private readonly _pluginName: string;\n private readonly _rushProjectRoot: string;\n private readonly _environmentCredential: string | undefined;\n private readonly _isCacheWriteAllowedByConfiguration: boolean;\n private readonly _url: URL;\n private readonly _uploadMethod: string;\n private readonly _headers: Record<string, string>;\n private readonly _cacheKeyPrefix: string;\n private readonly _tokenHandler: IHttpBuildCacheTokenHandler | undefined;\n private readonly _minHttpRetryDelayMs: number;\n private __credentialCacheId: string | undefined;\n\n public get isCacheWriteAllowed(): boolean {\n return EnvironmentConfiguration.buildCacheWriteAllowed ?? this._isCacheWriteAllowedByConfiguration;\n }\n\n public constructor(options: IHttpBuildCacheProviderOptions, rushSession: RushSession) {\n this._pluginName = options.pluginName;\n this._rushProjectRoot = options.rushJsonFolder;\n\n this._environmentCredential = EnvironmentConfiguration.buildCacheCredential;\n this._isCacheWriteAllowedByConfiguration = options.isCacheWriteAllowed;\n this._url = new URL(options.url.endsWith('/') ? options.url : options.url + '/');\n this._uploadMethod = options.uploadMethod ?? 'PUT';\n this._headers = options.headers ?? {};\n this._tokenHandler = options.tokenHandler;\n this._cacheKeyPrefix = options.cacheKeyPrefix ?? '';\n this._minHttpRetryDelayMs = options.minHttpRetryDelayMs ?? DEFAULT_MIN_HTTP_RETRY_DELAY_MS;\n }\n\n public async tryGetCacheEntryBufferByIdAsync(\n terminal: ITerminal,\n cacheId: string\n ): Promise<Buffer | undefined> {\n try {\n const result = await this._http({\n terminal: terminal,\n relUrl: `${this._cacheKeyPrefix}${cacheId}`,\n method: 'GET',\n body: undefined,\n warningText: 'Could not get cache entry',\n readBody: true,\n maxAttempts: MAX_HTTP_CACHE_ATTEMPTS\n });\n\n return Buffer.isBuffer(result) ? result : undefined;\n } catch (e) {\n terminal.writeWarningLine(`Error getting cache entry: ${e}`);\n return undefined;\n }\n }\n\n public async trySetCacheEntryBufferAsync(\n terminal: ITerminal,\n cacheId: string,\n objectBuffer: Buffer\n ): Promise<boolean> {\n if (!this.isCacheWriteAllowed) {\n terminal.writeErrorLine('Writing to cache is not allowed in the current configuration.');\n return false;\n }\n\n terminal.writeDebugLine('Uploading object with cacheId: ', cacheId);\n\n try {\n const result = await this._http({\n terminal: terminal,\n relUrl: `${this._cacheKeyPrefix}${cacheId}`,\n method: this._uploadMethod,\n body: objectBuffer,\n warningText: 'Could not write cache entry',\n readBody: false,\n maxAttempts: MAX_HTTP_CACHE_ATTEMPTS\n });\n\n return result !== false;\n } catch (e) {\n terminal.writeWarningLine(`Error uploading cache entry: ${e}`);\n return false;\n }\n }\n\n public async updateCachedCredentialAsync(terminal: ITerminal, credential: string): Promise<void> {\n await CredentialCache.usingAsync(\n {\n supportEditing: true\n },\n async (credentialsCache: CredentialCache) => {\n credentialsCache.setCacheEntry(this._credentialCacheId, {\n credential: credential\n });\n await credentialsCache.saveIfModifiedAsync();\n }\n );\n }\n\n public async updateCachedCredentialInteractiveAsync(terminal: ITerminal): Promise<void> {\n if (!this._tokenHandler) {\n throw new Error(\n `The interactive cloud credentials flow is not configured.\\n` +\n `Set the 'tokenHandler' setting in 'common/config/rush-plugins/${this._pluginName}.json' to a command that writes your credentials to standard output and exits with code 0 ` +\n `or provide your credentials to rush using the --credential flag instead. Credentials must be the ` +\n `'Authorization' header expected by ${this._url.href}`\n );\n }\n\n const cmd: string = `${this._tokenHandler.exec} ${(this._tokenHandler.args || []).join(' ')}`;\n terminal.writeVerboseLine(`Running '${cmd}' to get credentials`);\n const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || [], {\n currentWorkingDirectory: this._rushProjectRoot\n });\n\n terminal.writeErrorLine(result.stderr);\n\n if (result.error) {\n throw new Error(`Could not obtain credentials. The command '${cmd}' failed.`);\n }\n\n const credential = result.stdout.trim();\n terminal.writeVerboseLine('Got credentials');\n\n await this.updateCachedCredentialAsync(terminal, credential);\n\n terminal.writeLine('Updated credentials cache');\n }\n\n public async deleteCachedCredentialsAsync(terminal: ITerminal): Promise<void> {\n await CredentialCache.usingAsync(\n {\n supportEditing: true\n },\n async (credentialsCache: CredentialCache) => {\n credentialsCache.deleteCacheEntry(this._credentialCacheId);\n await credentialsCache.saveIfModifiedAsync();\n }\n );\n }\n\n private get _credentialCacheId(): string {\n if (!this.__credentialCacheId) {\n const cacheIdParts: string[] = [this._url.href];\n\n if (this._isCacheWriteAllowedByConfiguration) {\n cacheIdParts.push('cacheWriteAllowed');\n }\n\n this.__credentialCacheId = cacheIdParts.join('|');\n }\n\n return this.__credentialCacheId;\n }\n\n private async _http(options: {\n terminal: ITerminal;\n relUrl: string;\n method: string;\n body: BodyInit | undefined;\n warningText: string;\n readBody: boolean;\n maxAttempts: number;\n credentialOptions?: CredentialsOptions;\n }): Promise<Buffer | boolean> {\n const { terminal, relUrl, method, body, warningText, readBody, credentialOptions } = options;\n const safeCredentialOptions = credentialOptions ?? CredentialsOptions.Optional;\n const credentials = await this._tryGetCredentials(safeCredentialOptions);\n const url = new URL(relUrl, this._url).href;\n\n const headers: Record<string, string> = {};\n if (typeof credentials === 'string') {\n headers.Authorization = credentials;\n }\n\n for (const [key, value] of Object.entries(this._headers)) {\n if (typeof value === 'string') {\n headers[key] = value;\n }\n }\n\n const bodyLength = (body as { length: number })?.length || 'unknown';\n\n terminal.writeDebugLine(`[http-build-cache] request: ${method} ${url} ${bodyLength} bytes`);\n\n const response = await fetch(url, {\n method: method,\n headers: headers,\n body: body,\n redirect: 'follow'\n });\n\n if (!response.ok) {\n const isNonCredentialResponse = response.status >= 500 && response.status < 600;\n\n if (\n !isNonCredentialResponse &&\n typeof credentials !== 'string' &&\n safeCredentialOptions === CredentialsOptions.Optional\n ) {\n // If we don't already have credentials yet, and we got a response from the server\n // that is a \"normal\" failure (4xx), then we assume that credentials are probably\n // required. Re-attempt the request, requiring credentials this time.\n //\n // This counts as part of the \"first attempt\", so it is not included in the max attempts\n return await this._http({ ...options, credentialOptions: CredentialsOptions.Required });\n }\n\n if (options.maxAttempts > 1) {\n // Pause a bit before retrying in case the server is busy\n // Add some random jitter to the retry so we can spread out load on the remote service\n // A proper solution might add exponential back off in case the retry count is high (10 or more)\n const factor = 1.0 + Math.random(); // A random number between 1.0 and 2.0\n const retryDelay = Math.floor(factor * this._minHttpRetryDelayMs);\n\n await Async.sleep(retryDelay);\n\n return await this._http({ ...options, maxAttempts: options.maxAttempts - 1 });\n }\n\n this._reportFailure(terminal, method, response, false, warningText);\n return false;\n }\n\n const result: Buffer | boolean = readBody ? Buffer.from(await response.arrayBuffer()) : true;\n\n terminal.writeDebugLine(\n `[http-build-cache] actual response: ${response.status} ${url} ${\n result === true ? 'true' : result.length\n } bytes`\n );\n\n return result;\n }\n\n private async _tryGetCredentials(options: CredentialsOptions.Required): Promise<string>;\n private async _tryGetCredentials(options: CredentialsOptions.Optional): Promise<string | undefined>;\n private async _tryGetCredentials(options: CredentialsOptions.Omit): Promise<undefined>;\n private async _tryGetCredentials(options: CredentialsOptions): Promise<string | undefined>;\n private async _tryGetCredentials(options: CredentialsOptions): Promise<string | undefined> {\n if (options === CredentialsOptions.Omit) {\n return;\n }\n\n let credentials: string | undefined = this._environmentCredential;\n\n if (credentials === undefined) {\n credentials = await this._tryGetCredentialsFromCache();\n }\n\n if (typeof credentials !== 'string' && options === CredentialsOptions.Required) {\n throw new Error(\n [\n `Credentials for ${this._url.href} have not been provided.`,\n `In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.`,\n ``,\n `For local developers, run:`,\n ``,\n ` rush update-cloud-credentials --interactive`,\n ``\n ].join('\\n')\n );\n }\n\n return credentials;\n }\n\n private async _tryGetCredentialsFromCache(): Promise<string | undefined> {\n let cacheEntry: ICredentialCacheEntry | undefined;\n\n await CredentialCache.usingAsync(\n {\n supportEditing: false\n },\n (credentialsCache: CredentialCache) => {\n cacheEntry = credentialsCache.tryGetCacheEntry(this._credentialCacheId);\n }\n );\n\n if (cacheEntry) {\n const expirationTime: number | undefined = cacheEntry.expires?.getTime();\n if (!expirationTime || expirationTime >= Date.now()) {\n return cacheEntry.credential;\n }\n }\n }\n\n private _getFailureType(requestMethod: string, response: Response, isRedirect: boolean): FailureType {\n if (response.ok) {\n return FailureType.None;\n }\n\n switch (response.status) {\n case 503: {\n // We select 503 specifically because this represents \"service unavailable\" and\n // \"rate limit throttle\" errors, which are transient issues.\n //\n // There are other 5xx errors, such as 501, that can occur if the request is\n // malformed, so as a general rule we want to let through other 5xx errors\n // so the user can troubleshoot.\n\n // Don't fail production builds with warnings for transient issues\n return FailureType.Informational;\n }\n\n case 401:\n case 403:\n case 407: {\n if (requestMethod === 'GET' && (isRedirect || response.redirected)) {\n // Cache misses for GET requests are not errors\n // This is a workaround behavior where a server can issue a redirect and we fail to authenticate at the new location.\n // We do not want to signal this as an authentication failure because the authorization header is not passed on to redirects.\n // i.e The authentication header was accepted for the first request and therefore subsequent failures\n // where it was not present should not be attributed to the header.\n // This scenario usually comes up with services that redirect to pre-signed URLS that don't actually exist.\n // Those services then usually treat the 404 as a 403 to prevent leaking information.\n return FailureType.None;\n }\n\n return FailureType.Authentication;\n }\n\n case 404: {\n if (requestMethod === 'GET') {\n // Cache misses for GET requests are not errors\n return FailureType.None;\n }\n }\n }\n\n // Let dev builds succeed, let Prod builds fail\n return FailureType.Warning;\n }\n\n private _reportFailure(\n terminal: ITerminal,\n requestMethod: string,\n response: Response,\n isRedirect: boolean,\n message: string\n ): void {\n switch (this._getFailureType(requestMethod, response, isRedirect)) {\n default: {\n terminal.writeErrorLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Warning: {\n terminal.writeWarningLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Informational: {\n terminal.writeLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.None: {\n terminal.writeDebugLine(`${message}: HTTP ${response.status}: ${response.statusText}`);\n break;\n }\n\n case FailureType.Authentication: {\n throw new Error(\n [\n `${this._url.href} responded with ${response.status}: ${response.statusText}.`,\n `Credentials may be misconfigured or have expired.`,\n `In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.`,\n ``,\n `For local developers, run:`,\n ``,\n ` rush update-cloud-credentials --interactive`,\n ``\n ].join('\\n')\n );\n }\n }\n }\n}\n"]}
@@ -41,7 +41,7 @@ class RushHttpBuildCachePlugin {
41
41
  const { url, uploadMethod, headers, tokenHandler, cacheKeyPrefix, isCacheWriteAllowed } = config;
42
42
  const options = {
43
43
  pluginName: this.pluginName,
44
- rushProjectRoot: rushConfig.rushJsonFolder,
44
+ rushJsonFolder: rushConfig.rushJsonFolder,
45
45
  url: url,
46
46
  uploadMethod: uploadMethod,
47
47
  headers: headers,
@@ -1 +1 @@
1
- {"version":3,"file":"RushHttpBuildCachePlugin.js","sourceRoot":"","sources":["../src/RushHttpBuildCachePlugin.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;AAK3D,MAAM,WAAW,GAAW,sBAAsB,CAAC;AAyCnD;;GAEG;AACH,MAAa,wBAAwB;IAArC;QACkB,eAAU,GAAW,WAAW,CAAC;IA6BnD,CAAC;IA3BQ,KAAK,CAAC,WAAwB,EAAE,UAA6B;QAClE,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;YACrD,WAAW,CAAC,sCAAsC,CAAC,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE;gBACpF,MAAM,MAAM,GACV,gBAGD,CAAC,iBAAiB,CAAC;gBAEpB,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAAC;gBAEjG,MAAM,OAAO,GAAmC;oBAC9C,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,eAAe,EAAE,UAAU,CAAC,cAAc;oBAC1C,GAAG,EAAE,GAAG;oBACR,YAAY,EAAE,YAAY;oBAC1B,OAAO,EAAE,OAAO;oBAChB,YAAY,EAAE,YAAY;oBAC1B,cAAc,EAAE,cAAc;oBAC9B,mBAAmB,EAAE,CAAC,CAAC,mBAAmB;iBAC3C,CAAC;gBAEF,MAAM,EAAE,sBAAsB,EAAE,GAAG,wDAAa,0BAA0B,GAAC,CAAC;gBAC5E,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,4DA8BC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { IRushPlugin, RushSession, RushConfiguration } from '@rushstack/rush-sdk';\nimport type { HttpBuildCacheProvider, IHttpBuildCacheProviderOptions } from './HttpBuildCacheProvider';\n\nconst PLUGIN_NAME: string = 'HttpBuildCachePlugin';\n\n/**\n * @public\n */\nexport interface IRushHttpBuildCachePluginConfig {\n /**\n * The URL of the server that stores the caches (e.g. \"https://build-caches.example.com\").\n */\n url: string;\n\n /**\n * The HTTP method to use when writing to the cache (defaults to PUT).\n */\n uploadMethod?: string;\n\n /**\n * An optional set of HTTP headers to pass to the cache server.\n */\n headers?: Record<string, string>;\n\n /**\n * An optional command that prints the endpoint's credentials to stdout. Provide the\n * command or script to execute and, optionally, any arguments to pass to the script.\n */\n tokenHandler?: {\n exec: string;\n args?: string[];\n };\n\n /**\n * Prefix for cache keys.\n */\n cacheKeyPrefix?: string;\n\n /**\n * If set to true, allow writing to the cache. Defaults to false.\n */\n isCacheWriteAllowed?: boolean;\n}\n\n/**\n * @public\n */\nexport class RushHttpBuildCachePlugin implements IRushPlugin {\n public readonly pluginName: string = PLUGIN_NAME;\n\n public apply(rushSession: RushSession, rushConfig: RushConfiguration): void {\n rushSession.hooks.initialize.tap(this.pluginName, () => {\n rushSession.registerCloudBuildCacheProviderFactory('http', async (buildCacheConfig) => {\n const config: IRushHttpBuildCachePluginConfig = (\n buildCacheConfig as typeof buildCacheConfig & {\n httpConfiguration: IRushHttpBuildCachePluginConfig;\n }\n ).httpConfiguration;\n\n const { url, uploadMethod, headers, tokenHandler, cacheKeyPrefix, isCacheWriteAllowed } = config;\n\n const options: IHttpBuildCacheProviderOptions = {\n pluginName: this.pluginName,\n rushProjectRoot: rushConfig.rushJsonFolder,\n url: url,\n uploadMethod: uploadMethod,\n headers: headers,\n tokenHandler: tokenHandler,\n cacheKeyPrefix: cacheKeyPrefix,\n isCacheWriteAllowed: !!isCacheWriteAllowed\n };\n\n const { HttpBuildCacheProvider } = await import('./HttpBuildCacheProvider');\n return new HttpBuildCacheProvider(options, rushSession);\n });\n });\n }\n}\n"]}
1
+ {"version":3,"file":"RushHttpBuildCachePlugin.js","sourceRoot":"","sources":["../src/RushHttpBuildCachePlugin.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;AAK3D,MAAM,WAAW,GAAW,sBAAsB,CAAC;AAyCnD;;GAEG;AACH,MAAa,wBAAwB;IAArC;QACkB,eAAU,GAAW,WAAW,CAAC;IA6BnD,CAAC;IA3BQ,KAAK,CAAC,WAAwB,EAAE,UAA6B;QAClE,WAAW,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;YACrD,WAAW,CAAC,sCAAsC,CAAC,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE;gBACpF,MAAM,MAAM,GACV,gBAGD,CAAC,iBAAiB,CAAC;gBAEpB,MAAM,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,GAAG,MAAM,CAAC;gBAEjG,MAAM,OAAO,GAAmC;oBAC9C,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,cAAc,EAAE,UAAU,CAAC,cAAc;oBACzC,GAAG,EAAE,GAAG;oBACR,YAAY,EAAE,YAAY;oBAC1B,OAAO,EAAE,OAAO;oBAChB,YAAY,EAAE,YAAY;oBAC1B,cAAc,EAAE,cAAc;oBAC9B,mBAAmB,EAAE,CAAC,CAAC,mBAAmB;iBAC3C,CAAC;gBAEF,MAAM,EAAE,sBAAsB,EAAE,GAAG,wDAAa,0BAA0B,GAAC,CAAC;gBAC5E,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;YAC1D,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,4DA8BC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { IRushPlugin, RushSession, RushConfiguration } from '@rushstack/rush-sdk';\nimport type { HttpBuildCacheProvider, IHttpBuildCacheProviderOptions } from './HttpBuildCacheProvider';\n\nconst PLUGIN_NAME: string = 'HttpBuildCachePlugin';\n\n/**\n * @public\n */\nexport interface IRushHttpBuildCachePluginConfig {\n /**\n * The URL of the server that stores the caches (e.g. \"https://build-caches.example.com\").\n */\n url: string;\n\n /**\n * The HTTP method to use when writing to the cache (defaults to PUT).\n */\n uploadMethod?: string;\n\n /**\n * An optional set of HTTP headers to pass to the cache server.\n */\n headers?: Record<string, string>;\n\n /**\n * An optional command that prints the endpoint's credentials to stdout. Provide the\n * command or script to execute and, optionally, any arguments to pass to the script.\n */\n tokenHandler?: {\n exec: string;\n args?: string[];\n };\n\n /**\n * Prefix for cache keys.\n */\n cacheKeyPrefix?: string;\n\n /**\n * If set to true, allow writing to the cache. Defaults to false.\n */\n isCacheWriteAllowed?: boolean;\n}\n\n/**\n * @public\n */\nexport class RushHttpBuildCachePlugin implements IRushPlugin {\n public readonly pluginName: string = PLUGIN_NAME;\n\n public apply(rushSession: RushSession, rushConfig: RushConfiguration): void {\n rushSession.hooks.initialize.tap(this.pluginName, () => {\n rushSession.registerCloudBuildCacheProviderFactory('http', async (buildCacheConfig) => {\n const config: IRushHttpBuildCachePluginConfig = (\n buildCacheConfig as typeof buildCacheConfig & {\n httpConfiguration: IRushHttpBuildCachePluginConfig;\n }\n ).httpConfiguration;\n\n const { url, uploadMethod, headers, tokenHandler, cacheKeyPrefix, isCacheWriteAllowed } = config;\n\n const options: IHttpBuildCacheProviderOptions = {\n pluginName: this.pluginName,\n rushJsonFolder: rushConfig.rushJsonFolder,\n url: url,\n uploadMethod: uploadMethod,\n headers: headers,\n tokenHandler: tokenHandler,\n cacheKeyPrefix: cacheKeyPrefix,\n isCacheWriteAllowed: !!isCacheWriteAllowed\n };\n\n const { HttpBuildCacheProvider } = await import('./HttpBuildCacheProvider');\n return new HttpBuildCacheProvider(options, rushSession);\n });\n });\n }\n}\n"]}
@@ -41,7 +41,7 @@ const EXAMPLE_OPTIONS = {
41
41
  uploadMethod: 'POST',
42
42
  isCacheWriteAllowed: false,
43
43
  pluginName: 'example-plugin',
44
- rushProjectRoot: '/repo',
44
+ rushJsonFolder: '/repo',
45
45
  minHttpRetryDelayMs: 1
46
46
  };
47
47
  describe('HttpBuildCacheProvider', () => {
@@ -1 +1 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right (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\njest.mock('node-fetch', function () {\n return Object.assign(jest.fn(), jest.requireActual('node-fetch'));\n});\n\nimport fetch, { Response } from 'node-fetch';\nimport { RushSession, EnvironmentConfiguration } from '@rushstack/rush-sdk';\nimport { StringBufferTerminalProvider, Terminal } from '@rushstack/node-core-library';\n\nimport { HttpBuildCacheProvider } from '../HttpBuildCacheProvider';\n\nconst EXAMPLE_OPTIONS = {\n url: 'https://buildcache.example.acme.com',\n tokenHandler: {\n exec: 'node',\n args: ['tokenHandler.js']\n },\n uploadMethod: 'POST',\n isCacheWriteAllowed: false,\n pluginName: 'example-plugin',\n rushProjectRoot: '/repo',\n minHttpRetryDelayMs: 1\n};\n\ndescribe('HttpBuildCacheProvider', () => {\n let terminalBuffer: StringBufferTerminalProvider;\n let terminal!: Terminal;\n\n beforeEach(() => {\n terminalBuffer = new StringBufferTerminalProvider();\n terminal = new Terminal(terminalBuffer);\n });\n\n describe('tryGetCacheEntryBufferByIdAsync', () => {\n it('prints warning if read credentials are not available', async () => {\n jest.spyOn(EnvironmentConfiguration, 'buildCacheCredential', 'get').mockReturnValue(undefined);\n\n const session: RushSession = {} as RushSession;\n const provider = new HttpBuildCacheProvider(EXAMPLE_OPTIONS, session);\n\n mocked(fetch).mockResolvedValue(\n new Response('Unauthorized', {\n status: 401,\n statusText: 'Unauthorized'\n })\n );\n\n const result = await provider.tryGetCacheEntryBufferByIdAsync(terminal, 'some-key');\n expect(result).toBe(undefined);\n expect(fetch).toHaveBeenCalledTimes(1);\n expect(fetch).toHaveBeenNthCalledWith(1, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(terminalBuffer.getWarningOutput()).toMatchInlineSnapshot(\n `\"Error getting cache entry: Error: Credentials for https://buildcache.example.acme.com/ have not been provided.[n]In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.[n][n]For local developers, run:[n][n] rush update-cloud-credentials --interactive[n][n]\"`\n );\n });\n\n it('attempts up to 3 times to download a cache entry', async () => {\n jest.spyOn(EnvironmentConfiguration, 'buildCacheCredential', 'get').mockReturnValue(undefined);\n\n const session: RushSession = {} as RushSession;\n const provider = new HttpBuildCacheProvider(EXAMPLE_OPTIONS, session);\n\n mocked(fetch).mockResolvedValueOnce(\n new Response('InternalServiceError', {\n status: 500,\n statusText: 'InternalServiceError'\n })\n );\n mocked(fetch).mockResolvedValueOnce(\n new Response('ServiceUnavailable', {\n status: 503,\n statusText: 'ServiceUnavailable'\n })\n );\n mocked(fetch).mockResolvedValueOnce(\n new Response('BadGateway', {\n status: 504,\n statusText: 'BadGateway'\n })\n );\n\n const result = await provider.tryGetCacheEntryBufferByIdAsync(terminal, 'some-key');\n expect(result).toBe(undefined);\n expect(fetch).toHaveBeenCalledTimes(3);\n expect(fetch).toHaveBeenNthCalledWith(1, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(fetch).toHaveBeenNthCalledWith(2, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(fetch).toHaveBeenNthCalledWith(3, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(terminalBuffer.getWarningOutput()).toMatchInlineSnapshot(\n `\"Could not get cache entry: HTTP 504: BadGateway[n]\"`\n );\n });\n });\n});\n"]}
1
+ {"version":3,"file":"HttpBuildCacheProvider.test.js","sourceRoot":"","sources":["../../src/test/HttpBuildCacheProvider.test.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;IACtB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAA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AM,QAAQ,CAAC,+BAA+B,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;YACpF,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC/B,MAAM,CAAC,oBAAK,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,CAAC,oBAAK,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,8CAA8C,EAAE;gBACvF,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;YACH,MAAM,CAAC,oBAAK,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,8CAA8C,EAAE;gBACvF,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;YACH,MAAM,CAAC,oBAAK,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE,8CAA8C,EAAE;gBACvF,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,EAAE;gBACX,MAAM,EAAE,KAAK;gBACb,QAAQ,EAAE,QAAQ;aACnB,CAAC,CAAC;YACH,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,qBAAqB,CAC7D,sDAAsD,CACvD,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\njest.mock('node-fetch', function () {\n return Object.assign(jest.fn(), jest.requireActual('node-fetch'));\n});\n\nimport fetch, { Response } from 'node-fetch';\nimport { RushSession, EnvironmentConfiguration } from '@rushstack/rush-sdk';\nimport { StringBufferTerminalProvider, Terminal } from '@rushstack/node-core-library';\n\nimport { HttpBuildCacheProvider, type IHttpBuildCacheProviderOptions } from '../HttpBuildCacheProvider';\n\nconst EXAMPLE_OPTIONS: IHttpBuildCacheProviderOptions = {\n url: 'https://buildcache.example.acme.com',\n tokenHandler: {\n exec: 'node',\n args: ['tokenHandler.js']\n },\n uploadMethod: 'POST',\n isCacheWriteAllowed: false,\n pluginName: 'example-plugin',\n rushJsonFolder: '/repo',\n minHttpRetryDelayMs: 1\n};\n\ndescribe('HttpBuildCacheProvider', () => {\n let terminalBuffer: StringBufferTerminalProvider;\n let terminal!: Terminal;\n\n beforeEach(() => {\n terminalBuffer = new StringBufferTerminalProvider();\n terminal = new Terminal(terminalBuffer);\n });\n\n describe('tryGetCacheEntryBufferByIdAsync', () => {\n it('prints warning if read credentials are not available', async () => {\n jest.spyOn(EnvironmentConfiguration, 'buildCacheCredential', 'get').mockReturnValue(undefined);\n\n const session: RushSession = {} as RushSession;\n const provider = new HttpBuildCacheProvider(EXAMPLE_OPTIONS, session);\n\n mocked(fetch).mockResolvedValue(\n new Response('Unauthorized', {\n status: 401,\n statusText: 'Unauthorized'\n })\n );\n\n const result = await provider.tryGetCacheEntryBufferByIdAsync(terminal, 'some-key');\n expect(result).toBe(undefined);\n expect(fetch).toHaveBeenCalledTimes(1);\n expect(fetch).toHaveBeenNthCalledWith(1, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(terminalBuffer.getWarningOutput()).toMatchInlineSnapshot(\n `\"Error getting cache entry: Error: Credentials for https://buildcache.example.acme.com/ have not been provided.[n]In CI, verify that RUSH_BUILD_CACHE_CREDENTIAL contains a valid Authorization header value.[n][n]For local developers, run:[n][n] rush update-cloud-credentials --interactive[n][n]\"`\n );\n });\n\n it('attempts up to 3 times to download a cache entry', async () => {\n jest.spyOn(EnvironmentConfiguration, 'buildCacheCredential', 'get').mockReturnValue(undefined);\n\n const session: RushSession = {} as RushSession;\n const provider = new HttpBuildCacheProvider(EXAMPLE_OPTIONS, session);\n\n mocked(fetch).mockResolvedValueOnce(\n new Response('InternalServiceError', {\n status: 500,\n statusText: 'InternalServiceError'\n })\n );\n mocked(fetch).mockResolvedValueOnce(\n new Response('ServiceUnavailable', {\n status: 503,\n statusText: 'ServiceUnavailable'\n })\n );\n mocked(fetch).mockResolvedValueOnce(\n new Response('BadGateway', {\n status: 504,\n statusText: 'BadGateway'\n })\n );\n\n const result = await provider.tryGetCacheEntryBufferByIdAsync(terminal, 'some-key');\n expect(result).toBe(undefined);\n expect(fetch).toHaveBeenCalledTimes(3);\n expect(fetch).toHaveBeenNthCalledWith(1, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(fetch).toHaveBeenNthCalledWith(2, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(fetch).toHaveBeenNthCalledWith(3, 'https://buildcache.example.acme.com/some-key', {\n body: undefined,\n headers: {},\n method: 'GET',\n redirect: 'follow'\n });\n expect(terminalBuffer.getWarningOutput()).toMatchInlineSnapshot(\n `\"Could not get cache entry: HTTP 504: BadGateway[n]\"`\n );\n });\n });\n});\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-http-build-cache-plugin",
3
- "version": "5.109.1",
3
+ "version": "5.109.2",
4
4
  "description": "Rush plugin for generic HTTP cloud build cache",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,11 +15,11 @@
15
15
  "https-proxy-agent": "~5.0.0",
16
16
  "node-fetch": "2.6.7",
17
17
  "@rushstack/node-core-library": "3.61.0",
18
- "@rushstack/rush-sdk": "5.109.1"
18
+ "@rushstack/rush-sdk": "5.109.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/node-fetch": "2.6.2",
22
- "@microsoft/rush-lib": "5.109.1",
22
+ "@microsoft/rush-lib": "5.109.2",
23
23
  "@rushstack/heft": "0.62.3",
24
24
  "local-node-rig": "1.0.0"
25
25
  },
@@ -1,4 +1,5 @@
1
1
  Build cache hit.
2
+ Cache key: rushstack+rush-http-build-cache-plugin-_phase_build-a54fa33e112a2bf1d9a56a3bbddaf090e3f76881
2
3
  Clearing cached folders: dist, lib, lib-commonjs, temp, .heft
3
4
  Successfully restored output from the build cache.
4
5
  Restoring cached log file at /home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin/.rush/temp/operation/_phase_build/all.log
@@ -6,5 +7,5 @@ Invoking: heft run --only build -- --clean --production
6
7
  ---- build started ----
7
8
  [build:typescript] Using TypeScript version 5.0.4
8
9
  [build:typescript] Copied 1 folder or file and linked 0 files
9
- ---- build finished (7.587s) ----
10
- -------------------- Finished (7.593s) --------------------
10
+ ---- build finished (6.889s) ----
11
+ -------------------- Finished (6.894s) --------------------
@@ -2,5 +2,5 @@ Invoking: heft run --only build -- --clean --production
2
2
  ---- build started ----
3
3
  [build:typescript] Using TypeScript version 5.0.4
4
4
  [build:typescript] Copied 1 folder or file and linked 0 files
5
- ---- build finished (7.587s) ----
6
- -------------------- Finished (7.593s) --------------------
5
+ ---- build finished (6.889s) ----
6
+ -------------------- Finished (6.894s) --------------------
@@ -1,4 +1,5 @@
1
1
  Build cache hit.
2
+ Cache key: rushstack+rush-http-build-cache-plugin-_phase_test-ea1f6e9f8a47341e02cdcd9e55a9da439c6424a7
2
3
  Clearing cached folders: coverage
3
4
  Successfully restored output from the build cache.
4
5
  Restoring cached log file at /home/vsts/work/1/s/rush-plugins/rush-http-build-cache-plugin/.rush/temp/operation/_phase_test/all.log
@@ -9,11 +10,11 @@ The provided list of phases does not contain all phase dependencies. You may nee
9
10
  [test:jest]
10
11
  [test:jest] Run start. 1 test suite
11
12
  [test:jest] START lib/test/HttpBuildCacheProvider.test.js
12
- [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.952s, 2 passed, 0 failed)
13
+ [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.930s, 2 passed, 0 failed)
13
14
  [test:jest]
14
15
  [test:jest] Tests finished:
15
16
  [test:jest] Successes: 2
16
17
  [test:jest] Failures: 0
17
18
  [test:jest] Total: 2
18
- ---- test finished (1.852s) ----
19
- -------------------- Finished (1.859s) --------------------
19
+ ---- test finished (1.754s) ----
20
+ -------------------- Finished (1.76s) --------------------
@@ -5,11 +5,11 @@ The provided list of phases does not contain all phase dependencies. You may nee
5
5
  [test:jest]
6
6
  [test:jest] Run start. 1 test suite
7
7
  [test:jest] START lib/test/HttpBuildCacheProvider.test.js
8
- [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.952s, 2 passed, 0 failed)
8
+ [test:jest] PASS lib/test/HttpBuildCacheProvider.test.js (duration: 0.930s, 2 passed, 0 failed)
9
9
  [test:jest]
10
10
  [test:jest] Tests finished:
11
11
  [test:jest] Successes: 2
12
12
  [test:jest] Failures: 0
13
13
  [test:jest] Total: 2
14
- ---- test finished (1.852s) ----
15
- -------------------- Finished (1.859s) --------------------
14
+ ---- test finished (1.754s) ----
15
+ -------------------- Finished (1.76s) --------------------
@@ -39,7 +39,7 @@ export interface IHttpBuildCacheProviderOptions {
39
39
  cacheKeyPrefix?: string;
40
40
  isCacheWriteAllowed: boolean;
41
41
  pluginName: string;
42
- rushProjectRoot: string;
42
+ rushJsonFolder: string;
43
43
  }
44
44
 
45
45
  const MAX_HTTP_CACHE_ATTEMPTS: number = 3;
@@ -47,7 +47,6 @@ const DEFAULT_MIN_HTTP_RETRY_DELAY_MS = 2500;
47
47
 
48
48
  export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
49
49
  private readonly _pluginName: string;
50
- private readonly _rushSession: RushSession;
51
50
  private readonly _rushProjectRoot: string;
52
51
  private readonly _environmentCredential: string | undefined;
53
52
  private readonly _isCacheWriteAllowedByConfiguration: boolean;
@@ -65,8 +64,7 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
65
64
 
66
65
  public constructor(options: IHttpBuildCacheProviderOptions, rushSession: RushSession) {
67
66
  this._pluginName = options.pluginName;
68
- this._rushSession = rushSession;
69
- this._rushProjectRoot = options.rushProjectRoot;
67
+ this._rushProjectRoot = options.rushJsonFolder;
70
68
 
71
69
  this._environmentCredential = EnvironmentConfiguration.buildCacheCredential;
72
70
  this._isCacheWriteAllowedByConfiguration = options.isCacheWriteAllowed;
@@ -156,7 +154,9 @@ export class HttpBuildCacheProvider implements ICloudBuildCacheProvider {
156
154
 
157
155
  const cmd: string = `${this._tokenHandler.exec} ${(this._tokenHandler.args || []).join(' ')}`;
158
156
  terminal.writeVerboseLine(`Running '${cmd}' to get credentials`);
159
- const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || []);
157
+ const result = Executable.spawnSync(this._tokenHandler.exec, this._tokenHandler.args || [], {
158
+ currentWorkingDirectory: this._rushProjectRoot
159
+ });
160
160
 
161
161
  terminal.writeErrorLine(result.stderr);
162
162
 
@@ -64,7 +64,7 @@ export class RushHttpBuildCachePlugin implements IRushPlugin {
64
64
 
65
65
  const options: IHttpBuildCacheProviderOptions = {
66
66
  pluginName: this.pluginName,
67
- rushProjectRoot: rushConfig.rushJsonFolder,
67
+ rushJsonFolder: rushConfig.rushJsonFolder,
68
68
  url: url,
69
69
  uploadMethod: uploadMethod,
70
70
  headers: headers,
@@ -9,9 +9,9 @@ import fetch, { Response } from 'node-fetch';
9
9
  import { RushSession, EnvironmentConfiguration } from '@rushstack/rush-sdk';
10
10
  import { StringBufferTerminalProvider, Terminal } from '@rushstack/node-core-library';
11
11
 
12
- import { HttpBuildCacheProvider } from '../HttpBuildCacheProvider';
12
+ import { HttpBuildCacheProvider, type IHttpBuildCacheProviderOptions } from '../HttpBuildCacheProvider';
13
13
 
14
- const EXAMPLE_OPTIONS = {
14
+ const EXAMPLE_OPTIONS: IHttpBuildCacheProviderOptions = {
15
15
  url: 'https://buildcache.example.acme.com',
16
16
  tokenHandler: {
17
17
  exec: 'node',
@@ -20,7 +20,7 @@ const EXAMPLE_OPTIONS = {
20
20
  uploadMethod: 'POST',
21
21
  isCacheWriteAllowed: false,
22
22
  pluginName: 'example-plugin',
23
- rushProjectRoot: '/repo',
23
+ rushJsonFolder: '/repo',
24
24
  minHttpRetryDelayMs: 1
25
25
  };
26
26
 
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/assert.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/assert/strict.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/globals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/async_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/child_process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/cluster.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/console.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/constants.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/crypto.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dgram.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dns.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dns/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/domain.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dom-events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/fs.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/fs/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/http.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/http2.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/https.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/inspector.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/module.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/net.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/os.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/path.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/perf_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/punycode.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/querystring.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/readline.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/readline/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/repl.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/consumers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/web.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/string_decoder.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/test.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/timers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/timers/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/tls.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/trace_events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/tty.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/url.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/v8.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/vm.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/wasi.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/worker_threads.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/zlib.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/globals.global.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/index.d.ts","../../../../../libraries/node-core-library/dist/node-core-library.d.ts","../../../../../common/temp/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/tapable.d.ts","../../../../../libraries/terminal/dist/terminal.d.ts","../../../../../libraries/stream-collator/dist/stream-collator.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+argparse@1.0.38/node_modules/@types/argparse/index.d.ts","../../../../../libraries/ts-command-line/dist/ts-command-line.d.ts","../../../../../libraries/rush-sdk/dist/rush-lib.d.ts","../../../../../common/temp/node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node-fetch@2.6.2/node_modules/@types/node-fetch/externals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node-fetch@2.6.2/node_modules/@types/node-fetch/index.d.ts","../../../src/HttpBuildCacheProvider.ts","../../../src/RushHttpBuildCachePlugin.ts","../../../src/index.ts","../../../src/test/HttpBuildCacheProvider.test.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.1/node_modules/@types/heft-jest/mocked.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+expect-utils@29.6.2/node_modules/@jest/expect-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+schemas@29.6.0/node_modules/@jest/schemas/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-diff@29.6.2/node_modules/jest-diff/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@29.6.2/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/expect@29.6.2/node_modules/expect/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+jest@29.2.5/node_modules/@types/jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.1/node_modules/@types/heft-jest/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"afddd0617cc7ef650f743c75b868df9d53f17f9ff0cccc255fb5f632e857be38",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"dc15cb97f565e378faebd4e92699a56c28d2065f4535045f6c5550261fb83f3a","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","7e5307e29dfd5d5b827203b85cb665d8d5bf932a6c6f393457da8e9ed1906761",{"version":"987b3a9098738f5f40efe9fee5734b55f4c8ac599a045922b1470bb325183ed6","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"69e93290f59948789d5fce61cb0b89dde93747a4576744d0d6fae41ee3991646","affectsGlobalScope":true},{"version":"8d319604ab444d77b25dc531ace1811795c676834e564497e4b90ba1b77aafd5","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","b7998044b77ef376a39c07f038f317d875b3f51b5f8f733384d85ecd083182e7","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"a4a2a5596dd7e531ab0ce785ed1c8f6940e0632e5bcaa7e8c144bd0e41029297","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","5d842e3acce41c978af367a28163cef799170dadd06edf2111cc9ecab6eae968","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","007010531533da82392b8ba35c1655a9f4e18be86b9636cac438e2a571f4ccf2","cd74c8275483d3fe0d07a9b4bba28845a8a611f0aa399e961dbd40e5d46dd9ad","d59217b08fca6a29dd890cc5bf349e986f50cf35ea5e79e362e4eb79df8cab8d","51deb9261c4607f2eaaf15144bf5fe42f74c8d250c62806e30f957cbd09ddff6","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","b853973488112b194e7f18532c574d6f05eed18aa64d33909e7fce8ffdb27607","13bb16b72c15a7f2cf25349361f5d95ca8e489fb2a7b839225e7fe9bff15f8ad","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","3898e3dbe94b6fe529fbe8f0faee1309c1923100516d7a014b301955e52ece77","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568",{"version":"743d85eb2693ba2b8a530ae4c3dc4e8f48742eb92610afffae7873d3a095b209","signature":"7272714b4ce45f0bd581f496f736884e253c0e9b5dc12373488ac2782b79aecc"},{"version":"1404005fccd8a63a50e7d8fedccad663e89cdda703d295a574643081d0532994","signature":"f7ecb4bbbcbe53b6380a97a31ef07cfbd82dcfaa735047e31c217751d466df6b"},{"version":"920416c1f370759b91c52d57d1098f8b7713fb93d1dfd292aa789196fcc96e50","signature":"e373fb948af094808ac33333ff6445614b4114a7ad3e250330ac683d99295adc"},{"version":"a13c2767ed8da606330c693fa06ce304deb59b5b9c7b952b9892158dfcb7f0cd","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"ef948381fb93e21b69bb6581851b1c1c15c9a9d59752fc3b30d223cb16539534","affectsGlobalScope":true},"6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"9aec3838773b6daece49517d7c04777c538ae9e9881ffb4e6d9aa8fc0c775a61","affectsGlobalScope":true},{"version":"7d94851f2e2797a812fdaaae6ba87e91e894be0198b107e544fb5a992eaa6b00","affectsGlobalScope":true}],"root":[[108,111]],"options":{"allowUnreachableCode":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"inlineSources":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"../../../lib","rootDir":"../../../src","sourceMap":true,"strict":true,"target":4,"tsBuildInfoFile":"./ts_l9Fw4VUO.json","useUnknownInCatchVariables":false},"fileIdsList":[[90],[90,115],[90,112,121],[90,117,120],[63,89,90,97,105,106],[44,90],[47,90],[48,53,81,90],[49,60,61,68,78,89,90],[49,50,60,68,90],[51,90],[52,53,61,69,90],[53,78,86,90],[54,56,60,68,90],[55,90],[56,57,90],[60,90],[58,60,90],[60,61,62,78,89,90],[60,61,62,75,78,81,90],[90,94],[56,60,63,68,78,89,90],[60,61,63,64,68,78,86,89,90],[63,65,78,86,89,90],[44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],[60,66,90],[67,89,90,94],[56,60,68,78,90],[69,90],[70,90],[47,71,90],[72,88,90,94],[73,90],[74,90],[60,75,76,90],[75,77,90,92],[48,60,78,79,80,81,90],[48,78,80,90],[78,79,90],[81,90],[82,90],[47,78,90],[60,84,85,90],[84,85,90],[53,68,78,86,90],[87,90],[68,88,90],[48,63,74,89,90],[53,90],[78,90,91],[67,90,92],[90,93],[48,53,60,62,71,78,89,90,92,94],[78,90,95],[47,90,97,113,119],[63,78,90,97],[90,117],[90,114,118],[90,116],[49,61,78,90,97],[90,97,98,99,100,101,103],[90,100],[90,98],[90,102],[90,98,104,107],[90,104,108],[90,108,109],[90,98,104,107,108],[98,104],[104],[108,109]],"referencedMap":[[113,1],[116,2],[115,1],[102,1],[122,3],[112,1],[121,4],[106,1],[107,5],[44,6],[45,6],[47,7],[48,8],[49,9],[50,10],[51,11],[52,12],[53,13],[54,14],[55,15],[56,16],[57,16],[59,17],[58,18],[60,17],[61,19],[62,20],[46,21],[96,1],[63,22],[64,23],[65,24],[97,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,35],[77,36],[78,37],[80,38],[79,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[114,1],[120,55],[105,56],[118,57],[119,58],[117,59],[99,1],[42,1],[43,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[32,1],[29,1],[30,1],[31,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[98,60],[104,61],[101,62],[100,63],[103,64],[108,65],[109,66],[110,67],[111,68]],"exportedModulesMap":[[113,1],[116,2],[115,1],[102,1],[122,3],[112,1],[121,4],[106,1],[107,5],[44,6],[45,6],[47,7],[48,8],[49,9],[50,10],[51,11],[52,12],[53,13],[54,14],[55,15],[56,16],[57,16],[59,17],[58,18],[60,17],[61,19],[62,20],[46,21],[96,1],[63,22],[64,23],[65,24],[97,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,35],[77,36],[78,37],[80,38],[79,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[114,1],[120,55],[105,56],[118,57],[119,58],[117,59],[99,1],[42,1],[43,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[32,1],[29,1],[30,1],[31,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[98,60],[104,61],[101,62],[100,63],[103,64],[108,69],[109,70],[110,71]],"semanticDiagnosticsPerFile":[113,116,115,102,122,112,121,106,107,44,45,47,48,49,50,51,52,53,54,55,56,57,59,58,60,61,62,46,96,63,64,65,97,66,67,68,69,70,71,72,73,74,75,76,77,78,80,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,114,120,105,118,119,117,99,42,43,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,32,29,30,31,33,7,34,39,40,35,36,37,38,1,41,98,104,101,100,103,108,109,110,111]},"version":"5.0.4"}
1
+ {"program":{"fileNames":["../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.decorators.d.ts","../../../../../common/temp/node_modules/.pnpm/typescript@5.0.4/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/assert.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/assert/strict.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/globals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/async_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/buffer.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/child_process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/cluster.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/console.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/constants.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/crypto.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dgram.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/diagnostics_channel.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dns.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dns/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/domain.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/dom-events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/fs.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/fs/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/http.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/http2.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/https.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/inspector.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/module.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/net.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/os.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/path.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/perf_hooks.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/process.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/punycode.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/querystring.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/readline.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/readline/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/repl.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/consumers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/stream/web.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/string_decoder.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/test.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/timers.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/timers/promises.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/tls.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/trace_events.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/tty.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/url.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/util.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/v8.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/vm.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/wasi.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/worker_threads.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/zlib.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/globals.global.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node@18.17.15/node_modules/@types/node/index.d.ts","../../../../../libraries/node-core-library/dist/node-core-library.d.ts","../../../../../common/temp/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/tapable.d.ts","../../../../../libraries/terminal/dist/terminal.d.ts","../../../../../libraries/stream-collator/dist/stream-collator.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+argparse@1.0.38/node_modules/@types/argparse/index.d.ts","../../../../../libraries/ts-command-line/dist/ts-command-line.d.ts","../../../../../libraries/rush-sdk/dist/rush-lib.d.ts","../../../../../common/temp/node_modules/.pnpm/form-data@3.0.1/node_modules/form-data/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node-fetch@2.6.2/node_modules/@types/node-fetch/externals.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+node-fetch@2.6.2/node_modules/@types/node-fetch/index.d.ts","../../../src/HttpBuildCacheProvider.ts","../../../src/RushHttpBuildCachePlugin.ts","../../../src/index.ts","../../../src/test/HttpBuildCacheProvider.test.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.1/node_modules/@types/heft-jest/mocked.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+expect-utils@29.6.2/node_modules/@jest/expect-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../../../../common/temp/node_modules/.pnpm/@jest+schemas@29.6.0/node_modules/@jest/schemas/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/pretty-format@29.6.2/node_modules/pretty-format/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-diff@29.6.2/node_modules/jest-diff/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/jest-matcher-utils@29.6.2/node_modules/jest-matcher-utils/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/expect@29.6.2/node_modules/expect/build/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+jest@29.2.5/node_modules/@types/jest/index.d.ts","../../../../../common/temp/node_modules/.pnpm/@types+heft-jest@1.0.1/node_modules/@types/heft-jest/index.d.ts"],"fileInfos":[{"version":"6a6b471e7e43e15ef6f8fe617a22ce4ecb0e34efa6c3dfcfe7cebd392bcca9d2","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"f296963760430fb65b4e5d91f0ed770a91c6e77455bacf8fa23a1501654ede0e","affectsGlobalScope":true},{"version":"5114a95689b63f96b957e00216bc04baf9e1a1782aa4d8ee7e5e9acbf768e301","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"b7e9f95a7387e3f66be0ed6db43600c49cec33a3900437ce2fd350d9b7cb16f2","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"ba8691cf6bea9d53e6bf6cbc22af964a9633a21793981a1be3dce65e7a714d8b","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"afddd0617cc7ef650f743c75b868df9d53f17f9ff0cccc255fb5f632e857be38",{"version":"7c387a02bf156d8d45667134d32518ac3ca1b99ca50ca9deff2c1a03eb6d1a81","affectsGlobalScope":true},"3719525a8f6ab731e3dfd585d9f87df55ec7d50d461df84f74eb4d68bb165244","f993522fd7d01ae1ead930091fe35130b8415720d6c2123dc2a7e8eb11bb3cba",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","b787b5b54349a24f07d089b612a9fb8ff024dbbe991ff52ea2b188a6b1230644","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","1cdcfc1f624d6c08aa12c73935f6e13f095919cd99edf95752951796eb225729","df6d4b6ba1e64f682091862faa30104e93891f9e7202d006bf5e7a88ab4a0dbe","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"c2fcbd6fad600e96fee8c5df1a62e908d477f5b47a9374b2bab7e74f52cfcc92","affectsGlobalScope":true},"dc15cb97f565e378faebd4e92699a56c28d2065f4535045f6c5550261fb83f3a","cc68e79b99f80e4dfd01967ec96be69efb0ff5bd7f779d9a2cc09dfe590ffd28","91d3d8f536f22dcaeeace0fc6f3544d3562e266a27cf3a2fe280b8051af5d006","9503113febdd737095465792cc074d541902c82c0aea3922f940de18784812ad","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","7e5307e29dfd5d5b827203b85cb665d8d5bf932a6c6f393457da8e9ed1906761",{"version":"987b3a9098738f5f40efe9fee5734b55f4c8ac599a045922b1470bb325183ed6","affectsGlobalScope":true},"bcebb922784739bdb34c18ee51095d25a92b560c78ccd2eaacd6bd00f7443d83","7ee6ed878c4528215c82b664fe0cfe80e8b4da6c0d4cc80869367868774db8b1","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"69e93290f59948789d5fce61cb0b89dde93747a4576744d0d6fae41ee3991646","affectsGlobalScope":true},{"version":"8d319604ab444d77b25dc531ace1811795c676834e564497e4b90ba1b77aafd5","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","b7998044b77ef376a39c07f038f317d875b3f51b5f8f733384d85ecd083182e7","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda",{"version":"a4a2a5596dd7e531ab0ce785ed1c8f6940e0632e5bcaa7e8c144bd0e41029297","affectsGlobalScope":true},{"version":"3c4ba1dd9b12ffa284b565063108f2f031d150ea15b8fafbdc17f5d2a07251f3","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","1422cd9e705adcc09088fda85a900c2b70e3ad36ea85846f68bd1a884cdf4e2b","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"22d7b95cb63dead43834ae20ee492c9c8b6d90db3957d21665199f0efb1d3e26","affectsGlobalScope":true},{"version":"a9fc1469744055a3435f203123246b96c094e7ff8c4e1c3863829d9b705b7a34","affectsGlobalScope":true},"868831cab82b65dfe1d68180e898af1f2101e89ba9b754d1db6fb8cc2fac1921","5d842e3acce41c978af367a28163cef799170dadd06edf2111cc9ecab6eae968","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"52120bb7e4583612225bdf08e7c12559548170f11e660d33a33623bae9bbdbba","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"d5be4343a9ace4611f04a6fffd91ceba91265fa15bfb0149306e0a6963e1a015","007010531533da82392b8ba35c1655a9f4e18be86b9636cac438e2a571f4ccf2","cd74c8275483d3fe0d07a9b4bba28845a8a611f0aa399e961dbd40e5d46dd9ad","d59217b08fca6a29dd890cc5bf349e986f50cf35ea5e79e362e4eb79df8cab8d","51deb9261c4607f2eaaf15144bf5fe42f74c8d250c62806e30f957cbd09ddff6","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","b853973488112b194e7f18532c574d6f05eed18aa64d33909e7fce8ffdb27607","13bb16b72c15a7f2cf25349361f5d95ca8e489fb2a7b839225e7fe9bff15f8ad","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","3898e3dbe94b6fe529fbe8f0faee1309c1923100516d7a014b301955e52ece77","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568",{"version":"2b7d825b768f3e9d0e6d7255a7c76bd25b1741ddcbf52d6dae0d5096b9e4b678","signature":"bbd6408b6286b764890b5052d45ae66d889648a97cd982d570c8d9cdeda26819"},{"version":"35a0c2e6f6d1f722217b85c43d92d7b36980cc450df2ee4e42f59377bfe77e99","signature":"f7ecb4bbbcbe53b6380a97a31ef07cfbd82dcfaa735047e31c217751d466df6b"},{"version":"920416c1f370759b91c52d57d1098f8b7713fb93d1dfd292aa789196fcc96e50","signature":"e373fb948af094808ac33333ff6445614b4114a7ad3e250330ac683d99295adc"},{"version":"d9e964614238c0c1e2ed13191086f38e0a6e0796c6f9c7ea3c37b815b7bf2145","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"ef948381fb93e21b69bb6581851b1c1c15c9a9d59752fc3b30d223cb16539534","affectsGlobalScope":true},"6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"9aec3838773b6daece49517d7c04777c538ae9e9881ffb4e6d9aa8fc0c775a61","affectsGlobalScope":true},{"version":"7d94851f2e2797a812fdaaae6ba87e91e894be0198b107e544fb5a992eaa6b00","affectsGlobalScope":true}],"root":[[108,111]],"options":{"allowUnreachableCode":false,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"inlineSources":true,"jsx":2,"module":1,"noEmitOnError":false,"outDir":"../../../lib","rootDir":"../../../src","sourceMap":true,"strict":true,"target":4,"tsBuildInfoFile":"./ts_l9Fw4VUO.json","useUnknownInCatchVariables":false},"fileIdsList":[[90],[90,115],[90,112,121],[90,117,120],[63,89,90,97,105,106],[44,90],[47,90],[48,53,81,90],[49,60,61,68,78,89,90],[49,50,60,68,90],[51,90],[52,53,61,69,90],[53,78,86,90],[54,56,60,68,90],[55,90],[56,57,90],[60,90],[58,60,90],[60,61,62,78,89,90],[60,61,62,75,78,81,90],[90,94],[56,60,63,68,78,89,90],[60,61,63,64,68,78,86,89,90],[63,65,78,86,89,90],[44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],[60,66,90],[67,89,90,94],[56,60,68,78,90],[69,90],[70,90],[47,71,90],[72,88,90,94],[73,90],[74,90],[60,75,76,90],[75,77,90,92],[48,60,78,79,80,81,90],[48,78,80,90],[78,79,90],[81,90],[82,90],[47,78,90],[60,84,85,90],[84,85,90],[53,68,78,86,90],[87,90],[68,88,90],[48,63,74,89,90],[53,90],[78,90,91],[67,90,92],[90,93],[48,53,60,62,71,78,89,90,92,94],[78,90,95],[47,90,97,113,119],[63,78,90,97],[90,117],[90,114,118],[90,116],[49,61,78,90,97],[90,97,98,99,100,101,103],[90,100],[90,98],[90,102],[90,98,104,107],[90,104,108],[90,108,109],[90,98,104,107,108],[98,104],[104],[108,109]],"referencedMap":[[113,1],[116,2],[115,1],[102,1],[122,3],[112,1],[121,4],[106,1],[107,5],[44,6],[45,6],[47,7],[48,8],[49,9],[50,10],[51,11],[52,12],[53,13],[54,14],[55,15],[56,16],[57,16],[59,17],[58,18],[60,17],[61,19],[62,20],[46,21],[96,1],[63,22],[64,23],[65,24],[97,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,35],[77,36],[78,37],[80,38],[79,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[114,1],[120,55],[105,56],[118,57],[119,58],[117,59],[99,1],[42,1],[43,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[32,1],[29,1],[30,1],[31,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[98,60],[104,61],[101,62],[100,63],[103,64],[108,65],[109,66],[110,67],[111,68]],"exportedModulesMap":[[113,1],[116,2],[115,1],[102,1],[122,3],[112,1],[121,4],[106,1],[107,5],[44,6],[45,6],[47,7],[48,8],[49,9],[50,10],[51,11],[52,12],[53,13],[54,14],[55,15],[56,16],[57,16],[59,17],[58,18],[60,17],[61,19],[62,20],[46,21],[96,1],[63,22],[64,23],[65,24],[97,25],[66,26],[67,27],[68,28],[69,29],[70,30],[71,31],[72,32],[73,33],[74,34],[75,35],[76,35],[77,36],[78,37],[80,38],[79,39],[81,40],[82,41],[83,42],[84,43],[85,44],[86,45],[87,46],[88,47],[89,48],[90,49],[91,50],[92,51],[93,52],[94,53],[95,54],[114,1],[120,55],[105,56],[118,57],[119,58],[117,59],[99,1],[42,1],[43,1],[9,1],[8,1],[2,1],[10,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[3,1],[4,1],[21,1],[18,1],[19,1],[20,1],[22,1],[23,1],[24,1],[5,1],[25,1],[26,1],[27,1],[28,1],[6,1],[32,1],[29,1],[30,1],[31,1],[33,1],[7,1],[34,1],[39,1],[40,1],[35,1],[36,1],[37,1],[38,1],[1,1],[41,1],[98,60],[104,61],[101,62],[100,63],[103,64],[108,69],[109,70],[110,71]],"semanticDiagnosticsPerFile":[113,116,115,102,122,112,121,106,107,44,45,47,48,49,50,51,52,53,54,55,56,57,59,58,60,61,62,46,96,63,64,65,97,66,67,68,69,70,71,72,73,74,75,76,77,78,80,79,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,114,120,105,118,119,117,99,42,43,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,32,29,30,31,33,7,34,39,40,35,36,37,38,1,41,98,104,101,100,103,108,109,110,111]},"version":"5.0.4"}