diff --git a/package.json b/package.json index df4a58adb57..01c990542a6 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "license": "Apache-2.0", "dependencies": { - "google-auth-library": "^5.2.0", - "googleapis-common": "^3.1.0" + "google-auth-library": "^5.6.1", + "googleapis-common": "^3.2.0" }, "files": [ "build/src", @@ -88,6 +88,6 @@ "server-destroy": "^1.0.1", "source-map-support": "^0.5.12", "tmp": "^0.1.0", - "typescript": "~3.7.0" + "typescript": "3.6.4" } } diff --git a/renovate.json b/renovate.json index 61f31b77aad..9518bf36fdc 100644 --- a/renovate.json +++ b/renovate.json @@ -14,5 +14,6 @@ "extends": "packages:linters", "groupName": "linters" } - ] + ], + "ignoreDeps": ["typescript"] } diff --git a/src/generator/docs.ts b/src/generator/docs.ts index db7a59bcf60..4ff0fa0b624 100644 --- a/src/generator/docs.ts +++ b/src/generator/docs.ts @@ -15,9 +15,10 @@ import * as execa from 'execa'; import * as fs from 'fs'; import * as nunjucks from 'nunjucks'; -import Q from 'p-queue'; import * as path from 'path'; import {promisify} from 'util'; +// there is a typings issue with p-queue and TypeScript 3.6.4. +const {default: Q} = require('p-queue'); const readdir = promisify(fs.readdir); const writeFile = promisify(fs.writeFile); diff --git a/src/generator/generator.ts b/src/generator/generator.ts index dc53de4d1fb..ad5bd0b02dc 100644 --- a/src/generator/generator.ts +++ b/src/generator/generator.ts @@ -25,10 +25,11 @@ import { } from 'googleapis-common'; import * as mkdirp from 'mkdirp'; import * as nunjucks from 'nunjucks'; -import Q from 'p-queue'; import * as path from 'path'; import * as url from 'url'; import * as util from 'util'; +// there is a typings issue with p-queue and TypeScript 3.6.4. +const {default: Q} = require('p-queue'); const writeFile = util.promisify(fs.writeFile); const readDir = util.promisify(fs.readdir); @@ -236,7 +237,7 @@ export class Generator { const queue = new Q({concurrency: 10}); console.log(`Generating ${apis.length} APIs...`); queue.addAll( - apis.map(api => { + apis.map((api: {[key: string]: string}) => { return async () => { this.log('Generating API for %s...', api.id); this.logResult( @@ -365,7 +366,7 @@ export class Generator { fragment = fragment.replace(/`\*/gi, '`<'); fragment = fragment.replace(/\*`/gi, '>`'); const lines = fragment.split('\n'); - lines.forEach((line, i) => { + lines.forEach((line: string, i: number) => { lines[i] = '*' + (line ? ' ' + lines[i] : ''); }); fragment = lines.join('\n');