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

@google-cloud/profiler

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@google-cloud/profiler - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

2

build/src/config.d.ts

@@ -71,3 +71,3 @@ import { GoogleAuthOptions } from '@google-cloud/common';

initialBackoffMillis: number;
backoffCapMillis: number;
backoffCapMillis: number | null;
backoffMultiplier: number;

@@ -74,0 +74,0 @@ apiEndpoint: string;

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

exports.defaultConfig = void 0;
const parseDuration = require("parse-duration");
const parse_duration_1 = require("parse-duration");
// Default values for configuration for a profiler.

@@ -30,3 +30,3 @@ exports.defaultConfig = {

initialBackoffMillis: 60 * 1000,
backoffCapMillis: parseDuration('1h'),
backoffCapMillis: parse_duration_1.default('1h'),
backoffMultiplier: 1.3,

@@ -33,0 +33,0 @@ apiEndpoint: 'cloudprofiler.googleapis.com',

@@ -24,3 +24,3 @@ "use strict";

const logger_1 = require("./logger");
const parseDuration = require("parse-duration");
const parse_duration_1 = require("parse-duration");
// eslint-disable-next-line @typescript-eslint/no-var-requires

@@ -71,3 +71,3 @@ const pjson = require('../../package.json');

typeof item.retryDelay === 'string') {
const backoffMillis = parseDuration(item.retryDelay);
const backoffMillis = parse_duration_1.default(item.retryDelay);
if (backoffMillis > 0) {

@@ -94,3 +94,3 @@ return backoffMillis;

if (duration) {
const backoffMillis = parseDuration(duration);
const backoffMillis = parse_duration_1.default(duration);
if (backoffMillis > 0) {

@@ -280,3 +280,3 @@ return backoffMillis;

}
this.logger.debug(`Stackdriver Profiler Node.js agent version: ${pjson.version}`);
this.logger.debug(`Cloud Profiler Node.js agent version: ${pjson.version}`);
this.runLoop();

@@ -349,3 +349,3 @@ }

// (up to one hour).
timeout: parseDuration('1h'),
timeout: parse_duration_1.default('1h'),
};

@@ -439,3 +439,3 @@ this.logger.debug('Attempting to create profile.');

}
const durationMillis = parseDuration(prof.duration);
const durationMillis = parse_duration_1.default(prof.duration);
if (!durationMillis) {

@@ -442,0 +442,0 @@ throw Error(`Cannot collect time profile, duration "${prof.duration}" cannot` +

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

### [4.0.3](https://www.github.com/googleapis/cloud-profiler-nodejs/compare/v4.0.2...v4.0.3) (2020-09-12)
### Bug Fixes
* move gitattributes files to node templates ([#679](https://www.github.com/googleapis/cloud-profiler-nodejs/issues/679)) ([521e418](https://www.github.com/googleapis/cloud-profiler-nodejs/commit/521e4180f825299907ad374412d81d65bb674596))
* **deps:** update dependency parse-duration to 0.4.4 ([#668](https://www.github.com/googleapis/cloud-profiler-nodejs/issues/668)) ([2757231](https://www.github.com/googleapis/cloud-profiler-nodejs/commit/2757231e07492bc38bf25fe3add1274b36d2bdca))
### [4.0.2](https://www.github.com/googleapis/cloud-profiler-nodejs/compare/v4.0.1...v4.0.2) (2020-07-14)

@@ -9,0 +17,0 @@

{
"name": "@google-cloud/profiler",
"version": "4.0.2",
"description": "Adds support for Stackdriver Profiler to Node.js applications",
"version": "4.0.3",
"description": "Adds support for Cloud Profiler to Node.js applications",
"repository": "googleapis/cloud-profiler-nodejs",

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

"predocs-test": "npm run docs",
"precompile": "gts clean"
"precompile": "gts clean",
"api-extractor": "api-extractor run --local",
"api-documenter": "api-documenter yaml --input-folder=temp"
},

@@ -39,3 +41,3 @@ "author": {

"gcp-metadata": "^4.0.0",
"parse-duration": "^0.1.1",
"parse-duration": "^0.4.4",
"pprof": "2.0.0",

@@ -53,3 +55,2 @@ "pretty-ms": "^7.0.0",

"@types/node": "^10.0.3",
"@types/parse-duration": "^0.1.0",
"@types/pretty-ms": "^4.0.0",

@@ -71,3 +72,5 @@ "@types/sinon": "^9.0.0",

"tmp": "0.2.1",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"@microsoft/api-documenter": "^7.8.10",
"@microsoft/api-extractor": "^7.8.10"
},

@@ -74,0 +77,0 @@ "files": [

@@ -5,3 +5,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost."

# [Stackdriver Profiler: Node.js Client](https://github.com/googleapis/cloud-profiler-nodejs)
# [Cloud Profiler: Node.js Client](https://github.com/googleapis/cloud-profiler-nodejs)

@@ -15,7 +15,10 @@ [![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)

Adds support for Stackdriver Profiler to Node.js applications
Adds support for Cloud Profiler to Node.js applications
* [Stackdriver Profiler Node.js Client API Reference][client-docs]
* [Stackdriver Profiler Documentation][product-docs]
A comprehensive list of changes in each version may be found in
[the CHANGELOG](https://github.com/googleapis/cloud-profiler-nodejs/blob/master/CHANGELOG.md).
* [Cloud Profiler Node.js Client API Reference][client-docs]
* [Cloud Profiler Documentation][product-docs]
* [github.com/googleapis/cloud-profiler-nodejs](https://github.com/googleapis/cloud-profiler-nodejs)

@@ -45,3 +48,3 @@

1. [Select or create a Cloud Platform project][projects].
1. [Enable the Stackdriver Profiler API][enable_api].
1. [Enable the Cloud Profiler API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the

@@ -83,3 +86,3 @@ API from your local workstation.

1. You will need to enable the Stackdriver Profiler API for your project.
1. You will need to enable the Cloud Profiler API for your project.

@@ -350,3 +353,3 @@ ### Basic Set-up

The [Stackdriver Profiler Node.js Client API Reference][client-docs] documentation
The [Cloud Profiler Node.js Client API Reference][client-docs] documentation
also contains samples.

@@ -353,0 +356,0 @@

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