pnpm 10.2.0 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +6 -25
  2. package/dist/node_modules/.modules.yaml +9 -11
  3. package/dist/node_modules/.pnpm/lock.yaml +18 -17
  4. package/dist/node_modules/.pnpm-workspace-state.json +1 -1
  5. package/dist/node_modules/exponential-backoff/LICENSE +2 -2
  6. package/dist/node_modules/exponential-backoff/dist/backoff.js +6 -0
  7. package/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -1
  8. package/dist/node_modules/exponential-backoff/dist/options.js.map +1 -1
  9. package/dist/node_modules/exponential-backoff/package.json +6 -5
  10. package/dist/node_modules/node-gyp/.release-please-manifest.json +1 -1
  11. package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +1 -1
  12. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1 -1
  13. package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +1 -1
  14. package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +23 -10
  15. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +1 -1
  16. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1 -1
  17. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +6 -6
  18. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +16 -16
  19. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +15 -10
  20. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +16 -13
  21. package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1 -1
  22. package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +58 -60
  23. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +9 -6
  24. package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +10 -10
  25. package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +7 -7
  26. package/dist/node_modules/node-gyp/gyp/pyproject.toml +1 -2
  27. package/dist/node_modules/node-gyp/lib/find-visualstudio.js +14 -4
  28. package/dist/node_modules/node-gyp/package.json +1 -1
  29. package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +3 -1
  30. package/dist/node_modules/semver/classes/semver.js +3 -2
  31. package/dist/node_modules/semver/internal/re.js +2 -0
  32. package/dist/node_modules/semver/package.json +1 -1
  33. package/dist/node_modules/socks/package.json +1 -1
  34. package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
  35. package/dist/node_modules/yallist/package.json +12 -51
  36. package/dist/pnpm.cjs +728 -627
  37. package/package.json +1 -1
  38. package/dist/node_modules/minipass-flush/node_modules/yallist/package.json +0 -29
  39. package/dist/node_modules/minipass-pipeline/node_modules/yallist/LICENSE +0 -15
  40. package/dist/node_modules/minipass-pipeline/node_modules/yallist/iterator.js +0 -8
  41. package/dist/node_modules/minipass-pipeline/node_modules/yallist/package.json +0 -29
  42. package/dist/node_modules/minipass-pipeline/node_modules/yallist/yallist.js +0 -426
  43. package/dist/node_modules/minipass-sized/node_modules/yallist/LICENSE +0 -15
  44. package/dist/node_modules/minipass-sized/node_modules/yallist/iterator.js +0 -8
  45. package/dist/node_modules/minipass-sized/node_modules/yallist/package.json +0 -29
  46. package/dist/node_modules/minipass-sized/node_modules/yallist/yallist.js +0 -426
  47. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.d.ts.map +0 -0
  48. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js +0 -0
  49. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/index.js.map +0 -0
  50. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/commonjs/package.json +0 -0
  51. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.d.ts.map +0 -0
  52. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js +0 -0
  53. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/index.js.map +0 -0
  54. /package/dist/node_modules/{yallist → tar/node_modules/yallist}/dist/esm/package.json +0 -0
  55. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/LICENSE +0 -0
  56. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/iterator.js +0 -0
  57. /package/dist/node_modules/{minipass-flush/node_modules/yallist → yallist}/yallist.js +0 -0
package/README.md CHANGED
@@ -44,9 +44,6 @@ To quote the [Rush](https://rushjs.io/) team:
44
44
  <td align="center" valign="middle">
45
45
  <a href="https://sanity.io/?utm_source=pnpm&utm_medium=readme" target="_blank"><img src="https://pnpm.io/img/users/sanity.svg" width="180" alt="Bit"></a>
46
46
  </td>
47
- <td align="center" valign="middle">
48
- <a href="https://figma.com/?utm_source=pnpm&utm_medium=readme" target="_blank"><img src="https://pnpm.io/img/users/figma.svg" width="80" alt="Figma"></a>
49
- </td>
50
47
  </tr>
51
48
  </tbody>
52
49
  </table>
@@ -65,17 +62,6 @@ To quote the [Rush](https://rushjs.io/) team:
65
62
  </picture>
66
63
  </a>
67
64
  </td>
68
- <td align="center" valign="middle">
69
- <a href="https://prisma.io/?utm_source=pnpm&utm_medium=readme" target="_blank">
70
- <picture>
71
- <source media="(prefers-color-scheme: light)" srcset="https://pnpm.io/img/users/prisma.svg" />
72
- <source media="(prefers-color-scheme: dark)" srcset="https://pnpm.io/img/users/prisma_light.svg" />
73
- <img src="https://pnpm.io/img/users/prisma.svg" width="180" alt="Prisma" />
74
- </picture>
75
- </a>
76
- </td>
77
- </tr>
78
- <tr>
79
65
  <td align="center" valign="middle">
80
66
  <a href="https://uscreen.de/?utm_source=pnpm&utm_medium=readme" target="_blank">
81
67
  <picture>
@@ -85,6 +71,8 @@ To quote the [Rush](https://rushjs.io/) team:
85
71
  </picture>
86
72
  </a>
87
73
  </td>
74
+ </tr>
75
+ <tr>
88
76
  <td align="center" valign="middle">
89
77
  <a href="https://www.jetbrains.com/?utm_source=pnpm&utm_medium=readme" target="_blank">
90
78
  <picture>
@@ -94,8 +82,6 @@ To quote the [Rush](https://rushjs.io/) team:
94
82
  </picture>
95
83
  </a>
96
84
  </td>
97
- </tr>
98
- <tr>
99
85
  <td align="center" valign="middle">
100
86
  <a href="https://nx.dev/?utm_source=pnpm&utm_medium=readme" target="_blank">
101
87
  <picture>
@@ -105,6 +91,8 @@ To quote the [Rush](https://rushjs.io/) team:
105
91
  </picture>
106
92
  </a>
107
93
  </td>
94
+ </tr>
95
+ <tr>
108
96
  <td align="center" valign="middle">
109
97
  <a href="https://coderabbit.ai/?utm_source=pnpm&utm_medium=readme" target="_blank">
110
98
  <picture>
@@ -114,13 +102,13 @@ To quote the [Rush](https://rushjs.io/) team:
114
102
  </picture>
115
103
  </a>
116
104
  </td>
117
- </tr>
118
- <tr>
119
105
  <td align="center" valign="middle">
120
106
  <a href="https://route4me.com/?utm_source=pnpm&utm_medium=readme" target="_blank">
121
107
  <img src="https://pnpm.io/img/users/route4me.svg" width="220" alt="Route4Me" />
122
108
  </a>
123
109
  </td>
110
+ </tr>
111
+ <tr>
124
112
  <td align="center" valign="middle">
125
113
  <a href="https://workleap.com/?utm_source=pnpm&utm_medium=readme" target="_blank">
126
114
  <picture>
@@ -131,13 +119,6 @@ To quote the [Rush](https://rushjs.io/) team:
131
119
  </a>
132
120
  </td>
133
121
  </tr>
134
- <tr>
135
- <td align="center" valign="middle">
136
- <a href="https://canva.com/?utm_source=pnpm&utm_medium=readme" target="_blank">
137
- <img src="https://pnpm.io/img/users/canva.svg" width="120" alt="Canva" />
138
- </a>
139
- </td>
140
- </tr>
141
122
  </tbody>
142
123
  </table>
143
124
 
@@ -16,8 +16,8 @@ hoistedLocations:
16
16
  agent-base@7.1.3:
17
17
  - node_modules/agent-base
18
18
  ansi-regex@5.0.1:
19
- - node_modules/strip-ansi-cjs/node_modules/ansi-regex
20
19
  - node_modules/wrap-ansi-cjs/node_modules/ansi-regex
20
+ - node_modules/strip-ansi-cjs/node_modules/ansi-regex
21
21
  - node_modules/string-width-cjs/node_modules/ansi-regex
22
22
  ansi-regex@6.1.0:
23
23
  - node_modules/ansi-regex
@@ -54,7 +54,7 @@ hoistedLocations:
54
54
  - node_modules/env-paths
55
55
  err-code@2.0.3:
56
56
  - node_modules/err-code
57
- exponential-backoff@3.1.1:
57
+ exponential-backoff@3.1.2:
58
58
  - node_modules/exponential-backoff
59
59
  foreground-child@3.3.0:
60
60
  - node_modules/foreground-child
@@ -116,7 +116,7 @@ hoistedLocations:
116
116
  - node_modules/ms
117
117
  negotiator@1.0.0:
118
118
  - node_modules/negotiator
119
- node-gyp@11.0.0:
119
+ node-gyp@11.1.0:
120
120
  - node_modules/node-gyp
121
121
  nopt@8.1.0:
122
122
  - node_modules/nopt
@@ -138,7 +138,7 @@ hoistedLocations:
138
138
  - node_modules/rimraf
139
139
  safer-buffer@2.1.2:
140
140
  - node_modules/safer-buffer
141
- semver@7.7.0:
141
+ semver@7.7.1:
142
142
  - node_modules/semver
143
143
  shebang-command@2.0.0:
144
144
  - node_modules/shebang-command
@@ -150,7 +150,7 @@ hoistedLocations:
150
150
  - node_modules/smart-buffer
151
151
  socks-proxy-agent@8.0.5:
152
152
  - node_modules/socks-proxy-agent
153
- socks@2.8.3:
153
+ socks@2.8.4:
154
154
  - node_modules/socks
155
155
  sprintf-js@1.1.3:
156
156
  - node_modules/sprintf-js
@@ -184,11 +184,9 @@ hoistedLocations:
184
184
  wrap-ansi@8.1.0:
185
185
  - node_modules/wrap-ansi
186
186
  yallist@4.0.0:
187
- - node_modules/minipass-flush/node_modules/yallist
188
- - node_modules/minipass-pipeline/node_modules/yallist
189
- - node_modules/minipass-sized/node_modules/yallist
190
- yallist@5.0.0:
191
187
  - node_modules/yallist
188
+ yallist@5.0.0:
189
+ - node_modules/tar/node_modules/yallist
192
190
  included:
193
191
  dependencies: true
194
192
  devDependencies: true
@@ -196,9 +194,9 @@ included:
196
194
  injectedDeps: {}
197
195
  layoutVersion: 5
198
196
  nodeLinker: hoisted
199
- packageManager: pnpm@10.1.0
197
+ packageManager: pnpm@10.2.0
200
198
  pendingBuilds: []
201
- prunedAt: Mon, 03 Feb 2025 17:48:38 GMT
199
+ prunedAt: Mon, 10 Feb 2025 23:51:33 GMT
202
200
  publicHoistPattern: []
203
201
  registries:
204
202
  default: https://registry.npmjs.org/
@@ -24,6 +24,7 @@ overrides:
24
24
  path-to-regexp@<0.1.12: ^0.1.12
25
25
  path-to-regexp@>=4.0.0 <6.3.0: '>=6.3.0'
26
26
  path-to-regexp@>=7.0.0 <8.0.0: '>=8.0.0'
27
+ request: npm:postman-request@2.88.1-postman.40
27
28
  semver@<7.5.2: ^7.6.2
28
29
  send@<0.19.0: ^0.19.0
29
30
  serve-static@<1.16.0: ^1.16.0
@@ -42,7 +43,7 @@ importers:
42
43
  optionalDependencies:
43
44
  node-gyp:
44
45
  specifier: ^11.0.0
45
- version: 11.0.0
46
+ version: 11.1.0
46
47
 
47
48
  packages:
48
49
 
@@ -143,8 +144,8 @@ packages:
143
144
  err-code@2.0.3:
144
145
  resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}
145
146
 
146
- exponential-backoff@3.1.1:
147
- resolution: {integrity: sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw==}
147
+ exponential-backoff@3.1.2:
148
+ resolution: {integrity: sha512-8QxYTVXUkuy7fIIoitQkPwGonB8F3Zj8eEO8Sqg9Zv/bkI7RJAzowee4gr81Hak/dUTpA2Z7VfQgoijjPNlUZA==}
148
149
 
149
150
  foreground-child@3.3.0:
150
151
  resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==}
@@ -256,8 +257,8 @@ packages:
256
257
  resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
257
258
  engines: {node: '>= 0.6'}
258
259
 
259
- node-gyp@11.0.0:
260
- resolution: {integrity: sha512-zQS+9MTTeCMgY0F3cWPyJyRFAkVltQ1uXm+xXu/ES6KFgC6Czo1Seb9vQW2wNxSX2OrDTiqL0ojtkFxBQ0ypIw==}
260
+ node-gyp@11.1.0:
261
+ resolution: {integrity: sha512-/+7TuHKnBpnMvUQnsYEb0JOozDZqarQbfNuSGLXIjhStMT0fbw7IdSqWgopOP5xhRZE+lsbIvAHcekddruPZgQ==}
261
262
  engines: {node: ^18.17.0 || >=20.5.0}
262
263
  hasBin: true
263
264
 
@@ -300,8 +301,8 @@ packages:
300
301
  safer-buffer@2.1.2:
301
302
  resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
302
303
 
303
- semver@7.7.0:
304
- resolution: {integrity: sha512-DrfFnPzblFmNrIZzg5RzHegbiRWg7KMR7btwi2yjHwx06zsUbO5g613sVwEV7FTwmzJu+Io0lJe2GJ3LxqpvBQ==}
304
+ semver@7.7.1:
305
+ resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==}
305
306
  engines: {node: '>=10'}
306
307
  hasBin: true
307
308
 
@@ -325,8 +326,8 @@ packages:
325
326
  resolution: {integrity: sha512-HehCEsotFqbPW9sJ8WVYB6UbmIMv7kUUORIF2Nncq4VQvBfNBLibW9YZR5dlYCSUhwcD628pRllm7n+E+YTzJw==}
326
327
  engines: {node: '>= 14'}
327
328
 
328
- socks@2.8.3:
329
- resolution: {integrity: sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw==}
329
+ socks@2.8.4:
330
+ resolution: {integrity: sha512-D3YaD0aRxR3mEcqnidIs7ReYJFVzWdd6fXJYUM8ixcQcJRGTka/b3saV0KflYhyVJXKhb947GndU35SxYNResQ==}
330
331
  engines: {node: '>= 10.0.0', npm: '>= 3.0.0'}
331
332
 
332
333
  sprintf-js@1.1.3:
@@ -422,7 +423,7 @@ snapshots:
422
423
 
423
424
  '@npmcli/fs@4.0.0':
424
425
  dependencies:
425
- semver: 7.7.0
426
+ semver: 7.7.1
426
427
  optional: true
427
428
 
428
429
  '@pkgjs/parseargs@0.11.0':
@@ -515,7 +516,7 @@ snapshots:
515
516
  err-code@2.0.3:
516
517
  optional: true
517
518
 
518
- exponential-backoff@3.1.1:
519
+ exponential-backoff@3.1.2:
519
520
  optional: true
520
521
 
521
522
  foreground-child@3.3.0:
@@ -671,16 +672,16 @@ snapshots:
671
672
  negotiator@1.0.0:
672
673
  optional: true
673
674
 
674
- node-gyp@11.0.0:
675
+ node-gyp@11.1.0:
675
676
  dependencies:
676
677
  env-paths: 2.2.1
677
- exponential-backoff: 3.1.1
678
+ exponential-backoff: 3.1.2
678
679
  glob: 10.4.5
679
680
  graceful-fs: 4.2.11
680
681
  make-fetch-happen: 14.0.3
681
682
  nopt: 8.1.0
682
683
  proc-log: 5.0.0
683
- semver: 7.7.0
684
+ semver: 7.7.1
684
685
  tar: 7.4.3
685
686
  which: 5.0.0
686
687
  transitivePeerDependencies:
@@ -727,7 +728,7 @@ snapshots:
727
728
  safer-buffer@2.1.2:
728
729
  optional: true
729
730
 
730
- semver@7.7.0:
731
+ semver@7.7.1:
731
732
  optional: true
732
733
 
733
734
  shebang-command@2.0.0:
@@ -748,12 +749,12 @@ snapshots:
748
749
  dependencies:
749
750
  agent-base: 7.1.3
750
751
  debug: 4.4.0
751
- socks: 2.8.3
752
+ socks: 2.8.4
752
753
  transitivePeerDependencies:
753
754
  - supports-color
754
755
  optional: true
755
756
 
756
- socks@2.8.3:
757
+ socks@2.8.4:
757
758
  dependencies:
758
759
  ip-address: 9.0.5
759
760
  smart-buffer: 4.2.0
@@ -1,5 +1,5 @@
1
1
  {
2
- "lastValidatedTimestamp": 1738604918674,
2
+ "lastValidatedTimestamp": 1739231494019,
3
3
  "projects": {},
4
4
  "pnpmfileExists": false,
5
5
  "settings": {
@@ -187,7 +187,7 @@
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright [yyyy] [name of copyright owner]
190
+ Copyright 2019 Coveo Solutions Inc.
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
@@ -199,4 +199,4 @@
199
199
  distributed under the License is distributed on an "AS IS" BASIS,
200
200
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
201
  See the License for the specific language governing permissions and
202
- limitations under the License.
202
+ limitations under the License.
@@ -38,6 +38,12 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  var options_1 = require("./options");
40
40
  var delay_factory_1 = require("./delay/delay.factory");
41
+ /**
42
+ * Executes a function with exponential backoff.
43
+ * @param request the function to be executed
44
+ * @param options options to customize the backoff behavior
45
+ * @returns Promise that resolves to the result of the `request` function
46
+ */
41
47
  function backOff(request, options) {
42
48
  if (options === void 0) { options = {}; }
43
49
  return __awaiter(this, void 0, void 0, function () {
@@ -1 +1 @@
1
- {"version":3,"file":"backoff.js","sourceRoot":"","sources":["../src/backoff.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAImB;AACnB,uDAAqD;AAIrD,SAAsB,OAAO,CAC3B,OAAyB,EACzB,OAA4B;IAA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AAC,OAAO,CAAC,aAAa,CAAC;QAC1D,CAAC;;;OAAA;IAEa,4BAAU,GAAxB;;;;;;wBACQ,KAAK,GAAG,4BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;wBAC7D,qBAAM,KAAK,CAAC,KAAK,EAAE,EAAA;;wBAAnB,SAAmB,CAAC;;;;;KACrB;IACH,cAAC;AAAD,CAAC,AAlCD,IAkCC"}
@@ -1 +1 @@
1
- {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAcA,IAAM,cAAc,GAAoB;IACtC,iBAAiB,EAAE,KAAK;IACxB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,QAAQ;IAClB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IACjB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,CAAC;CAChB,CAAC;AAEF,SAAgB,mBAAmB,CAAC,OAAuB;IACzD,IAAM,SAAS,yBAAyB,cAAc,GAAK,OAAO,CAAE,CAAC;IAErE,IAAI,SAAS,CAAC,aAAa,GAAG,CAAC,EAAE;QAC/B,SAAS,CAAC,aAAa,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AARD,kDAQC"}
1
+ {"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAyDA,IAAM,cAAc,GAAoB;IACtC,iBAAiB,EAAE,KAAK;IACxB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,QAAQ;IAClB,aAAa,EAAE,EAAE;IACjB,KAAK,EAAE,cAAM,OAAA,IAAI,EAAJ,CAAI;IACjB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,CAAC;CAChB,CAAC;AAEF,SAAgB,mBAAmB,CAAC,OAAuB;IACzD,IAAM,SAAS,yBAAyB,cAAc,GAAK,OAAO,CAAE,CAAC;IAErE,IAAI,SAAS,CAAC,aAAa,GAAG,CAAC,EAAE;QAC/B,SAAS,CAAC,aAAa,GAAG,CAAC,CAAC;KAC7B;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AARD,kDAQC"}
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "exponential-backoff",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A utility that allows retrying a function with an exponential delay between attempts.",
5
5
  "files": [
6
- "dist/"
6
+ "dist/",
7
+ "src/"
7
8
  ],
8
9
  "main": "dist/backoff.js",
9
10
  "types": "dist/backoff.d.ts",
@@ -35,7 +36,7 @@
35
36
  },
36
37
  "repository": {
37
38
  "type": "git",
38
- "url": "git+https://github.com/coveo/exponential-backoff.git"
39
+ "url": "git+https://github.com/coveooss/exponential-backoff.git"
39
40
  },
40
41
  "keywords": [
41
42
  "exponential",
@@ -45,9 +46,9 @@
45
46
  "author": "Sami Sayegh",
46
47
  "license": "Apache-2.0",
47
48
  "bugs": {
48
- "url": "https://github.com/coveo/exponential-backoff/issues"
49
+ "url": "https://github.com/coveooss/exponential-backoff/issues"
49
50
  },
50
- "homepage": "https://github.com/coveo/exponential-backoff#readme",
51
+ "homepage": "https://github.com/coveooss/exponential-backoff#readme",
51
52
  "devDependencies": {
52
53
  "@types/jest": "^24.0.18",
53
54
  "@types/node": "^10.14.21",
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "11.0.0"
2
+ ".": "11.1.0"
3
3
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.18.1"
2
+ ".": "0.19.1"
3
3
  }
@@ -171,7 +171,7 @@ class _Integer(_Type):
171
171
  int(value, self._msbuild_base)
172
172
 
173
173
  def ConvertToMSBuild(self, value):
174
- msbuild_format = (self._msbuild_base == 10) and "%d" or "0x%04x"
174
+ msbuild_format = ((self._msbuild_base == 10) and "%d") or "0x%04x"
175
175
  return msbuild_format % int(value)
176
176
 
177
177
 
@@ -69,7 +69,7 @@ class VisualStudioVersion:
69
69
 
70
70
  def ProjectExtension(self):
71
71
  """Returns the file extension for the project."""
72
- return self.uses_vcxproj and ".vcxproj" or ".vcproj"
72
+ return (self.uses_vcxproj and ".vcxproj") or ".vcproj"
73
73
 
74
74
  def Path(self):
75
75
  """Returns the path to Visual Studio installation."""
@@ -4,7 +4,7 @@
4
4
  # Use of this source code is governed by a BSD-style license that can be
5
5
  # found in the LICENSE file.
6
6
 
7
-
7
+ from __future__ import annotations
8
8
  import copy
9
9
  import gyp.input
10
10
  import argparse
@@ -24,6 +24,18 @@ DEBUG_GENERAL = "general"
24
24
  DEBUG_VARIABLES = "variables"
25
25
  DEBUG_INCLUDES = "includes"
26
26
 
27
+ def EscapeForCString(string: bytes | str) -> str:
28
+ if isinstance(string, str):
29
+ string = string.encode(encoding='utf8')
30
+
31
+ backslash_or_double_quote = {ord('\\'), ord('"')}
32
+ result = ''
33
+ for char in string:
34
+ if char in backslash_or_double_quote or not 32 <= char < 127:
35
+ result += '\\%03o' % char
36
+ else:
37
+ result += chr(char)
38
+ return result
27
39
 
28
40
  def DebugOutput(mode, message, *args):
29
41
  if "all" in gyp.debug or mode in gyp.debug:
@@ -106,18 +118,19 @@ def Load(
106
118
 
107
119
  output_dir = params["options"].generator_output or params["options"].toplevel_dir
108
120
  if default_variables["GENERATOR"] == "ninja":
109
- default_variables.setdefault(
110
- "PRODUCT_DIR_ABS",
111
- os.path.join(
112
- output_dir, "out", default_variables.get("build_type", "default")
113
- ),
121
+ product_dir_abs = os.path.join(
122
+ output_dir, "out", default_variables.get("build_type", "default")
114
123
  )
115
124
  else:
116
- default_variables.setdefault(
117
- "PRODUCT_DIR_ABS",
118
- os.path.join(output_dir, default_variables["CONFIGURATION_NAME"]),
125
+ product_dir_abs = os.path.join(
126
+ output_dir, default_variables["CONFIGURATION_NAME"]
119
127
  )
120
128
 
129
+ default_variables.setdefault("PRODUCT_DIR_ABS", product_dir_abs)
130
+ default_variables.setdefault(
131
+ "PRODUCT_DIR_ABS_CSTR", EscapeForCString(product_dir_abs)
132
+ )
133
+
121
134
  # Give the generator the opportunity to set additional variables based on
122
135
  # the params it will receive in the output phase.
123
136
  if getattr(generator, "CalculateVariables", None):
@@ -253,7 +266,7 @@ def RegenerateFlags(options):
253
266
  for name, metadata in options._regeneration_metadata.items():
254
267
  opt = metadata["opt"]
255
268
  value = getattr(options, name)
256
- value_predicate = metadata["type"] == "path" and FixPath or Noop
269
+ value_predicate = (metadata["type"] == "path" and FixPath) or Noop
257
270
  action = metadata["action"]
258
271
  env_name = metadata["env_name"]
259
272
  if action == "append":
@@ -699,7 +699,7 @@ class TargetCalculator:
699
699
  ) & set(self._root_targets)
700
700
  if matching_test_targets_contains_all:
701
701
  # Remove any of the targets for all that were not explicitly supplied,
702
- # 'all' is subsequentely added to the matching names below.
702
+ # 'all' is subsequently added to the matching names below.
703
703
  matching_test_targets = list(
704
704
  set(matching_test_targets) & set(test_targets_no_all)
705
705
  )
@@ -769,7 +769,7 @@ class AndroidMkWriter:
769
769
  Args:
770
770
  cflags: A list of compiler flags, which may be mixed with "-I.."
771
771
  Returns:
772
- A tuple of lists: (clean_clfags, include_paths). "-I.." is trimmed.
772
+ A tuple of lists: (clean_cflags, include_paths). "-I.." is trimmed.
773
773
  """
774
774
  clean_cflags = []
775
775
  include_paths = []
@@ -251,7 +251,7 @@ def WriteActions(target_name, actions, extra_sources, extra_deps, path_to_gyp, o
251
251
  target_name: the name of the CMake target being generated.
252
252
  actions: the Gyp 'actions' dict for this target.
253
253
  extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
254
- extra_deps: [<cmake_taget>] to append with generated targets.
254
+ extra_deps: [<cmake_target>] to append with generated targets.
255
255
  path_to_gyp: relative path from CMakeLists.txt being generated to
256
256
  the Gyp file in which the target being generated is defined.
257
257
  """
@@ -340,7 +340,7 @@ def WriteRules(target_name, rules, extra_sources, extra_deps, path_to_gyp, outpu
340
340
  target_name: the name of the CMake target being generated.
341
341
  actions: the Gyp 'actions' dict for this target.
342
342
  extra_sources: [(<cmake_src>, <src>)] to append with generated source files.
343
- extra_deps: [<cmake_taget>] to append with generated targets.
343
+ extra_deps: [<cmake_target>] to append with generated targets.
344
344
  path_to_gyp: relative path from CMakeLists.txt being generated to
345
345
  the Gyp file in which the target being generated is defined.
346
346
  """
@@ -457,7 +457,7 @@ def WriteCopies(target_name, copies, extra_deps, path_to_gyp, output):
457
457
  Args:
458
458
  target_name: the name of the CMake target being generated.
459
459
  actions: the Gyp 'actions' dict for this target.
460
- extra_deps: [<cmake_taget>] to append with generated targets.
460
+ extra_deps: [<cmake_target>] to append with generated targets.
461
461
  path_to_gyp: relative path from CMakeLists.txt being generated to
462
462
  the Gyp file in which the target being generated is defined.
463
463
  """
@@ -603,7 +603,7 @@ class CMakeNamer:
603
603
  """
604
604
 
605
605
  def __init__(self, target_list):
606
- self.cmake_target_base_names_conficting = set()
606
+ self.cmake_target_base_names_conflicting = set()
607
607
 
608
608
  cmake_target_base_names_seen = set()
609
609
  for qualified_target in target_list:
@@ -612,11 +612,11 @@ class CMakeNamer:
612
612
  if cmake_target_base_name not in cmake_target_base_names_seen:
613
613
  cmake_target_base_names_seen.add(cmake_target_base_name)
614
614
  else:
615
- self.cmake_target_base_names_conficting.add(cmake_target_base_name)
615
+ self.cmake_target_base_names_conflicting.add(cmake_target_base_name)
616
616
 
617
617
  def CreateCMakeTargetName(self, qualified_target):
618
618
  base_name = CreateCMakeTargetBaseName(qualified_target)
619
- if base_name in self.cmake_target_base_names_conficting:
619
+ if base_name in self.cmake_target_base_names_conflicting:
620
620
  return CreateCMakeTargetFullName(qualified_target)
621
621
  return base_name
622
622
 
@@ -208,7 +208,7 @@ cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(
208
208
 
209
209
  LINK_COMMANDS_MAC = """\
210
210
  quiet_cmd_alink = LIBTOOL-STATIC $@
211
- cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
211
+ cmd_alink = rm -f $@ && %(python)s gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %%.o,$^)
212
212
 
213
213
  quiet_cmd_link = LINK($(TOOLSET)) $@
214
214
  cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
@@ -218,7 +218,7 @@ cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o
218
218
 
219
219
  quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
220
220
  cmd_solink_module = $(LINK.$(TOOLSET)) -bundle $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ $(filter-out FORCE_DO_CMD, $^) $(LIBS)
221
- """ # noqa: E501
221
+ """ % {'python': sys.executable} # noqa: E501
222
222
 
223
223
  LINK_COMMANDS_ANDROID = """\
224
224
  quiet_cmd_alink = AR($(TOOLSET)) $@
@@ -609,14 +609,14 @@ cmd_pch_mm = $(CC.$(TOOLSET)) $(GYP_PCH_OBJCXXFLAGS) $(DEPFLAGS) -c -o $@ $<
609
609
  # Use $(4) for the command, since $(2) and $(3) are used as flag by do_cmd
610
610
  # already.
611
611
  quiet_cmd_mac_tool = MACTOOL $(4) $<
612
- cmd_mac_tool = ./gyp-mac-tool $(4) $< "$@"
612
+ cmd_mac_tool = %(python)s gyp-mac-tool $(4) $< "$@"
613
613
 
614
614
  quiet_cmd_mac_package_framework = PACKAGE FRAMEWORK $@
615
- cmd_mac_package_framework = ./gyp-mac-tool package-framework "$@" $(4)
615
+ cmd_mac_package_framework = %(python)s gyp-mac-tool package-framework "$@" $(4)
616
616
 
617
617
  quiet_cmd_infoplist = INFOPLIST $@
618
618
  cmd_infoplist = $(CC.$(TOOLSET)) -E -P -Wno-trigraphs -x c $(INFOPLIST_DEFINES) "$<" -o "$@"
619
- """ # noqa: E501
619
+ """ % {'python': sys.executable} # noqa: E501
620
620
 
621
621
 
622
622
  def WriteRootHeaderSuffixRules(writer):
@@ -788,7 +788,7 @@ class MakefileWriter:
788
788
  self.suffix_rules_objdir2 = {}
789
789
 
790
790
  # Generate suffix rules for all compilable extensions.
791
- for ext in COMPILABLE_EXTENSIONS:
791
+ for ext, value in COMPILABLE_EXTENSIONS.items():
792
792
  # Suffix rules for source folder.
793
793
  self.suffix_rules_srcdir.update(
794
794
  {
@@ -797,7 +797,7 @@ class MakefileWriter:
797
797
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
798
798
  \t@$(call do_cmd,%s,1)
799
799
  """
800
- % (ext, COMPILABLE_EXTENSIONS[ext])
800
+ % (ext, value)
801
801
  )
802
802
  }
803
803
  )
@@ -810,7 +810,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(srcdir)/%%%s FORCE_DO_CMD
810
810
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
811
811
  \t@$(call do_cmd,%s,1)
812
812
  """
813
- % (ext, COMPILABLE_EXTENSIONS[ext])
813
+ % (ext, value)
814
814
  )
815
815
  }
816
816
  )
@@ -821,7 +821,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj).$(TOOLSET)/%%%s FORCE_DO_CMD
821
821
  $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
822
822
  \t@$(call do_cmd,%s,1)
823
823
  """
824
- % (ext, COMPILABLE_EXTENSIONS[ext])
824
+ % (ext, value)
825
825
  )
826
826
  }
827
827
  )
@@ -1779,13 +1779,13 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
1779
1779
  # using ":=".
1780
1780
  self.WriteSortedXcodeEnv(self.output, self.GetSortedXcodePostbuildEnv())
1781
1781
 
1782
- for configname in target_postbuilds:
1782
+ for configname, value in target_postbuilds.items():
1783
1783
  self.WriteLn(
1784
1784
  "%s: TARGET_POSTBUILDS_%s := %s"
1785
1785
  % (
1786
1786
  QuoteSpaces(self.output),
1787
1787
  configname,
1788
- gyp.common.EncodePOSIXShellList(target_postbuilds[configname]),
1788
+ gyp.common.EncodePOSIXShellList(value),
1789
1789
  )
1790
1790
  )
1791
1791
 
@@ -1834,7 +1834,7 @@ $(obj).$(TOOLSET)/$(TARGET)/%%.o: $(obj)/%%%s FORCE_DO_CMD
1834
1834
  # Since this target depends on binary and resources which are in
1835
1835
  # nested subfolders, the framework directory will be older than
1836
1836
  # its dependencies usually. To prevent this rule from executing
1837
- # on every build (expensive, especially with postbuilds), expliclity
1837
+ # on every build (expensive, especially with postbuilds), explicitly
1838
1838
  # update the time on the framework directory.
1839
1839
  self.WriteLn("\t@touch -c %s" % QuoteSpaces(self.output))
1840
1840
 
@@ -2498,7 +2498,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2498
2498
  "PLI.host": PLI_host,
2499
2499
  }
2500
2500
  if flavor == "mac":
2501
- flock_command = "./gyp-mac-tool flock"
2501
+ flock_command = "%s gyp-mac-tool flock" % sys.executable
2502
2502
  header_params.update(
2503
2503
  {
2504
2504
  "flock": flock_command,
@@ -2548,7 +2548,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2548
2548
  header_params.update(
2549
2549
  {
2550
2550
  "copy_archive_args": copy_archive_arguments,
2551
- "flock": "./gyp-flock-tool flock",
2551
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2552
2552
  "flock_index": 2,
2553
2553
  }
2554
2554
  )
@@ -2564,7 +2564,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2564
2564
  {
2565
2565
  "copy_archive_args": copy_archive_arguments,
2566
2566
  "link_commands": LINK_COMMANDS_AIX,
2567
- "flock": "./gyp-flock-tool flock",
2567
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2568
2568
  "flock_index": 2,
2569
2569
  }
2570
2570
  )
@@ -2574,7 +2574,7 @@ def GenerateOutput(target_list, target_dicts, data, params):
2574
2574
  {
2575
2575
  "copy_archive_args": copy_archive_arguments,
2576
2576
  "link_commands": LINK_COMMANDS_OS400,
2577
- "flock": "./gyp-flock-tool flock",
2577
+ "flock": "%s gyp-flock-tool flock" % sys.executable,
2578
2578
  "flock_index": 2,
2579
2579
  }
2580
2580
  )