@ohos-ports/datadog-pprof 5.17.0-beta.1 → 5.17.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,11 +83,9 @@ function serialize(profile, root, appendToSamples, stringTable, ignoreSamplesPat
|
|
|
83
83
|
const entry = entries.pop();
|
|
84
84
|
const node = entry.node;
|
|
85
85
|
// mjs files have a `file://` prefix in the scriptName -> remove it
|
|
86
|
-
|
|
87
|
-
// nodes may omit scriptName)
|
|
88
|
-
const scriptName = typeof node.scriptName === 'string' && node.scriptName.startsWith('file://')
|
|
86
|
+
const scriptName = node.scriptName.startsWith('file://')
|
|
89
87
|
? node.scriptName.slice(7)
|
|
90
|
-
: node.scriptName
|
|
88
|
+
: node.scriptName;
|
|
91
89
|
if (ignoreSamplesPath && scriptName.indexOf(ignoreSamplesPath) > -1) {
|
|
92
90
|
continue;
|
|
93
91
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohos-ports/datadog-pprof",
|
|
3
|
-
"version": "5.17.0-beta.
|
|
4
|
-
"description": "pprof support for Node.js — OpenHarmony (OHOS) port, adding an openharmony-arm64 node-gyp-build prebuild alongside upstream
|
|
3
|
+
"version": "5.17.0-beta.2",
|
|
4
|
+
"description": "pprof support for Node.js — OpenHarmony (OHOS) port, adding an openharmony-arm64 node-gyp-build prebuild alongside upstream platforms.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "https://github.com/ohos-ports/ohos-ports.git",
|
|
7
|
+
"url": "git+https://github.com/ohos-ports/ohos-ports.git",
|
|
8
8
|
"directory": "ports/datadog-pprof/5.17.0"
|
|
9
9
|
},
|
|
10
10
|
"main": "out/src/index.js",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"fix": "gts fix",
|
|
20
20
|
"format": "clang-format --style file -i --glob='bindings/**/*.{h,hh,cpp,cc}'",
|
|
21
21
|
"lint": "jsgl --local . && gts check && clang-format --style file -n -Werror --glob='bindings/**/*.{h,hh,cpp,cc}'",
|
|
22
|
-
"prepare": "npm run compile && npm run rebuild",
|
|
23
22
|
"pretest:js-asan": "npm run compile && npm run build:asan",
|
|
24
23
|
"pretest:js-tsan": "npm run compile && npm run build:tsan",
|
|
25
24
|
"pretest:js-valgrind": "npm run pretest",
|
|
@@ -85,6 +84,7 @@
|
|
|
85
84
|
"engines": {
|
|
86
85
|
"node": ">=16"
|
|
87
86
|
},
|
|
87
|
+
"postinstall": "sed -i '' 's/^.* Holder() const.*//' ./node_modules/nan/nan_callbacks_12_inl.h",
|
|
88
88
|
"overrides": {
|
|
89
89
|
"nyc": {
|
|
90
90
|
"brace-expansion": "^5.0.6",
|
|
@@ -108,5 +108,8 @@
|
|
|
108
108
|
"mocha": {
|
|
109
109
|
"minimatch": "^9.0.9"
|
|
110
110
|
}
|
|
111
|
+
},
|
|
112
|
+
"bugs": {
|
|
113
|
+
"url": "https://github.com/ohos-ports/ohos-ports/issues"
|
|
111
114
|
}
|
|
112
115
|
}
|
|
Binary file
|