@apm-js-collab/code-transformer 0.3.0 → 0.5.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apm-js-collab/code-transformer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"build": "wasm-pack build --target nodejs --release -- --features wasm",
|
|
20
20
|
"test": "node ./tests/wasm/tests.mjs"
|
|
21
21
|
},
|
|
22
|
-
"
|
|
22
|
+
"devDependencies": {
|
|
23
23
|
"wasm-pack": "^0.13.1"
|
|
24
24
|
},
|
|
25
25
|
"volta": {
|
package/pkg/orchestrion_js.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export type FunctionQuery = { className: string; methodName: string; kind: Funct
|
|
|
17
17
|
|
|
18
18
|
export type FunctionKind = "Sync" | "Async";
|
|
19
19
|
|
|
20
|
+
export type ModuleType = "esm" | "cjs" | "unknown";
|
|
21
|
+
|
|
20
22
|
export class InstrumentationMatcher {
|
|
21
23
|
private constructor();
|
|
22
24
|
free(): void;
|
|
@@ -25,5 +27,5 @@ export class InstrumentationMatcher {
|
|
|
25
27
|
export class Transformer {
|
|
26
28
|
private constructor();
|
|
27
29
|
free(): void;
|
|
28
|
-
transform(contents: string, is_module:
|
|
30
|
+
transform(contents: string, is_module: ModuleType): string;
|
|
29
31
|
}
|
package/pkg/orchestrion_js.js
CHANGED
|
@@ -271,7 +271,7 @@ class Transformer {
|
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
* @param {string} contents
|
|
274
|
-
* @param {
|
|
274
|
+
* @param {ModuleType} is_module
|
|
275
275
|
* @returns {string}
|
|
276
276
|
*/
|
|
277
277
|
transform(contents, is_module) {
|
|
@@ -490,6 +490,11 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
490
490
|
return ret;
|
|
491
491
|
};
|
|
492
492
|
|
|
493
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
494
|
+
const ret = typeof(arg0) === 'string';
|
|
495
|
+
return ret;
|
|
496
|
+
};
|
|
497
|
+
|
|
493
498
|
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
494
499
|
const ret = arg0 === undefined;
|
|
495
500
|
return ret;
|
|
Binary file
|