diff --git a/package-lock.json b/package-lock.json index 2bd2fe4..0ac4b71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,8 +12,8 @@ "@tensorflow/tfjs": "^4.22.0", "@tensorflow/tfjs-backend-webgl": "^4.22.0", "@types/gapi": "^0.0.47", - "@types/gapi.client.drive": "^3.0.15", - "@types/gapi.client.sheets": "^4.0.20201031", + "@types/gapi.client.drive-v3": "^0.0.5", + "@types/gapi.client.sheets-v4": "^0.0.4", "@types/google.accounts": "^0.0.17", "@types/uuid": "^10.0.0", "fontkit": "^2.0.4", @@ -1519,21 +1519,19 @@ "@maxim_mazurok/gapi.client.discovery-v1": "latest" } }, - "node_modules/@types/gapi.client.drive": { - "version": "3.0.15", - "resolved": "https://registry.npmjs.org/@types/gapi.client.drive/-/gapi.client.drive-3.0.15.tgz", - "integrity": "sha512-qEfI0LxUBadOLmym4FkaNGpI4ibBCBPJHiUFWKIv0GIp7yKT2d+wztJYKr9giIRecErUCF+jGSDw1fzTZ6hPVQ==", - "deprecated": "use @types/gapi.client.drive-v3 instead; see https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/652 for details", + "node_modules/@types/gapi.client.drive-v3": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/@types/gapi.client.drive-v3/-/gapi.client.drive-v3-0.0.5.tgz", + "integrity": "sha512-yYBxiqMqJVBg4bns4Q28+f2XdJnd3tVA9dxQX1lXMVmzT2B+pZdyCi1u9HLwGveVlookSsAXuqfLfS9KO6MF6w==", "license": "MIT", "dependencies": { "@maxim_mazurok/gapi.client.drive-v3": "latest" } }, - "node_modules/@types/gapi.client.sheets": { - "version": "4.0.20201031", - "resolved": "https://registry.npmjs.org/@types/gapi.client.sheets/-/gapi.client.sheets-4.0.20201031.tgz", - "integrity": "sha512-1Aiu11rNNoyPDHW6v8TVcSmlDN+MkxSuafwiawaK5YqZ+uYA+O63vjUvkK+3qNduSLh7D9qBJc/8GGwgN6gsTw==", - "deprecated": "use @types/gapi.client.sheets-v4 instead; see https://github.com/Maxim-Mazurok/google-api-typings-generator/issues/652 for details", + "node_modules/@types/gapi.client.sheets-v4": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@types/gapi.client.sheets-v4/-/gapi.client.sheets-v4-0.0.4.tgz", + "integrity": "sha512-6kTJ7aDMAElfdQV1XzVJmZWjgbibpa84DMuKuaN8Cwqci/dkglPyHXKvsGrRugmuYvgFYr35AQqwz6j3q8R0dw==", "license": "MIT", "dependencies": { "@maxim_mazurok/gapi.client.sheets-v4": "latest" diff --git a/package.json b/package.json index 94441e3..0a219e9 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "@tensorflow/tfjs": "^4.22.0", "@tensorflow/tfjs-backend-webgl": "^4.22.0", "@types/gapi": "^0.0.47", - "@types/gapi.client.drive": "^3.0.15", - "@types/gapi.client.sheets": "^4.0.20201031", + "@types/gapi.client.drive-v3": "^0.0.5", + "@types/gapi.client.sheets-v4": "^0.0.4", "@types/google.accounts": "^0.0.17", "@types/uuid": "^10.0.0", "fontkit": "^2.0.4", diff --git a/src/lib/google.ts b/src/lib/google.ts index 31f4a25..8a5dfe2 100644 --- a/src/lib/google.ts +++ b/src/lib/google.ts @@ -13,8 +13,6 @@ export function initGoogleClient(callback: () => void) { script.onload = () => { gapi.load('client', async () => { await gapi.client.init({ - // NOTE: API KEY IS NOT REQUIRED FOR THIS IMPLEMENTATION - // apiKey: 'YOUR_API_KEY', discoveryDocs: [ 'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest', 'https://www.googleapis.com/discovery/v1/apis/sheets/v4/rest',