restfuncs-transformer 1.0.0 → 1.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.
Files changed (38) hide show
  1. package/AddRemoteMethodsMeta.ts +244 -166
  2. package/devPlayground.ts +2 -12
  3. package/{AddRemoteMethodsMeta.d.ts → dist/commonjs/AddRemoteMethodsMeta.d.ts} +24 -6
  4. package/dist/commonjs/AddRemoteMethodsMeta.d.ts.map +1 -0
  5. package/dist/commonjs/AddRemoteMethodsMeta.js +348 -0
  6. package/dist/commonjs/AddRemoteMethodsMeta.js.map +1 -0
  7. package/dist/commonjs/devPlayground.d.ts +3 -0
  8. package/dist/commonjs/devPlayground.d.ts.map +1 -0
  9. package/dist/commonjs/devPlayground.js +3 -0
  10. package/dist/commonjs/devPlayground.js.map +1 -0
  11. package/dist/commonjs/index.d.ts.map +1 -0
  12. package/{index.js → dist/commonjs/index.js} +43 -7
  13. package/dist/commonjs/index.js.map +1 -0
  14. package/{transformerUtil.d.ts → dist/commonjs/transformerUtil.d.ts} +10 -0
  15. package/dist/commonjs/transformerUtil.d.ts.map +1 -0
  16. package/{transformerUtil.js → dist/commonjs/transformerUtil.js} +23 -1
  17. package/dist/commonjs/transformerUtil.js.map +1 -0
  18. package/dist/commonjs/transformerUtil.test.d.ts +2 -0
  19. package/dist/commonjs/transformerUtil.test.d.ts.map +1 -0
  20. package/dist/commonjs/transformerUtil.test.js +11 -0
  21. package/dist/commonjs/transformerUtil.test.js.map +1 -0
  22. package/index.ts +23 -7
  23. package/package.json +8 -4
  24. package/readme.md +37 -9
  25. package/transformerUtil.test.ts +12 -0
  26. package/transformerUtil.ts +23 -0
  27. package/AddRemoteMethodsMeta.d.ts.map +0 -1
  28. package/AddRemoteMethodsMeta.js +0 -221
  29. package/AddRemoteMethodsMeta.js.map +0 -1
  30. package/devPlayground.d.ts +0 -2
  31. package/devPlayground.d.ts.map +0 -1
  32. package/devPlayground.js +0 -31
  33. package/devPlayground.js.map +0 -1
  34. package/index.d.ts.map +0 -1
  35. package/index.js.map +0 -1
  36. package/transformerUtil.d.ts.map +0 -1
  37. package/transformerUtil.js.map +0 -1
  38. /package/{index.d.ts → dist/commonjs/index.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "restfuncs-transformer",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Enhances your classes with typescript-rtti, to make them usable with Restfuncs",
5
5
  "keywords": ["rpc","rest"],
6
6
  "author": "Boris Gingold <bogeee@bogitech.de>",
@@ -13,21 +13,25 @@
13
13
  "scripts": {
14
14
  "clean": "tsc --build --clean && rimraf dist LICENSE",
15
15
  "build": "tsc --build",
16
+ "test": "npm run build && jest --runInBand --testPathIgnorePatterns=\".*\\.ts\" --testNamePattern=\".*\"",
16
17
  "dev:playgrund": "tsx devPlayground.ts"
17
18
  },
18
19
  "exports": {
19
20
  ".": {
20
- "default": "./index.js"
21
+ "default": "./dist/commonjs/index.js"
21
22
  }
22
23
  },
23
24
  "dependencies": {
24
- "typescript": "5.0 || 5.1 || 5.3"
25
+ "typescript": "5.0 || 5.1 || 5.3",
26
+ "restfuncs-common": "^3.1.0"
25
27
  },
26
28
  "peerDependencies": {
27
29
  "restfuncs-server": ">=2"
28
30
  },
29
31
  "devDependencies": {
30
32
  "@types/ts-expose-internals": "npm:ts-expose-internals@5.3.3",
31
- "rimraf": "=5.0.5"
33
+ "rimraf": "=5.0.5",
34
+ "ts-jest": "^29.0.3",
35
+ "@types/jest": "^29.2.2"
32
36
  }
33
37
  }
package/readme.md CHANGED
@@ -4,30 +4,56 @@ This transformer prepares `ServerSession` subclasses for Typia and adds jsDoc in
4
4
  ## Usage
5
5
  [Here's how to use it](https://github.com/bogeeee/restfuncs/tree/3.x/readme.md#setting-up-the-build-here-it-gets-a-bit-nasty-)
6
6
 
7
+ ## Debugging parameters
8
+ Insert these into the `{ "transform": "restfuncs-transformer", ...}` block.
9
+ - debug: Set to true to dump the output of transformed **and affected** files each into a file named ...after_restfuncs-transformer.tmp
10
+ - pretty: Pretty print the output (normally it is squeezed into one line to preserve line numbers and keep source maps intact)
11
+
7
12
 
8
13
  ## How the transformer chain works
9
14
  Here is, how the restfuncs-transformer, typia transformer and typescript-rtti work together:
10
- 1. The `restfuncs-transformer` scans for all `@remote` methods and, at the bottom of inside their class, it adds the following code (here for "myMethod"):
15
+ 1. The `restfuncs-transformer` scans for all `@remote` methods and, at the bottom of inside their class, it adds the following code (here for):
11
16
  ````typescript
17
+ @remote
18
+ async myMethod(param1: string, someCallbackFn: (p:number) => Promise<string>);
19
+ ````
20
+
21
+ results in adding this to the class body:
12
22
 
23
+ ````typescript
24
+ import _rf_typia from "typia";
13
25
  /**
14
26
  * Code is generated by the restfuncs-transformer during compile-time
15
27
  */
16
28
  static getRemoteMethodsMeta(): (typeof this.type_remoteMethodsMeta) {
17
- this.__hello_developer__make_sure_your_class_is_a_subclass_of_ServerSession // Give a friendly error message when this is not the case. Otherwise the following statement "const typia = ..." would fail and leaves the user wondering.
18
- let typia = this.typiaRuntime; // We need a "typia" defined in the scope, but let restfuncs manage where that dependency comes from
19
- return {
29
+ this.__hello_developer__make_sure_your_class_is_a_subclass_of_ServerSession // Attempt to give a friendly error message when this is not the case. Otherwise the previous line would fail and leaves the user wondering.
30
+ type CallbackPlaceholder<DECL_INDEX extends number> = string & _rf_typia.tags.TagBase<{kind: "callbackFn", target: "string", value: DECL_INDEX, validate: `onValidateCallbackArg($input, ${DECL_INDEX})`}>; // Create a [custom tag](https://typia.io/docs/validators/tags/#customization), that can be used via `CallbackPlaceholder<n>`. During validation, this tag then calls onValidateCallbackArg.
31
+ const result= {
20
32
  transformerVersion: {major: XX, feature: XX },
21
33
  instanceMethods: {
22
34
  "myMethod": {
23
35
  arguments: {
24
- validateEquals: (args: unknown) => typia.validateEquals<Parameters<typeof this.prototype["myMethod"]>>(args),
25
- validatePrune: ...
26
- },
36
+ validateEquals: (args: unknown) => _rf_typia.validateEquals<[param1: string, someCallback: (p:number) => Promise<string>]>(args),
37
+ validatePrune: ...,
38
+ withPlaceholders: {
39
+ validateEquals: (args: unknown, onValidateCallbackArg: (placeholderId: string, declarationIndex: number) => boolean) => _rf_typia.validateEquals<[param1: string, someCallback: CallbackPlaceholder<0>]>(args),
40
+ ...
41
+ }
42
+ },
27
43
  result: {
28
- validateEquals: (value: unknown) => typia.validateEquals<Awaited<ReturnType<typeof this.prototype["myMethod"]>>>(value),
44
+ validateEquals: (value: unknown) => _rf_typia.validateEquals<Awaited<ReturnType<typeof this.prototype["myMethod"]>>>(value),
29
45
  ...
30
46
  },
47
+ callbacks: [{ // here for the `someCallbackFn: (p:number) => Promise<string>` declaration
48
+ arguments: {
49
+ validateEquals: (args: unknown) => _rf_typia.validateEquals<[p: number]>(args),
50
+ validatePrune: ...
51
+ },
52
+ awaitedResult: {
53
+ validateEquals: (value: unknown) => _rf_typia.validateEquals<string>(value),
54
+ ...
55
+ }
56
+ }],
31
57
  jsDoc: {
32
58
  comment: "text with <strong>markup</strong>",
33
59
  params: {a: "text..."},
@@ -35,7 +61,9 @@ static getRemoteMethodsMeta(): (typeof this.type_remoteMethodsMeta) {
35
61
  }
36
62
  }
37
63
  }
38
- }
64
+ };
65
+
66
+ return result; // Code style note for this line: Why not do `return {...}` directly ? This tiny difference allows for extra properties which ensure backward compatibility with older "restfuncs-server" packages.
39
67
  }
40
68
  ````
41
69
 
@@ -0,0 +1,12 @@
1
+ import {TextPatch} from "./transformerUtil";
2
+
3
+ jest.setTimeout(60 * 60 * 1000); // Increase timeout to 1h to make debugging possible
4
+
5
+
6
+ test('TextPatch', () => {
7
+ const content='abc><de><fg'
8
+ const patch = new TextPatch();
9
+ patch.patches = [{position: 4, contentToInsert: "_insert1_"}, {position: 8, contentToInsert: "_insert2_"}];
10
+ expect(patch.applyPatches(content)).toBe('abc>_insert1_<de>_insert2_<fg');
11
+ });
12
+
@@ -101,4 +101,27 @@ export abstract class FileTransformRun {
101
101
  }
102
102
  return identifierNode.getText();
103
103
  }
104
+ }
105
+
106
+ export class TextPatch {
107
+ /**
108
+ * character index (not byte index) => content to insert
109
+ */
110
+ patches: {position: number, contentToInsert: string}[] = [];
111
+ applyPatches(content: string) {
112
+ this.patches.sort((a,b) => a.position - b.position);
113
+ let result = "";
114
+ let emittedTil = 0;
115
+ for(const patch of this.patches) {
116
+ // emit the stuff before the patch
117
+ result+=content.slice(emittedTil, patch.position);
118
+ emittedTil = patch.position;
119
+
120
+ result+=patch.contentToInsert;
121
+ }
122
+
123
+ result+= content.slice(emittedTil);// emit the rest
124
+
125
+ return result;
126
+ }
104
127
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddRemoteMethodsMeta.d.ts","sourceRoot":"","sources":["AddRemoteMethodsMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAEP,iBAAiB,EACjB,IAAI,EACJ,uBAAuB,EAG1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AAInD;;;;;;;GAOG;AACH,qBAAa,oBAAqB,SAAQ,gBAAgB;IAEtD,0CAA0C,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzD,gCAAgC,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;IAC3E,cAAc,UAAS;IAGvB,KAAK,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAyDvB;;;;;;;;;;;;;;;OAeG;IACH,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM;IAkHtE;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,qBAAqB;IA+E7B;;;;;;;;;;OAUG;IACH,OAAO,CAAC,6CAA6C;CA8ExD"}
@@ -1,221 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.AddRemoteMethodsMeta = void 0;
27
- const typescript_1 = __importStar(require("typescript"));
28
- const transformerUtil_1 = require("./transformerUtil");
29
- const index_1 = require("./index");
30
- /**
31
- * Transformer that adds the following statement to the method body (like in readme.md#how-it-works)
32
- * <code><pre>
33
- * static getRemoteMethodsMeta() {
34
- * ....
35
- * }
36
- * </pre></code>
37
- */
38
- class AddRemoteMethodsMeta extends transformerUtil_1.FileTransformRun {
39
- constructor() {
40
- super(...arguments);
41
- this.astWasModified = false;
42
- }
43
- /* Visitor Function */
44
- visit(node) {
45
- var _a;
46
- if (node.kind === typescript_1.SyntaxKind.MethodDeclaration) { // @remote ?
47
- const methodDeclaration = node;
48
- if (this.getChilds(methodDeclaration).some(n => n.kind == typescript_1.SyntaxKind.StaticKeyword)) { // static ?
49
- return node;
50
- }
51
- if (this.getParent().kind !== typescript_1.SyntaxKind.ClassDeclaration) { // Method not under a class (i.e. an anonymous object ?}
52
- return node;
53
- }
54
- const methodName = methodDeclaration.name.escapedText;
55
- try {
56
- let remoteDecorator = this.getChilds(methodDeclaration).find(d => d.kind === typescript_1.SyntaxKind.Decorator);
57
- if (!remoteDecorator) { // no @remote found ?
58
- return node;
59
- }
60
- // Diagnosis: Check for overloads:
61
- if ((_a = this.diagnosis_currentClass_instanceMethodsSeen) === null || _a === void 0 ? void 0 : _a.has(methodName)) { // Seen twice ?
62
- throw new Error(`@remote methods cannot have multiple/overloaded signatures: ${methodName}`); // TODO: add diagnosis
63
- }
64
- this.currentClass_instanceMethodsMeta[methodName] = this.createMethodMetaExpression(methodDeclaration, methodName); // create the code:
65
- }
66
- finally {
67
- this.diagnosis_currentClass_instanceMethodsSeen.add(methodName);
68
- }
69
- return node;
70
- }
71
- else if (node.kind === typescript_1.SyntaxKind.ClassDeclaration) {
72
- this.diagnosis_currentClass_instanceMethodsSeen = new Set();
73
- this.currentClass_instanceMethodsMeta = {};
74
- try {
75
- let result = this.visitChilds(node);
76
- if (Object.keys(this.currentClass_instanceMethodsMeta).length > 0) { // Current class has @remote methods ?
77
- // add "static getRemoteMethodsMeta() {...}" method:
78
- // @ts-ignore yes, a bit hacky, but with factory.crateClassDeclation we might also miss some properties
79
- result.members = this.context.factory.createNodeArray([...result.members.values(), this.create_static_getRemoteMethodsMeta_expression()]);
80
- this.astWasModified = true;
81
- }
82
- return result;
83
- }
84
- finally {
85
- this.currentClass_instanceMethodsMeta = undefined;
86
- this.diagnosis_currentClass_instanceMethodsSeen = undefined;
87
- }
88
- }
89
- else {
90
- return this.visitChilds(node);
91
- }
92
- }
93
- /**
94
- * Crates the following expression like in readme.md#how-it-works
95
- * <code><pre>
96
- * {
97
- * arguments: {
98
- * ...
99
- * }
100
- * jsDoc: {
101
- * ...
102
- * }
103
- * }
104
- * </pre></code>
105
- *
106
- * @param methodName
107
- * @private
108
- */
109
- createMethodMetaExpression(node, methodName) {
110
- const factory = this.context.factory;
111
- const arguments_typiaFuncs = {
112
- /**
113
- * typia.validateEquals
114
- */
115
- validateEquals: factory.createPropertyAccessExpression(factory.createIdentifier("typia"), factory.createIdentifier("validateEquals")),
116
- "validatePrune": factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier("typia"), factory.createIdentifier("misc")), factory.createIdentifier("validatePrune"))
117
- };
118
- const result_typiaFuncs = Object.assign({}, arguments_typiaFuncs);
119
- // Example from readme.md#how-it-works Copy&pasted through the [AST viewer tool](https://ts-ast-viewer.com/)
120
- // @ts-ignore
121
- return factory.createObjectLiteralExpression([
122
- // arguments: {...}
123
- factory.createPropertyAssignment(factory.createIdentifier("arguments"), factory.createObjectLiteralExpression(Object.keys(arguments_typiaFuncs).map((typiaFnName) => factory.createPropertyAssignment(factory.createIdentifier(typiaFnName), factory.createArrowFunction(undefined, undefined, [factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("args"), undefined, factory.createKeywordTypeNode(typescript_1.default.SyntaxKind.UnknownKeyword), undefined)], undefined, factory.createToken(typescript_1.default.SyntaxKind.EqualsGreaterThanToken), factory.createCallExpression(arguments_typiaFuncs[typiaFnName], [factory.createTypeReferenceNode(factory.createIdentifier("Parameters"), [factory.createIndexedAccessTypeNode(factory.createTypeQueryNode(factory.createQualifiedName(factory.createIdentifier("this"), factory.createIdentifier("prototype")), undefined), factory.createLiteralTypeNode(factory.createStringLiteral(methodName)))])], [factory.createIdentifier("args")])))), true)),
124
- // result: {...}
125
- factory.createPropertyAssignment(factory.createIdentifier("result"), factory.createObjectLiteralExpression(Object.keys(result_typiaFuncs).map((typiaFnName) => factory.createPropertyAssignment(factory.createIdentifier(typiaFnName), factory.createArrowFunction(undefined, undefined, [factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier("value"), undefined, factory.createKeywordTypeNode(typescript_1.default.SyntaxKind.UnknownKeyword), undefined)], undefined, factory.createToken(typescript_1.default.SyntaxKind.EqualsGreaterThanToken), factory.createCallExpression(arguments_typiaFuncs[typiaFnName], [factory.createTypeReferenceNode(factory.createIdentifier("Awaited"), [factory.createTypeReferenceNode(factory.createIdentifier("ReturnType"), [factory.createIndexedAccessTypeNode(factory.createTypeQueryNode(factory.createQualifiedName(factory.createIdentifier("this"), factory.createIdentifier("prototype")), undefined), factory.createLiteralTypeNode(factory.createStringLiteral(methodName)))])])], [factory.createIdentifier("value")])))), true)),
126
- factory.createPropertyAssignment(factory.createIdentifier("jsDoc"), this.createJsDocExpression(node, methodName))
127
- ], true);
128
- }
129
- /**
130
- * Crates the following expression like in readme.md#how-it-works
131
- * <code><pre>
132
- * {
133
- * comment: "...",
134
- * params: {...},
135
- * ...
136
- * }
137
- * </pre></code>
138
- *
139
- * or
140
- *
141
- * <code><pre>
142
- * undefined
143
- * </pre></code>
144
- *
145
- *
146
- * @param methodName
147
- * @private
148
- */
149
- createJsDocExpression(node, diagnosis_methodName) {
150
- var _a;
151
- const factory = this.context.factory;
152
- if (!node.jsDoc || node.jsDoc.length == 0) { // no jsdoc
153
- return factory.createIdentifier("undefined");
154
- }
155
- const jsdoc = node.jsDoc[node.jsDoc.length - 1]; // use last jsDoc
156
- const comment = jsdoc.comment || "";
157
- if (typeof comment !== "string") {
158
- throw new Error(`Expected comment to be a string. Got: ${comment}`); // TODO add to diagnostics instead
159
- }
160
- // Collect params and tags
161
- const params = {};
162
- const tags = [];
163
- (_a = jsdoc.tags) === null || _a === void 0 ? void 0 : _a.forEach(tag => {
164
- var _a;
165
- const name = tag.tagName.escapedText.toLowerCase();
166
- const comment = tag.comment;
167
- if (comment && typeof comment !== "string") {
168
- throw new Error(`Expected comment to be a string. Got: ${comment}`); // TODO add to diagnostics instead
169
- }
170
- if (name === "param") {
171
- const paramname = (_a = tag.name) === null || _a === void 0 ? void 0 : _a.escapedText;
172
- if (paramname && comment) {
173
- params[paramname] = comment;
174
- }
175
- }
176
- else {
177
- const tagName = tag.name;
178
- tags.push({ name, comment });
179
- }
180
- });
181
- // JSDoc. Example from readme.md#how-it-works Copy&pasted through the [AST viewer tool](https://ts-ast-viewer.com/)
182
- let jsDocExpression = factory.createObjectLiteralExpression([
183
- factory.createPropertyAssignment(factory.createIdentifier("comment"), factory.createStringLiteral(comment)),
184
- factory.createPropertyAssignment(factory.createIdentifier("params"), factory.createObjectLiteralExpression(Object.keys(params).map(paramName => factory.createPropertyAssignment(factory.createIdentifier(paramName), factory.createStringLiteral(params[paramName]))), false)),
185
- factory.createPropertyAssignment(factory.createIdentifier("tags"), factory.createArrayLiteralExpression(tags.map(tag => factory.createObjectLiteralExpression([
186
- factory.createPropertyAssignment(factory.createIdentifier("name"), factory.createStringLiteral(tag.name)),
187
- factory.createPropertyAssignment(factory.createIdentifier("comment"), tag.comment !== undefined ? factory.createStringLiteral(tag.comment) : factory.createIdentifier("undefined"))
188
- ], false)), false))
189
- ], true);
190
- return jsDocExpression;
191
- }
192
- /**
193
- * Crates the following expression like in readme.md#how-it-works
194
- * <code><pre>
195
- * static getRemoteMethodsMeta() {
196
- * ....
197
- * }
198
- * </pre></code>
199
- *
200
- * @param methodName
201
- * @private
202
- */
203
- create_static_getRemoteMethodsMeta_expression() {
204
- const factory = this.context.factory;
205
- let instanceMethods = factory.createObjectLiteralExpression(Object.keys(this.currentClass_instanceMethodsMeta).map(methodName => factory.createPropertyAssignment(factory.createStringLiteral(methodName), this.currentClass_instanceMethodsMeta[methodName])), true);
206
- // Example from readme.md#how-it-works Copy&pasted through the [AST viewer tool](https://ts-ast-viewer.com/)
207
- return factory.createMethodDeclaration([factory.createToken(typescript_1.default.SyntaxKind.StaticKeyword)], undefined, factory.createIdentifier("getRemoteMethodsMeta"), undefined, undefined, [], factory.createParenthesizedType(factory.createTypeQueryNode(factory.createQualifiedName(factory.createIdentifier("this"), factory.createIdentifier("type_remoteMethodsMeta")), undefined)), factory.createBlock([
208
- factory.createExpressionStatement(factory.createPropertyAccessExpression(factory.createThis(), factory.createIdentifier("__hello_developer__make_sure_your_class_is_a_subclass_of_ServerSession"))),
209
- factory.createVariableStatement(undefined, factory.createVariableDeclarationList([factory.createVariableDeclaration(factory.createIdentifier("typia"), undefined, undefined, factory.createPropertyAccessExpression(factory.createThis(), factory.createIdentifier("typiaRuntime")))], typescript_1.default.NodeFlags.Let)),
210
- factory.createReturnStatement(factory.createObjectLiteralExpression([
211
- factory.createPropertyAssignment(factory.createIdentifier("transformerVersion"), factory.createObjectLiteralExpression([
212
- factory.createPropertyAssignment(factory.createIdentifier("major"), factory.createIdentifier(`${index_1.transformerVersion.major}`)),
213
- factory.createPropertyAssignment(factory.createIdentifier("feature"), factory.createIdentifier(`${index_1.transformerVersion.feature}`))
214
- ], false)),
215
- factory.createPropertyAssignment(factory.createIdentifier("instanceMethods"), instanceMethods)
216
- ], true))
217
- ], true));
218
- }
219
- }
220
- exports.AddRemoteMethodsMeta = AddRemoteMethodsMeta;
221
- //# sourceMappingURL=AddRemoteMethodsMeta.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AddRemoteMethodsMeta.js","sourceRoot":"","sources":["AddRemoteMethodsMeta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAOoB;AACpB,uDAAmD;AACnD,mCAA2C;AAG3C;;;;;;;GAOG;AACH,MAAa,oBAAqB,SAAQ,kCAAgB;IAA1D;;QAII,mBAAc,GAAG,KAAK,CAAC;IA0X3B,CAAC;IAxXG,sBAAsB;IACtB,KAAK,CAAC,IAAU;;QACZ,IAAI,IAAI,CAAC,IAAI,KAAK,uBAAU,CAAC,iBAAiB,EAAE,EAAE,YAAY;YAC1D,MAAM,iBAAiB,GAAI,IAA0B,CAAA;YACrD,IAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,uBAAU,CAAC,aAAa,CAAC,EAAE,EAAE,WAAW;gBAC7F,OAAO,IAAI,CAAC;aACf;YACD,IAAG,IAAI,CAAC,SAAS,EAAE,CAAC,IAAI,KAAK,uBAAU,CAAC,gBAAgB,EAAE,EAAE,wDAAwD;gBAChH,OAAO,IAAI,CAAC;aACf;YAED,MAAM,UAAU,GAAI,iBAAiB,CAAC,IAAY,CAAC,W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CAAC,OAAO,CAAC,6BAA6B,CAC/D;gBACI,OAAO,CAAC,wBAAwB,CAC5B,OAAO,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,EAC9C,OAAO,CAAC,6BAA6B,CACjC;oBACI,OAAO,CAAC,wBAAwB,CAC5B,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,EACjC,OAAO,CAAC,gBAAgB,CAAC,GAAG,0BAAkB,CAAC,KAAK,EAAE,CAAC,CAC1D;oBACD,OAAO,CAAC,wBAAwB,CAC5B,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EACnC,OAAO,CAAC,gBAAgB,CAAC,GAAG,0BAAkB,CAAC,OAAO,EAAE,CAAC,CAC5D;iBACJ,EACD,KAAK,CACR,CACJ;gBACD,OAAO,CAAC,wBAAwB,CAC5B,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAC3C,eAAe,CAClB;aACJ,EACD,IAAI,CACP,CAAC;SACL,EACD,IAAI,CACP,CACJ,CAAA;IAEL,CAAC;CACJ;AA9XD,oDA8XC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=devPlayground.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devPlayground.d.ts","sourceRoot":"","sources":["devPlayground.ts"],"names":[],"mappings":""}
package/devPlayground.js DELETED
@@ -1,31 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const ts = __importStar(require("typescript"));
27
- const typescript_1 = require("typescript");
28
- var ScriptKind = ts.ScriptKind;
29
- let sourceFile = ts.createSourceFile("dev/some.ts", "const i:string = 'myStr';", typescript_1.ScriptTarget.ES2020, false, ScriptKind.JS);
30
- let i = undefined;
31
- //# sourceMappingURL=devPlayground.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"devPlayground.js","sourceRoot":"","sources":["devPlayground.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,2CAAwC;AACxC,IAAO,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC;AAGlC,IAAI,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,aAAa,EAAC,2BAA2B,EAAE,yBAAY,CAAC,MAAM,EAAC,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;AAS1H,IAAI,CAAC,GAA2B,SAAS,CAAA"}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAW,EAAC,YAAY,EAAmB,OAAO,EAAa,MAAM,YAAY,CAAC;AAClF,OAAO,EAAC,YAAY,EAAE,wBAAwB,EAAC,MAAM,UAAU,CAAC;AAMhE,eAAO,MAAM,kBAAkB;;;CAA2B,CAAA;AAwC1D,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACpC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,YAAY,GAAG,SAAS,EAC9B,MAAM,EAAE,YAAY,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