@mcpher/gas-fakes 1.1.0 → 1.1.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.
@@ -9,12 +9,14 @@
9
9
  "version": "1.0.0",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
- "@mcpher/gas-fakes": "file:../../"
12
+ "@mcpher/gas-fakes": "file:../../",
13
+ "google-auth-library": ">=9.0.0",
14
+ "googleapis": ">=157.0.0"
13
15
  }
14
16
  },
15
17
  "../..": {
16
18
  "name": "@mcpher/gas-fakes",
17
- "version": "1.0.27",
19
+ "version": "1.1.0",
18
20
  "license": "MIT",
19
21
  "dependencies": {
20
22
  "@google-cloud/logging": "^11.2.1",
@@ -45,6 +47,830 @@
45
47
  "node_modules/@mcpher/gas-fakes": {
46
48
  "resolved": "../..",
47
49
  "link": true
50
+ },
51
+ "node_modules/agent-base": {
52
+ "version": "7.1.4",
53
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.4.tgz",
54
+ "integrity": "sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==",
55
+ "license": "MIT",
56
+ "engines": {
57
+ "node": ">= 14"
58
+ }
59
+ },
60
+ "node_modules/base64-js": {
61
+ "version": "1.5.1",
62
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
63
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
64
+ "funding": [
65
+ {
66
+ "type": "github",
67
+ "url": "https://github.com/sponsors/feross"
68
+ },
69
+ {
70
+ "type": "patreon",
71
+ "url": "https://www.patreon.com/feross"
72
+ },
73
+ {
74
+ "type": "consulting",
75
+ "url": "https://feross.org/support"
76
+ }
77
+ ],
78
+ "license": "MIT"
79
+ },
80
+ "node_modules/bignumber.js": {
81
+ "version": "9.3.1",
82
+ "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz",
83
+ "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==",
84
+ "license": "MIT",
85
+ "engines": {
86
+ "node": "*"
87
+ }
88
+ },
89
+ "node_modules/buffer-equal-constant-time": {
90
+ "version": "1.0.1",
91
+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",
92
+ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
93
+ "license": "BSD-3-Clause"
94
+ },
95
+ "node_modules/call-bind-apply-helpers": {
96
+ "version": "1.0.2",
97
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
98
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
99
+ "license": "MIT",
100
+ "dependencies": {
101
+ "es-errors": "^1.3.0",
102
+ "function-bind": "^1.1.2"
103
+ },
104
+ "engines": {
105
+ "node": ">= 0.4"
106
+ }
107
+ },
108
+ "node_modules/call-bound": {
109
+ "version": "1.0.4",
110
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
111
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
112
+ "license": "MIT",
113
+ "dependencies": {
114
+ "call-bind-apply-helpers": "^1.0.2",
115
+ "get-intrinsic": "^1.3.0"
116
+ },
117
+ "engines": {
118
+ "node": ">= 0.4"
119
+ },
120
+ "funding": {
121
+ "url": "https://github.com/sponsors/ljharb"
122
+ }
123
+ },
124
+ "node_modules/data-uri-to-buffer": {
125
+ "version": "4.0.1",
126
+ "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
127
+ "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
128
+ "license": "MIT",
129
+ "engines": {
130
+ "node": ">= 12"
131
+ }
132
+ },
133
+ "node_modules/debug": {
134
+ "version": "4.4.3",
135
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
136
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
137
+ "license": "MIT",
138
+ "dependencies": {
139
+ "ms": "^2.1.3"
140
+ },
141
+ "engines": {
142
+ "node": ">=6.0"
143
+ },
144
+ "peerDependenciesMeta": {
145
+ "supports-color": {
146
+ "optional": true
147
+ }
148
+ }
149
+ },
150
+ "node_modules/dunder-proto": {
151
+ "version": "1.0.1",
152
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
153
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
154
+ "license": "MIT",
155
+ "dependencies": {
156
+ "call-bind-apply-helpers": "^1.0.1",
157
+ "es-errors": "^1.3.0",
158
+ "gopd": "^1.2.0"
159
+ },
160
+ "engines": {
161
+ "node": ">= 0.4"
162
+ }
163
+ },
164
+ "node_modules/ecdsa-sig-formatter": {
165
+ "version": "1.0.11",
166
+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",
167
+ "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",
168
+ "license": "Apache-2.0",
169
+ "dependencies": {
170
+ "safe-buffer": "^5.0.1"
171
+ }
172
+ },
173
+ "node_modules/es-define-property": {
174
+ "version": "1.0.1",
175
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
176
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
177
+ "license": "MIT",
178
+ "engines": {
179
+ "node": ">= 0.4"
180
+ }
181
+ },
182
+ "node_modules/es-errors": {
183
+ "version": "1.3.0",
184
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
185
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
186
+ "license": "MIT",
187
+ "engines": {
188
+ "node": ">= 0.4"
189
+ }
190
+ },
191
+ "node_modules/es-object-atoms": {
192
+ "version": "1.1.1",
193
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
194
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
195
+ "license": "MIT",
196
+ "dependencies": {
197
+ "es-errors": "^1.3.0"
198
+ },
199
+ "engines": {
200
+ "node": ">= 0.4"
201
+ }
202
+ },
203
+ "node_modules/extend": {
204
+ "version": "3.0.2",
205
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
206
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
207
+ "license": "MIT"
208
+ },
209
+ "node_modules/fetch-blob": {
210
+ "version": "3.2.0",
211
+ "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz",
212
+ "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==",
213
+ "funding": [
214
+ {
215
+ "type": "github",
216
+ "url": "https://github.com/sponsors/jimmywarting"
217
+ },
218
+ {
219
+ "type": "paypal",
220
+ "url": "https://paypal.me/jimmywarting"
221
+ }
222
+ ],
223
+ "license": "MIT",
224
+ "dependencies": {
225
+ "node-domexception": "^1.0.0",
226
+ "web-streams-polyfill": "^3.0.3"
227
+ },
228
+ "engines": {
229
+ "node": "^12.20 || >= 14.13"
230
+ }
231
+ },
232
+ "node_modules/formdata-polyfill": {
233
+ "version": "4.0.10",
234
+ "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz",
235
+ "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==",
236
+ "license": "MIT",
237
+ "dependencies": {
238
+ "fetch-blob": "^3.1.2"
239
+ },
240
+ "engines": {
241
+ "node": ">=12.20.0"
242
+ }
243
+ },
244
+ "node_modules/function-bind": {
245
+ "version": "1.1.2",
246
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
247
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
248
+ "license": "MIT",
249
+ "funding": {
250
+ "url": "https://github.com/sponsors/ljharb"
251
+ }
252
+ },
253
+ "node_modules/gaxios": {
254
+ "version": "6.7.1",
255
+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-6.7.1.tgz",
256
+ "integrity": "sha512-LDODD4TMYx7XXdpwxAVRAIAuB0bzv0s+ywFonY46k126qzQHT9ygyoa9tncmOiQmmDrik65UYsEkv3lbfqQ3yQ==",
257
+ "license": "Apache-2.0",
258
+ "dependencies": {
259
+ "extend": "^3.0.2",
260
+ "https-proxy-agent": "^7.0.1",
261
+ "is-stream": "^2.0.0",
262
+ "node-fetch": "^2.6.9",
263
+ "uuid": "^9.0.1"
264
+ },
265
+ "engines": {
266
+ "node": ">=14"
267
+ }
268
+ },
269
+ "node_modules/gcp-metadata": {
270
+ "version": "6.1.1",
271
+ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-6.1.1.tgz",
272
+ "integrity": "sha512-a4tiq7E0/5fTjxPAaH4jpjkSv/uCaU2p5KC6HVGrvl0cDjA8iBZv4vv1gyzlmK0ZUKqwpOyQMKzZQe3lTit77A==",
273
+ "license": "Apache-2.0",
274
+ "dependencies": {
275
+ "gaxios": "^6.1.1",
276
+ "google-logging-utils": "^0.0.2",
277
+ "json-bigint": "^1.0.0"
278
+ },
279
+ "engines": {
280
+ "node": ">=14"
281
+ }
282
+ },
283
+ "node_modules/get-intrinsic": {
284
+ "version": "1.3.0",
285
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
286
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
287
+ "license": "MIT",
288
+ "dependencies": {
289
+ "call-bind-apply-helpers": "^1.0.2",
290
+ "es-define-property": "^1.0.1",
291
+ "es-errors": "^1.3.0",
292
+ "es-object-atoms": "^1.1.1",
293
+ "function-bind": "^1.1.2",
294
+ "get-proto": "^1.0.1",
295
+ "gopd": "^1.2.0",
296
+ "has-symbols": "^1.1.0",
297
+ "hasown": "^2.0.2",
298
+ "math-intrinsics": "^1.1.0"
299
+ },
300
+ "engines": {
301
+ "node": ">= 0.4"
302
+ },
303
+ "funding": {
304
+ "url": "https://github.com/sponsors/ljharb"
305
+ }
306
+ },
307
+ "node_modules/get-proto": {
308
+ "version": "1.0.1",
309
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
310
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
311
+ "license": "MIT",
312
+ "dependencies": {
313
+ "dunder-proto": "^1.0.1",
314
+ "es-object-atoms": "^1.0.0"
315
+ },
316
+ "engines": {
317
+ "node": ">= 0.4"
318
+ }
319
+ },
320
+ "node_modules/google-auth-library": {
321
+ "version": "9.15.1",
322
+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-9.15.1.tgz",
323
+ "integrity": "sha512-Jb6Z0+nvECVz+2lzSMt9u98UsoakXxA2HGHMCxh+so3n90XgYWkq5dur19JAJV7ONiJY22yBTyJB1TSkvPq9Ng==",
324
+ "license": "Apache-2.0",
325
+ "dependencies": {
326
+ "base64-js": "^1.3.0",
327
+ "ecdsa-sig-formatter": "^1.0.11",
328
+ "gaxios": "^6.1.1",
329
+ "gcp-metadata": "^6.1.0",
330
+ "gtoken": "^7.0.0",
331
+ "jws": "^4.0.0"
332
+ },
333
+ "engines": {
334
+ "node": ">=14"
335
+ }
336
+ },
337
+ "node_modules/google-logging-utils": {
338
+ "version": "0.0.2",
339
+ "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-0.0.2.tgz",
340
+ "integrity": "sha512-NEgUnEcBiP5HrPzufUkBzJOD/Sxsco3rLNo1F1TNf7ieU8ryUzBhqba8r756CjLX7rn3fHl6iLEwPYuqpoKgQQ==",
341
+ "license": "Apache-2.0",
342
+ "engines": {
343
+ "node": ">=14"
344
+ }
345
+ },
346
+ "node_modules/googleapis": {
347
+ "version": "157.0.0",
348
+ "resolved": "https://registry.npmjs.org/googleapis/-/googleapis-157.0.0.tgz",
349
+ "integrity": "sha512-0q6V93amJANRu1BRkeG6eftrAxweM7ZLbgRshmRg2zLSPpPLaRiDFCckHpEOFspXGglfw8l+hZql7NgWPwAwfQ==",
350
+ "license": "Apache-2.0",
351
+ "dependencies": {
352
+ "google-auth-library": "^10.2.0",
353
+ "googleapis-common": "^8.0.0"
354
+ },
355
+ "engines": {
356
+ "node": ">=18"
357
+ }
358
+ },
359
+ "node_modules/googleapis-common": {
360
+ "version": "8.0.0",
361
+ "resolved": "https://registry.npmjs.org/googleapis-common/-/googleapis-common-8.0.0.tgz",
362
+ "integrity": "sha512-66if47It7y+Sab3HMkwEXx1kCq9qUC9px8ZXoj1CMrmLmUw81GpbnsNlXnlyZyGbGPGcj+tDD9XsZ23m7GLaJQ==",
363
+ "license": "Apache-2.0",
364
+ "dependencies": {
365
+ "extend": "^3.0.2",
366
+ "gaxios": "^7.0.0-rc.4",
367
+ "google-auth-library": "^10.1.0",
368
+ "qs": "^6.7.0",
369
+ "url-template": "^2.0.8"
370
+ },
371
+ "engines": {
372
+ "node": ">=18.0.0"
373
+ }
374
+ },
375
+ "node_modules/googleapis-common/node_modules/gaxios": {
376
+ "version": "7.1.2",
377
+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.2.tgz",
378
+ "integrity": "sha512-/Szrn8nr+2TsQT1Gp8iIe/BEytJmbyfrbFh419DfGQSkEgNEhbPi7JRJuughjkTzPWgU9gBQf5AVu3DbHt0OXA==",
379
+ "license": "Apache-2.0",
380
+ "dependencies": {
381
+ "extend": "^3.0.2",
382
+ "https-proxy-agent": "^7.0.1",
383
+ "node-fetch": "^3.3.2"
384
+ },
385
+ "engines": {
386
+ "node": ">=18"
387
+ }
388
+ },
389
+ "node_modules/googleapis-common/node_modules/gcp-metadata": {
390
+ "version": "7.0.1",
391
+ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-7.0.1.tgz",
392
+ "integrity": "sha512-UcO3kefx6dCcZkgcTGgVOTFb7b1LlQ02hY1omMjjrrBzkajRMCFgYOjs7J71WqnuG1k2b+9ppGL7FsOfhZMQKQ==",
393
+ "license": "Apache-2.0",
394
+ "dependencies": {
395
+ "gaxios": "^7.0.0",
396
+ "google-logging-utils": "^1.0.0",
397
+ "json-bigint": "^1.0.0"
398
+ },
399
+ "engines": {
400
+ "node": ">=18"
401
+ }
402
+ },
403
+ "node_modules/googleapis-common/node_modules/google-auth-library": {
404
+ "version": "10.4.0",
405
+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.4.0.tgz",
406
+ "integrity": "sha512-CmIrSy1bqMQUsPmA9+hcSbAXL80cFhu40cGMUjCaLpNKVzzvi+0uAHq8GNZxkoGYIsTX4ZQ7e4aInAqWxgn4fg==",
407
+ "license": "Apache-2.0",
408
+ "dependencies": {
409
+ "base64-js": "^1.3.0",
410
+ "ecdsa-sig-formatter": "^1.0.11",
411
+ "gaxios": "^7.0.0",
412
+ "gcp-metadata": "^7.0.0",
413
+ "google-logging-utils": "^1.0.0",
414
+ "gtoken": "^8.0.0",
415
+ "jws": "^4.0.0"
416
+ },
417
+ "engines": {
418
+ "node": ">=18"
419
+ }
420
+ },
421
+ "node_modules/googleapis-common/node_modules/google-logging-utils": {
422
+ "version": "1.1.1",
423
+ "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.1.tgz",
424
+ "integrity": "sha512-rcX58I7nqpu4mbKztFeOAObbomBbHU2oIb/d3tJfF3dizGSApqtSwYJigGCooHdnMyQBIw8BrWyK96w3YXgr6A==",
425
+ "license": "Apache-2.0",
426
+ "engines": {
427
+ "node": ">=14"
428
+ }
429
+ },
430
+ "node_modules/googleapis-common/node_modules/gtoken": {
431
+ "version": "8.0.0",
432
+ "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz",
433
+ "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==",
434
+ "license": "MIT",
435
+ "dependencies": {
436
+ "gaxios": "^7.0.0",
437
+ "jws": "^4.0.0"
438
+ },
439
+ "engines": {
440
+ "node": ">=18"
441
+ }
442
+ },
443
+ "node_modules/googleapis-common/node_modules/node-fetch": {
444
+ "version": "3.3.2",
445
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
446
+ "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
447
+ "license": "MIT",
448
+ "dependencies": {
449
+ "data-uri-to-buffer": "^4.0.0",
450
+ "fetch-blob": "^3.1.4",
451
+ "formdata-polyfill": "^4.0.10"
452
+ },
453
+ "engines": {
454
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
455
+ },
456
+ "funding": {
457
+ "type": "opencollective",
458
+ "url": "https://opencollective.com/node-fetch"
459
+ }
460
+ },
461
+ "node_modules/googleapis/node_modules/gaxios": {
462
+ "version": "7.1.2",
463
+ "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.1.2.tgz",
464
+ "integrity": "sha512-/Szrn8nr+2TsQT1Gp8iIe/BEytJmbyfrbFh419DfGQSkEgNEhbPi7JRJuughjkTzPWgU9gBQf5AVu3DbHt0OXA==",
465
+ "license": "Apache-2.0",
466
+ "dependencies": {
467
+ "extend": "^3.0.2",
468
+ "https-proxy-agent": "^7.0.1",
469
+ "node-fetch": "^3.3.2"
470
+ },
471
+ "engines": {
472
+ "node": ">=18"
473
+ }
474
+ },
475
+ "node_modules/googleapis/node_modules/gcp-metadata": {
476
+ "version": "7.0.1",
477
+ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-7.0.1.tgz",
478
+ "integrity": "sha512-UcO3kefx6dCcZkgcTGgVOTFb7b1LlQ02hY1omMjjrrBzkajRMCFgYOjs7J71WqnuG1k2b+9ppGL7FsOfhZMQKQ==",
479
+ "license": "Apache-2.0",
480
+ "dependencies": {
481
+ "gaxios": "^7.0.0",
482
+ "google-logging-utils": "^1.0.0",
483
+ "json-bigint": "^1.0.0"
484
+ },
485
+ "engines": {
486
+ "node": ">=18"
487
+ }
488
+ },
489
+ "node_modules/googleapis/node_modules/google-auth-library": {
490
+ "version": "10.4.0",
491
+ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.4.0.tgz",
492
+ "integrity": "sha512-CmIrSy1bqMQUsPmA9+hcSbAXL80cFhu40cGMUjCaLpNKVzzvi+0uAHq8GNZxkoGYIsTX4ZQ7e4aInAqWxgn4fg==",
493
+ "license": "Apache-2.0",
494
+ "dependencies": {
495
+ "base64-js": "^1.3.0",
496
+ "ecdsa-sig-formatter": "^1.0.11",
497
+ "gaxios": "^7.0.0",
498
+ "gcp-metadata": "^7.0.0",
499
+ "google-logging-utils": "^1.0.0",
500
+ "gtoken": "^8.0.0",
501
+ "jws": "^4.0.0"
502
+ },
503
+ "engines": {
504
+ "node": ">=18"
505
+ }
506
+ },
507
+ "node_modules/googleapis/node_modules/google-logging-utils": {
508
+ "version": "1.1.1",
509
+ "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.1.tgz",
510
+ "integrity": "sha512-rcX58I7nqpu4mbKztFeOAObbomBbHU2oIb/d3tJfF3dizGSApqtSwYJigGCooHdnMyQBIw8BrWyK96w3YXgr6A==",
511
+ "license": "Apache-2.0",
512
+ "engines": {
513
+ "node": ">=14"
514
+ }
515
+ },
516
+ "node_modules/googleapis/node_modules/gtoken": {
517
+ "version": "8.0.0",
518
+ "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-8.0.0.tgz",
519
+ "integrity": "sha512-+CqsMbHPiSTdtSO14O51eMNlrp9N79gmeqmXeouJOhfucAedHw9noVe/n5uJk3tbKE6a+6ZCQg3RPhVhHByAIw==",
520
+ "license": "MIT",
521
+ "dependencies": {
522
+ "gaxios": "^7.0.0",
523
+ "jws": "^4.0.0"
524
+ },
525
+ "engines": {
526
+ "node": ">=18"
527
+ }
528
+ },
529
+ "node_modules/googleapis/node_modules/node-fetch": {
530
+ "version": "3.3.2",
531
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz",
532
+ "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==",
533
+ "license": "MIT",
534
+ "dependencies": {
535
+ "data-uri-to-buffer": "^4.0.0",
536
+ "fetch-blob": "^3.1.4",
537
+ "formdata-polyfill": "^4.0.10"
538
+ },
539
+ "engines": {
540
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
541
+ },
542
+ "funding": {
543
+ "type": "opencollective",
544
+ "url": "https://opencollective.com/node-fetch"
545
+ }
546
+ },
547
+ "node_modules/gopd": {
548
+ "version": "1.2.0",
549
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
550
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
551
+ "license": "MIT",
552
+ "engines": {
553
+ "node": ">= 0.4"
554
+ },
555
+ "funding": {
556
+ "url": "https://github.com/sponsors/ljharb"
557
+ }
558
+ },
559
+ "node_modules/gtoken": {
560
+ "version": "7.1.0",
561
+ "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-7.1.0.tgz",
562
+ "integrity": "sha512-pCcEwRi+TKpMlxAQObHDQ56KawURgyAf6jtIY046fJ5tIv3zDe/LEIubckAO8fj6JnAxLdmWkUfNyulQ2iKdEw==",
563
+ "license": "MIT",
564
+ "dependencies": {
565
+ "gaxios": "^6.0.0",
566
+ "jws": "^4.0.0"
567
+ },
568
+ "engines": {
569
+ "node": ">=14.0.0"
570
+ }
571
+ },
572
+ "node_modules/has-symbols": {
573
+ "version": "1.1.0",
574
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
575
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
576
+ "license": "MIT",
577
+ "engines": {
578
+ "node": ">= 0.4"
579
+ },
580
+ "funding": {
581
+ "url": "https://github.com/sponsors/ljharb"
582
+ }
583
+ },
584
+ "node_modules/hasown": {
585
+ "version": "2.0.2",
586
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
587
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
588
+ "license": "MIT",
589
+ "dependencies": {
590
+ "function-bind": "^1.1.2"
591
+ },
592
+ "engines": {
593
+ "node": ">= 0.4"
594
+ }
595
+ },
596
+ "node_modules/https-proxy-agent": {
597
+ "version": "7.0.6",
598
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
599
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
600
+ "license": "MIT",
601
+ "dependencies": {
602
+ "agent-base": "^7.1.2",
603
+ "debug": "4"
604
+ },
605
+ "engines": {
606
+ "node": ">= 14"
607
+ }
608
+ },
609
+ "node_modules/is-stream": {
610
+ "version": "2.0.1",
611
+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
612
+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
613
+ "license": "MIT",
614
+ "engines": {
615
+ "node": ">=8"
616
+ },
617
+ "funding": {
618
+ "url": "https://github.com/sponsors/sindresorhus"
619
+ }
620
+ },
621
+ "node_modules/json-bigint": {
622
+ "version": "1.0.0",
623
+ "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz",
624
+ "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==",
625
+ "license": "MIT",
626
+ "dependencies": {
627
+ "bignumber.js": "^9.0.0"
628
+ }
629
+ },
630
+ "node_modules/jwa": {
631
+ "version": "2.0.1",
632
+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",
633
+ "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",
634
+ "license": "MIT",
635
+ "dependencies": {
636
+ "buffer-equal-constant-time": "^1.0.1",
637
+ "ecdsa-sig-formatter": "1.0.11",
638
+ "safe-buffer": "^5.0.1"
639
+ }
640
+ },
641
+ "node_modules/jws": {
642
+ "version": "4.0.0",
643
+ "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.0.tgz",
644
+ "integrity": "sha512-KDncfTmOZoOMTFG4mBlG0qUIOlc03fmzH+ru6RgYVZhPkyiy/92Owlt/8UEN+a4TXR1FQetfIpJE8ApdvdVxTg==",
645
+ "license": "MIT",
646
+ "dependencies": {
647
+ "jwa": "^2.0.0",
648
+ "safe-buffer": "^5.0.1"
649
+ }
650
+ },
651
+ "node_modules/math-intrinsics": {
652
+ "version": "1.1.0",
653
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
654
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
655
+ "license": "MIT",
656
+ "engines": {
657
+ "node": ">= 0.4"
658
+ }
659
+ },
660
+ "node_modules/ms": {
661
+ "version": "2.1.3",
662
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
663
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
664
+ "license": "MIT"
665
+ },
666
+ "node_modules/node-domexception": {
667
+ "version": "1.0.0",
668
+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
669
+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
670
+ "deprecated": "Use your platform's native DOMException instead",
671
+ "funding": [
672
+ {
673
+ "type": "github",
674
+ "url": "https://github.com/sponsors/jimmywarting"
675
+ },
676
+ {
677
+ "type": "github",
678
+ "url": "https://paypal.me/jimmywarting"
679
+ }
680
+ ],
681
+ "license": "MIT",
682
+ "engines": {
683
+ "node": ">=10.5.0"
684
+ }
685
+ },
686
+ "node_modules/node-fetch": {
687
+ "version": "2.7.0",
688
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
689
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
690
+ "license": "MIT",
691
+ "dependencies": {
692
+ "whatwg-url": "^5.0.0"
693
+ },
694
+ "engines": {
695
+ "node": "4.x || >=6.0.0"
696
+ },
697
+ "peerDependencies": {
698
+ "encoding": "^0.1.0"
699
+ },
700
+ "peerDependenciesMeta": {
701
+ "encoding": {
702
+ "optional": true
703
+ }
704
+ }
705
+ },
706
+ "node_modules/object-inspect": {
707
+ "version": "1.13.4",
708
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
709
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
710
+ "license": "MIT",
711
+ "engines": {
712
+ "node": ">= 0.4"
713
+ },
714
+ "funding": {
715
+ "url": "https://github.com/sponsors/ljharb"
716
+ }
717
+ },
718
+ "node_modules/qs": {
719
+ "version": "6.14.0",
720
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
721
+ "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
722
+ "license": "BSD-3-Clause",
723
+ "dependencies": {
724
+ "side-channel": "^1.1.0"
725
+ },
726
+ "engines": {
727
+ "node": ">=0.6"
728
+ },
729
+ "funding": {
730
+ "url": "https://github.com/sponsors/ljharb"
731
+ }
732
+ },
733
+ "node_modules/safe-buffer": {
734
+ "version": "5.2.1",
735
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
736
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
737
+ "funding": [
738
+ {
739
+ "type": "github",
740
+ "url": "https://github.com/sponsors/feross"
741
+ },
742
+ {
743
+ "type": "patreon",
744
+ "url": "https://www.patreon.com/feross"
745
+ },
746
+ {
747
+ "type": "consulting",
748
+ "url": "https://feross.org/support"
749
+ }
750
+ ],
751
+ "license": "MIT"
752
+ },
753
+ "node_modules/side-channel": {
754
+ "version": "1.1.0",
755
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
756
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
757
+ "license": "MIT",
758
+ "dependencies": {
759
+ "es-errors": "^1.3.0",
760
+ "object-inspect": "^1.13.3",
761
+ "side-channel-list": "^1.0.0",
762
+ "side-channel-map": "^1.0.1",
763
+ "side-channel-weakmap": "^1.0.2"
764
+ },
765
+ "engines": {
766
+ "node": ">= 0.4"
767
+ },
768
+ "funding": {
769
+ "url": "https://github.com/sponsors/ljharb"
770
+ }
771
+ },
772
+ "node_modules/side-channel-list": {
773
+ "version": "1.0.0",
774
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
775
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
776
+ "license": "MIT",
777
+ "dependencies": {
778
+ "es-errors": "^1.3.0",
779
+ "object-inspect": "^1.13.3"
780
+ },
781
+ "engines": {
782
+ "node": ">= 0.4"
783
+ },
784
+ "funding": {
785
+ "url": "https://github.com/sponsors/ljharb"
786
+ }
787
+ },
788
+ "node_modules/side-channel-map": {
789
+ "version": "1.0.1",
790
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
791
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
792
+ "license": "MIT",
793
+ "dependencies": {
794
+ "call-bound": "^1.0.2",
795
+ "es-errors": "^1.3.0",
796
+ "get-intrinsic": "^1.2.5",
797
+ "object-inspect": "^1.13.3"
798
+ },
799
+ "engines": {
800
+ "node": ">= 0.4"
801
+ },
802
+ "funding": {
803
+ "url": "https://github.com/sponsors/ljharb"
804
+ }
805
+ },
806
+ "node_modules/side-channel-weakmap": {
807
+ "version": "1.0.2",
808
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
809
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
810
+ "license": "MIT",
811
+ "dependencies": {
812
+ "call-bound": "^1.0.2",
813
+ "es-errors": "^1.3.0",
814
+ "get-intrinsic": "^1.2.5",
815
+ "object-inspect": "^1.13.3",
816
+ "side-channel-map": "^1.0.1"
817
+ },
818
+ "engines": {
819
+ "node": ">= 0.4"
820
+ },
821
+ "funding": {
822
+ "url": "https://github.com/sponsors/ljharb"
823
+ }
824
+ },
825
+ "node_modules/tr46": {
826
+ "version": "0.0.3",
827
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
828
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
829
+ "license": "MIT"
830
+ },
831
+ "node_modules/url-template": {
832
+ "version": "2.0.8",
833
+ "resolved": "https://registry.npmjs.org/url-template/-/url-template-2.0.8.tgz",
834
+ "integrity": "sha512-XdVKMF4SJ0nP/O7XIPB0JwAEuT9lDIYnNsK8yGVe43y0AWoKeJNdv3ZNWh7ksJ6KqQFjOO6ox/VEitLnaVNufw==",
835
+ "license": "BSD"
836
+ },
837
+ "node_modules/uuid": {
838
+ "version": "9.0.1",
839
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz",
840
+ "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==",
841
+ "funding": [
842
+ "https://github.com/sponsors/broofa",
843
+ "https://github.com/sponsors/ctavan"
844
+ ],
845
+ "license": "MIT",
846
+ "bin": {
847
+ "uuid": "dist/bin/uuid"
848
+ }
849
+ },
850
+ "node_modules/web-streams-polyfill": {
851
+ "version": "3.3.3",
852
+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz",
853
+ "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==",
854
+ "license": "MIT",
855
+ "engines": {
856
+ "node": ">= 8"
857
+ }
858
+ },
859
+ "node_modules/webidl-conversions": {
860
+ "version": "3.0.1",
861
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
862
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
863
+ "license": "BSD-2-Clause"
864
+ },
865
+ "node_modules/whatwg-url": {
866
+ "version": "5.0.0",
867
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
868
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
869
+ "license": "MIT",
870
+ "dependencies": {
871
+ "tr46": "~0.0.3",
872
+ "webidl-conversions": "^3.0.0"
873
+ }
48
874
  }
49
875
  }
50
876
  }
@@ -4,14 +4,14 @@
4
4
  "description": "",
5
5
  "main": "basic.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "dev": "node --conditions=development"
7
+ "test": "echo \"Error: no test specified\" && exit 1"
9
8
  },
10
9
  "author": "",
11
10
  "license": "ISC",
12
11
  "type": "module",
13
12
  "dependencies": {
14
-
15
- "@mcpher/gas-fakes": "file:../../"
13
+ "google-auth-library": ">=9.0.0",
14
+ "googleapis": ">=157.0.0",
15
+ "@mcpher/gas-fakes": "file:../../"
16
16
  }
17
17
  }
package/package.json CHANGED
@@ -66,10 +66,14 @@
66
66
  "pub": "npm publish --access public"
67
67
  },
68
68
  "name": "@mcpher/gas-fakes",
69
- "version": "1.1.0",
69
+ "version": "1.1.2",
70
70
  "license": "MIT",
71
71
  "main": "main.js",
72
72
  "description": "A proof of concept implementation of Apps Script Environment on Node",
73
73
  "repository": "github:brucemcpherson/gas-fakes",
74
- "homepage": "https://ramblings.mcpher.com/a-proof-of-concept-implementation-of-apps-script-environment-on-node/"
74
+ "homepage": "https://ramblings.mcpher.com/a-proof-of-concept-implementation-of-apps-script-environment-on-node/",
75
+ "peerDependencies": {
76
+ "google-auth-library": ">=9.0.0",
77
+ "googleapis": ">=157.0.0"
78
+ }
75
79
  }
@@ -64,20 +64,27 @@ const isTokenExpired = () => !_accessToken || !_tokenExpiresAt || Date.now() >=
64
64
 
65
65
  const setAuth = async (scopes = [], keyFile = null) => {
66
66
  if (!hasAuth() || !scopes.every(s => _authScopes.has(s))) {
67
- syncLog(`...initializing auth and discovering project ID with scopes ${scopes.join(',')}`);
68
- _auth = new GoogleAuth({
67
+ syncLog(`...initializing auth and discovering project ID`);
68
+ // First auth is just to get the project ID.
69
+ const initialAuth = new GoogleAuth({
69
70
  keyFile,
70
- scopes,
71
- // projectId is not needed; it will be discovered automatically.
71
+ scopes: ['https://www.googleapis.com/auth/cloud-platform'], // Minimal scope
72
72
  });
73
73
 
74
74
  // Discover and cache the project ID. This also serves as validation.
75
- _projectId = await _auth.getProjectId();
75
+ _projectId = await initialAuth.getProjectId();
76
76
  if (!_projectId) {
77
77
  throw new Error('Failed to get project ID from Application Default Credentials.');
78
78
  }
79
79
  syncLog(`...discovered and set projectId to ${_projectId}`);
80
80
 
81
+ // Now, create the *real* auth client with the projectId and all required scopes.
82
+ _auth = new GoogleAuth({
83
+ keyFile,
84
+ scopes,
85
+ projectId: _projectId,
86
+ });
87
+
81
88
  scopes.forEach(s => _authScopes.add(s));
82
89
  }
83
90
  return getAuth();