@travetto/transformer 4.1.1 → 4.1.2

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": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Functionality for AST transformations, with transformer registration, and general utils",
5
5
  "keywords": [
6
6
  "typescript",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@travetto/manifest": "^4.1.0",
28
28
  "tslib": "^2.6.3",
29
- "typescript": "^5.4.5"
29
+ "typescript": "^5.5.2"
30
30
  },
31
31
  "travetto": {
32
32
  "displayName": "Transformation",
package/src/state.ts CHANGED
@@ -167,7 +167,7 @@ export class TransformerState implements State {
167
167
  getDecoratorList(node: ts.Node): DecoratorMeta[] {
168
168
  return ts.canHaveDecorators(node) ? (ts.getDecorators(node) ?? [])
169
169
  .map(dec => this.getDecoratorMeta(dec))
170
- .filter((x): x is DecoratorMeta => !!x) : [];
170
+ .filter(x => !!x) : [];
171
171
  }
172
172
 
173
173
  /**
package/src/util/core.ts CHANGED
@@ -106,7 +106,7 @@ export class CoreUtil {
106
106
  factory.createCallExpression(
107
107
  name,
108
108
  undefined,
109
- contents.filter((x?: ts.Expression): x is ts.Expression => !!x)
109
+ contents.filter(x => !!x)
110
110
  )
111
111
  );
112
112
  }