@travetto/transformer 7.0.5 → 7.1.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 CHANGED
@@ -99,7 +99,7 @@ export class Test {
99
99
  **Code: Sample Output**
100
100
  ```javascript
101
101
  import * as Δfunction from "@travetto/runtime/src/function.js";
102
- var Δm_1 = ["@travetto/transformer", "doc/upper.ts"];
102
+ const Δm_1 = ["@travetto/transformer", "doc/upper.ts"];
103
103
  export class TEST {
104
104
  static { Δfunction.registerFunction(TEST, Δm_1, { hash: 649563175, lines: [1, 9] }, { COMPUTEAGE: { hash: 1286718349, lines: [6, 8, 7] } }, false); }
105
105
  NAME;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/transformer",
3
- "version": "7.0.5",
3
+ "version": "7.1.1",
4
4
  "type": "module",
5
5
  "description": "Functionality for AST transformations, with transformer registration, and general utils",
6
6
  "keywords": [
@@ -25,7 +25,7 @@
25
25
  "directory": "module/transformer"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/manifest": "^7.0.4",
28
+ "@travetto/manifest": "^7.1.1",
29
29
  "tslib": "^2.8.1",
30
30
  "typescript": "^5.9.3"
31
31
  },
package/src/state.ts CHANGED
@@ -291,7 +291,7 @@ export class TransformerState implements State {
291
291
  this.fromLiteral([entry?.module, entry?.relativeFile ?? ''])
292
292
  );
293
293
  this.addStatements([
294
- this.factory.createVariableStatement([], this.factory.createVariableDeclarationList([declaration]))
294
+ this.factory.createVariableStatement([], this.factory.createVariableDeclarationList([declaration], ts.NodeFlags.Const))
295
295
  ], -1);
296
296
  }
297
297
  return this.#moduleIdentifier;