Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

googleapis-common

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

googleapis-common - npm Package Compare versions

Comparing version 2.0.0 to 2.0.2

5

build/src/apirequest.js

@@ -20,2 +20,3 @@ "use strict";

const uuid = require("uuid");
const extend = require("extend");
const isbrowser_1 = require("./isbrowser");

@@ -192,3 +193,3 @@ // tslint:disable-next-line no-var-requires

}
options.headers = headers;
options.headers = extend(true, options.headers || {}, headers);
options.params = params;

@@ -227,3 +228,3 @@ if (!isbrowser_1.isBrowser()) {

// level, or at the global level.
const mergedOptions = Object.assign({}, parameters.context.google ? parameters.context.google._options : {}, parameters.context._options, options);
const mergedOptions = extend(true, {}, parameters.context.google ? parameters.context.google._options : {}, parameters.context._options, options);
delete mergedOptions.auth; // is overridden by our auth code

@@ -230,0 +231,0 @@ // Perform the HTTP request. NOTE: this function used to return a

8

build/src/discovery.js

@@ -17,3 +17,2 @@ "use strict";

const google_auth_library_1 = require("google-auth-library");
const pify = require("pify");
const url = require("url");

@@ -23,3 +22,3 @@ const util = require("util");

const endpoint_1 = require("./endpoint");
const fsp = pify(fs);
const readFile = util.promisify(fs.readFile);
class Discovery {

@@ -119,3 +118,3 @@ /**

this.log('Reading from file ' + apiDiscoveryUrl);
const file = await fsp.readFile(apiDiscoveryUrl, { encoding: 'utf8' });
const file = await readFile(apiDiscoveryUrl, { encoding: 'utf8' });
return this.makeEndpoint(JSON.parse(file));

@@ -143,4 +142,3 @@ }

};
const pcr = pify(apirequest_1.createAPIRequest);
const res = await pcr(parameters);
const res = await apirequest_1.createAPIRequest(parameters);
return this.makeEndpoint(res.data);

@@ -147,0 +145,0 @@ }

@@ -7,2 +7,16 @@ # Changelog

### [2.0.2](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v2.0.1...v2.0.2) (2019-06-14)
### Bug Fixes
* use deep merge for headers ([#142](https://www.github.com/googleapis/nodejs-googleapis-common/issues/142)) ([404fd19](https://www.github.com/googleapis/nodejs-googleapis-common/commit/404fd19))
### [2.0.1](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v2.0.0...v2.0.1) (2019-06-14)
### Bug Fixes
* **deps:** bump minimum deps and remove pify ([#141](https://www.github.com/googleapis/nodejs-googleapis-common/issues/141)) ([26c3eeb](https://www.github.com/googleapis/nodejs-googleapis-common/commit/26c3eeb))
## [2.0.0](https://www.github.com/googleapis/nodejs-googleapis-common/compare/v1.0.0...v2.0.0) (2019-05-09)

@@ -9,0 +23,0 @@

{
"name": "googleapis-common",
"version": "2.0.0",
"version": "2.0.2",
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",

@@ -28,3 +28,3 @@ "repository": "googleapis/nodejs-googleapis-common",

"browser-test": "karma start",
"docs-test": "linkinator docs -r --skip www.googleapis.com",
"docs-test": "linkinator docs -r",
"predocs-test": "npm run docs"

@@ -36,21 +36,20 @@ },

"devDependencies": {
"@compodoc/compodoc": "^1.1.7",
"@compodoc/compodoc": "^1.1.9",
"@types/chai": "^4.1.7",
"@types/execa": "^0.9.0",
"@types/mocha": "^5.2.5",
"@types/extend": "^3.0.1",
"@types/mocha": "^5.2.7",
"@types/mv": "^2.1.0",
"@types/ncp": "^2.0.1",
"@types/nock": "^10.0.0",
"@types/pify": "^3.0.2",
"@types/qs": "^6.5.1",
"@types/nock": "^10.0.3",
"@types/qs": "^6.5.3",
"@types/tmp": "0.1.0",
"@types/url-template": "^2.0.28",
"@types/uuid": "^3.4.3",
"@types/uuid": "^3.4.4",
"chai": "^4.2.0",
"codecov": "^3.0.4",
"codecov": "^3.5.0",
"gts": "^1.0.0",
"ink-docstrap": "^1.3.2",
"intelli-espower-loader": "^1.0.1",
"is-docker": "^2.0.0",
"karma": "^4.0.0",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",

@@ -62,24 +61,24 @@ "karma-coverage": "^1.1.2",

"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^3.0.5",
"mocha": "^6.0.0",
"karma-webpack": "^4.0.2",
"linkinator": "^1.4.3",
"mocha": "^6.1.4",
"mv": "^2.1.1",
"ncp": "^2.0.0",
"nock": "^10.0.0",
"null-loader": "^1.0.0",
"nyc": "^14.0.0",
"puppeteer": "^1.11.0",
"source-map-support": "^0.5.8",
"ts-loader": "^6.0.0",
"typescript": "~3.4.0",
"webpack": "^4.28.3",
"webpack-cli": "^3.2.0",
"linkinator": "^1.1.2"
"nock": "^10.0.6",
"null-loader": "^3.0.0",
"nyc": "^14.1.1",
"puppeteer": "^1.17.0",
"source-map-support": "^0.5.12",
"ts-loader": "^6.0.2",
"typescript": "~3.5.1",
"webpack": "^4.33.0",
"webpack-cli": "^3.3.4"
},
"dependencies": {
"gaxios": "^2.0.0",
"google-auth-library": "^4.0.0",
"pify": "^4.0.0",
"qs": "^6.5.2",
"extend": "^3.0.2",
"gaxios": "^2.0.1",
"google-auth-library": "^4.2.0",
"qs": "^6.7.0",
"url-template": "^2.0.8",
"uuid": "^3.2.1"
"uuid": "^3.3.2"
},

@@ -86,0 +85,0 @@ "engines": {

@@ -0,13 +1,21 @@

[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
# [Google APIs Common Module: Node.js Client](https://github.com/google/google-api-nodejs-client)
# [Google APIs Common Module: Node.js Client](https://github.com/googleapis/nodejs-googleapis-common)
[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style&#x3D;flat)](https://cloud.google.com/terms/launch-stages)
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/googleapis-common.svg)](https://www.npmjs.org/package/googleapis-common)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-googleapis-common/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-googleapis-common)
> Node.js googleapis common package
Google Cloud Common node.js module contains stuff used by other Cloud API modules.
* [github.com/googlecloudplatform/google-cloud-node](https://github.com/googlecloudplatform/google-cloud-node)
A common tooling library used by the googleapis npm module. You probably don't want to use this directly.
* [github.com/googleapis/nodejs-googleapis-common](https://github.com/googleapis/nodejs-googleapis-common)
Read more about the client libraries for Cloud APIs, including the older

@@ -20,6 +28,8 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].

* [Quickstart](#quickstart)
* [Before you begin](#before-you-begin)
* [Installing the client library](#installing-the-client-library)
* [Using the client library](#using-the-client-library)
* [Versioning](#versioning)

@@ -31,34 +41,27 @@ * [Contributing](#contributing)

### Before you begin
### Installing the client library
1. Select or create a Cloud Platform project.
```bash
npm install googleapis-common
```
[Go to the projects page][projects]
1. Enable billing for your project.
[Enable billing][billing]
1. [Set up authentication with a service account][auth] so you can access the
API from your local workstation.
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[auth]: https://cloud.google.com/docs/authentication/getting-started
## Versioning
### Installing the package
This library follows [Semantic Versioning](http://semver.org/).
npm install --save googleapis-common
It's unlikely you will need to install this package directly, as it will be
installed as a dependency when you install other `@google` packages.
This library is considered to be **General Availability (GA)**. This means it
is stable; the code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against **GA** libraries
are addressed with the highest priority.
## Versioning
This library follows [Semantic Versioning](http://semver.org/).
This library is considered to be in **alpha**. This means it is still a
work-in-progress and under active development. Any release is subject to
backwards-incompatible changes at any time.
More Information: [Google Cloud Platform Launch Stages][launch_stages]

@@ -70,3 +73,3 @@

Contributions welcome! See the [Contributing Guide](https://github.com/googlecloudplatform/google-cloud-node/blob/master/CONTRIBUTING.md).
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-googleapis-common/blob/master/CONTRIBUTING.md).

@@ -77,4 +80,10 @@ ## License

See [LICENSE](https://github.com/googlecloudplatform/google-cloud-node/blob/master/LICENSE)
See [LICENSE](https://github.com/googleapis/nodejs-googleapis-common/blob/master/LICENSE)
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[auth]: https://cloud.google.com/docs/authentication/getting-started
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc