rbx-transformer-alpha 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/out/transformer.js +16 -17
  2. package/package.json +1 -1
@@ -42,23 +42,22 @@ function visitExpression(context, node) {
42
42
  return context.transform(node);
43
43
  }
44
44
  function visitCallExpression(context, node) {
45
- var _a;
46
- const { factory } = context;
47
- const typeChecker = context.program.getTypeChecker();
48
- const expr = node.expression;
49
- if (expr.kind === typescript_1.default.SyntaxKind.Identifier && expr.text === "createNetworkEvents") {
50
- const typeArg = (_a = node.typeArguments) === null || _a === void 0 ? void 0 : _a[1];
51
- if (typeArg) {
52
- const type = typeChecker.getTypeFromTypeNode(typeArg);
53
- const properties = type.getProperties();
54
- const stringArgs = properties.map((prop) => factory.createStringLiteral(prop.getName()));
55
- const arrayLiteral = factory.createArrayLiteralExpression(stringArgs);
56
- return factory.updateCallExpression(node, node.expression, node.typeArguments, [
57
- ...node.arguments,
58
- arrayLiteral,
59
- ]);
60
- }
61
- }
45
+ // const { factory } = context;
46
+ // const typeChecker = context.program.getTypeChecker();
47
+ // const expr = node.expression;
48
+ // if (expr.kind === ts.SyntaxKind.Identifier && (expr as ts.Identifier).text === "createNetworkEvents") {
49
+ // const typeArg = node.typeArguments?.[1];
50
+ // if (typeArg) {
51
+ // const type = typeChecker.getTypeFromTypeNode(typeArg);
52
+ // const properties = type.getProperties();
53
+ // const stringArgs = properties.map((prop) => factory.createStringLiteral(prop.getName()));
54
+ // const arrayLiteral = factory.createArrayLiteralExpression(stringArgs);
55
+ // return factory.updateCallExpression(node, node.expression, node.typeArguments, [
56
+ // ...node.arguments,
57
+ // arrayLiteral,
58
+ // ]);
59
+ // }
60
+ // }
62
61
  return context.transform(node);
63
62
  }
64
63
  function visitNode(context, node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbx-transformer-alpha",
3
- "version": "1.0.0",
3
+ "version": "1.0.01",
4
4
  "author": "Konma",
5
5
  "license": "MIT",
6
6
  "description": "",