Skip to content

Commit 2dd7ea7

Browse files
build!: require node.js 10.x and up (#623)
1 parent c01c3d2 commit 2dd7ea7

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

profiler/package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"name": "cloud-profiler-samples",
33
"version": "0.1.0",
4+
"private": true,
45
"description": "Google Cloud Profiler samples",
56
"main": "app.js",
67
"scripts": {
78
"test": "echo 'no test yet'"
89
},
10+
"engines": {
11+
"node": ">=10.4.1"
12+
},
913
"repository": {
1014
"type": "git",
1115
"url": "git+https://github.com/googleapis/cloud-profiler-nodejs.git"
1216
},
1317
"author": "Google LLC.",
1418
"license": "Apache-2.0",
15-
"bugs": {
16-
"url": "https://github.com/googleapis/cloud-profiler-nodejs/issues"
19+
"dependencies": {
20+
"@google-cloud/profiler": "^3.0.1"
1721
},
18-
"homepage": "https://github.com/googleapis/cloud-profiler-nodejs#readme"
22+
"files": [
23+
"*.js"
24+
]
1925
}

profiler/snippets.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
// [START profiler_setup_nodejs_compute_engine]
1818
require('@google-cloud/profiler').start({
1919
serviceContext: {
20-
service: 'your-service',
21-
version: '1.0.0'
22-
}
20+
service: 'your-service',
21+
version: '1.0.0',
22+
},
2323
});
2424
// [END profiler_setup_nodejs_compute_engine]

0 commit comments

Comments
 (0)