google-gax
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -41,2 +41,3 @@ /** | ||
export { LocationsClient } from './locationService'; | ||
export { makeUUID } from './util'; | ||
export declare const defaultToObjectOptions: { | ||
@@ -43,0 +44,0 @@ keepCase: boolean; |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fallback = exports.GoogleError = exports.operation = exports.Operation = exports.warn = exports.protobufMinimal = exports.protobuf = exports.createApiCall = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.lro = exports.GrpcClient = exports.defaultToObjectOptions = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.StreamType = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.version = exports.createDefaultBackoffSettings = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.routingHeader = exports.PathTemplate = void 0; | ||
exports.fallback = exports.GoogleError = exports.operation = exports.Operation = exports.warn = exports.protobufMinimal = exports.protobuf = exports.createApiCall = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.lro = exports.GrpcClient = exports.defaultToObjectOptions = exports.makeUUID = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.StreamType = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.version = exports.createDefaultBackoffSettings = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.routingHeader = exports.PathTemplate = void 0; | ||
const objectHash = require("object-hash"); | ||
@@ -62,2 +62,4 @@ const protobuf = require("protobufjs"); | ||
Object.defineProperty(exports, "LocationsClient", { enumerable: true, get: function () { return locationService_1.LocationsClient; } }); | ||
var util_2 = require("./util"); | ||
Object.defineProperty(exports, "makeUUID", { enumerable: true, get: function () { return util_2.makeUUID; } }); | ||
exports.defaultToObjectOptions = { | ||
@@ -64,0 +66,0 @@ keepCase: false, |
@@ -54,2 +54,3 @@ /** | ||
export { ClientOptions, Descriptors, Callback, LROperation, PaginationCallback, PaginationResponse, } from './clientInterface'; | ||
export { makeUUID } from './util'; | ||
export { ServiceError, ChannelCredentials } from '@grpc/grpc-js'; | ||
@@ -56,0 +57,0 @@ export { warn } from './warnings'; |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serializer = exports.warn = exports.ChannelCredentials = exports.fallback = exports.protobufMinimal = exports.protobuf = exports.version = exports.createByteLengthFunction = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.lro = exports.routingHeader = exports.StreamType = exports.Status = exports.PathTemplate = exports.operation = exports.Operation = exports.GrpcClient = exports.GoogleProtoFilesRoot = exports.ClientStub = exports.GoogleError = exports.createMaxRetriesBackoffSettings = exports.createDefaultBackoffSettings = exports.createBackoffSettings = exports.createBundleOptions = exports.createRetryOptions = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.createApiCall = exports.OngoingCall = exports.grpc = exports.GoogleAuth = void 0; | ||
exports.serializer = exports.warn = exports.ChannelCredentials = exports.makeUUID = exports.fallback = exports.protobufMinimal = exports.protobuf = exports.version = exports.createByteLengthFunction = exports.LocationsClient = exports.IamClient = exports.OperationsClient = exports.LocationProtos = exports.IamProtos = exports.operationsProtos = exports.lro = exports.routingHeader = exports.StreamType = exports.Status = exports.PathTemplate = exports.operation = exports.Operation = exports.GrpcClient = exports.GoogleProtoFilesRoot = exports.ClientStub = exports.GoogleError = exports.createMaxRetriesBackoffSettings = exports.createDefaultBackoffSettings = exports.createBackoffSettings = exports.createBundleOptions = exports.createRetryOptions = exports.RetryOptions = exports.constructSettings = exports.CallSettings = exports.StreamDescriptor = exports.PageDescriptor = exports.LongrunningDescriptor = exports.BundleDescriptor = exports.createApiCall = exports.OngoingCall = exports.grpc = exports.GoogleAuth = void 0; | ||
const grpc = require("@grpc/grpc-js"); | ||
@@ -88,2 +88,4 @@ exports.grpc = grpc; | ||
exports.fallback = fallback; | ||
var util_1 = require("./util"); | ||
Object.defineProperty(exports, "makeUUID", { enumerable: true, get: function () { return util_1.makeUUID; } }); | ||
var grpc_js_1 = require("@grpc/grpc-js"); | ||
@@ -90,0 +92,0 @@ Object.defineProperty(exports, "ChannelCredentials", { enumerable: true, get: function () { return grpc_js_1.ChannelCredentials; } }); |
/** | ||
* Copyright 2020 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/** | ||
* Converts a given string from camelCase (used by protobuf.js and in JSON) | ||
@@ -32,1 +17,6 @@ * to snake_case (normally used in proto definitions). | ||
export declare function toLowerCamelCase(str: string): string; | ||
/** | ||
* Converts a given string to lower camel case (forcing the first character to be | ||
* in lower case). | ||
*/ | ||
export declare function makeUUID(): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeUUID = exports.toLowerCamelCase = exports.toCamelCase = exports.camelToSnakeCase = void 0; | ||
/** | ||
@@ -17,4 +19,3 @@ * Copyright 2020 Google LLC | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toLowerCamelCase = exports.toCamelCase = exports.camelToSnakeCase = void 0; | ||
const uuid_1 = require("uuid"); | ||
function words(str, normalize = false) { | ||
@@ -103,2 +104,10 @@ if (normalize) { | ||
exports.toLowerCamelCase = toLowerCamelCase; | ||
/** | ||
* Converts a given string to lower camel case (forcing the first character to be | ||
* in lower case). | ||
*/ | ||
function makeUUID() { | ||
return (0, uuid_1.v4)(); | ||
} | ||
exports.makeUUID = makeUUID; | ||
//# sourceMappingURL=util.js.map |
{ | ||
"name": "google-gax", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Google API Extensions", | ||
@@ -22,8 +22,10 @@ "main": "build/src/index.js", | ||
"proto3-json-serializer": "^2.0.0", | ||
"protobufjs": "7.2.5", | ||
"retry-request": "^7.0.0" | ||
"retry-request": "^7.0.0", | ||
"uuid": "^9.0.1", | ||
"protobufjs": "7.2.6" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^9.0.7", | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"@compodoc/compodoc": "1.1.23", | ||
"@babel/plugin-proposal-private-methods": "^7.18.6", | ||
"@types/mocha": "^9.0.0", | ||
@@ -38,3 +40,3 @@ "@types/ncp": "^2.0.1", | ||
"@types/uglify-js": "^3.17.0", | ||
"c8": "^8.0.0", | ||
"c8": "^9.0.0", | ||
"codecov": "^3.1.0", | ||
@@ -41,0 +43,0 @@ "execa": "^5.0.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
27309
3169752
12
35
272
+ Addeduuid@^9.0.1
+ Addedprotobufjs@7.2.6(transitive)
- Removedprotobufjs@7.2.5(transitive)
Updatedprotobufjs@7.2.6