@openclaw/googlechat 2026.7.1-beta.1 → 2026.7.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actions-BaygKCqu.js → actions-BacnMHv0.js} +2 -2
- package/dist/api.js +2 -2
- package/dist/{approval-auth-BxSuKX1J.js → approval-auth-C_BVZZFA.js} +2 -2
- package/dist/{approval-handler.runtime-AQl0xUss.js → approval-handler.runtime-BnkufknT.js} +7 -5
- package/dist/{channel-BQMTDOKw.js → channel-_o671C-U.js} +9 -8
- package/dist/{channel-base-Qh87GFW_.js → channel-base-DJICAvKH.js} +7 -6
- package/dist/channel-plugin-api.js +1 -1
- package/dist/{channel.adapters-CFEUpRK6.js → channel.adapters-FEj7zUjh.js} +53 -3
- package/dist/{channel.runtime-BBH8WHto.js → channel.runtime-CYmt7Ybo.js} +2 -8
- package/dist/directory-contract-api.js +1 -1
- package/dist/setup-plugin-api.js +1 -1
- package/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +1 -1
- package/node_modules/gaxios/package.json +7 -9
- package/node_modules/google-auth-library/build/src/auth/gdchclient.d.ts +47 -0
- package/node_modules/google-auth-library/build/src/auth/gdchclient.js +307 -0
- package/node_modules/google-auth-library/build/src/auth/googleauth.d.ts +5 -4
- package/node_modules/google-auth-library/build/src/auth/googleauth.js +18 -1
- package/node_modules/google-auth-library/build/src/index.d.ts +1 -0
- package/node_modules/google-auth-library/build/src/index.js +4 -1
- package/node_modules/google-auth-library/package.json +5 -7
- package/npm-shrinkwrap.json +11 -39
- package/package.json +6 -6
- package/node_modules/gcp-metadata/node_modules/gaxios/LICENSE +0 -202
- package/node_modules/gcp-metadata/node_modules/gaxios/README.md +0 -240
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +0 -109
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.js +0 -81
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.d.ts +0 -329
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.js +0 -311
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/common.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.d.ts +0 -104
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.js +0 -564
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/gaxios.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.d.ts +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.js +0 -48
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.d.ts +0 -25
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.js +0 -22
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/interceptor.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.d.ts +0 -8
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.js +0 -165
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.cjs +0 -16
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.cjs.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/src/util.d.cts +0 -7
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.js +0 -128
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/system-test/test.install.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.js +0 -1444
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.getch.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.js +0 -61
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.js +0 -367
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/test/test.retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +0 -71
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.js +0 -76
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/package.json +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.d.ts +0 -329
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.js +0 -303
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/common.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.d.ts +0 -104
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.js +0 -557
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/gaxios.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.d.ts +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.js +0 -29
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.d.ts +0 -25
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.js +0 -18
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/interceptor.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.d.ts +0 -8
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.js +0 -162
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.cjs +0 -15
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.cjs.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/src/util.d.cts +0 -7
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.js +0 -123
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/system-test/test.install.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.js +0 -1406
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.getch.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.js +0 -23
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.index.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.d.ts +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.js +0 -362
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/test/test.retry.js.map +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- package/node_modules/gcp-metadata/node_modules/gaxios/package.json +0 -105
- package/node_modules/google-auth-library/node_modules/gaxios/LICENSE +0 -202
- package/node_modules/google-auth-library/node_modules/gaxios/README.md +0 -240
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js +0 -109
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.js +0 -81
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.d.ts +0 -329
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.js +0 -311
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/common.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.d.ts +0 -104
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.js +0 -564
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/gaxios.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.d.ts +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.js +0 -48
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.d.ts +0 -25
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.js +0 -22
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/interceptor.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.d.ts +0 -8
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.js +0 -165
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.cjs +0 -16
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.cjs.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/src/util.d.cts +0 -7
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.js +0 -128
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/system-test/test.install.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.js +0 -1444
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.getch.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.js +0 -61
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.js +0 -367
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/test/test.retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js +0 -71
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/browser-test-runner.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.js +0 -76
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/browser-test/test.browser.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/package.json +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.d.ts +0 -329
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.js +0 -303
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/common.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.d.ts +0 -104
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.js +0 -557
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/gaxios.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.d.ts +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.js +0 -29
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.d.ts +0 -25
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.js +0 -18
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/interceptor.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.d.ts +0 -8
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.js +0 -162
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.cjs +0 -15
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.cjs.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/src/util.d.cts +0 -7
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.js +0 -123
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/system-test/test.install.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.js +0 -1406
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.getch.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.js +0 -23
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.index.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.d.ts +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.js +0 -362
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/test/test.retry.js.map +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/build/esm/tsconfig.tsbuildinfo +0 -1
- package/node_modules/google-auth-library/node_modules/gaxios/package.json +0 -105
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
# gaxios
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.org/package/gaxios)
|
|
4
|
-
[](https://codecov.io/gh/googleapis/gaxios)
|
|
5
|
-
[](https://github.com/google/gts)
|
|
6
|
-
|
|
7
|
-
> An HTTP request client that provides an `axios` like interface over top of `node-fetch`.
|
|
8
|
-
|
|
9
|
-
## Install
|
|
10
|
-
|
|
11
|
-
```sh
|
|
12
|
-
$ npm install gaxios
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
import {request} from 'gaxios';
|
|
19
|
-
const res = await request({url: 'https://google.com/'});
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## `fetch`-Compatible API Example
|
|
23
|
-
|
|
24
|
-
We offer a drop-in `fetch`-compatible API as well.
|
|
25
|
-
|
|
26
|
-
```js
|
|
27
|
-
import {instance} from 'gaxios';
|
|
28
|
-
const res = await instance.fetch('https://google.com/');
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
To disable the auto-processing of the request body in `res.data`, set `{responseType: 'stream'}` or `.adapter` on a Gaxios instance's defaults or per-request.
|
|
32
|
-
|
|
33
|
-
## Setting Defaults
|
|
34
|
-
|
|
35
|
-
Gaxios supports setting default properties both on the default instance, and on additional instances. This is often useful when making many requests to the same domain with the same base settings. For example:
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
import {Gaxios} from 'gaxios';
|
|
39
|
-
|
|
40
|
-
const gaxios = new Gaxios();
|
|
41
|
-
|
|
42
|
-
gaxios.defaults = {
|
|
43
|
-
baseURL: 'https://example.com'
|
|
44
|
-
headers: new Headers({
|
|
45
|
-
Authorization: 'SOME_TOKEN'
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
await gaxios.request({url: '/data'});
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Note that setting default values will take precedence
|
|
53
|
-
over other authentication methods, i.e., application default credentials.
|
|
54
|
-
|
|
55
|
-
## `GaxiosResponse`
|
|
56
|
-
|
|
57
|
-
The `GaxiosResponse` object extends the `fetch` API's [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response) object, with the addition of:
|
|
58
|
-
|
|
59
|
-
- `config`: the configuration used for the request.
|
|
60
|
-
- `data`: the transformed `.body`, such as JSON, text, arrayBuffer, or more.
|
|
61
|
-
|
|
62
|
-
## Request Options
|
|
63
|
-
|
|
64
|
-
```ts
|
|
65
|
-
interface GaxiosOptions = {
|
|
66
|
-
// The url to which the request should be sent. Required.
|
|
67
|
-
url: string | URL,
|
|
68
|
-
|
|
69
|
-
// The HTTP method to use for the request. Defaults to `GET`.
|
|
70
|
-
method: 'GET',
|
|
71
|
-
|
|
72
|
-
// The base Url to use for the request.
|
|
73
|
-
// Resolved as `new URL(url, baseURL)`
|
|
74
|
-
baseURL: 'https://example.com/v1/' | URL;
|
|
75
|
-
|
|
76
|
-
// The HTTP methods to be sent with the request.
|
|
77
|
-
headers: new Headers(),
|
|
78
|
-
|
|
79
|
-
// The data to send in the body of the request. Objects will be serialized as JSON
|
|
80
|
-
// except for:
|
|
81
|
-
// - `ArrayBuffer`
|
|
82
|
-
// - `Blob`
|
|
83
|
-
// - `Buffer` (Node.js)
|
|
84
|
-
// - `DataView`
|
|
85
|
-
// - `File`
|
|
86
|
-
// - `FormData`
|
|
87
|
-
// - `ReadableStream`
|
|
88
|
-
// - `stream.Readable` (Node.js)
|
|
89
|
-
// - strings
|
|
90
|
-
// - `TypedArray` (e.g. `Uint8Array`, `BigInt64Array`)
|
|
91
|
-
// - `URLSearchParams`
|
|
92
|
-
// - all other objects where:
|
|
93
|
-
// - headers.get('Content-Type') === 'application/x-www-form-urlencoded' (as they will be serialized as `URLSearchParams`)
|
|
94
|
-
//
|
|
95
|
-
// Here are a few examples that would prevent setting `Content-Type: application/json` by default:
|
|
96
|
-
// - data: JSON.stringify({some: 'data'}) // a `string`
|
|
97
|
-
// - data: fs.readFile('./some-data.jpeg') // a `stream.Readable`
|
|
98
|
-
data: {
|
|
99
|
-
some: 'data'
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
// The max size of the http response content in bytes allowed.
|
|
103
|
-
// Defaults to `0`, which is the same as unset.
|
|
104
|
-
maxContentLength: 2000,
|
|
105
|
-
|
|
106
|
-
// The query parameters that will be encoded using `URLSearchParams` and
|
|
107
|
-
// appended to the url
|
|
108
|
-
params: {
|
|
109
|
-
querystring: 'parameters'
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
// The timeout for the HTTP request in milliseconds. No timeout by default.
|
|
113
|
-
timeout: 60000,
|
|
114
|
-
|
|
115
|
-
// Optional method to override making the actual HTTP request. Useful
|
|
116
|
-
// for writing tests and instrumentation
|
|
117
|
-
adapter?: async (options, defaultAdapter) => {
|
|
118
|
-
const res = await defaultAdapter(options);
|
|
119
|
-
res.data = {
|
|
120
|
-
...res.data,
|
|
121
|
-
extraProperty: 'your extra property',
|
|
122
|
-
};
|
|
123
|
-
return res;
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
// The expected return type of the request. Options are:
|
|
127
|
-
// 'json' | 'stream' | 'blob' | 'arraybuffer' | 'text' | 'unknown'
|
|
128
|
-
// Defaults to `unknown`.
|
|
129
|
-
//
|
|
130
|
-
// If the `fetchImplementation` is native `fetch`, the
|
|
131
|
-
// stream is a `ReadableStream`, otherwise `readable.Stream`.
|
|
132
|
-
//
|
|
133
|
-
// Note: Setting 'stream' does not consume the `Response#body` - this can
|
|
134
|
-
// be useful for passthrough requests, where a consumer would like to
|
|
135
|
-
// transform the `Response#body`, or for using Gaxios as a drop-in `fetch`
|
|
136
|
-
// replacement.
|
|
137
|
-
responseType: 'unknown',
|
|
138
|
-
|
|
139
|
-
// The node.js http agent to use for the request.
|
|
140
|
-
agent: someHttpsAgent,
|
|
141
|
-
|
|
142
|
-
// Custom function to determine if the response is valid based on the
|
|
143
|
-
// status code. Defaults to (>= 200 && < 300)
|
|
144
|
-
validateStatus: (status: number) => true,
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Implementation of `fetch` to use when making the API call. Will use
|
|
148
|
-
* `node-fetch` by default.
|
|
149
|
-
*/
|
|
150
|
-
fetchImplementation?: typeof fetch;
|
|
151
|
-
|
|
152
|
-
// Configuration for retrying of requests.
|
|
153
|
-
retryConfig: {
|
|
154
|
-
// The number of times to retry the request. Defaults to 3.
|
|
155
|
-
retry?: number;
|
|
156
|
-
|
|
157
|
-
// The number of retries already attempted.
|
|
158
|
-
currentRetryAttempt?: number;
|
|
159
|
-
|
|
160
|
-
// The HTTP Methods that will be automatically retried.
|
|
161
|
-
// Defaults to ['GET','PUT','HEAD','OPTIONS','DELETE']
|
|
162
|
-
httpMethodsToRetry?: string[];
|
|
163
|
-
|
|
164
|
-
// The HTTP response status codes that will automatically be retried.
|
|
165
|
-
// Defaults to: [[100, 199], [408, 408], [429, 429], [500, 599]]
|
|
166
|
-
statusCodesToRetry?: number[][];
|
|
167
|
-
|
|
168
|
-
// Function to invoke when a retry attempt is made.
|
|
169
|
-
onRetryAttempt?: (err: GaxiosError) => Promise<void> | void;
|
|
170
|
-
|
|
171
|
-
// Function to invoke which determines if you should retry
|
|
172
|
-
shouldRetry?: (err: GaxiosError) => Promise<boolean> | boolean;
|
|
173
|
-
|
|
174
|
-
// When there is no response, the number of retries to attempt. Defaults to 2.
|
|
175
|
-
noResponseRetries?: number;
|
|
176
|
-
|
|
177
|
-
// The amount of time to initially delay the retry, in ms. Defaults to 100ms.
|
|
178
|
-
retryDelay?: number;
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
// Enables default configuration for retries.
|
|
182
|
-
retry: boolean,
|
|
183
|
-
|
|
184
|
-
// Enables aborting via AbortController
|
|
185
|
-
signal?: AbortSignal
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* A collection of parts to send as a `Content-Type: multipart/related` request.
|
|
189
|
-
*/
|
|
190
|
-
multipart?: GaxiosMultipartOptions;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* An optional proxy to use for requests.
|
|
194
|
-
* Available via `process.env.HTTP_PROXY` and `process.env.HTTPS_PROXY` as well - with a preference for the this config option when multiple are available.
|
|
195
|
-
* The `agent` option overrides this.
|
|
196
|
-
*
|
|
197
|
-
* @see {@link GaxiosOptions.noProxy}
|
|
198
|
-
* @see {@link GaxiosOptions.agent}
|
|
199
|
-
*/
|
|
200
|
-
proxy?: string | URL;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* A list for excluding traffic for proxies.
|
|
204
|
-
* Available via `process.env.NO_PROXY` as well as a common-separated list of strings - merged with any local `noProxy` rules.
|
|
205
|
-
*
|
|
206
|
-
* - When provided a string, it is matched by
|
|
207
|
-
* - Wildcard `*.` and `.` matching are available. (e.g. `.example.com` or `*.example.com`)
|
|
208
|
-
* - When provided a URL, it is matched by the `.origin` property.
|
|
209
|
-
* - For example, requesting `https://example.com` with the following `noProxy`s would result in a no proxy use:
|
|
210
|
-
* - new URL('https://example.com')
|
|
211
|
-
* - new URL('https://example.com:443')
|
|
212
|
-
* - The following would be used with a proxy:
|
|
213
|
-
* - new URL('http://example.com:80')
|
|
214
|
-
* - new URL('https://example.com:8443')
|
|
215
|
-
* - When provided a regular expression it is used to match the stringified URL
|
|
216
|
-
*
|
|
217
|
-
* @see {@link GaxiosOptions.proxy}
|
|
218
|
-
*/
|
|
219
|
-
noProxy?: (string | URL | RegExp)[];
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* An experimental, customizable error redactor.
|
|
223
|
-
*
|
|
224
|
-
* Set `false` to disable.
|
|
225
|
-
*
|
|
226
|
-
* @remarks
|
|
227
|
-
*
|
|
228
|
-
* This does not replace the requirement for an active Data Loss Prevention (DLP) provider. For DLP suggestions, see:
|
|
229
|
-
* - https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data#dlp_deidentify_replace_infotype-nodejs
|
|
230
|
-
* - https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#credentials_and_secrets
|
|
231
|
-
*
|
|
232
|
-
* @experimental
|
|
233
|
-
*/
|
|
234
|
-
errorRedactor?: typeof defaultErrorRedactor | false;
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
## License
|
|
239
|
-
|
|
240
|
-
[Apache-2.0](https://github.com/googleapis/gaxios/blob/main/LICENSE)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2019 Google, LLC
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
-
if (k2 === undefined) k2 = k;
|
|
16
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
-
}
|
|
20
|
-
Object.defineProperty(o, k2, desc);
|
|
21
|
-
}) : (function(o, m, k, k2) {
|
|
22
|
-
if (k2 === undefined) k2 = k;
|
|
23
|
-
o[k2] = m[k];
|
|
24
|
-
}));
|
|
25
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
26
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
27
|
-
}) : function(o, v) {
|
|
28
|
-
o["default"] = v;
|
|
29
|
-
});
|
|
30
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
-
var ownKeys = function(o) {
|
|
32
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
-
var ar = [];
|
|
34
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
-
return ar;
|
|
36
|
-
};
|
|
37
|
-
return ownKeys(o);
|
|
38
|
-
};
|
|
39
|
-
return function (mod) {
|
|
40
|
-
if (mod && mod.__esModule) return mod;
|
|
41
|
-
var result = {};
|
|
42
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
-
__setModuleDefault(result, mod);
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
})();
|
|
47
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
-
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
const express_1 = __importDefault(require("express"));
|
|
52
|
-
const child_process_1 = require("child_process");
|
|
53
|
-
const multiparty = __importStar(require("multiparty"));
|
|
54
|
-
const cors_1 = __importDefault(require("cors"));
|
|
55
|
-
const util_1 = require("util");
|
|
56
|
-
const port = 7172;
|
|
57
|
-
const exec = (0, util_1.promisify)(child_process_1.execFile);
|
|
58
|
-
async function listen(app, port) {
|
|
59
|
-
return new Promise((resolve, reject) => {
|
|
60
|
-
const server = app.listen(port, (err) => {
|
|
61
|
-
if (err) {
|
|
62
|
-
reject(err);
|
|
63
|
-
}
|
|
64
|
-
resolve(server);
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
// Starts a web server that browser tests will use, then runs actual browser
|
|
69
|
-
// tests.
|
|
70
|
-
async function main() {
|
|
71
|
-
const app = (0, express_1.default)();
|
|
72
|
-
app.use((0, cors_1.default)());
|
|
73
|
-
app.post('/path', (req, res) => {
|
|
74
|
-
if (req.header('origin')) {
|
|
75
|
-
res.set('Access-Control-Allow-Origin', req.header('origin'));
|
|
76
|
-
}
|
|
77
|
-
const form = new multiparty.Form({ autoFields: true });
|
|
78
|
-
form.parse(req, (err, fields) => {
|
|
79
|
-
if (err) {
|
|
80
|
-
res.status(500).send({ message: err.message });
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
res.status(200).send(fields.null);
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
});
|
|
87
|
-
app.get('/path', (req, res) => {
|
|
88
|
-
if (req.header('origin')) {
|
|
89
|
-
res.set('Access-Control-Allow-Origin', req.header('origin'));
|
|
90
|
-
}
|
|
91
|
-
res.send('response');
|
|
92
|
-
});
|
|
93
|
-
app.get('/querystring', (req, res) => {
|
|
94
|
-
if (req.header('origin')) {
|
|
95
|
-
res.set('Access-Control-Allow-Origin', req.header('origin'));
|
|
96
|
-
}
|
|
97
|
-
const query = req.query.query;
|
|
98
|
-
res.send(query || '');
|
|
99
|
-
});
|
|
100
|
-
const server = await listen(app, port);
|
|
101
|
-
console.log(`[http server] I'm listening on port ${port}! Starting karma.`);
|
|
102
|
-
await exec('karma', ['start']);
|
|
103
|
-
server.close();
|
|
104
|
-
console.log(`[http server] Karma has finished! I'm no longer listening on port ${port}!`);
|
|
105
|
-
}
|
|
106
|
-
main().catch(err => {
|
|
107
|
-
console.log('Error:', err);
|
|
108
|
-
});
|
|
109
|
-
//# sourceMappingURL=browser-test-runner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser-test-runner.js","sourceRoot":"","sources":["../../../browser-test/browser-test-runner.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjC,sDAA8B;AAE9B,i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I,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;IACjB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/node_modules/google-auth-library/node_modules/gaxios/build/cjs/browser-test/test.browser.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2019 Google, LLC
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
const assert_1 = __importDefault(require("assert"));
|
|
19
|
-
const mocha_1 = require("mocha");
|
|
20
|
-
const index_1 = require("../src/index");
|
|
21
|
-
const port = 7172; // should match the port defined in `webserver.ts`
|
|
22
|
-
(0, mocha_1.describe)('💻 browser tests', () => {
|
|
23
|
-
(0, mocha_1.it)('should just work from browser', async () => {
|
|
24
|
-
const result = await (0, index_1.request)({ url: `http://localhost:${port}/path` });
|
|
25
|
-
assert_1.default.strictEqual(result.status, 200);
|
|
26
|
-
assert_1.default.strictEqual(result.data, 'response');
|
|
27
|
-
});
|
|
28
|
-
(0, mocha_1.it)('should pass querystring parameters from browser', async () => {
|
|
29
|
-
const result = await (0, index_1.request)({
|
|
30
|
-
url: `http://localhost:${port}/querystring`,
|
|
31
|
-
params: { query: 'value' },
|
|
32
|
-
});
|
|
33
|
-
assert_1.default.strictEqual(result.status, 200);
|
|
34
|
-
assert_1.default.strictEqual(result.data, 'value');
|
|
35
|
-
});
|
|
36
|
-
(0, mocha_1.it)('should allow passing browser fetch explicitly', async () => {
|
|
37
|
-
const result = await (0, index_1.request)({
|
|
38
|
-
url: `http://localhost:${port}/path`,
|
|
39
|
-
fetchImplementation: window.fetch,
|
|
40
|
-
});
|
|
41
|
-
assert_1.default.strictEqual(result.status, 200);
|
|
42
|
-
});
|
|
43
|
-
(0, mocha_1.it)('should support multipart post from the browser', async () => {
|
|
44
|
-
const headers = new Headers();
|
|
45
|
-
const multipart = [
|
|
46
|
-
{
|
|
47
|
-
'Content-Type': 'application/json',
|
|
48
|
-
body: JSON.stringify({ hello: 'world' }),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
'Content-Type': 'text/plain',
|
|
52
|
-
body: 'hello world!',
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
const boundary = globalThis?.crypto.randomUUID() || (await import('crypto')).randomUUID();
|
|
56
|
-
const finale = `--${boundary}--`;
|
|
57
|
-
headers.set('Content-Type', `multipart/related; boundary=${boundary}`);
|
|
58
|
-
let content = '';
|
|
59
|
-
for (const part of multipart) {
|
|
60
|
-
const preamble = `--${boundary}\r\nContent-Type: ${part['Content-Type']}\r\n\r\n`;
|
|
61
|
-
// rStream.push(preamble);
|
|
62
|
-
content += preamble;
|
|
63
|
-
if (typeof part.body === 'string') {
|
|
64
|
-
content += part.body;
|
|
65
|
-
content += '\r\n';
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
content += finale;
|
|
69
|
-
const result = await (0, index_1.request)({
|
|
70
|
-
headers,
|
|
71
|
-
data: content,
|
|
72
|
-
method: 'POST',
|
|
73
|
-
url: `http://localhost:${port}/path`,
|
|
74
|
-
});
|
|
75
|
-
assert_1.default.strictEqual(result.status, 200);
|
|
76
|
-
const parts = result.data;
|
|
77
|
-
assert_1.default.strictEqual(parts[0], '{"hello":"world"}');
|
|
78
|
-
assert_1.default.strictEqual(parts[1], 'hello world!');
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
//# sourceMappingURL=test.browser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test.browser.js","sourceRoot":"","sources":["../../../browser-test/test.browser.ts"],"names":[],"mappings":";AAAA,6BAA6B;AAC7B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;;;AAEjC,oDAA4B;AAC5B,iCAAmC;AACnC,wCAAqC;AACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,kDAAkD;AAErE,IAAA,gBAAQ,EAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAA,UAAE,EAAC,+BAA+B,EAAE,KAAK,IAAI,EAAE;QAC7C,MAAM,MAAM,GAAG,MAAM,IAAA,eAAO,EAAC,EAAC,GAAG,EAAE,oBAAoB,IAAI,OAAO,EAAC,CAAC,CAAC;QACrE,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACvC,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,iDAAiD,EAAE,KAAK,IAAI,EAAE;QAC/D,MAAM,MAAM,GAAG,MAAM,IAAA,eAAO,EAAC;YAC3B,GAAG,EAAE,oBAAoB,IAAI,cAAc;YAC3C,MAAM,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC;SACzB,CAAC,CAAC;QACH,gBAAM,CAAC,WAAW,CAAC,MAAM,CAAC,MA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