@teleporthq/teleport-plugin-next-inline-fetch 0.34.0 → 0.35.0
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/dist/cjs/index.d.ts +2 -3
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +30 -61
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/utils.d.ts +2 -1
- package/dist/cjs/utils.d.ts.map +1 -1
- package/dist/cjs/utils.js +61 -1
- package/dist/cjs/utils.js.map +1 -1
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +28 -60
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/utils.d.ts +2 -1
- package/dist/esm/utils.d.ts.map +1 -1
- package/dist/esm/utils.js +59 -0
- package/dist/esm/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +29 -86
- package/src/utils.ts +89 -0
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentPlugin, ComponentPluginFactory } from '@teleporthq/teleport-types';
|
|
2
|
-
export declare const
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
2
|
+
export declare const createNextPagesInlineFetchPlugin: ComponentPluginFactory<{}>;
|
|
3
|
+
export declare const createNextComponentInlineFetchPlugin: () => ComponentPlugin;
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAgBnC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAgBnC,eAAO,MAAM,gCAAgC,EAAE,sBAAsB,CAAC,EAAE,CAyOvE,CAAA;AAED,eAAO,MAAM,oCAAoC,uBAqBhD,CAAA"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -68,7 +68,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
68
68
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
69
69
|
};
|
|
70
70
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71
|
-
exports.
|
|
71
|
+
exports.createNextComponentInlineFetchPlugin = exports.createNextPagesInlineFetchPlugin = void 0;
|
|
72
72
|
var teleport_types_1 = require("@teleporthq/teleport-types");
|
|
73
73
|
var teleport_shared_1 = require("@teleporthq/teleport-shared");
|
|
74
74
|
var types = __importStar(require("@babel/types"));
|
|
@@ -83,12 +83,12 @@ var path_1 = require("path");
|
|
|
83
83
|
and the rest are passed as callbacks to the DataProvider which results in loading them at the client-side
|
|
84
84
|
when the app is deployed..
|
|
85
85
|
*/
|
|
86
|
-
var
|
|
87
|
-
var
|
|
86
|
+
var createNextPagesInlineFetchPlugin = function () {
|
|
87
|
+
var nextPagesInlineFetchPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
88
88
|
var uidl, chunks, options, dependencies, resources, getStaticPropsChunk, componentChunk;
|
|
89
89
|
return __generator(this, function (_a) {
|
|
90
90
|
uidl = structure.uidl, chunks = structure.chunks, options = structure.options, dependencies = structure.dependencies;
|
|
91
|
-
resources = options.resources;
|
|
91
|
+
resources = (options || {}).resources;
|
|
92
92
|
if ((resources === null || resources === void 0 ? void 0 : resources.items) === undefined || (resources === null || resources === void 0 ? void 0 : resources.path) === undefined) {
|
|
93
93
|
return [2 /*return*/, structure];
|
|
94
94
|
}
|
|
@@ -98,7 +98,7 @@ var createNextInlineFetchPlugin = function () {
|
|
|
98
98
|
return [2 /*return*/, structure];
|
|
99
99
|
}
|
|
100
100
|
teleport_shared_1.UIDLUtils.traverseNodes(uidl.node, function (node) {
|
|
101
|
-
var _a, _b
|
|
101
|
+
var _a, _b;
|
|
102
102
|
if (node.type !== 'cms-item' && node.type !== 'cms-list') {
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
@@ -203,66 +203,35 @@ var createNextInlineFetchPlugin = function () {
|
|
|
203
203
|
So, the reosurces can take advantage of
|
|
204
204
|
process.env values while accessing the actual functions from the `/resources/` folder.
|
|
205
205
|
*/
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
componentChunk: componentChunk,
|
|
229
|
-
params: node.content.resource.params,
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
if ('name' in node.content.resource) {
|
|
233
|
-
var _f = node.content.resource, name_1 = _f.name, dependency = _f.dependency;
|
|
234
|
-
resourceImportVariable = ((_c = dependency.meta) === null || _c === void 0 ? void 0 : _c.originalName) || name_1;
|
|
235
|
-
importPath = ((_d = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _d === void 0 ? void 0 : _d.importAlias) || dependency.path;
|
|
236
|
-
resourceFileName = teleport_shared_1.StringUtils.camelCaseToDashCase(node.content.resource.name);
|
|
237
|
-
isNamedImport = ((_e = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _e === void 0 ? void 0 : _e.namedImport) || false;
|
|
238
|
-
/*
|
|
239
|
-
When we are calling external functions to make a request call for us.
|
|
240
|
-
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
241
|
-
So, we can't derieve if the resource call is actually a GET / POST.
|
|
242
|
-
So, we can mark these as POST by default since we are taking data from the component.
|
|
243
|
-
*/
|
|
244
|
-
funcParams = 'req.body';
|
|
245
|
-
(0, utils_1.computeUseEffectAST)({
|
|
246
|
-
fileName: resourceFileName,
|
|
247
|
-
resourceType: 'POST',
|
|
248
|
-
node: node,
|
|
249
|
-
componentChunk: componentChunk,
|
|
250
|
-
params: node.content.resource.params,
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
options.extractedResources[resourceFileName] = {
|
|
254
|
-
fileName: resourceFileName,
|
|
255
|
-
fileType: teleport_types_1.FileType.JS,
|
|
256
|
-
path: ['pages', 'api'],
|
|
257
|
-
content: "import ".concat(isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable, " from '").concat(importPath, "'\nexport default async function handler(req, res) {\n try {\n const response = await ").concat(resourceImportVariable, "(").concat(funcParams, ")\n return res.status(200).json(response)\n } catch (error) {\n return res.status(500).send('Something went wrong')\n }\n}\n "),
|
|
258
|
-
};
|
|
206
|
+
(0, utils_1.extractResourceIntoNextAPIFolder)(node, resources, componentChunk, options.extractedResources);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
return [2 /*return*/, structure];
|
|
210
|
+
});
|
|
211
|
+
}); };
|
|
212
|
+
return nextPagesInlineFetchPlugin;
|
|
213
|
+
};
|
|
214
|
+
exports.createNextPagesInlineFetchPlugin = createNextPagesInlineFetchPlugin;
|
|
215
|
+
var createNextComponentInlineFetchPlugin = function () {
|
|
216
|
+
var nextComponentInlineFetchPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
217
|
+
var uidl, options, chunks, resources, componentChunk;
|
|
218
|
+
return __generator(this, function (_a) {
|
|
219
|
+
uidl = structure.uidl, options = structure.options, chunks = structure.chunks;
|
|
220
|
+
resources = (options || {}).resources;
|
|
221
|
+
componentChunk = chunks.find(function (chunk) { return chunk.name === 'jsx-component'; });
|
|
222
|
+
if (componentChunk === undefined) {
|
|
223
|
+
return [2 /*return*/, structure];
|
|
224
|
+
}
|
|
225
|
+
teleport_shared_1.UIDLUtils.traverseNodes(uidl.node, function (node) {
|
|
226
|
+
if (node.type !== 'cms-list' && node.type !== 'cms-item') {
|
|
227
|
+
return;
|
|
259
228
|
}
|
|
229
|
+
(0, utils_1.extractResourceIntoNextAPIFolder)(node, resources, componentChunk, options.extractedResources);
|
|
260
230
|
});
|
|
261
231
|
return [2 /*return*/, structure];
|
|
262
232
|
});
|
|
263
233
|
}); };
|
|
264
|
-
return
|
|
234
|
+
return nextComponentInlineFetchPlugin;
|
|
265
235
|
};
|
|
266
|
-
exports.
|
|
267
|
-
exports.default = (0, exports.createNextInlineFetchPlugin)();
|
|
236
|
+
exports.createNextComponentInlineFetchPlugin = createNextComponentInlineFetchPlugin;
|
|
268
237
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAMmC;AACnC,+DAAoE;AACpE,kDAAqC;AACrC,6EAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAMmC;AACnC,+DAAoE;AACpE,kDAAqC;AACrC,6EAA6D;AAC7D,iCAA0D;AAC1D,6BAAqC;AAErC;;;;;;;EAOE;AAEK,IAAM,gCAAgC,GAA+B;IAC1E,IAAM,0BAA0B,GAAoB,UAAO,SAAS;;;YAC1D,IAAI,GAAoC,SAAS,KAA7C,EAAE,MAAM,GAA4B,SAAS,OAArC,EAAE,OAAO,GAAmB,SAAS,QAA5B,EAAE,YA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BAAO,SAAS,EAAA;aACjB;YAED,2BAAS,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,UAAC,IAAI;gBACtC,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;oBACxD,OAAM;iBACP;gBACD,IAAA,wCAAgC,EAAC,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;YAC/F,CAAC,CAAC,CAAA;YAEF,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,8BAA8B,CAAA;AACvC,CAAC,CAAA;AArBY,QAAA,oCAAoC,wCAqBhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","855f85ab127df31682e2d0fe257f583b0e0f7c20338bde8b7a8ed3aa426da845","3c8efc8972d7fa8d0b5f7bef3a68da14807239f86d3dcffb37ccd45d8b3fee54","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","884b964239121a6c3b4ba8b3c12d4869a1101711248677f5299e88f9ca0199f8","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","ff590fd234e4b504ab2be8779169f506b388d88c3406277d48b5bf1c49e1265b","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","afd0b0fceb1e38d6ba3af077bf8a8ed16934f39508eef510a92f409467f00329","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","2b6c1b62692d32a4bf10e3e3eb614f3e658c04e825b355f31695e382945963cc","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","5e311ff10bfde2163e21741125d322a756c3869c44cf1f0edd7b9a1e4d7f08f9","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"8b88c4060754eaab0f400ec11b02e8d66a24d4217c429af8bd3f52015a3247ad","signature":"2cd6858bc8330d726ac3f919a56dc7b6d28c157af01ff623edaf3dda519ac373"},{"version":"43299256921956cc56688736c335de5f8881959e446d6bce5711b66c691b00fa","signature":"6c9cbdbd19ec75748474e8214e55497631defe3fcbe0faddc3607d0cd27fdc34"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[160,162],[156,157],[156,157,158,159],[161],[163],[69],[105],[106,111,139],[107,118,119,126,136,147],[107,108,118,126],[109,148],[110,111,119,127],[111,136,144],[112,114,118,126],[105,113],[114,115],[118],[116,118],[105,118],[118,119,120,136,147],[118,119,120,133,136,139],[103,152],[114,118,121,126,136,147],[118,119,121,122,126,136,144,147],[121,123,136,144,147],[69,70,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[118,124],[125,147,152],[114,118,126,136],[127],[128],[105,129],[130,146,152],[131],[132],[118,133,134],[133,135,148,150],[106,118,136,137,138,139],[106,136,138],[136,137],[139],[140],[105,136],[118,142,143],[142,143],[111,126,136,144],[145],[126,146],[106,121,132,147],[111,148],[136,149],[125,150],[151],[106,111,118,120,129,136,147,150,152],[136,153],[80,84,147],[80,136,147],[75],[77,80,144,147],[126,144],[155],[75,155],[77,80,126,147],[72,73,76,79,106,118,136,147],[72,78],[76,80,106,139,147,155],[106,155],[96,106,155],[74,75,155],[80],[74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102],[80,87,88],[78,80,88,89],[79],[72,75,80],[80,84,88,89],[84],[78,80,83,147],[72,77,78,80,84,87],[106,136],[75,80,96,106,152,155],[48,54],[48],[48,54,56],[55,56,57,58,59,60,61,62,63,64,65],[48,62],[48,54,64],[48,53,54,66,67,128],[48,54,66],[49,50,51,52],[44],[44,45,46,47],[43],[43,44]],"referencedMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,88],[67,89],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"exportedModulesMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,83],[67,83],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"semanticDiagnosticsPerFile":[54,163,156,158,160,159,157,162,161,164,69,70,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,104,154,121,122,123,155,124,125,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,71,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,87,94,86,101,78,77,100,95,98,80,79,75,74,97,76,81,82,85,72,103,102,89,90,92,88,91,96,83,84,93,73,99,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","9a31eff1de55ed9cba467732383532b75bf6f693681ecba80df2d80a414bebfb","397cecdda86d0436209c7e17818497c6699a003c3f608ca639ba96b008276a66","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","caa06ca877ed1a6cc58d471056673d72644b3cd98974f48a97225673167d64d6","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","ff590fd234e4b504ab2be8779169f506b388d88c3406277d48b5bf1c49e1265b","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","afd0b0fceb1e38d6ba3af077bf8a8ed16934f39508eef510a92f409467f00329","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","2b6c1b62692d32a4bf10e3e3eb614f3e658c04e825b355f31695e382945963cc","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","5e311ff10bfde2163e21741125d322a756c3869c44cf1f0edd7b9a1e4d7f08f9","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"b91b0cfaa82f9171bb12eb29561ff5c9cabb013f8c6c8ad4494fe5f7ae16b860","signature":"8e411670b69fdb3d4fd7e6f4b38b9d7fab8a059b8925efc930f33b06df734cbf"},{"version":"ed4482f6b76d5e50a6f30566520101ddd08c9a3c5c05bbfecb343134412e8043","signature":"3c6de19da526651f5d662a85dd51710cc0a819bcbb076ac0a6ce116182655ecc"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[160,162],[156,157],[156,157,158,159],[161],[163],[69],[105],[106,111,139],[107,118,119,126,136,147],[107,108,118,126],[109,148],[110,111,119,127],[111,136,144],[112,114,118,126],[105,113],[114,115],[118],[116,118],[105,118],[118,119,120,136,147],[118,119,120,133,136,139],[103,152],[114,118,121,126,136,147],[118,119,121,122,126,136,144,147],[121,123,136,144,147],[69,70,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[118,124],[125,147,152],[114,118,126,136],[127],[128],[105,129],[130,146,152],[131],[132],[118,133,134],[133,135,148,150],[106,118,136,137,138,139],[106,136,138],[136,137],[139],[140],[105,136],[118,142,143],[142,143],[111,126,136,144],[145],[126,146],[106,121,132,147],[111,148],[136,149],[125,150],[151],[106,111,118,120,129,136,147,150,152],[136,153],[80,84,147],[80,136,147],[75],[77,80,144,147],[126,144],[155],[75,155],[77,80,126,147],[72,73,76,79,106,118,136,147],[72,78],[76,80,106,139,147,155],[106,155],[96,106,155],[74,75,155],[80],[74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102],[80,87,88],[78,80,88,89],[79],[72,75,80],[80,84,88,89],[84],[78,80,83,147],[72,77,78,80,84,87],[106,136],[75,80,96,106,152,155],[48,54],[48],[48,54,56],[55,56,57,58,59,60,61,62,63,64,65],[48,62],[48,54,64],[48,53,54,66,67,128],[48,53,54,66,128],[49,50,51,52],[44],[44,45,46,47],[43],[43,44]],"referencedMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,88],[67,89],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"exportedModulesMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,83],[67,83],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"semanticDiagnosticsPerFile":[54,163,156,158,160,159,157,162,161,164,69,70,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,104,154,121,122,123,155,124,125,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,71,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,87,94,86,101,78,77,100,95,98,80,79,75,74,97,76,81,82,85,72,103,102,89,90,92,88,91,96,83,84,93,73,99,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
|
package/dist/cjs/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { UIDLCMSItemNode, UIDLCMSListNode, ChunkDefinition, UIDLResourceLink, UIDLResourceItem } from '@teleporthq/teleport-types';
|
|
1
|
+
import { UIDLCMSItemNode, UIDLCMSListNode, ChunkDefinition, UIDLResourceLink, UIDLResourceItem, GeneratorOptions } from '@teleporthq/teleport-types';
|
|
2
|
+
export declare const extractResourceIntoNextAPIFolder: (node: UIDLCMSItemNode | UIDLCMSListNode, resources: GeneratorOptions['resources'], componentChunk: ChunkDefinition, extractedResources: GeneratorOptions['extractedResources']) => void;
|
|
2
3
|
export declare const computeUseEffectAST: (params: {
|
|
3
4
|
fileName: string;
|
|
4
5
|
resourceType: UIDLResourceItem['method'];
|
package/dist/cjs/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,4BAA4B,CAAA;AAMnC,eAAO,MAAM,gCAAgC,SACrC,eAAe,GAAG,eAAe,aAC5B,gBAAgB,CAAC,WAAW,CAAC,kBACxB,eAAe,sBACX,gBAAgB,CAAC,oBAAoB,CAAC,SA+E3D,CAAA;AAED,eAAO,MAAM,mBAAmB;cACpB,MAAM;kBACF,gBAAgB,CAAC,QAAQ,CAAC;UAClC,eAAe,GAAG,eAAe;oBACvB,eAAe;YACvB,gBAAgB,CAAC,QAAQ,CAAC;UA6FnC,CAAA"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -32,9 +32,69 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
32
32
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.computeUseEffectAST = void 0;
|
|
35
|
+
exports.computeUseEffectAST = exports.extractResourceIntoNextAPIFolder = void 0;
|
|
36
|
+
var teleport_types_1 = require("@teleporthq/teleport-types");
|
|
36
37
|
var types = __importStar(require("@babel/types"));
|
|
37
38
|
var teleport_plugin_common_1 = require("@teleporthq/teleport-plugin-common");
|
|
39
|
+
var teleport_shared_1 = require("@teleporthq/teleport-shared");
|
|
40
|
+
var path_1 = require("path");
|
|
41
|
+
var extractResourceIntoNextAPIFolder = function (node, resources, componentChunk, extractedResources) {
|
|
42
|
+
var _a, _b, _c;
|
|
43
|
+
var resourceFileName;
|
|
44
|
+
var resourceImportVariable;
|
|
45
|
+
var importPath;
|
|
46
|
+
var isNamedImport = false;
|
|
47
|
+
var funcParams = '';
|
|
48
|
+
if ('id' in node.content.resource) {
|
|
49
|
+
var usedResource = resources.items[node.content.resource.id];
|
|
50
|
+
if (!usedResource) {
|
|
51
|
+
throw new Error("Tried to find a resource that does not exist ".concat(node.content.resource.id));
|
|
52
|
+
}
|
|
53
|
+
if (Object.keys(node.content.resource.params).length > 0 &&
|
|
54
|
+
Object.keys(usedResource.params).length > 0) {
|
|
55
|
+
funcParams = 'req.query';
|
|
56
|
+
}
|
|
57
|
+
resourceImportVariable = teleport_shared_1.StringUtils.dashCaseToCamelCase(teleport_shared_1.StringUtils.camelize("".concat(usedResource.name, "-resource")));
|
|
58
|
+
var importName = teleport_shared_1.StringUtils.camelCaseToDashCase(usedResource.name);
|
|
59
|
+
importPath = (0, path_1.relative)(['pages', 'api'].join('/'), __spreadArray(__spreadArray([], resources.path, true), [importName], false).join('/'));
|
|
60
|
+
resourceFileName = teleport_shared_1.StringUtils.camelCaseToDashCase("".concat(resourceImportVariable, "-").concat(importName));
|
|
61
|
+
(0, exports.computeUseEffectAST)({
|
|
62
|
+
fileName: resourceFileName,
|
|
63
|
+
resourceType: usedResource.method,
|
|
64
|
+
node: node,
|
|
65
|
+
componentChunk: componentChunk,
|
|
66
|
+
params: node.content.resource.params,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if ('name' in node.content.resource) {
|
|
70
|
+
var _d = node.content.resource, name_1 = _d.name, dependency = _d.dependency;
|
|
71
|
+
resourceImportVariable = ((_a = dependency.meta) === null || _a === void 0 ? void 0 : _a.originalName) || name_1;
|
|
72
|
+
importPath = ((_b = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _b === void 0 ? void 0 : _b.importAlias) || dependency.path;
|
|
73
|
+
resourceFileName = teleport_shared_1.StringUtils.camelCaseToDashCase(node.content.resource.name);
|
|
74
|
+
isNamedImport = ((_c = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _c === void 0 ? void 0 : _c.namedImport) || false;
|
|
75
|
+
/*
|
|
76
|
+
When we are calling external functions to make a request call for us.
|
|
77
|
+
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
78
|
+
So, we can't derieve if the resource call is actually a GET / POST.
|
|
79
|
+
So, we can mark these as POST by default since we are taking data from the component.
|
|
80
|
+
*/
|
|
81
|
+
funcParams = 'req.body';
|
|
82
|
+
(0, exports.computeUseEffectAST)({
|
|
83
|
+
fileName: resourceFileName,
|
|
84
|
+
resourceType: 'POST',
|
|
85
|
+
node: node,
|
|
86
|
+
componentChunk: componentChunk,
|
|
87
|
+
params: node.content.resource.params,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
extractedResources[resourceFileName] = {
|
|
91
|
+
fileName: resourceFileName,
|
|
92
|
+
fileType: teleport_types_1.FileType.JS,
|
|
93
|
+
path: ['pages', 'api'],
|
|
94
|
+
content: "import ".concat(isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable, " from '").concat(importPath, "'\nexport default async function handler(req, res) {\n try {\n const response = await ").concat(resourceImportVariable, "(").concat(funcParams, ")\n return res.status(200).json(response)\n } catch (error) {\n return res.status(500).send('Something went wrong')\n }\n}\n "),
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
exports.extractResourceIntoNextAPIFolder = extractResourceIntoNextAPIFolder;
|
|
38
98
|
var computeUseEffectAST = function (params) {
|
|
39
99
|
var node = params.node, fileName = params.fileName, componentChunk = params.componentChunk, resourceType = params.resourceType;
|
|
40
100
|
if (node.type !== 'cms-item' && node.type !== 'cms-list') {
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAQmC;AACnC,kDAAqC;AACrC,6EAA6D;AAC7D,+DAAyD;AACzD,6BAA+B;AAExB,IAAM,gCAAgC,GAAG,UAC9C,IAAuC,EACvC,SAAwC,EACxC,cAA+B,EA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zB,KAAK,CAAC,cAAc,CAClB,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EACzE,EAAE,CACH,CACF;KACF,CACF,CAAA;IAED,IAAM,kBAAkB,GAAG,iCAAQ,CAAC,mCAAmC;QACrE,MAAM;OACH,SAAS,QACsB,CAAA;IAEpC,IAAM,WAAW,GAAG,KAAK,CAAC,uBAAuB,CAC/C,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,EAC5B,SAAS,CAAC,MAAM,IAAI,CAAC;QACnB,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE;YACtF,KAAK,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,kBAAkB,CAAC;SAC9E,CAAC;QACJ,CAAC,CAAC,QAAQ,CACb,CAAA;IAED,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAChG,CAAA;IAED,OAAM;AACR,CAAC,CAAA;AAlGY,QAAA,mBAAmB,uBAkG/B"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ComponentPlugin, ComponentPluginFactory } from '@teleporthq/teleport-types';
|
|
2
|
-
export declare const
|
|
3
|
-
declare const
|
|
4
|
-
export default _default;
|
|
2
|
+
export declare const createNextPagesInlineFetchPlugin: ComponentPluginFactory<{}>;
|
|
3
|
+
export declare const createNextComponentInlineFetchPlugin: () => ComponentPlugin;
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAgBnC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EACf,sBAAsB,EAGvB,MAAM,4BAA4B,CAAA;AAgBnC,eAAO,MAAM,gCAAgC,EAAE,sBAAsB,CAAC,EAAE,CAyOvE,CAAA;AAED,eAAO,MAAM,oCAAoC,uBAqBhD,CAAA"}
|
package/dist/esm/index.js
CHANGED
|
@@ -47,7 +47,7 @@ import { ChunkType, FileType, } from '@teleporthq/teleport-types';
|
|
|
47
47
|
import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared';
|
|
48
48
|
import * as types from '@babel/types';
|
|
49
49
|
import { ASTUtils } from '@teleporthq/teleport-plugin-common';
|
|
50
|
-
import {
|
|
50
|
+
import { extractResourceIntoNextAPIFolder } from './utils';
|
|
51
51
|
import { join, relative } from 'path';
|
|
52
52
|
/*
|
|
53
53
|
When defining a cms-item or cms-list in the UIDL, the user can specify a resource associated with the node.
|
|
@@ -57,12 +57,12 @@ import { join, relative } from 'path';
|
|
|
57
57
|
and the rest are passed as callbacks to the DataProvider which results in loading them at the client-side
|
|
58
58
|
when the app is deployed..
|
|
59
59
|
*/
|
|
60
|
-
export var
|
|
61
|
-
var
|
|
60
|
+
export var createNextPagesInlineFetchPlugin = function () {
|
|
61
|
+
var nextPagesInlineFetchPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
62
|
var uidl, chunks, options, dependencies, resources, getStaticPropsChunk, componentChunk;
|
|
63
63
|
return __generator(this, function (_a) {
|
|
64
64
|
uidl = structure.uidl, chunks = structure.chunks, options = structure.options, dependencies = structure.dependencies;
|
|
65
|
-
resources = options.resources;
|
|
65
|
+
resources = (options || {}).resources;
|
|
66
66
|
if ((resources === null || resources === void 0 ? void 0 : resources.items) === undefined || (resources === null || resources === void 0 ? void 0 : resources.path) === undefined) {
|
|
67
67
|
return [2 /*return*/, structure];
|
|
68
68
|
}
|
|
@@ -72,7 +72,7 @@ export var createNextInlineFetchPlugin = function () {
|
|
|
72
72
|
return [2 /*return*/, structure];
|
|
73
73
|
}
|
|
74
74
|
UIDLUtils.traverseNodes(uidl.node, function (node) {
|
|
75
|
-
var _a, _b
|
|
75
|
+
var _a, _b;
|
|
76
76
|
if (node.type !== 'cms-item' && node.type !== 'cms-list') {
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
@@ -177,65 +177,33 @@ export var createNextInlineFetchPlugin = function () {
|
|
|
177
177
|
So, the reosurces can take advantage of
|
|
178
178
|
process.env values while accessing the actual functions from the `/resources/` folder.
|
|
179
179
|
*/
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
node: node,
|
|
202
|
-
componentChunk: componentChunk,
|
|
203
|
-
params: node.content.resource.params,
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
if ('name' in node.content.resource) {
|
|
207
|
-
var _f = node.content.resource, name_1 = _f.name, dependency = _f.dependency;
|
|
208
|
-
resourceImportVariable = ((_c = dependency.meta) === null || _c === void 0 ? void 0 : _c.originalName) || name_1;
|
|
209
|
-
importPath = ((_d = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _d === void 0 ? void 0 : _d.importAlias) || dependency.path;
|
|
210
|
-
resourceFileName = StringUtils.camelCaseToDashCase(node.content.resource.name);
|
|
211
|
-
isNamedImport = ((_e = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _e === void 0 ? void 0 : _e.namedImport) || false;
|
|
212
|
-
/*
|
|
213
|
-
When we are calling external functions to make a request call for us.
|
|
214
|
-
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
215
|
-
So, we can't derieve if the resource call is actually a GET / POST.
|
|
216
|
-
So, we can mark these as POST by default since we are taking data from the component.
|
|
217
|
-
*/
|
|
218
|
-
funcParams = 'req.body';
|
|
219
|
-
computeUseEffectAST({
|
|
220
|
-
fileName: resourceFileName,
|
|
221
|
-
resourceType: 'POST',
|
|
222
|
-
node: node,
|
|
223
|
-
componentChunk: componentChunk,
|
|
224
|
-
params: node.content.resource.params,
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
options.extractedResources[resourceFileName] = {
|
|
228
|
-
fileName: resourceFileName,
|
|
229
|
-
fileType: FileType.JS,
|
|
230
|
-
path: ['pages', 'api'],
|
|
231
|
-
content: "import ".concat(isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable, " from '").concat(importPath, "'\nexport default async function handler(req, res) {\n try {\n const response = await ").concat(resourceImportVariable, "(").concat(funcParams, ")\n return res.status(200).json(response)\n } catch (error) {\n return res.status(500).send('Something went wrong')\n }\n}\n "),
|
|
232
|
-
};
|
|
180
|
+
extractResourceIntoNextAPIFolder(node, resources, componentChunk, options.extractedResources);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return [2 /*return*/, structure];
|
|
184
|
+
});
|
|
185
|
+
}); };
|
|
186
|
+
return nextPagesInlineFetchPlugin;
|
|
187
|
+
};
|
|
188
|
+
export var createNextComponentInlineFetchPlugin = function () {
|
|
189
|
+
var nextComponentInlineFetchPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
|
+
var uidl, options, chunks, resources, componentChunk;
|
|
191
|
+
return __generator(this, function (_a) {
|
|
192
|
+
uidl = structure.uidl, options = structure.options, chunks = structure.chunks;
|
|
193
|
+
resources = (options || {}).resources;
|
|
194
|
+
componentChunk = chunks.find(function (chunk) { return chunk.name === 'jsx-component'; });
|
|
195
|
+
if (componentChunk === undefined) {
|
|
196
|
+
return [2 /*return*/, structure];
|
|
197
|
+
}
|
|
198
|
+
UIDLUtils.traverseNodes(uidl.node, function (node) {
|
|
199
|
+
if (node.type !== 'cms-list' && node.type !== 'cms-item') {
|
|
200
|
+
return;
|
|
233
201
|
}
|
|
202
|
+
extractResourceIntoNextAPIFolder(node, resources, componentChunk, options.extractedResources);
|
|
234
203
|
});
|
|
235
204
|
return [2 /*return*/, structure];
|
|
236
205
|
});
|
|
237
206
|
}); };
|
|
238
|
-
return
|
|
207
|
+
return nextComponentInlineFetchPlugin;
|
|
239
208
|
};
|
|
240
|
-
export default createNextInlineFetchPlugin();
|
|
241
209
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAGT,QAAQ,GAET,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EACL,SAAS,EAGT,QAAQ,GAET,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,KAAK,KA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UAAO,SAAS;;;YAC9D,IAAI,GAAsB,SAAS,KAA/B,EAAE,OAAO,GAAa,SAAS,QAAtB,EAAE,MAAM,GAAK,SAAS,OAAd,CAAc;YACnC,SAAS,GAAK,CAAA,OAAO,IAAI,EAAE,CAAA,UAAlB,CAAkB;YAE7B,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,IAAI,KAAK,eAAe,EAA9B,CAA8B,CAAC,CAAA;YAC7E,IAAI,cAAc,KAAK,SAAS,EAAE;gBAChC,sBAAO,SAAS,EAAA;aACjB;YAED,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,EAAE,UAAC,IAAI;gBACtC,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,IAAI,IAAI,CAAC,IAAI,KAAK,UAAU,EAAE;oBACxD,OAAM;iBACP;gBACD,gCAAgC,CAAC,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAA;YAC/F,CAAC,CAAC,CAAA;YAEF,sBAAO,SAAS,EAAA;;SACjB,CAAA;IAED,OAAO,8BAA8B,CAAA;AACvC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","855f85ab127df31682e2d0fe257f583b0e0f7c20338bde8b7a8ed3aa426da845","3c8efc8972d7fa8d0b5f7bef3a68da14807239f86d3dcffb37ccd45d8b3fee54","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","884b964239121a6c3b4ba8b3c12d4869a1101711248677f5299e88f9ca0199f8","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","ff590fd234e4b504ab2be8779169f506b388d88c3406277d48b5bf1c49e1265b","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","afd0b0fceb1e38d6ba3af077bf8a8ed16934f39508eef510a92f409467f00329","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","2b6c1b62692d32a4bf10e3e3eb614f3e658c04e825b355f31695e382945963cc","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","5e311ff10bfde2163e21741125d322a756c3869c44cf1f0edd7b9a1e4d7f08f9","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"8b88c4060754eaab0f400ec11b02e8d66a24d4217c429af8bd3f52015a3247ad","signature":"2cd6858bc8330d726ac3f919a56dc7b6d28c157af01ff623edaf3dda519ac373"},{"version":"43299256921956cc56688736c335de5f8881959e446d6bce5711b66c691b00fa","signature":"6c9cbdbd19ec75748474e8214e55497631defe3fcbe0faddc3607d0cd27fdc34"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[160,162],[156,157],[156,157,158,159],[161],[163],[69],[105],[106,111,139],[107,118,119,126,136,147],[107,108,118,126],[109,148],[110,111,119,127],[111,136,144],[112,114,118,126],[105,113],[114,115],[118],[116,118],[105,118],[118,119,120,136,147],[118,119,120,133,136,139],[103,152],[114,118,121,126,136,147],[118,119,121,122,126,136,144,147],[121,123,136,144,147],[69,70,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[118,124],[125,147,152],[114,118,126,136],[127],[128],[105,129],[130,146,152],[131],[132],[118,133,134],[133,135,148,150],[106,118,136,137,138,139],[106,136,138],[136,137],[139],[140],[105,136],[118,142,143],[142,143],[111,126,136,144],[145],[126,146],[106,121,132,147],[111,148],[136,149],[125,150],[151],[106,111,118,120,129,136,147,150,152],[136,153],[80,84,147],[80,136,147],[75],[77,80,144,147],[126,144],[155],[75,155],[77,80,126,147],[72,73,76,79,106,118,136,147],[72,78],[76,80,106,139,147,155],[106,155],[96,106,155],[74,75,155],[80],[74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102],[80,87,88],[78,80,88,89],[79],[72,75,80],[80,84,88,89],[84],[78,80,83,147],[72,77,78,80,84,87],[106,136],[75,80,96,106,152,155],[48,54],[48],[48,54,56],[55,56,57,58,59,60,61,62,63,64,65],[48,62],[48,54,64],[48,53,54,66,67,128],[48,54,66],[49,50,51,52],[44],[44,45,46,47],[43],[43,44]],"referencedMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,88],[67,89],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"exportedModulesMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,83],[67,83],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"semanticDiagnosticsPerFile":[54,163,156,158,160,159,157,162,161,164,69,70,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,104,154,121,122,123,155,124,125,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,71,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,87,94,86,101,78,77,100,95,98,80,79,75,74,97,76,81,82,85,72,103,102,89,90,92,88,91,96,83,84,93,73,99,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","9a31eff1de55ed9cba467732383532b75bf6f693681ecba80df2d80a414bebfb","397cecdda86d0436209c7e17818497c6699a003c3f608ca639ba96b008276a66","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","caa06ca877ed1a6cc58d471056673d72644b3cd98974f48a97225673167d64d6","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","8c08668019739abf45bfa24fb3559a4362161c438e71e3925f06bd6ea2792883","22c6f439ba8a0f6347a16d6fad503bb8a2fbfe778e5cf5c90918659c653c8a8c","2c55653d46d0d2bfa1b84b54c3a4ffa6e43de5b05c9f808e46b42adffc4e3e92","1875bde1eafbc9d923cd1624ac1fd6da0af82347c2a9c7a847a660cc4fa01a33","55584873eae27c5607725f0a9b2123cdea9100fd47cd4bfd582b567a7c363877","61fe981de167fe34caf4bd80a3c120747844dddb519eaf8a79549d5f78081fb7","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","ff590fd234e4b504ab2be8779169f506b388d88c3406277d48b5bf1c49e1265b","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","afd0b0fceb1e38d6ba3af077bf8a8ed16934f39508eef510a92f409467f00329","d4f36091f2a7fac55cac2d088d46e68f01cd5cf68e3db5770b3ba62641875e18","2b6c1b62692d32a4bf10e3e3eb614f3e658c04e825b355f31695e382945963cc","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","5e311ff10bfde2163e21741125d322a756c3869c44cf1f0edd7b9a1e4d7f08f9","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","59b8c7576043b12356b13745811130ae5fa9c37cbd7ec5e49ecac8e88b8c9992",{"version":"b91b0cfaa82f9171bb12eb29561ff5c9cabb013f8c6c8ad4494fe5f7ae16b860","signature":"8e411670b69fdb3d4fd7e6f4b38b9d7fab8a059b8925efc930f33b06df734cbf"},{"version":"ed4482f6b76d5e50a6f30566520101ddd08c9a3c5c05bbfecb343134412e8043","signature":"3c6de19da526651f5d662a85dd51710cc0a819bcbb076ac0a6ce116182655ecc"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[160,162],[156,157],[156,157,158,159],[161],[163],[69],[105],[106,111,139],[107,118,119,126,136,147],[107,108,118,126],[109,148],[110,111,119,127],[111,136,144],[112,114,118,126],[105,113],[114,115],[118],[116,118],[105,118],[118,119,120,136,147],[118,119,120,133,136,139],[103,152],[114,118,121,126,136,147],[118,119,121,122,126,136,144,147],[121,123,136,144,147],[69,70,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[118,124],[125,147,152],[114,118,126,136],[127],[128],[105,129],[130,146,152],[131],[132],[118,133,134],[133,135,148,150],[106,118,136,137,138,139],[106,136,138],[136,137],[139],[140],[105,136],[118,142,143],[142,143],[111,126,136,144],[145],[126,146],[106,121,132,147],[111,148],[136,149],[125,150],[151],[106,111,118,120,129,136,147,150,152],[136,153],[80,84,147],[80,136,147],[75],[77,80,144,147],[126,144],[155],[75,155],[77,80,126,147],[72,73,76,79,106,118,136,147],[72,78],[76,80,106,139,147,155],[106,155],[96,106,155],[74,75,155],[80],[74,75,76,77,78,79,80,81,82,84,85,86,87,88,89,90,91,92,93,94,95,97,98,99,100,101,102],[80,87,88],[78,80,88,89],[79],[72,75,80],[80,84,88,89],[84],[78,80,83,147],[72,77,78,80,84,87],[106,136],[75,80,96,106,152,155],[48,54],[48],[48,54,56],[55,56,57,58,59,60,61,62,63,64,65],[48,62],[48,54,64],[48,53,54,66,67,128],[48,53,54,66,128],[49,50,51,52],[44],[44,45,46,47],[43],[43,44]],"referencedMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,88],[67,89],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"exportedModulesMap":[[163,1],[158,2],[160,3],[159,2],[162,4],[164,5],[69,6],[70,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,15],[114,16],[115,16],[117,17],[116,18],[118,19],[119,20],[120,21],[104,22],[121,23],[122,24],[123,25],[155,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,33],[131,34],[132,35],[133,36],[134,36],[135,37],[136,38],[138,39],[137,40],[139,41],[140,42],[141,43],[142,44],[143,45],[144,46],[145,47],[146,48],[147,49],[148,50],[149,51],[150,52],[151,53],[152,54],[153,55],[87,56],[94,57],[86,56],[101,58],[78,59],[77,60],[100,61],[95,62],[98,63],[80,64],[79,65],[75,66],[74,67],[97,68],[76,69],[81,70],[85,70],[103,71],[102,70],[89,72],[90,73],[92,74],[88,75],[91,76],[96,61],[83,77],[84,78],[93,79],[73,80],[99,81],[55,82],[58,83],[57,84],[66,85],[63,86],[62,83],[65,87],[64,82],[59,84],[61,83],[60,83],[68,83],[67,83],[49,83],[53,90],[51,83],[45,91],[48,92],[44,93],[47,94]],"semanticDiagnosticsPerFile":[54,163,156,158,160,159,157,162,161,164,69,70,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,104,154,121,122,123,155,124,125,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,71,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,87,94,86,101,78,77,100,95,98,80,79,75,74,97,76,81,82,85,72,103,102,89,90,92,88,91,96,83,84,93,73,99,55,58,57,66,63,62,65,64,59,61,56,60,68,67,49,53,52,50,51,46,45,43,48,44,47]},"version":"4.9.5"}
|
package/dist/esm/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { UIDLCMSItemNode, UIDLCMSListNode, ChunkDefinition, UIDLResourceLink, UIDLResourceItem } from '@teleporthq/teleport-types';
|
|
1
|
+
import { UIDLCMSItemNode, UIDLCMSListNode, ChunkDefinition, UIDLResourceLink, UIDLResourceItem, GeneratorOptions } from '@teleporthq/teleport-types';
|
|
2
|
+
export declare const extractResourceIntoNextAPIFolder: (node: UIDLCMSItemNode | UIDLCMSListNode, resources: GeneratorOptions['resources'], componentChunk: ChunkDefinition, extractedResources: GeneratorOptions['extractedResources']) => void;
|
|
2
3
|
export declare const computeUseEffectAST: (params: {
|
|
3
4
|
fileName: string;
|
|
4
5
|
resourceType: UIDLResourceItem['method'];
|
package/dist/esm/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAEjB,MAAM,4BAA4B,CAAA;AAMnC,eAAO,MAAM,gCAAgC,SACrC,eAAe,GAAG,eAAe,aAC5B,gBAAgB,CAAC,WAAW,CAAC,kBACxB,eAAe,sBACX,gBAAgB,CAAC,oBAAoB,CAAC,SA+E3D,CAAA;AAED,eAAO,MAAM,mBAAmB;cACpB,MAAM;kBACF,gBAAgB,CAAC,QAAQ,CAAC;UAClC,eAAe,GAAG,eAAe;oBACvB,eAAe;YACvB,gBAAgB,CAAC,QAAQ,CAAC;UA6FnC,CAAA"}
|
package/dist/esm/utils.js
CHANGED
|
@@ -7,8 +7,67 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7
7
|
}
|
|
8
8
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
9
|
};
|
|
10
|
+
import { FileType, } from '@teleporthq/teleport-types';
|
|
10
11
|
import * as types from '@babel/types';
|
|
11
12
|
import { ASTUtils } from '@teleporthq/teleport-plugin-common';
|
|
13
|
+
import { StringUtils } from '@teleporthq/teleport-shared';
|
|
14
|
+
import { relative } from 'path';
|
|
15
|
+
export var extractResourceIntoNextAPIFolder = function (node, resources, componentChunk, extractedResources) {
|
|
16
|
+
var _a, _b, _c;
|
|
17
|
+
var resourceFileName;
|
|
18
|
+
var resourceImportVariable;
|
|
19
|
+
var importPath;
|
|
20
|
+
var isNamedImport = false;
|
|
21
|
+
var funcParams = '';
|
|
22
|
+
if ('id' in node.content.resource) {
|
|
23
|
+
var usedResource = resources.items[node.content.resource.id];
|
|
24
|
+
if (!usedResource) {
|
|
25
|
+
throw new Error("Tried to find a resource that does not exist ".concat(node.content.resource.id));
|
|
26
|
+
}
|
|
27
|
+
if (Object.keys(node.content.resource.params).length > 0 &&
|
|
28
|
+
Object.keys(usedResource.params).length > 0) {
|
|
29
|
+
funcParams = 'req.query';
|
|
30
|
+
}
|
|
31
|
+
resourceImportVariable = StringUtils.dashCaseToCamelCase(StringUtils.camelize("".concat(usedResource.name, "-resource")));
|
|
32
|
+
var importName = StringUtils.camelCaseToDashCase(usedResource.name);
|
|
33
|
+
importPath = relative(['pages', 'api'].join('/'), __spreadArray(__spreadArray([], resources.path, true), [importName], false).join('/'));
|
|
34
|
+
resourceFileName = StringUtils.camelCaseToDashCase("".concat(resourceImportVariable, "-").concat(importName));
|
|
35
|
+
computeUseEffectAST({
|
|
36
|
+
fileName: resourceFileName,
|
|
37
|
+
resourceType: usedResource.method,
|
|
38
|
+
node: node,
|
|
39
|
+
componentChunk: componentChunk,
|
|
40
|
+
params: node.content.resource.params,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if ('name' in node.content.resource) {
|
|
44
|
+
var _d = node.content.resource, name_1 = _d.name, dependency = _d.dependency;
|
|
45
|
+
resourceImportVariable = ((_a = dependency.meta) === null || _a === void 0 ? void 0 : _a.originalName) || name_1;
|
|
46
|
+
importPath = ((_b = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _b === void 0 ? void 0 : _b.importAlias) || dependency.path;
|
|
47
|
+
resourceFileName = StringUtils.camelCaseToDashCase(node.content.resource.name);
|
|
48
|
+
isNamedImport = ((_c = dependency === null || dependency === void 0 ? void 0 : dependency.meta) === null || _c === void 0 ? void 0 : _c.namedImport) || false;
|
|
49
|
+
/*
|
|
50
|
+
When we are calling external functions to make a request call for us.
|
|
51
|
+
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
52
|
+
So, we can't derieve if the resource call is actually a GET / POST.
|
|
53
|
+
So, we can mark these as POST by default since we are taking data from the component.
|
|
54
|
+
*/
|
|
55
|
+
funcParams = 'req.body';
|
|
56
|
+
computeUseEffectAST({
|
|
57
|
+
fileName: resourceFileName,
|
|
58
|
+
resourceType: 'POST',
|
|
59
|
+
node: node,
|
|
60
|
+
componentChunk: componentChunk,
|
|
61
|
+
params: node.content.resource.params,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
extractedResources[resourceFileName] = {
|
|
65
|
+
fileName: resourceFileName,
|
|
66
|
+
fileType: FileType.JS,
|
|
67
|
+
path: ['pages', 'api'],
|
|
68
|
+
content: "import ".concat(isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable, " from '").concat(importPath, "'\nexport default async function handler(req, res) {\n try {\n const response = await ").concat(resourceImportVariable, "(").concat(funcParams, ")\n return res.status(200).json(response)\n } catch (error) {\n return res.status(500).send('Something went wrong')\n }\n}\n "),
|
|
69
|
+
};
|
|
70
|
+
};
|
|
12
71
|
export var computeUseEffectAST = function (params) {
|
|
13
72
|
var node = params.node, fileName = params.fileName, componentChunk = params.componentChunk, resourceType = params.resourceType;
|
|
14
73
|
if (node.type !== 'cms-item' && node.type !== 'cms-list') {
|
package/dist/esm/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAOL,QAAQ,GACT,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,6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CAAC,CACzB,EACD;QACE,KAAK,CAAC,uBAAuB,CAC3B,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EACzB,KAAK,CAAC,cAAc,CAClB,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EACzE,EAAE,CACH,CACF;KACF,CACF,CAAA;IAED,IAAM,kBAAkB,GAAG,QAAQ,CAAC,mCAAmC;QACrE,MAAM;OACH,SAAS,QACsB,CAAA;IAEpC,IAAM,WAAW,GAAG,KAAK,CAAC,uBAAuB,CAC/C,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,EAC5B,SAAS,CAAC,MAAM,IAAI,CAAC;QACnB,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE;YACtF,KAAK,CAAC,uBAAuB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,kBAAkB,CAAC;SAC9E,CAAC;QACJ,CAAC,CAAC,QAAQ,CACb,CAAA;IAED,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,OAAO,CACvC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC,WAAW,CAAC,CAAC,CAChG,CAAA;IAED,OAAM;AACR,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teleporthq/teleport-plugin-next-inline-fetch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "A plugin for managing inlined data-fetching for cms-item and cms-list nodes.",
|
|
5
5
|
"author": "teleportHQ",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/types": "^7.5.5",
|
|
28
|
-
"@teleporthq/teleport-plugin-common": "^0.
|
|
29
|
-
"@teleporthq/teleport-types": "^0.
|
|
28
|
+
"@teleporthq/teleport-plugin-common": "^0.35.0",
|
|
29
|
+
"@teleporthq/teleport-types": "^0.35.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ae4ff86d5380c1d74575847a2b91c863713c1d8e"
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { StringUtils, UIDLUtils } from '@teleporthq/teleport-shared'
|
|
9
9
|
import * as types from '@babel/types'
|
|
10
10
|
import { ASTUtils } from '@teleporthq/teleport-plugin-common'
|
|
11
|
-
import {
|
|
11
|
+
import { extractResourceIntoNextAPIFolder } from './utils'
|
|
12
12
|
import { join, relative } from 'path'
|
|
13
13
|
|
|
14
14
|
/*
|
|
@@ -20,10 +20,10 @@ import { join, relative } from 'path'
|
|
|
20
20
|
when the app is deployed..
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
export const
|
|
24
|
-
const
|
|
23
|
+
export const createNextPagesInlineFetchPlugin: ComponentPluginFactory<{}> = () => {
|
|
24
|
+
const nextPagesInlineFetchPlugin: ComponentPlugin = async (structure) => {
|
|
25
25
|
const { uidl, chunks, options, dependencies } = structure
|
|
26
|
-
const { resources } = options
|
|
26
|
+
const { resources } = options || {}
|
|
27
27
|
|
|
28
28
|
if (resources?.items === undefined || resources?.path === undefined) {
|
|
29
29
|
return structure
|
|
@@ -240,97 +240,40 @@ export const createNextInlineFetchPlugin: ComponentPluginFactory<{}> = () => {
|
|
|
240
240
|
process.env values while accessing the actual functions from the `/resources/` folder.
|
|
241
241
|
*/
|
|
242
242
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
if (!usedResource) {
|
|
252
|
-
throw new Error(
|
|
253
|
-
`Tried to find a resource that does not exist ${node.content.resource.id}`
|
|
254
|
-
)
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
if (
|
|
258
|
-
Object.keys(node.content.resource.params).length > 0 &&
|
|
259
|
-
Object.keys(usedResource.params).length > 0
|
|
260
|
-
) {
|
|
261
|
-
funcParams = 'req.query'
|
|
262
|
-
}
|
|
243
|
+
extractResourceIntoNextAPIFolder(
|
|
244
|
+
node,
|
|
245
|
+
resources,
|
|
246
|
+
componentChunk,
|
|
247
|
+
options.extractedResources
|
|
248
|
+
)
|
|
249
|
+
}
|
|
250
|
+
})
|
|
263
251
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
)
|
|
267
|
-
const importName = StringUtils.camelCaseToDashCase(usedResource.name)
|
|
268
|
-
importPath = relative(
|
|
269
|
-
['pages', 'api'].join('/'),
|
|
270
|
-
[...resources.path, importName].join('/')
|
|
271
|
-
)
|
|
252
|
+
return structure
|
|
253
|
+
}
|
|
272
254
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
)
|
|
255
|
+
return nextPagesInlineFetchPlugin
|
|
256
|
+
}
|
|
276
257
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
componentChunk,
|
|
282
|
-
params: node.content.resource.params,
|
|
283
|
-
})
|
|
284
|
-
}
|
|
258
|
+
export const createNextComponentInlineFetchPlugin = () => {
|
|
259
|
+
const nextComponentInlineFetchPlugin: ComponentPlugin = async (structure) => {
|
|
260
|
+
const { uidl, options, chunks } = structure
|
|
261
|
+
const { resources } = options || {}
|
|
285
262
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
resourceFileName = StringUtils.camelCaseToDashCase(node.content.resource.name)
|
|
291
|
-
isNamedImport = dependency?.meta?.namedImport || false
|
|
292
|
-
|
|
293
|
-
/*
|
|
294
|
-
When we are calling external functions to make a request call for us.
|
|
295
|
-
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
296
|
-
So, we can't derieve if the resource call is actually a GET / POST.
|
|
297
|
-
So, we can mark these as POST by default since we are taking data from the component.
|
|
298
|
-
*/
|
|
299
|
-
|
|
300
|
-
funcParams = 'req.body'
|
|
301
|
-
computeUseEffectAST({
|
|
302
|
-
fileName: resourceFileName,
|
|
303
|
-
resourceType: 'POST',
|
|
304
|
-
node,
|
|
305
|
-
componentChunk,
|
|
306
|
-
params: node.content.resource.params,
|
|
307
|
-
})
|
|
308
|
-
}
|
|
263
|
+
const componentChunk = chunks.find((chunk) => chunk.name === 'jsx-component')
|
|
264
|
+
if (componentChunk === undefined) {
|
|
265
|
+
return structure
|
|
266
|
+
}
|
|
309
267
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
path: ['pages', 'api'],
|
|
314
|
-
content: `import ${
|
|
315
|
-
isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable
|
|
316
|
-
} from '${importPath}'
|
|
317
|
-
export default async function handler(req, res) {
|
|
318
|
-
try {
|
|
319
|
-
const response = await ${resourceImportVariable}(${funcParams})
|
|
320
|
-
return res.status(200).json(response)
|
|
321
|
-
} catch (error) {
|
|
322
|
-
return res.status(500).send('Something went wrong')
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
`,
|
|
326
|
-
}
|
|
268
|
+
UIDLUtils.traverseNodes(uidl.node, (node) => {
|
|
269
|
+
if (node.type !== 'cms-list' && node.type !== 'cms-item') {
|
|
270
|
+
return
|
|
327
271
|
}
|
|
272
|
+
extractResourceIntoNextAPIFolder(node, resources, componentChunk, options.extractedResources)
|
|
328
273
|
})
|
|
329
274
|
|
|
330
275
|
return structure
|
|
331
276
|
}
|
|
332
277
|
|
|
333
|
-
return
|
|
278
|
+
return nextComponentInlineFetchPlugin
|
|
334
279
|
}
|
|
335
|
-
|
|
336
|
-
export default createNextInlineFetchPlugin()
|
package/src/utils.ts
CHANGED
|
@@ -4,9 +4,98 @@ import {
|
|
|
4
4
|
ChunkDefinition,
|
|
5
5
|
UIDLResourceLink,
|
|
6
6
|
UIDLResourceItem,
|
|
7
|
+
GeneratorOptions,
|
|
8
|
+
FileType,
|
|
7
9
|
} from '@teleporthq/teleport-types'
|
|
8
10
|
import * as types from '@babel/types'
|
|
9
11
|
import { ASTUtils } from '@teleporthq/teleport-plugin-common'
|
|
12
|
+
import { StringUtils } from '@teleporthq/teleport-shared'
|
|
13
|
+
import { relative } from 'path'
|
|
14
|
+
|
|
15
|
+
export const extractResourceIntoNextAPIFolder = (
|
|
16
|
+
node: UIDLCMSItemNode | UIDLCMSListNode,
|
|
17
|
+
resources: GeneratorOptions['resources'],
|
|
18
|
+
componentChunk: ChunkDefinition,
|
|
19
|
+
extractedResources: GeneratorOptions['extractedResources']
|
|
20
|
+
) => {
|
|
21
|
+
let resourceFileName: string
|
|
22
|
+
let resourceImportVariable: string
|
|
23
|
+
let importPath: string
|
|
24
|
+
let isNamedImport: boolean = false
|
|
25
|
+
let funcParams = ''
|
|
26
|
+
|
|
27
|
+
if ('id' in node.content.resource) {
|
|
28
|
+
const usedResource = resources.items[node.content.resource.id]
|
|
29
|
+
if (!usedResource) {
|
|
30
|
+
throw new Error(`Tried to find a resource that does not exist ${node.content.resource.id}`)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (
|
|
34
|
+
Object.keys(node.content.resource.params).length > 0 &&
|
|
35
|
+
Object.keys(usedResource.params).length > 0
|
|
36
|
+
) {
|
|
37
|
+
funcParams = 'req.query'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
resourceImportVariable = StringUtils.dashCaseToCamelCase(
|
|
41
|
+
StringUtils.camelize(`${usedResource.name}-resource`)
|
|
42
|
+
)
|
|
43
|
+
const importName = StringUtils.camelCaseToDashCase(usedResource.name)
|
|
44
|
+
importPath = relative(['pages', 'api'].join('/'), [...resources.path, importName].join('/'))
|
|
45
|
+
|
|
46
|
+
resourceFileName = StringUtils.camelCaseToDashCase(`${resourceImportVariable}-${importName}`)
|
|
47
|
+
|
|
48
|
+
computeUseEffectAST({
|
|
49
|
+
fileName: resourceFileName,
|
|
50
|
+
resourceType: usedResource.method,
|
|
51
|
+
node,
|
|
52
|
+
componentChunk,
|
|
53
|
+
params: node.content.resource.params,
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if ('name' in node.content.resource) {
|
|
58
|
+
const { name, dependency } = node.content.resource
|
|
59
|
+
resourceImportVariable = dependency.meta?.originalName || name
|
|
60
|
+
importPath = dependency?.meta?.importAlias || dependency.path
|
|
61
|
+
resourceFileName = StringUtils.camelCaseToDashCase(node.content.resource.name)
|
|
62
|
+
isNamedImport = dependency?.meta?.namedImport || false
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
When we are calling external functions to make a request call for us.
|
|
66
|
+
The `fetch` that happens behind the scenes are basically encapsulated.
|
|
67
|
+
So, we can't derieve if the resource call is actually a GET / POST.
|
|
68
|
+
So, we can mark these as POST by default since we are taking data from the component.
|
|
69
|
+
*/
|
|
70
|
+
|
|
71
|
+
funcParams = 'req.body'
|
|
72
|
+
computeUseEffectAST({
|
|
73
|
+
fileName: resourceFileName,
|
|
74
|
+
resourceType: 'POST',
|
|
75
|
+
node,
|
|
76
|
+
componentChunk,
|
|
77
|
+
params: node.content.resource.params,
|
|
78
|
+
})
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
extractedResources[resourceFileName] = {
|
|
82
|
+
fileName: resourceFileName,
|
|
83
|
+
fileType: FileType.JS,
|
|
84
|
+
path: ['pages', 'api'],
|
|
85
|
+
content: `import ${
|
|
86
|
+
isNamedImport ? '{ ' + resourceImportVariable + ' }' : resourceImportVariable
|
|
87
|
+
} from '${importPath}'
|
|
88
|
+
export default async function handler(req, res) {
|
|
89
|
+
try {
|
|
90
|
+
const response = await ${resourceImportVariable}(${funcParams})
|
|
91
|
+
return res.status(200).json(response)
|
|
92
|
+
} catch (error) {
|
|
93
|
+
return res.status(500).send('Something went wrong')
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
`,
|
|
97
|
+
}
|
|
98
|
+
}
|
|
10
99
|
|
|
11
100
|
export const computeUseEffectAST = (params: {
|
|
12
101
|
fileName: string
|