GeezerVison is showing github.com — fix(deps): upgrade pprof to v3.2.1 [security] (#885) · googleapis/google-cloud-node@986f6f4
File treeExpand file treeCollapse file tree Open diff view settings handwritten/cloud-profiler
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: handwritten/cloud-profiler/package.json +4-7Lines changed: 4 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 10 | 10 | "system-test": "c8 --no-clean mocha build/system-test/test-*.js --timeout=60000", | 11 | 11 | "samples-test": "echo 'no sample tests'", | 12 | 12 | "clean": "gts clean", | 13 | | - "compile": "tsc -p . && cp -R protos build", | | 13 | + "compile": "tsc -p .", | 14 | 14 | "fix": "gts fix", | 15 | 15 | "lint": "gts check", | 16 | 16 | "docs": "jsdoc -c .jsdoc.js", | 17 | 17 | "prelint": "cd samples; npm link ../; npm install", | 18 | 18 | "prepare": "npm run compile", | 19 | 19 | "pretest": "npm run compile", | 20 | | - "proto": "mkdir -p protos && pbjs -t static-module -w commonjs -o protos/profiler.js third_party/googleapis/google/devtools/cloudprofiler/v2/profiler.proto && pbts -o protos/profiler.d.ts protos/profiler.js", | 21 | 20 | "license-check": "jsgl --local .", | 22 | 21 | "docs-test": "linkinator docs", | 23 | 22 | "predocs-test": "npm run docs", | | 37 | 36 | "extend": "^3.0.2", | 38 | 37 | "gcp-metadata": "^4.0.0", | 39 | 38 | "parse-duration": "^1.0.0", | 40 | | - "pprof": "3.2.0", | | 39 | + "pprof": "3.2.1", | 41 | 40 | "pretty-ms": "^7.0.0", | 42 | | - "protobufjs": "~7.2.0", | | 41 | + "protobufjs": "~7.2.4", | 43 | 42 | "semver": "^7.0.0", | 44 | 43 | "teeny-request": "^8.0.0" | 45 | 44 | }, | | 69 | 68 | }, | 70 | 69 | "files": [ | 71 | 70 | "build/src", | 72 | | - "build/third_party/cloud-debug-nodejs", | 73 | | - "build/protos" | | 71 | + "build/third_party/cloud-debug-nodejs" | 74 | 72 | ], | 75 | 73 | "nyc": { | 76 | 74 | "exclude": [ | 77 | | - "protos", | 78 | 75 | "build/test", | 79 | 76 | "build/system-test" | 80 | 77 | ] | |
Collapse file Copy file name to clipboardExpand all lines: handwritten/cloud-profiler/src/profiler.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -20,12 +20,12 @@ import { | 20 | 20 | DecorateRequestOptions, | 21 | 21 | } from '@google-cloud/common'; | 22 | 22 | import {heap as heapProfiler, SourceMapper, time as timeProfiler} from 'pprof'; | | 23 | +import {perftools} from 'pprof/proto/profile'; | 23 | 24 | import * as msToStr from 'pretty-ms'; | 24 | 25 | import {promisify} from 'util'; | 25 | 26 | import * as zlib from 'zlib'; | 26 | 27 | import * as r from 'teeny-request'; | 27 | 28 |
| 28 | | -import {perftools} from '../protos/profile'; | 29 | 29 | import {ProfilerConfig} from './config'; | 30 | 30 | import {createLogger} from './logger'; | 31 | 31 |
| |
Collapse file Copy file name to clipboardExpand all lines: handwritten/cloud-profiler/system-test/test-start.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,7 @@ import * as nock from 'nock'; | 19 | 19 | import {promisify} from 'util'; | 20 | 20 | import * as zlib from 'zlib'; | 21 | 21 |
| 22 | | -import {perftools} from '../protos/profile'; | | 22 | +import {perftools} from 'pprof/proto/profile'; | 23 | 23 | import {RequestProfile} from '../src/profiler'; | 24 | 24 |
| 25 | 25 | const API = 'https://cloudprofiler.googleapis.com/v2'; | |
Collapse file Copy file name to clipboardExpand all lines: handwritten/cloud-profiler/test/profiles-for-tests.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -17,7 +17,7 @@ import * as path from 'path'; | 17 | 17 | import {SourceMapGenerator} from 'source-map'; | 18 | 18 | import * as tmp from 'tmp'; | 19 | 19 |
| 20 | | -import {perftools} from '../protos/profile'; | | 20 | +import {perftools} from 'pprof/proto/profile'; | 21 | 21 | import {TimeProfile} from '../src/v8-types'; | 22 | 22 |
| 23 | 23 | const timeLeaf1 = { | |
Collapse file Copy file name to clipboardExpand all lines: handwritten/cloud-profiler/test/test-profiler.ts +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ import * as sinon from 'sinon'; | 26 | 26 | import {promisify} from 'util'; | 27 | 27 | import * as zlib from 'zlib'; | 28 | 28 |
| 29 | | -import {perftools} from '../protos/profile'; | | 29 | +import {perftools} from 'pprof/proto/profile'; | 30 | 30 | import {ProfilerConfig} from '../src/config'; | 31 | 31 | import { | 32 | 32 | parseBackoffDuration, | |
|