@oomol-lab/open-connector 1.6.0 → 1.6.1
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/README.md +10 -3
- package/package.json +1 -1
- package/src/providers/googledrive/executors.js +3 -2
package/README.md
CHANGED
|
@@ -4,7 +4,15 @@ Use the headless package in Node.js 22.18+ or Bun 1.4+. It owns providers, autho
|
|
|
4
4
|
credentials, and storage. Your application owns its HTTP server, configuration, and shutdown.
|
|
5
5
|
The default dashboard host uses the same `createConnectorRuntime()` factory.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @oomol-lab/open-connector
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The package includes JavaScript, types, catalog, and migrations; no dashboard assets or install
|
|
14
|
+
scripts. Every [release](https://github.com/oomol-lab/open-connector/releases) publishes the
|
|
15
|
+
matching version to npm. To build it from a checkout instead:
|
|
8
16
|
|
|
9
17
|
```sh
|
|
10
18
|
npm ci
|
|
@@ -12,8 +20,7 @@ npm run build:runtime
|
|
|
12
20
|
npm pack ./dist/package --pack-destination dist
|
|
13
21
|
```
|
|
14
22
|
|
|
15
|
-
|
|
16
|
-
It includes JavaScript, types, catalog, and migrations; no dashboard assets or install scripts.
|
|
23
|
+
Then install the resulting tarball with `npm install /path/to/package.tgz`.
|
|
17
24
|
|
|
18
25
|
## Use
|
|
19
26
|
|
package/package.json
CHANGED
|
@@ -177,9 +177,10 @@ export const credentialValidators = {
|
|
|
177
177
|
accessToken: input.accessToken,
|
|
178
178
|
fetcher,
|
|
179
179
|
signal,
|
|
180
|
-
|
|
180
|
+
// About has no top-level `emailAddress`, and Drive rejects the whole selection when any listed field is unknown.
|
|
181
|
+
query: { fields: "user" },
|
|
181
182
|
});
|
|
182
|
-
const emailAddress = profile.user?.emailAddress
|
|
183
|
+
const emailAddress = profile.user?.emailAddress;
|
|
183
184
|
const displayName = profile.user?.displayName ?? emailAddress;
|
|
184
185
|
return {
|
|
185
186
|
profile: {
|