googleapis-common
Advanced tools
Comparing version 3.2.2 to 4.0.0
"use strict"; | ||
// Copyright 2018, Google, LLC. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -4,0 +4,0 @@ // you may not use this file except in compliance with the License. |
"use strict"; | ||
// Copyright 2018, Google, LLC. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -4,0 +4,0 @@ // you may not use this file except in compliance with the License. |
"use strict"; | ||
// Copyright 2016 Google LLC | ||
// | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -8,3 +7,3 @@ // you may not use this file except in compliance with the License. | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
@@ -24,4 +23,4 @@ // Unless required by applicable law or agreed to in writing, software | ||
const isbrowser_1 = require("./isbrowser"); | ||
const url_1 = require("url"); | ||
// tslint:disable-next-line no-var-requires | ||
const resolve = require("url"); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const pkg = require('../../package.json'); | ||
@@ -146,3 +145,3 @@ function isReadableStream(obj) { | ||
const path = options.url.slice(parameters.context._options.rootUrl.length); | ||
options.url = url_1.resolve(parameters.context._options.rootUrl, path); | ||
options.url = resolve.resolve(parameters.context._options.rootUrl, path); | ||
} | ||
@@ -149,0 +148,0 @@ // When forming the querystring, override the serializer so that array |
"use strict"; | ||
// Copyright 2019 Google LLC | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -4,0 +4,0 @@ // you may not use this file except in compliance with the License. |
"use strict"; | ||
// Copyright 2014-2016, Google, Inc. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -17,3 +17,3 @@ // you may not use this file except in compliance with the License. | ||
const google_auth_library_1 = require("google-auth-library"); | ||
const url = require("url"); | ||
const resolve = require("url"); | ||
const util = require("util"); | ||
@@ -114,3 +114,3 @@ const apirequest_1 = require("./apirequest"); | ||
if (typeof apiDiscoveryUrl === 'string') { | ||
const parts = url.parse(apiDiscoveryUrl); | ||
const parts = resolve.parse(apiDiscoveryUrl); | ||
if (apiDiscoveryUrl && !parts.protocol) { | ||
@@ -117,0 +117,0 @@ this.log('Reading from file ' + apiDiscoveryUrl); |
"use strict"; | ||
// Copyright 2018, Google, LLC. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -34,3 +34,3 @@ // you may not use this file except in compliance with the License. | ||
for (const resourceName in schema.resources) { | ||
if (schema.resources.hasOwnProperty(resourceName)) { | ||
if (Object.prototype.hasOwnProperty.call(schema.resources, resourceName)) { | ||
const resource = schema.resources[resourceName]; | ||
@@ -57,3 +57,3 @@ if (!target[resourceName]) { | ||
for (const name in schema.methods) { | ||
if (schema.methods.hasOwnProperty(name)) { | ||
if (Object.prototype.hasOwnProperty.call(schema.methods, name)) { | ||
const method = schema.methods[name]; | ||
@@ -60,0 +60,0 @@ target[name] = this.makeMethod(rootSchema, method, context); |
"use strict"; | ||
// Copyright 2018, Google, LLC. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -4,0 +4,0 @@ // you may not use this file except in compliance with the License. |
"use strict"; | ||
// Copyright 2019 Google LLC | ||
// | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -8,3 +7,3 @@ // you may not use this file except in compliance with the License. | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
@@ -11,0 +10,0 @@ // Unless required by applicable law or agreed to in writing, software |
"use strict"; | ||
// Copyright 2018, Google, LLC. | ||
// Copyright 2020 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
@@ -14,3 +14,7 @@ // you may not use this file except in compliance with the License. | ||
// limitations under the License. | ||
/** | ||
* These are a collection of interfaces that represent the GoogleApis | ||
* Discovery json formats. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=schema.js.map |
@@ -7,2 +7,13 @@ # Changelog | ||
## [4.0.0](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v3.2.2...v4.0.0) (2020-04-05) | ||
### ⚠ BREAKING CHANGES | ||
* require node 10 in engines field (see: https://github.com/googleapis/nodejs-googleapis-common/pull/239) (#240) | ||
### Features | ||
* require node 10 in engines field (see: https://github.com/googleapis/nodejs-googleapis-common/pull/239) ([#240](https://www.github.com/googleapis/nodejs-googleapis-common/issues/240)) ([f210ec1](https://www.github.com/googleapis/nodejs-googleapis-common/commit/f210ec13976567ed41101b3bd85f810d51faa8a8)) | ||
### [3.2.2](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v3.2.1...v3.2.2) (2020-02-28) | ||
@@ -9,0 +20,0 @@ |
{ | ||
"name": "googleapis-common", | ||
"version": "3.2.2", | ||
"version": "4.0.0", | ||
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.", | ||
@@ -45,5 +45,6 @@ "repository": "googleapis/nodejs-googleapis-common", | ||
"@types/uuid": "^7.0.0", | ||
"c8": "^7.0.0", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.5.0", | ||
"gts": "^1.0.0", | ||
"gts": "^2.0.0-alpha.9", | ||
"is-docker": "^2.0.0", | ||
@@ -59,3 +60,3 @@ "karma": "^4.1.0", | ||
"linkinator": "^2.0.0", | ||
"mocha": "^7.0.0", | ||
"mocha": "^7.1.1", | ||
"mv": "^2.1.1", | ||
@@ -65,6 +66,5 @@ "ncp": "^2.0.0", | ||
"null-loader": "^3.0.0", | ||
"c8": "^7.0.0", | ||
"puppeteer": "^2.0.0", | ||
"ts-loader": "^6.0.4", | ||
"typescript": "3.6.4", | ||
"typescript": "^3.8.3", | ||
"webpack": "^4.35.0", | ||
@@ -74,6 +74,8 @@ "webpack-cli": "^3.3.5" | ||
"dependencies": { | ||
"execa": "^4.0.0", | ||
"extend": "^3.0.2", | ||
"gaxios": "^2.0.1", | ||
"google-auth-library": "^5.6.1", | ||
"gaxios": "^3.0.0", | ||
"google-auth-library": "^6.0.0", | ||
"qs": "^6.7.0", | ||
"tmp": "^0.1.0", | ||
"url-template": "^2.0.8", | ||
@@ -83,4 +85,4 @@ "uuid": "^7.0.0" | ||
"engines": { | ||
"node": ">=8.10.0" | ||
"node": ">=10" | ||
} | ||
} |
@@ -50,2 +50,23 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
## Supported Node.js Versions | ||
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). | ||
Libraries are compatible with all current _active_ and _maintenance_ versions of | ||
Node.js. | ||
Client libraries targetting some end-of-life versions of Node.js are available, and | ||
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
The dist-tags follow the naming convention `legacy-(version)`. | ||
_Legacy Node.js versions are supported as a best effort:_ | ||
* Legacy versions will not be tested in continuous integration. | ||
* Some security patches may not be able to be backported. | ||
* Dependencies will not be kept up-to-date, and features will not be backported. | ||
#### Legacy tags available | ||
* `legacy-8`: install client libraries from this dist-tag for versions | ||
compatible with Node.js 8. | ||
## Versioning | ||
@@ -74,2 +95,8 @@ | ||
Please note that this `README.md`, the `samples/README.md`, | ||
and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) | ||
are generated from a central template. To edit one of these files, make an edit | ||
to its template in this | ||
[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). | ||
## License | ||
@@ -76,0 +103,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69762
1029
113
8
+ Addedexeca@^4.0.0
+ Addedtmp@^0.1.0
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcross-spawn@7.0.5(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedexeca@4.1.0(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedgaxios@3.2.04.3.3(transitive)
+ Addedgcp-metadata@4.3.1(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgoogle-auth-library@6.1.6(transitive)
+ Addedgoogle-p12-pem@3.1.4(transitive)
+ Addedgtoken@5.3.2(transitive)
+ Addedhuman-signals@1.1.1(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjson-bigint@1.0.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedmerge-stream@2.0.0(transitive)
+ Addedmimic-fn@2.1.0(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addednode-forge@1.3.1(transitive)
+ Addednpm-run-path@4.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@5.1.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-final-newline@2.0.0(transitive)
+ Addedtmp@0.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedyallist@4.0.0(transitive)
- Removedgaxios@2.3.4(transitive)
- Removedgcp-metadata@3.5.0(transitive)
- Removedgoogle-auth-library@5.10.1(transitive)
- Removedgoogle-p12-pem@2.0.5(transitive)
- Removedgtoken@4.1.4(transitive)
- Removedjson-bigint@0.3.1(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removedmime@2.6.0(transitive)
- Removednode-forge@0.10.0(transitive)
- Removedyallist@3.1.1(transitive)
Updatedgaxios@^3.0.0
Updatedgoogle-auth-library@^6.0.0