diff --git a/.github/scripts/package.json b/.github/scripts/package.json index 9d9fc37253c..2c2e5207df9 100644 --- a/.github/scripts/package.json +++ b/.github/scripts/package.json @@ -14,8 +14,8 @@ "js-yaml": "^4.1.0" }, "devDependencies": { - "@octokit/rest": "^21.0.0", + "@octokit/rest": "^19.0.0", "mocha": "^10.0.0", - "sinon": "^20.0.0" + "sinon": "^18.0.0" } } \ No newline at end of file diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml index 816d9a709a2..9b2f70148ee 100644 --- a/.github/workflows/issues-no-repro.yaml +++ b/.github/workflows/issues-no-repro.yaml @@ -11,7 +11,7 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v3 with: node-version: 18 - run: npm install diff --git a/package.json b/package.json index 852dc1dc666..3a4b6b35814 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "client library" ], "dependencies": { - "google-auth-library": "^10.0.0-rc.1", - "googleapis-common": "^8.0.2-rc.0" + "google-auth-library": "^10.1.0", + "googleapis-common": "^8.0.0" }, "devDependencies": { "@types/execa": "^2.0.2", @@ -73,11 +73,10 @@ "@types/url-template": "^2.0.28", "@types/yargs-parser": "^21.0.3", "c8": "^10.1.3", - "cheerio": "^1.0.0", "codecov": "^3.8.3", "cross-env": "^7.0.3", "execa": "^5.0.0", - "gaxios": "^7.0.0-rc.5", + "gaxios": "^7.1.0", "gts": "^6.0.2", "js-green-licenses": "^4.0.0", "jsdoc": "^4.0.4", diff --git a/samples/drive/download.js b/samples/drive/download.js index af784cf9e20..ded4075cdfd 100644 --- a/samples/drive/download.js +++ b/samples/drive/download.js @@ -16,9 +16,10 @@ const {google} = require('googleapis'); const fs = require('fs'); const os = require('os'); -const uuid = require('uuid'); const path = require('path'); const {authenticate} = require('@google-cloud/local-auth'); +const crypto = require('crypto'); +const uuid = crypto.randomUUID(); const drive = google.drive('v3'); @@ -45,7 +46,7 @@ async function runSample(fileId) { .get({fileId, alt: 'media'}, {responseType: 'stream'}) .then(res => { return new Promise((resolve, reject) => { - const filePath = path.join(os.tmpdir(), uuid.v4()); + const filePath = path.join(os.tmpdir(), uuid); console.log(`writing to ${filePath}`); const dest = fs.createWriteStream(filePath); let progress = 0; diff --git a/samples/package.json b/samples/package.json index b0228a52987..f1008dd5730 100644 --- a/samples/package.json +++ b/samples/package.json @@ -22,8 +22,7 @@ "googleapis-common": "^8.0.2-rc.0", "nconf": "^0.13.0", "open": "^8.0.0", - "server-destroy": "^1.0.1", - "uuid": "^10.0.0" + "server-destroy": "^1.0.1" }, "devDependencies": { "chai": "^4.2.0", diff --git a/test/test.options.ts b/test/test.options.ts index c0a24fe66d5..8b80084c2ca 100644 --- a/test/test.options.ts +++ b/test/test.options.ts @@ -17,7 +17,7 @@ import * as nock from 'nock'; import {URL} from 'url'; import {GoogleApis} from '../src'; import {Utils} from './utils'; -import {GoogleAuth} from 'google-auth-library'; +import {AuthClient, GoogleAuth} from 'google-auth-library'; import * as sinon from 'sinon'; import {GaxiosResponse} from 'gaxios'; import {JSONClient} from 'google-auth-library/build/src/auth/googleauth'; @@ -309,7 +309,7 @@ describe('Options', () => { const auth = new GoogleAuth(); const stub = sandbox.stub(auth, 'request').resolves({} as GaxiosResponse); // global options - google.options({auth: auth as GoogleAuth}); + google.options({auth: auth as GoogleAuth}); // per-API options const drive = google.drive({version: 'v3', auth}); // per-call options