Spaces:
Runtime error
Runtime error
Download static/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 615 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js
-
curl -L -o gcp.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/lib/client-side-encryption/providers/gcp.js
615 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.loadGCPCredentials = void 0; | |
| const deps_1 = require("../../deps"); | |
| /** @internal */ | |
| async function loadGCPCredentials(kmsProviders) { | |
| const gcpMetadata = (0, deps_1.getGcpMetadata)(); | |
| if ('kModuleError' in gcpMetadata) { | |
| return kmsProviders; | |
| } | |
| const { access_token: accessToken } = await gcpMetadata.instance({ | |
| property: 'service-accounts/default/token' | |
| }); | |
| return { ...kmsProviders, gcp: { accessToken } }; | |
| } | |
| exports.loadGCPCredentials = loadGCPCredentials; | |
| //# sourceMappingURL=gcp.js.map |