@travetto/transformer 7.0.0-rc.2 → 7.0.0-rc.3

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": "@travetto/transformer",
3
- "version": "7.0.0-rc.2",
3
+ "version": "7.0.0-rc.3",
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": "^7.0.0-rc.1",
27
+ "@travetto/manifest": "^7.0.0-rc.2",
28
28
  "tslib": "^2.8.1",
29
29
  "typescript": "^5.9.3"
30
30
  },
@@ -207,7 +207,7 @@ export const TypeBuilder: {
207
207
  build: (resolver, type) => {
208
208
  const name = CoreUtil.getSymbol(type)?.getName();
209
209
  const source = DeclarationUtil.getPrimaryDeclarationNode(type).getSourceFile();
210
- return { key: 'foreign', name, source: source.fileName };
210
+ return { key: 'foreign', name, source: source.fileName, classId: `${source.fileName.split('node_modules/')[1]}+${name}` };
211
211
  }
212
212
  },
213
213
  managed: {
@@ -191,6 +191,10 @@ export interface ForeignType extends Type<'foreign'> {
191
191
  * Primary source file
192
192
  */
193
193
  source: string;
194
+ /**
195
+ * Unique class identifier
196
+ */
197
+ classId: string;
194
198
  }
195
199
 
196
200
  /**
package/src/state.ts CHANGED
@@ -409,7 +409,7 @@ export class TransformerState implements State {
409
409
  file.identifier,
410
410
  this.factory.createIdentifier('foreignType'),
411
411
  ), [], [
412
- this.fromLiteral(`${type.source.split('node_modules/')[1]}+${type.name}`)
412
+ this.fromLiteral(type.classId)
413
413
  ]);
414
414
  }
415
415