@travetto/transformer
Advanced tools
Comparing version 4.0.0-rc.5 to 4.0.0-rc.6
{ | ||
"name": "@travetto/transformer", | ||
"version": "4.0.0-rc.5", | ||
"version": "4.0.0-rc.6", | ||
"description": "Functionality for AST transformations, with transformer registration, and general utils", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/manifest": "^4.0.0-rc.5", | ||
"@travetto/manifest": "^4.0.0-rc.6", | ||
"tslib": "^2.6.2", | ||
@@ -30,0 +30,0 @@ "typescript": "^5.3.3" |
@@ -111,3 +111,3 @@ <!-- This file was generated by @travetto/doc and should not be modified directly --> | ||
let TEST = class TEST { | ||
static Ⲑinit = Ⲑ_runtime_1.RuntimeIndex.registerFunction(TEST, ᚕf, 649563175, { COMPUTEAGE: { hash: 1286718349 } }, false, false); | ||
static Ⲑinit = Ⲑ_runtime_1.RuntimeIndex.registerFunction(TEST, ᚕf, { hash: 649563175, lines: [1, 9] }, { COMPUTEAGE: { hash: 1286718349, lines: [6, 8] } }, false, false); | ||
NAME; | ||
@@ -114,0 +114,0 @@ AGE; |
@@ -25,13 +25,10 @@ import ts from 'typescript'; | ||
/** | ||
* Get first line of method body | ||
* Get code range of node | ||
* @param m | ||
*/ | ||
static getRangeOf<T extends ts.Node>(source: ts.SourceFile, o: T | undefined): { start: number, end: number } | undefined { | ||
static getRangeOf<T extends ts.Node>(source: ts.SourceFile, o: T | undefined): [start: number, end: number] | undefined { | ||
if (o) { | ||
const start = ts.getLineAndCharacterOfPosition(source, o.getStart(source)); | ||
const end = ts.getLineAndCharacterOfPosition(source, o.getEnd()); | ||
return { | ||
start: start.line + 1, | ||
end: end.line + 1 | ||
}; | ||
return [start.line + 1, end.line + 1]; | ||
} | ||
@@ -38,0 +35,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94002
2360