@apm-js-collab/code-transformer 0.1.1 → 0.2.1
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.
- package/README.md +4 -2
- package/package.json +6 -2
- package/pkg/orchestrion_js_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# `@apm-js-collab/code-transformer`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is a temporary fork of [`DataDog/orchestrion-js`](https://github.com/DataDog/orchestrion-js/). We intend all changes to be upstreamed to the original repository,
|
|
4
|
+
|
|
5
|
+
This is a library for instrumenting Node.js libraries at build or load time.
|
|
4
6
|
|
|
5
7
|
It provides `VisitMut` implementations for SWC's AST nodes, which can be used to insert tracing code into matching functions.
|
|
6
8
|
It can be used in SWC plugins, or anything else that mutates JavaScript ASTs using SWC.
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
`@apm-js-collab/code-transformer` is built as a JavaScript module, which can be used from Node.js.
|
|
9
11
|
|
|
10
12
|
To build the JavaScript module:
|
|
11
13
|
- Ensure you have [Rust installed](https://www.rust-lang.org/tools/install)
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apm-js-collab/code-transformer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/apm-js-collab/orchestrion-js.git"
|
|
8
|
+
},
|
|
5
9
|
"files": [
|
|
6
10
|
"./pkg/orchestrion_js_bg.wasm",
|
|
7
11
|
"./pkg/orchestrion_js.js",
|
|
@@ -13,7 +17,7 @@
|
|
|
13
17
|
"types": "./pkg/orchestrion_js.d.ts",
|
|
14
18
|
"scripts": {
|
|
15
19
|
"build": "wasm-pack build --target nodejs --release -- --features wasm",
|
|
16
|
-
"test": "node ./tests/tests.mjs"
|
|
20
|
+
"test": "node ./tests/wasm/tests.mjs"
|
|
17
21
|
},
|
|
18
22
|
"dependencies": {
|
|
19
23
|
"wasm-pack": "^0.13.1"
|
|
Binary file
|