@travetto/transformer 4.0.0-rc.4 → 4.0.0-rc.6
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 +1 -1
- package/package.json +2 -2
- package/src/util/core.ts +3 -6
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ const Ⲑ_runtime_1 = tslib_1.__importStar(require("@travetto/manifest/src/runti
|
|
|
108
108
|
const Ⲑ_decorator_1 = tslib_1.__importStar(require("@travetto/registry/src/decorator.js"));
|
|
109
109
|
var ᚕf = "@travetto/transformer/doc/upper.js";
|
|
110
110
|
let TEST = class TEST {
|
|
111
|
-
static Ⲑinit = Ⲑ_runtime_1.RuntimeIndex.registerFunction(TEST, ᚕf, 649563175, { COMPUTEAGE: { hash: 1286718349 } }, false, false);
|
|
111
|
+
static Ⲑinit = Ⲑ_runtime_1.RuntimeIndex.registerFunction(TEST, ᚕf, { hash: 649563175, lines: [1, 9] }, { COMPUTEAGE: { hash: 1286718349, lines: [6, 8] } }, false, false);
|
|
112
112
|
NAME;
|
|
113
113
|
AGE;
|
|
114
114
|
DOB;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/transformer",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.6",
|
|
4
4
|
"description": "Functionality for AST transformations, with transformer registration, and general utils",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"directory": "module/transformer"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@travetto/manifest": "^4.0.0-rc.
|
|
27
|
+
"@travetto/manifest": "^4.0.0-rc.6",
|
|
28
28
|
"tslib": "^2.6.2",
|
|
29
29
|
"typescript": "^5.3.3"
|
|
30
30
|
},
|
package/src/util/core.ts
CHANGED
|
@@ -22,17 +22,14 @@ export class CoreUtil {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* Get
|
|
25
|
+
* Get code range of node
|
|
26
26
|
* @param m
|
|
27
27
|
*/
|
|
28
|
-
static getRangeOf<T extends ts.Node>(source: ts.SourceFile, o: T | undefined):
|
|
28
|
+
static getRangeOf<T extends ts.Node>(source: ts.SourceFile, o: T | undefined): [start: number, end: number] | undefined {
|
|
29
29
|
if (o) {
|
|
30
30
|
const start = ts.getLineAndCharacterOfPosition(source, o.getStart(source));
|
|
31
31
|
const end = ts.getLineAndCharacterOfPosition(source, o.getEnd());
|
|
32
|
-
return
|
|
33
|
-
start: start.line + 1,
|
|
34
|
-
end: end.line + 1
|
|
35
|
-
};
|
|
32
|
+
return [start.line + 1, end.line + 1];
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
|