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 0.1.0 to 0.2.0

README.md

24

build/src/apirequest.js

@@ -22,21 +22,11 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const google_auth_library_1 = require("google-auth-library");
const qs = __importStar(require("qs"));
const stream = __importStar(require("stream"));
const url_template_1 = __importDefault(require("url-template"));
const uuid = __importStar(require("uuid"));
const qs = require("qs");
const stream = require("stream");
const urlTemplate = require("url-template");
const uuid = require("uuid");
const maxContentLength = Math.pow(2, 31);
// tslint:disable-next-line no-var-requires
const pkg = require('../../../../package.json');
const pkg = require('../../package.json');
const USER_AGENT = `google-api-nodejs-client/${pkg.version} (gzip)`;

@@ -130,6 +120,6 @@ function isReadableStream(obj) {

if (options.url) {
options.url = url_template_1.default.parse(options.url).expand(params);
options.url = urlTemplate.parse(options.url).expand(params);
}
if (parameters.mediaUrl) {
parameters.mediaUrl = url_template_1.default.parse(parameters.mediaUrl).expand(params);
parameters.mediaUrl = urlTemplate.parse(parameters.mediaUrl).expand(params);
}

@@ -136,0 +126,0 @@ // When forming the querystring, override the serializer so that array

@@ -23,7 +23,7 @@ import { GlobalOptions } from './api';

*/
private makeEndpoint(schema);
private makeEndpoint;
/**
* Log output of generator. Works just like console.log
*/
private log(...args);
private log;
/**

@@ -30,0 +30,0 @@ * Generate all APIs and return as in-memory object.

@@ -22,21 +22,11 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs = __importStar(require("fs"));
const fs = require("fs");
const google_auth_library_1 = require("google-auth-library");
const pify_1 = __importDefault(require("pify"));
const url = __importStar(require("url"));
const util = __importStar(require("util"));
const pify = require("pify");
const url = require("url");
const util = require("util");
const apirequest_1 = require("./apirequest");
const endpoint_1 = require("./endpoint");
const fsp = pify_1.default(fs);
const fsp = pify(fs);
class Discovery {

@@ -107,3 +97,2 @@ /**

try {
const endpointCreator = versionIndex[set.api.name][version];
const ep =

@@ -157,3 +146,3 @@ // tslint:disable-next-line: no-any

};
const pcr = pify_1.default(apirequest_1.createAPIRequest);
const pcr = pify(apirequest_1.createAPIRequest);
const res = yield pcr(parameters);

@@ -160,0 +149,0 @@ return this.makeEndpoint(res.data);

@@ -31,3 +31,3 @@ import { APIRequestContext, GlobalOptions } from './api';

*/
private applyMethodsFromSchema(target, rootSchema, schema, context);
private applyMethodsFromSchema;
/**

@@ -41,4 +41,4 @@ * Given a method schema, add a method to a target.

*/
private makeMethod(schema, method, context);
private getPathParams(params?);
private makeMethod;
private getPathParams;
}
{
"name": "googleapis-common",
"version": "0.1.0",
"version": "0.2.0",
"description": "A common tooling library used by the googleapis npm module. You probably don't want to use this directly.",

@@ -8,3 +8,3 @@ "main": "build/src/index.js",

"files": [
"build/"
"build/src"
],

@@ -15,6 +15,12 @@ "scripts": {

"compile": "tsc -p .",
"test": "mocha build/test",
"system-test": "mocha build/system-test",
"presystem-test": "npm run compile",
"fix": "gts fix",
"prepare": "npm run compile",
"pretest": "npm run compile",
"posttest": "npm run check"
"posttest": "npm run check",
"lint": "npm run check",
"samples-test": "mocha build/samples-test",
"docs": "jsdoc -c .jsdoc.js"
},

@@ -25,2 +31,4 @@ "keywords": [],

"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/nock": "^9.3.0",
"@types/pify": "^3.0.2",

@@ -30,4 +38,11 @@ "@types/qs": "^6.5.1",

"@types/uuid": "^3.4.3",
"gts": "^0.6.0",
"typescript": "~2.8.0"
"codecov": "^3.0.4",
"gts": "^0.8.0",
"ink-docstrap": "^1.3.2",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
"mocha": "^5.2.0",
"nock": "^9.6.0",
"source-map-support": "^0.5.8",
"typescript": "~3.0.0"
},

@@ -34,0 +49,0 @@ "dependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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