From 2f2f530fade5cbcd999462e916bed0d1c35f6f38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sun, 2 Dec 2018 03:28:28 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript to ~3.2.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd4f9e2a982..d543ff7dca8 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,6 @@ "server-destroy": "^1.0.1", "source-map-support": "^0.5.5", "tmp": "^0.0.33", - "typescript": "~3.1.0" + "typescript": "~3.2.0" } } From 0608fa4d4fea9e1cb0657c61c559b3134e76e0c7 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 3 Dec 2018 15:19:02 -0800 Subject: [PATCH 2/2] fixy --- src/apis/index.ts | 145 ------------------------------ src/generator/generator.ts | 2 +- src/generator/templates/index.njk | 7 -- 3 files changed, 1 insertion(+), 153 deletions(-) diff --git a/src/apis/index.ts b/src/apis/index.ts index dd478a33336..e541475b1fa 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -13,8 +13,6 @@ /*! THIS FILE IS AUTO-GENERATED */ -import {getAPI, ServiceOptions} from 'googleapis-common'; - import * as abusiveexperiencereport from './abusiveexperiencereport'; import * as acceleratedmobilepageurl from './acceleratedmobilepageurl'; import * as accesscontextmanager from './accesscontextmanager'; @@ -450,147 +448,4 @@ export class GeneratedAPIs { youtube = youtube.youtube; youtubeAnalytics = youtubeAnalytics.youtubeAnalytics; youtubereporting = youtubereporting.youtubereporting; - constructor() { - this.abusiveexperiencereport = this.abusiveexperiencereport.bind(this); - this.acceleratedmobilepageurl = this.acceleratedmobilepageurl.bind(this); - this.accesscontextmanager = this.accesscontextmanager.bind(this); - this.adexchangebuyer = this.adexchangebuyer.bind(this); - this.adexchangebuyer2 = this.adexchangebuyer2.bind(this); - this.adexperiencereport = this.adexperiencereport.bind(this); - this.admin = this.admin.bind(this); - this.adsense = this.adsense.bind(this); - this.adsensehost = this.adsensehost.bind(this); - this.alertcenter = this.alertcenter.bind(this); - this.analytics = this.analytics.bind(this); - this.analyticsreporting = this.analyticsreporting.bind(this); - this.androiddeviceprovisioning = this.androiddeviceprovisioning.bind(this); - this.androidenterprise = this.androidenterprise.bind(this); - this.androidmanagement = this.androidmanagement.bind(this); - this.androidpublisher = this.androidpublisher.bind(this); - this.appengine = this.appengine.bind(this); - this.appsactivity = this.appsactivity.bind(this); - this.appstate = this.appstate.bind(this); - this.bigquery = this.bigquery.bind(this); - this.bigquerydatatransfer = this.bigquerydatatransfer.bind(this); - this.binaryauthorization = this.binaryauthorization.bind(this); - this.blogger = this.blogger.bind(this); - this.books = this.books.bind(this); - this.calendar = this.calendar.bind(this); - this.chat = this.chat.bind(this); - this.civicinfo = this.civicinfo.bind(this); - this.classroom = this.classroom.bind(this); - this.cloudasset = this.cloudasset.bind(this); - this.cloudbilling = this.cloudbilling.bind(this); - this.cloudbuild = this.cloudbuild.bind(this); - this.clouddebugger = this.clouddebugger.bind(this); - this.clouderrorreporting = this.clouderrorreporting.bind(this); - this.cloudfunctions = this.cloudfunctions.bind(this); - this.cloudiot = this.cloudiot.bind(this); - this.cloudkms = this.cloudkms.bind(this); - this.cloudprofiler = this.cloudprofiler.bind(this); - this.cloudresourcemanager = this.cloudresourcemanager.bind(this); - this.cloudsearch = this.cloudsearch.bind(this); - this.cloudshell = this.cloudshell.bind(this); - this.cloudtasks = this.cloudtasks.bind(this); - this.cloudtrace = this.cloudtrace.bind(this); - this.composer = this.composer.bind(this); - this.compute = this.compute.bind(this); - this.container = this.container.bind(this); - this.content = this.content.bind(this); - this.customsearch = this.customsearch.bind(this); - this.dataflow = this.dataflow.bind(this); - this.dataproc = this.dataproc.bind(this); - this.datastore = this.datastore.bind(this); - this.deploymentmanager = this.deploymentmanager.bind(this); - this.dfareporting = this.dfareporting.bind(this); - this.dialogflow = this.dialogflow.bind(this); - this.digitalassetlinks = this.digitalassetlinks.bind(this); - this.discovery = this.discovery.bind(this); - this.dlp = this.dlp.bind(this); - this.dns = this.dns.bind(this); - this.doubleclickbidmanager = this.doubleclickbidmanager.bind(this); - this.doubleclicksearch = this.doubleclicksearch.bind(this); - this.drive = this.drive.bind(this); - this.file = this.file.bind(this); - this.firebasedynamiclinks = this.firebasedynamiclinks.bind(this); - this.firebasehosting = this.firebasehosting.bind(this); - this.firebaserules = this.firebaserules.bind(this); - this.firestore = this.firestore.bind(this); - this.fitness = this.fitness.bind(this); - this.fusiontables = this.fusiontables.bind(this); - this.games = this.games.bind(this); - this.gamesConfiguration = this.gamesConfiguration.bind(this); - this.gamesManagement = this.gamesManagement.bind(this); - this.genomics = this.genomics.bind(this); - this.gmail = this.gmail.bind(this); - this.groupsmigration = this.groupsmigration.bind(this); - this.groupssettings = this.groupssettings.bind(this); - this.iam = this.iam.bind(this); - this.iamcredentials = this.iamcredentials.bind(this); - this.iap = this.iap.bind(this); - this.identitytoolkit = this.identitytoolkit.bind(this); - this.indexing = this.indexing.bind(this); - this.jobs = this.jobs.bind(this); - this.kgsearch = this.kgsearch.bind(this); - this.language = this.language.bind(this); - this.licensing = this.licensing.bind(this); - this.logging = this.logging.bind(this); - this.manufacturers = this.manufacturers.bind(this); - this.mirror = this.mirror.bind(this); - this.ml = this.ml.bind(this); - this.monitoring = this.monitoring.bind(this); - this.oauth2 = this.oauth2.bind(this); - this.oslogin = this.oslogin.bind(this); - this.pagespeedonline = this.pagespeedonline.bind(this); - this.partners = this.partners.bind(this); - this.people = this.people.bind(this); - this.playcustomapp = this.playcustomapp.bind(this); - this.plus = this.plus.bind(this); - this.plusDomains = this.plusDomains.bind(this); - this.poly = this.poly.bind(this); - this.proximitybeacon = this.proximitybeacon.bind(this); - this.pubsub = this.pubsub.bind(this); - this.redis = this.redis.bind(this); - this.replicapool = this.replicapool.bind(this); - this.replicapoolupdater = this.replicapoolupdater.bind(this); - this.reseller = this.reseller.bind(this); - this.runtimeconfig = this.runtimeconfig.bind(this); - this.safebrowsing = this.safebrowsing.bind(this); - this.script = this.script.bind(this); - this.searchconsole = this.searchconsole.bind(this); - this.servicebroker = this.servicebroker.bind(this); - this.serviceconsumermanagement = this.serviceconsumermanagement.bind(this); - this.servicecontrol = this.servicecontrol.bind(this); - this.servicemanagement = this.servicemanagement.bind(this); - this.servicenetworking = this.servicenetworking.bind(this); - this.serviceusage = this.serviceusage.bind(this); - this.sheets = this.sheets.bind(this); - this.siteVerification = this.siteVerification.bind(this); - this.slides = this.slides.bind(this); - this.sourcerepo = this.sourcerepo.bind(this); - this.spanner = this.spanner.bind(this); - this.speech = this.speech.bind(this); - this.sqladmin = this.sqladmin.bind(this); - this.storage = this.storage.bind(this); - this.storagetransfer = this.storagetransfer.bind(this); - this.streetviewpublish = this.streetviewpublish.bind(this); - this.surveys = this.surveys.bind(this); - this.tagmanager = this.tagmanager.bind(this); - this.tasks = this.tasks.bind(this); - this.testing = this.testing.bind(this); - this.texttospeech = this.texttospeech.bind(this); - this.toolresults = this.toolresults.bind(this); - this.tpu = this.tpu.bind(this); - this.translate = this.translate.bind(this); - this.urlshortener = this.urlshortener.bind(this); - this.vault = this.vault.bind(this); - this.videointelligence = this.videointelligence.bind(this); - this.vision = this.vision.bind(this); - this.webfonts = this.webfonts.bind(this); - this.webmasters = this.webmasters.bind(this); - this.websecurityscanner = this.websecurityscanner.bind(this); - this.youtube = this.youtube.bind(this); - this.youtubeAnalytics = this.youtubeAnalytics.bind(this); - this.youtubereporting = this.youtubereporting.bind(this); - } } diff --git a/src/generator/generator.ts b/src/generator/generator.ts index f0c03c1a84d..bbfd9ed4c87 100644 --- a/src/generator/generator.ts +++ b/src/generator/generator.ts @@ -185,7 +185,7 @@ export class Generator { */ private log(...args: string[]) { if (this.options && this.options.debug) { - console.log.apply(this, arguments); + console.log(...args); } } diff --git a/src/generator/templates/index.njk b/src/generator/templates/index.njk index 6c41ea96ad9..69fd8c97842 100644 --- a/src/generator/templates/index.njk +++ b/src/generator/templates/index.njk @@ -13,8 +13,6 @@ /*! THIS FILE IS AUTO-GENERATED */ -import { ServiceOptions, getAPI } from 'googleapis-common'; - {% for apiName, api in apis %} import * as {{ apiName }} from './{{ apiName }}'; {% endfor %} @@ -34,9 +32,4 @@ export class GeneratedAPIs { {% for apiName, api in apis %} {{ apiName }} = {{ apiName }}.{{ apiName }}; {% endfor %} - constructor() { - {% for apiName, api in apis %} - this.{{ apiName }} = this.{{ apiName }}.bind(this); - {% endfor %} - } }