Add comprehensive development roadmap via GitHub Issues
Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
		
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										87
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										87
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,87 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var config_loader_1 = require("../config-loader"); | ||||
| var path_1 = require("path"); | ||||
| describe("config-loader", function () { | ||||
|     it("should use explicitParams when set", function () { | ||||
|         var result = (0, config_loader_1.configLoader)({ | ||||
|             explicitParams: { | ||||
|                 baseUrl: "/foo/bar", | ||||
|                 paths: { | ||||
|                     asd: ["asd"], | ||||
|                 }, | ||||
|             }, | ||||
|             cwd: "/baz", | ||||
|         }); | ||||
|         var successResult = result; | ||||
|         expect(successResult.resultType).toBe("success"); | ||||
|         expect(successResult.absoluteBaseUrl).toBe("/foo/bar"); | ||||
|         expect(successResult.paths["asd"][0]).toBe("asd"); | ||||
|     }); | ||||
|     it("should use explicitParams when set and add cwd when path is relative", function () { | ||||
|         var result = (0, config_loader_1.configLoader)({ | ||||
|             explicitParams: { | ||||
|                 baseUrl: "bar/", | ||||
|                 paths: { | ||||
|                     asd: ["asd"], | ||||
|                 }, | ||||
|             }, | ||||
|             cwd: "/baz", | ||||
|         }); | ||||
|         var successResult = result; | ||||
|         expect(successResult.resultType).toBe("success"); | ||||
|         expect(successResult.absoluteBaseUrl).toBe((0, path_1.join)("/baz", "bar/")); | ||||
|     }); | ||||
|     it("should fallback to tsConfigLoader when explicitParams is not set", function () { | ||||
|         var result = (0, config_loader_1.configLoader)({ | ||||
|             explicitParams: undefined, | ||||
|             cwd: "/baz", | ||||
|             tsConfigLoader: function () { return ({ | ||||
|                 tsConfigPath: "/baz/tsconfig.json", | ||||
|                 baseUrl: "./src", | ||||
|                 paths: {}, | ||||
|             }); }, | ||||
|         }); | ||||
|         var successResult = result; | ||||
|         expect(successResult.resultType).toBe("success"); | ||||
|         expect(successResult.absoluteBaseUrl).toBe((0, path_1.join)("/baz", "src")); | ||||
|     }); | ||||
|     it("should tolerate a missing baseUrl", function () { | ||||
|         var result = (0, config_loader_1.configLoader)({ | ||||
|             explicitParams: undefined, | ||||
|             cwd: "/baz", | ||||
|             tsConfigLoader: function () { return ({ | ||||
|                 tsConfigPath: "/baz/tsconfig.json", | ||||
|                 baseUrl: undefined, | ||||
|                 paths: {}, | ||||
|             }); }, | ||||
|         }); | ||||
|         var failResult = result; | ||||
|         expect(failResult.resultType).toBe("success"); | ||||
|     }); | ||||
|     it("should presume cwd to be a tsconfig file when loadConfig is called with absolute path to tsconfig.json", function () { | ||||
|         // using tsconfig-named.json to ensure that future changes to fix | ||||
|         // https://github.com/dividab/tsconfig-paths/issues/31 | ||||
|         // do not pass this test case just because of a directory walk looking | ||||
|         // for tsconfig.json | ||||
|         var configFile = (0, path_1.join)(__dirname, "tsconfig-named.json"); | ||||
|         var result = (0, config_loader_1.loadConfig)(configFile); | ||||
|         var successResult = result; | ||||
|         expect(successResult.resultType).toBe("success"); | ||||
|         expect(successResult.configFileAbsolutePath).toBe(configFile); | ||||
|     }); | ||||
|     it("should allow an absolute baseUrl in tsconfig.json", function () { | ||||
|         var result = (0, config_loader_1.configLoader)({ | ||||
|             explicitParams: undefined, | ||||
|             cwd: "/baz", | ||||
|             tsConfigLoader: function () { return ({ | ||||
|                 tsConfigPath: "/baz/tsconfig.json", | ||||
|                 baseUrl: "/baz", | ||||
|                 paths: {}, | ||||
|             }); }, | ||||
|         }); | ||||
|         var successResult = result; | ||||
|         expect(successResult.absoluteBaseUrl).toEqual("/baz"); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=config-loader.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"config-loader.test.js","sourceRoot":"","sources":["../../src/__tests__/config-loader.test.ts"],"names":[],"mappings":";;AAAA,kDAK0B;AAC1B,6BAA4B;AAE5B,QAAQ,CAAC,eAAe,EAAE;IACxB,EAAE,CAAC,oCAAoC,EAAE;QACvC,IAAM,MAAM,GAAG,IAAA,4BAAY,EAAC;YAC1B,cAAc,EAAE;gBACd,OAAO,EAAE,UAAU;gBACnB,KAAK,EAAE;oBACL,GAAG,EAAE,CAAC,KAAK,CAAC;iBACb;aACF;YACD,GAAG,EAAE,MAAM;SACZ,CAAC,CAAC;QAEH,IAAM,aAAa,GAAG,MAAmC,CAAC;QAC1D,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACjD,MAAM,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,IAAI,CAAC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AACL,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										17
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | ||||
| export interface OneTest { | ||||
|     readonly name: string; | ||||
|     readonly only?: boolean; | ||||
|     readonly skip?: boolean; | ||||
|     readonly absoluteBaseUrl: string; | ||||
|     readonly paths: { | ||||
|         [key: string]: Array<string>; | ||||
|     }; | ||||
|     readonly mainFields?: (string | string[])[]; | ||||
|     readonly addMatchAll?: boolean; | ||||
|     readonly existingFiles: ReadonlyArray<string>; | ||||
|     readonly requestedModule: string; | ||||
|     readonly extensions: ReadonlyArray<string>; | ||||
|     readonly packageJson?: {}; | ||||
|     readonly expectedPath: string | undefined; | ||||
| } | ||||
| export declare const tests: ReadonlyArray<OneTest>; | ||||
							
								
								
									
										216
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										216
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,216 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.tests = void 0; | ||||
| var path_1 = require("path"); | ||||
| var filesystem_1 = require("../../filesystem"); | ||||
| var defaultExtensionsWhenRunningInTsNode = [ | ||||
|     ".js", | ||||
|     ".json", | ||||
|     ".node", | ||||
|     ".ts", | ||||
|     ".tsx", | ||||
| ]; | ||||
| exports.tests = [ | ||||
|     { | ||||
|         name: "should locate path that matches with star and exists", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { | ||||
|             "lib/*": ["location/*"], | ||||
|         }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib", "index.ts")], | ||||
|         requestedModule: "lib/mylib", | ||||
|         expectedPath: (0, path_1.dirname)((0, path_1.join)("/root", "location", "mylib", "index.ts")), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve to correct path when many are specified", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { | ||||
|             "lib/*": ["foo1/*", "foo2/*", "location/*", "foo3/*"], | ||||
|         }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib", "index.ts")], | ||||
|         requestedModule: "lib/mylib", | ||||
|         extensions: [".ts"], | ||||
|         expectedPath: (0, path_1.dirname)((0, path_1.join)("/root", "location", "mylib", "index.ts")), | ||||
|     }, | ||||
|     { | ||||
|         name: "should locate path that matches with star and prioritize pattern with longest prefix", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { | ||||
|             "*": ["location/*"], | ||||
|             "lib/*": ["location/*"], | ||||
|         }, | ||||
|         existingFiles: [ | ||||
|             (0, path_1.join)("/root", "location", "lib", "mylib", "index.ts"), | ||||
|             (0, path_1.join)("/root", "location", "mylib", "index.ts"), | ||||
|         ], | ||||
|         requestedModule: "lib/mylib", | ||||
|         expectedPath: (0, path_1.dirname)((0, path_1.join)("/root", "location", "mylib", "index.ts")), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should locate path that matches with star and exists with extension", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib.myext")], | ||||
|         requestedModule: "lib/mylib", | ||||
|         extensions: [".js", ".myext"], | ||||
|         expectedPath: (0, filesystem_1.removeExtension)((0, path_1.join)("/root", "location", "mylib.myext")), | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve request with extension specified", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "test.jpg")], | ||||
|         requestedModule: "lib/test.jpg", | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "test.jpg"), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should locate path that matches without star and exists", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { | ||||
|             "lib/foo": ["location/foo"], | ||||
|         }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "foo.ts")], | ||||
|         requestedModule: "lib/foo", | ||||
|         expectedPath: (0, filesystem_1.removeExtension)((0, path_1.join)("/root", "location", "foo.ts")), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve to parent folder when filename is in subfolder", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib", "index.ts")], | ||||
|         requestedModule: "lib/mylib", | ||||
|         expectedPath: (0, path_1.dirname)((0, path_1.join)("/root", "location", "mylib", "index.ts")), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve from main field in package.json", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib", "kalle.ts")], | ||||
|         packageJson: { main: "./kalle.ts" }, | ||||
|         requestedModule: "lib/mylib", | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylib", "kalle.ts"), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve from main field in package.json (js)", | ||||
|         absoluteBaseUrl: "/root", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib.js", "kalle.js")], | ||||
|         packageJson: { main: "./kalle.js" }, | ||||
|         requestedModule: "lib/mylib.js", | ||||
|         extensions: [".ts", ".js"], | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylib.js", "kalle.js"), | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve from list of fields by priority in package.json", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         mainFields: ["missing", "browser", "main"], | ||||
|         packageJson: { main: "./main.js", browser: "./browser.js" }, | ||||
|         existingFiles: [ | ||||
|             (0, path_1.join)("/root", "location", "mylibjs", "main.js"), | ||||
|             (0, path_1.join)("/root", "location", "mylibjs", "browser.js"), // browserFilePath | ||||
|         ], | ||||
|         extensions: [".ts", ".js"], | ||||
|         requestedModule: "lib/mylibjs", | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylibjs", "browser.js"), | ||||
|     }, | ||||
|     { | ||||
|         name: "should ignore field mappings to missing files in package.json", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         mainFields: ["browser", "main"], | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylibjs", "kalle.js")], | ||||
|         requestedModule: "lib/mylibjs", | ||||
|         packageJson: { | ||||
|             main: "./kalle.js", | ||||
|             browser: "./nope.js", | ||||
|         }, | ||||
|         extensions: [".ts", ".js"], | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylibjs", "kalle.js"), | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve nested main fields", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         mainFields: [["esnext", "main"]], | ||||
|         packageJson: { esnext: { main: "./main.js" } }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylibjs", "main.js")], | ||||
|         extensions: [".ts", ".js"], | ||||
|         requestedModule: "lib/mylibjs", | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylibjs", "main.js"), | ||||
|     }, | ||||
|     { | ||||
|         name: "should ignore advanced field mappings in package.json", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [ | ||||
|             (0, path_1.join)("/root", "location", "mylibjs", "kalle.js"), | ||||
|             (0, path_1.join)("/root", "location", "mylibjs", "browser.js"), | ||||
|         ], | ||||
|         requestedModule: "lib/mylibjs", | ||||
|         packageJson: { | ||||
|             main: "./kalle.js", | ||||
|             browser: { mylibjs: "./browser.js", "./kalle.js": "./browser.js" }, | ||||
|         }, | ||||
|         extensions: [".ts", ".js"], | ||||
|         expectedPath: (0, path_1.join)("/root", "location", "mylibjs", "kalle.js"), | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve to with the help of baseUrl when not explicitly set", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: {}, | ||||
|         existingFiles: [(0, path_1.join)("/root", "mylib", "index.ts")], | ||||
|         requestedModule: "mylib", | ||||
|         expectedPath: (0, path_1.dirname)((0, path_1.join)("/root", "mylib", "index.ts")), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should not resolve with the help of baseUrl when asked not to", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: {}, | ||||
|         addMatchAll: false, | ||||
|         existingFiles: [(0, path_1.join)("/root", "mylib", "index.ts")], | ||||
|         requestedModule: "mylib", | ||||
|         expectedPath: undefined, | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should not locate path that does not match", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { "lib/*": ["location/*"] }, | ||||
|         existingFiles: [(0, path_1.join)("root", "location", "mylib")], | ||||
|         requestedModule: "mylib", | ||||
|         expectedPath: undefined, | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should not resolve typings file (index.d.ts)", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: { | ||||
|             "lib/*": ["location/*"], | ||||
|         }, | ||||
|         existingFiles: [(0, path_1.join)("/root", "location", "mylib", "index.d.ts")], | ||||
|         requestedModule: "lib/mylib", | ||||
|         expectedPath: undefined, | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
|     { | ||||
|         name: "should resolve main file with cjs file extension", | ||||
|         absoluteBaseUrl: "/root/", | ||||
|         paths: {}, | ||||
|         existingFiles: [(0, path_1.join)("/root", "mylib", "index.cjs")], | ||||
|         packageJson: { | ||||
|             main: "./index.cjs", | ||||
|         }, | ||||
|         requestedModule: "mylib", | ||||
|         expectedPath: (0, path_1.join)("/root", "mylib", "index.cjs"), | ||||
|         extensions: defaultExtensionsWhenRunningInTsNode, | ||||
|     }, | ||||
| ]; | ||||
| //# sourceMappingURL=match-path-data.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										56
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,56 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var Filesystem = require("../filesystem"); | ||||
| var path = require("path"); | ||||
| describe("filesystem", function () { | ||||
|     var fileThatExists = path.join(__dirname, "../../package.json"); | ||||
|     var fileThatNotExists = path.join(__dirname, "../../package2.json"); | ||||
|     it("should find file that exists, sync", function () { | ||||
|         var result = Filesystem.fileExistsSync(fileThatExists); | ||||
|         expect(result).toBe(true); | ||||
|     }); | ||||
|     it("should not find file that not exists, sync", function () { | ||||
|         var result = Filesystem.fileExistsSync(fileThatNotExists); | ||||
|         expect(result).toBe(false); | ||||
|     }); | ||||
|     it("should find file that exists, async", function (done) { | ||||
|         Filesystem.fileExistsAsync(fileThatExists, function (_err, result) { | ||||
|             try { | ||||
|                 expect(result).toBe(true); | ||||
|                 done(); | ||||
|             } | ||||
|             catch (error) { | ||||
|                 done(error); | ||||
|             } | ||||
|         }); | ||||
|     }); | ||||
|     it("should not find file that not exists, async", function (done) { | ||||
|         Filesystem.fileExistsAsync(fileThatNotExists, function (_err, result) { | ||||
|             try { | ||||
|                 expect(result).toBe(false); | ||||
|                 done(); | ||||
|             } | ||||
|             catch (error) { | ||||
|                 done(error); | ||||
|             } | ||||
|         }); | ||||
|     }); | ||||
|     it("should load json, sync", function () { | ||||
|         var result = Filesystem.readJsonFromDiskSync(fileThatExists); | ||||
|         expect(result); | ||||
|         expect(result.main).toBe("lib/index.js"); | ||||
|     }); | ||||
|     it("should load json, async", function (done) { | ||||
|         Filesystem.readJsonFromDiskAsync(fileThatExists, function (_err, result) { | ||||
|             try { | ||||
|                 expect(result).toBeTruthy(); | ||||
|                 expect(result.main).toBe("lib/index.js"); | ||||
|                 done(); | ||||
|             } | ||||
|             catch (error) { | ||||
|                 done(error); | ||||
|             } | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=filesystem.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"filesystem.test.js","sourceRoot":"","sources":["../../src/__tests__/filesystem.test.ts"],"names":[],"mappings":";;AAAA,0CAA4C;AAC5C,2BAA6B;AAE7B,QAAQ,CAAC,YAAY,EAAE;IACrB,IAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;IAClE,IAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAEtE,EAAE,CAAC,oCAAoC,EAAE;QACvC,IAAM,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QACzD,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE;QAC/C,IAAM,MAAM,GAAG,UAAU,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAC5D,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,UAAC,IAAI;QAC7C,UAAU,CAAC,eAAe,CAAC,cAAc,EAAE,UAAC,IAAI,EAAE,MAAM;YACtD,IAAI;gBACF,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC1B,IAAI,EAAE,CAAC;aACR;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,CAAC,KAAK,CAAC,CAAC;aACb;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6CAA6C,EAAE,UAAC,IAAI;QACrD,UAAU,CAAC,eAAe,CAAC,iBAAiB,EAAE,UAAC,IAAI,EAAE,MAAM;YACzD,IAAI;gBACF,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAC3B,IAAI,EAAE,CAAC;aACR;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,CAAC,KAAK,CAAC,CAAC;aACb;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wBAAwB,EAAE;QAC3B,IAAM,MAAM,GAAG,UAAU,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;QAC/D,MAAM,CAAC,MAAM,CAAC,CAAC;QACf,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yBAAyB,EAAE,UAAC,IAAI;QACjC,UAAU,CAAC,qBAAqB,CAAC,cAAc,EAAE,UAAC,IAAI,EAAE,MAAM;YAC5D,IAAI;gBACF,MAAM,CAAC,MAAM,CAAC,CAAC,UAAU,EAAE,CAAC;gBAC5B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;gBACzC,IAAI,EAAE,CAAC;aACR;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,CAAC,KAAK,CAAC,CAAC;aACb;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										39
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var mapping_entry_1 = require("../mapping-entry"); | ||||
| var path_1 = require("path"); | ||||
| describe("mapping-entry", function () { | ||||
|     it("should change to absolute paths and sort in longest prefix order", function () { | ||||
|         var result = (0, mapping_entry_1.getAbsoluteMappingEntries)("/absolute/base/url", { | ||||
|             "*": ["/foo1", "./foo2"], | ||||
|             "longest/pre/fix/*": ["./foo2/bar"], | ||||
|             "pre/fix/*": ["/foo3"], | ||||
|         }, true); | ||||
|         expect(result).toEqual([ | ||||
|             { | ||||
|                 pattern: "longest/pre/fix/*", | ||||
|                 paths: [(0, path_1.join)("/absolute", "base", "url", "foo2", "bar")], | ||||
|             }, | ||||
|             { | ||||
|                 pattern: "pre/fix/*", | ||||
|                 paths: [(0, path_1.join)("/foo3")], | ||||
|             }, | ||||
|             { | ||||
|                 pattern: "*", | ||||
|                 paths: [(0, path_1.join)("/foo1"), (0, path_1.join)("/absolute", "base", "url", "foo2")], | ||||
|             }, | ||||
|         ]); | ||||
|     }); | ||||
|     it("should should add a match-all pattern when requested", function () { | ||||
|         var result = (0, mapping_entry_1.getAbsoluteMappingEntries)("/absolute/base/url", {}, true); | ||||
|         expect(result).toEqual([ | ||||
|             { | ||||
|                 pattern: "*", | ||||
|                 paths: [(0, path_1.join)("/absolute", "base", "url", "*")], | ||||
|             }, | ||||
|         ]); | ||||
|         result = (0, mapping_entry_1.getAbsoluteMappingEntries)("/absolute/base/url", {}, false); | ||||
|         expect(result).toEqual([]); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=mapping-entry.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"mapping-entry.test.js","sourceRoot":"","sources":["../../src/__tests__/mapping-entry.test.ts"],"names":[],"mappings":";;AAAA,kDAA6D;AAC7D,6BAA4B;AAE5B,QAAQ,CAAC,eAAe,EAAE;IACxB,EAAE,CAAC,kEAAkE,EAAE;QACrE,IAAM,MAAM,GAAG,IAAA,yCAAyB,EACtC,oBAAoB,EACpB;YACE,GAAG,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;YACxB,mBAAmB,EAAE,CAAC,YAAY,CAAC;YACnC,WAAW,EAAE,CAAC,OAAO,CAAC;SACvB,EACD,IAAI,CACL,CAAC;QACF,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB;gBACE,OAAO,EAAE,mBAAmB;gBAC5B,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;aACzD;YACD;gBACE,OAAO,EAAE,WAAW;gBACpB,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,CAAC;aACvB;YACD;gBACE,OAAO,EAAE,GAAG;gBACZ,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,OAAO,CAAC,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;aACjE;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sDAAsD,EAAE;QACzD,IAAI,MAAM,GAAG,IAAA,yCAAyB,EAAC,oBAAoB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB;gBACE,OAAO,EAAE,GAAG;gBACZ,KAAK,EAAE,CAAC,IAAA,WAAI,EAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;aAC/C;SACF,CAAC,CAAC;QAEH,MAAM,GAAG,IAAA,yCAAyB,EAAC,oBAAoB,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										18
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var match_path_async_1 = require("../match-path-async"); | ||||
| var Tests = require("./data/match-path-data"); | ||||
| describe("match-path-async", function () { | ||||
|     Tests.tests.forEach(function (t) { | ||||
|         return it(t.name, function (done) { | ||||
|             var matchPath = (0, match_path_async_1.createMatchPathAsync)(t.absoluteBaseUrl, t.paths, t.mainFields, t.addMatchAll); | ||||
|             matchPath(t.requestedModule, function (_path, callback) { return callback(undefined, t.packageJson); }, function (path, callback) { | ||||
|                 return callback(undefined, t.existingFiles.indexOf(path) !== -1); | ||||
|             }, t.extensions, function (_err, result) { | ||||
|                 expect(result).toBe(t.expectedPath); | ||||
|                 done(); | ||||
|             }); | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=match-path-async.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"match-path-async.test.js","sourceRoot":"","sources":["../../src/__tests__/match-path-async.test.ts"],"names":[],"mappings":";;AAAA,wDAA2D;AAC3D,8CAAgD;AAEhD,QAAQ,CAAC,kBAAkB,EAAE;IAC3B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAC,CAAC;QACpB,OAAA,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,UAAC,IAAI;YACd,IAAM,SAAS,GAAG,IAAA,uCAAoB,EACpC,CAAC,CAAC,eAAe,EACjB,CAAC,CAAC,KAAK,EACP,CAAC,CAAC,UAAU,EACZ,CAAC,CAAC,WAAW,CACd,CAAC;YACF,SAAS,CACP,CAAC,CAAC,eAAe,EACjB,UAAC,KAAK,EAAE,QAAQ,IAAK,OAAA,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,WAAW,CAAC,EAAlC,CAAkC,EACvD,UAAC,IAAI,EAAE,QAAQ;gBACb,OAAA,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;YAAzD,CAAyD,EAC3D,CAAC,CAAC,UAAU,EACZ,UAAC,IAAI,EAAE,MAAM;gBACX,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;gBACpC,IAAI,EAAE,CAAC;YACT,CAAC,CACF,CAAC;QACJ,CAAC,CAAC;IAlBF,CAkBE,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										14
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var match_path_sync_1 = require("../match-path-sync"); | ||||
| var Tests = require("./data/match-path-data"); | ||||
| describe("match-path-sync", function () { | ||||
|     Tests.tests.forEach(function (t) { | ||||
|         return it(t.name, function () { | ||||
|             var matchPath = (0, match_path_sync_1.createMatchPath)(t.absoluteBaseUrl, t.paths, t.mainFields, t.addMatchAll); | ||||
|             var result = matchPath(t.requestedModule, function (_) { return t.packageJson; }, function (name) { return t.existingFiles.indexOf(name) !== -1; }, t.extensions); | ||||
|             expect(result).toBe(t.expectedPath); | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=match-path-sync.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"match-path-sync.test.js","sourceRoot":"","sources":["../../src/__tests__/match-path-sync.test.ts"],"names":[],"mappings":";;AAAA,sDAAqD;AACrD,8CAAgD;AAEhD,QAAQ,CAAC,iBAAiB,EAAE;IAC1B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,UAAC,CAAC;QACpB,OAAA,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE;YACT,IAAM,SAAS,GAAG,IAAA,iCAAe,EAC/B,CAAC,CAAC,eAAe,EACjB,CAAC,CAAC,KAAK,EACP,CAAC,CAAC,UAAU,EACZ,CAAC,CAAC,WAAW,CACd,CAAC;YACF,IAAM,MAAM,GAAG,SAAS,CACtB,CAAC,CAAC,eAAe,EACjB,UAAC,CAAS,IAAK,OAAA,CAAC,CAAC,WAAW,EAAb,CAAa,EAC5B,UAAC,IAAY,IAAK,OAAA,CAAC,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAApC,CAAoC,EACtD,CAAC,CAAC,UAAU,CACb,CAAC;YACF,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC;QACtC,CAAC,CAAC;IAdF,CAcE,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										124
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										124
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,124 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var try_path_1 = require("../try-path"); | ||||
| var path_1 = require("path"); | ||||
| describe("mapping-entry", function () { | ||||
|     var abosolutePathMappings = [ | ||||
|         { | ||||
|             pattern: "longest/pre/fix/*", | ||||
|             paths: [(0, path_1.join)("/absolute", "base", "url", "foo2", "bar")], | ||||
|         }, | ||||
|         { pattern: "pre/fix/*", paths: [(0, path_1.join)("/absolute", "base", "url", "foo3")] }, | ||||
|         { pattern: "*", paths: [(0, path_1.join)("/absolute", "base", "url", "foo1")] }, | ||||
|     ]; | ||||
|     var abosolutePathMappingsStarstWithSlash = [ | ||||
|         { | ||||
|             pattern: "/opt/*", | ||||
|             paths: [(0, path_1.join)("/absolute", "src", "aws-layer")], | ||||
|         }, | ||||
|         { | ||||
|             pattern: "*", | ||||
|             paths: [(0, path_1.join)("/absolute", "src")], | ||||
|         }, | ||||
|     ]; | ||||
|     it("should return no paths for relative requested module", function () { | ||||
|         var result = (0, try_path_1.getPathsToTry)([".ts", "tsx"], abosolutePathMappings, "./requested-module"); | ||||
|         expect(result).toBeUndefined(); | ||||
|     }); | ||||
|     it("should return no paths if no pattern match the requested module", function () { | ||||
|         var result = (0, try_path_1.getPathsToTry)([".ts", "tsx"], [ | ||||
|             { | ||||
|                 pattern: "longest/pre/fix/*", | ||||
|                 paths: [(0, path_1.join)("/absolute", "base", "url", "foo2", "bar")], | ||||
|             }, | ||||
|             { | ||||
|                 pattern: "pre/fix/*", | ||||
|                 paths: [(0, path_1.join)("/absolute", "base", "url", "foo3")], | ||||
|             }, | ||||
|         ], "requested-module"); | ||||
|         expect(result).toBeUndefined(); | ||||
|     }); | ||||
|     it("should get all paths that matches requested module", function () { | ||||
|         var result = (0, try_path_1.getPathsToTry)([".ts", ".tsx"], abosolutePathMappings, "longest/pre/fix/requested-module"); | ||||
|         expect(result).toEqual([ | ||||
|             // "longest/pre/fix/*" | ||||
|             { type: "file", path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar") }, | ||||
|             { | ||||
|                 type: "extension", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar.ts"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "extension", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar.tsx"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "package", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar", "package.json"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "index", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar", "index.ts"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "index", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo2", "bar", "index.tsx"), | ||||
|             }, | ||||
|             // "*" | ||||
|             { type: "file", path: (0, path_1.join)("/absolute", "base", "url", "foo1") }, | ||||
|             { type: "extension", path: (0, path_1.join)("/absolute", "base", "url", "foo1.ts") }, | ||||
|             { type: "extension", path: (0, path_1.join)("/absolute", "base", "url", "foo1.tsx") }, | ||||
|             { | ||||
|                 type: "package", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo1", "package.json"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "index", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo1", "index.ts"), | ||||
|             }, | ||||
|             { | ||||
|                 type: "index", | ||||
|                 path: (0, path_1.join)("/absolute", "base", "url", "foo1", "index.tsx"), | ||||
|             }, | ||||
|         ]); | ||||
|     }); | ||||
|     it("should resolve paths starting with a slash", function () { | ||||
|         var result = (0, try_path_1.getPathsToTry)([".ts"], abosolutePathMappingsStarstWithSlash, "/opt/utils"); | ||||
|         expect(result).toEqual([ | ||||
|             // "opt/*" | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "aws-layer"), | ||||
|                 type: "file", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "aws-layer.ts"), | ||||
|                 type: "extension", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "aws-layer", "package.json"), | ||||
|                 type: "package", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "aws-layer", "index.ts"), | ||||
|                 type: "index", | ||||
|             }, | ||||
|             // "*" | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src"), | ||||
|                 type: "file", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src.ts"), | ||||
|                 type: "extension", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "package.json"), | ||||
|                 type: "package", | ||||
|             }, | ||||
|             { | ||||
|                 path: (0, path_1.join)("/absolute", "src", "index.ts"), | ||||
|                 type: "index", | ||||
|             }, | ||||
|         ]); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=try-path.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"try-path.test.js","sourceRoot":"","sources":["../../src/__tests__/try-path.test.ts"],"names":[],"mappings":";;AAAA,wCAA4C;AAC5C,6BAA4B;AAE5B,QAAQ,CAAC,eAAe,EAAE;IACxB,IAAM,qBAAqB,GAAG;QAC5B;YACE,OAAO,EAAE,m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AAK,EAAE,WAAW,EAAE,cAAc,CAAC;gBAC3D,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,CAAC;gBACvD,IAAI,EAAE,OAAO;aACd;YACD,MAAM;YACN;gBACE,IAAI,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,KAAK,CAAC;gBAC9B,IAAI,EAAE,MAAM;aACb;YACD;gBACE,IAAI,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,QAAQ,CAAC;gBACjC,IAAI,EAAE,WAAW;aAClB;YACD;gBACE,IAAI,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,KAAK,EAAE,cAAc,CAAC;gBAC9C,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,IAAI,EAAE,IAAA,WAAI,EAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC;gBAC1C,IAAI,EAAE,OAAO;aACd;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| export {}; | ||||
							
								
								
									
										328
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										328
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,328 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| var tsconfig_loader_1 = require("../tsconfig-loader"); | ||||
| var path_1 = require("path"); | ||||
| describe("tsconfig-loader", function () { | ||||
|     it("should find tsconfig in cwd", function () { | ||||
|         var result = (0, tsconfig_loader_1.tsConfigLoader)({ | ||||
|             cwd: "/foo/bar", | ||||
|             getEnv: function (_) { return undefined; }, | ||||
|             loadSync: function (cwd) { | ||||
|                 return { | ||||
|                     tsConfigPath: "".concat(cwd, "/tsconfig.json"), | ||||
|                     baseUrl: "./", | ||||
|                     paths: {}, | ||||
|                 }; | ||||
|             }, | ||||
|         }); | ||||
|         expect(result.tsConfigPath).toBe("/foo/bar/tsconfig.json"); | ||||
|     }); | ||||
|     it("should return loaderResult.tsConfigPath as undefined when not found", function () { | ||||
|         var result = (0, tsconfig_loader_1.tsConfigLoader)({ | ||||
|             cwd: "/foo/bar", | ||||
|             getEnv: function (_) { return undefined; }, | ||||
|             loadSync: function (_) { | ||||
|                 return { | ||||
|                     tsConfigPath: undefined, | ||||
|                     baseUrl: "./", | ||||
|                     paths: {}, | ||||
|                 }; | ||||
|             }, | ||||
|         }); | ||||
|         expect(result.tsConfigPath).toBeUndefined(); | ||||
|     }); | ||||
|     it("should use TS_NODE_PROJECT env if exists", function () { | ||||
|         var result = (0, tsconfig_loader_1.tsConfigLoader)({ | ||||
|             cwd: "/foo/bar", | ||||
|             getEnv: function (key) { | ||||
|                 return key === "TS_NODE_PROJECT" ? "/foo/baz" : undefined; | ||||
|             }, | ||||
|             loadSync: function (cwd, fileName) { | ||||
|                 if (cwd === "/foo/bar" && fileName === "/foo/baz") { | ||||
|                     return { | ||||
|                         tsConfigPath: "/foo/baz/tsconfig.json", | ||||
|                         baseUrl: "./", | ||||
|                         paths: {}, | ||||
|                     }; | ||||
|                 } | ||||
|                 return { | ||||
|                     tsConfigPath: undefined, | ||||
|                     baseUrl: "./", | ||||
|                     paths: {}, | ||||
|                 }; | ||||
|             }, | ||||
|         }); | ||||
|         expect(result.tsConfigPath).toBe("/foo/baz/tsconfig.json"); | ||||
|     }); | ||||
|     it("should use TS_NODE_BASEURL env if exists", function () { | ||||
|         var result = (0, tsconfig_loader_1.tsConfigLoader)({ | ||||
|             cwd: "/foo/bar", | ||||
|             getEnv: function (key) { | ||||
|                 return key === "TS_NODE_BASEURL" ? "SOME_BASEURL" : undefined; | ||||
|             }, | ||||
|             loadSync: function (_0, _1, baseUrl) { | ||||
|                 return { | ||||
|                     tsConfigPath: undefined, | ||||
|                     baseUrl: baseUrl, | ||||
|                     paths: {}, | ||||
|                 }; | ||||
|             }, | ||||
|         }); | ||||
|         expect(result.baseUrl).toBe("SOME_BASEURL"); | ||||
|     }); | ||||
|     it("should not use TS_NODE_BASEURL env if it does not exist", function () { | ||||
|         var result = (0, tsconfig_loader_1.tsConfigLoader)({ | ||||
|             cwd: "/foo/bar", | ||||
|             getEnv: function (_) { | ||||
|                 return undefined; | ||||
|             }, | ||||
|             loadSync: function (_0, _1, baseUrl) { | ||||
|                 return { | ||||
|                     tsConfigPath: undefined, | ||||
|                     baseUrl: baseUrl, | ||||
|                     paths: {}, | ||||
|                 }; | ||||
|             }, | ||||
|         }); | ||||
|         expect(result.baseUrl).toBeUndefined(); | ||||
|     }); | ||||
| }); | ||||
| describe("walkForTsConfig", function () { | ||||
|     it("should find tsconfig in starting directory", function () { | ||||
|         var pathToTsconfig = (0, path_1.join)("/root", "dir1", "tsconfig.json"); | ||||
|         var mockFiles = { | ||||
|             "/root/dir1": ["tsconfig.json"], | ||||
|         }; | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1"), function (path) { return mockFiles[path] || []; }); | ||||
|         expect(res).toBe(pathToTsconfig); | ||||
|     }); | ||||
|     it("should find jsconfig in starting directory", function () { | ||||
|         var pathToJsconfig = (0, path_1.join)("/root", "dir1", "jsconfig.json"); | ||||
|         var mockFiles = { | ||||
|             "/root/dir1": ["jsconfig.json"], | ||||
|         }; | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1"), function (path) { return mockFiles[path] || []; }); | ||||
|         expect(res).toBe(pathToJsconfig); | ||||
|     }); | ||||
|     // see https://github.com/Microsoft/TypeScript/issues/15869#issuecomment-301845650 | ||||
|     it("tsconfig.json take precedence over jsconfig.json when both exist", function () { | ||||
|         var pathToTsconfig = (0, path_1.join)("/root/dir1", "tsconfig.json"); | ||||
|         var mockFiles = { | ||||
|             "/root/dir1": ["jsconfig.json", "tsconfig.json"], | ||||
|         }; | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1"), function (path) { return mockFiles[path] || []; }); | ||||
|         expect(res).toBe(pathToTsconfig); | ||||
|     }); | ||||
|     it("should find tsconfig in parent directory", function () { | ||||
|         var pathToTsconfig = (0, path_1.join)("/root", "tsconfig.json"); | ||||
|         var mockFiles = { | ||||
|             "/root": ["tsconfig.json"], | ||||
|         }; | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1"), function (path) { return mockFiles[path] || []; }); | ||||
|         expect(res).toBe(pathToTsconfig); | ||||
|     }); | ||||
|     it("should find jsconfig in parent directory", function () { | ||||
|         var pathToTsconfig = (0, path_1.join)("/root", "jsconfig.json"); | ||||
|         var mockFiles = { | ||||
|             "/root": ["jsconfig.json"], | ||||
|         }; | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1"), function (path) { return mockFiles[path] || []; }); | ||||
|         expect(res).toBe(pathToTsconfig); | ||||
|     }); | ||||
|     it("should return undefined when reaching the top", function () { | ||||
|         var res = (0, tsconfig_loader_1.walkForTsConfig)((0, path_1.join)("/root", "dir1", "kalle"), function () { return []; }); | ||||
|         expect(res).toBeUndefined(); | ||||
|     }); | ||||
| }); | ||||
| describe("loadConfig", function () { | ||||
|     it("should load a config", function () { | ||||
|         var config = { compilerOptions: { baseUrl: "hej" } }; | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)("/root/dir1/tsconfig.json", function (path) { return path === "/root/dir1/tsconfig.json"; }, function (_) { return JSON.stringify(config); }); | ||||
|         expect(res).toStrictEqual(config); | ||||
|     }); | ||||
|     it("should load a config with comments", function () { | ||||
|         var config = { compilerOptions: { baseUrl: "hej" } }; | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)("/root/dir1/tsconfig.json", function (path) { return path === "/root/dir1/tsconfig.json"; }, function (_) { return "{\n          // my comment\n          \"compilerOptions\": { \n            \"baseUrl\": \"hej\"\n          }\n        }"; }); | ||||
|         expect(res).toStrictEqual(config); | ||||
|     }); | ||||
|     it("should load a config with trailing commas", function () { | ||||
|         var config = { compilerOptions: { baseUrl: "hej" } }; | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)("/root/dir1/tsconfig.json", function (path) { return path === "/root/dir1/tsconfig.json"; }, function (_) { return "{\n          \"compilerOptions\": { \n            \"baseUrl\": \"hej\",\n          },\n        }"; }); | ||||
|         expect(res).toStrictEqual(config); | ||||
|     }); | ||||
|     it("should throw an error including the file path when encountering invalid JSON5", function () { | ||||
|         expect(function () { | ||||
|             return (0, tsconfig_loader_1.loadTsconfig)("/root/dir1/tsconfig.json", function (path) { return path === "/root/dir1/tsconfig.json"; }, function (_) { return "{\n            \"compilerOptions\": {\n          }"; }); | ||||
|         }).toThrowError("/root/dir1/tsconfig.json is malformed JSON5: invalid end of input at 3:12"); | ||||
|     }); | ||||
|     it("should load a config with string extends and overwrite all options", function () { | ||||
|         var firstConfig = { | ||||
|             extends: "../base-config.json", | ||||
|             compilerOptions: { baseUrl: "kalle", paths: { foo: ["bar2"] } }, | ||||
|         }; | ||||
|         var firstConfigPath = (0, path_1.join)("/root", "dir1", "tsconfig.json"); | ||||
|         var baseConfig = { | ||||
|             compilerOptions: { | ||||
|                 baseUrl: "olle", | ||||
|                 paths: { foo: ["bar1"] }, | ||||
|                 strict: true, | ||||
|             }, | ||||
|         }; | ||||
|         var baseConfigPath = (0, path_1.join)("/root", "base-config.json"); | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)((0, path_1.join)("/root", "dir1", "tsconfig.json"), function (path) { return path === firstConfigPath || path === baseConfigPath; }, function (path) { | ||||
|             if (path === firstConfigPath) { | ||||
|                 return JSON.stringify(firstConfig); | ||||
|             } | ||||
|             if (path === baseConfigPath) { | ||||
|                 return JSON.stringify(baseConfig); | ||||
|             } | ||||
|             return ""; | ||||
|         }); | ||||
|         expect(res).toEqual({ | ||||
|             extends: "../base-config.json", | ||||
|             compilerOptions: { | ||||
|                 baseUrl: "kalle", | ||||
|                 paths: { foo: ["bar2"] }, | ||||
|                 strict: true, | ||||
|             }, | ||||
|         }); | ||||
|     }); | ||||
|     it("should load a config with string extends from node_modules and overwrite all options", function () { | ||||
|         var firstConfig = { | ||||
|             extends: "my-package/base-config.json", | ||||
|             compilerOptions: { baseUrl: "kalle", paths: { foo: ["bar2"] } }, | ||||
|         }; | ||||
|         var firstConfigPath = (0, path_1.join)("/root", "dir1", "tsconfig.json"); | ||||
|         var baseConfig = { | ||||
|             compilerOptions: { | ||||
|                 baseUrl: "olle", | ||||
|                 paths: { foo: ["bar1"] }, | ||||
|                 strict: true, | ||||
|             }, | ||||
|         }; | ||||
|         var baseConfigPath = (0, path_1.join)("/root", "dir1", "node_modules", "my-package", "base-config.json"); | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)((0, path_1.join)("/root", "dir1", "tsconfig.json"), function (path) { return path === firstConfigPath || path === baseConfigPath; }, function (path) { | ||||
|             if (path === firstConfigPath) { | ||||
|                 return JSON.stringify(firstConfig); | ||||
|             } | ||||
|             if (path === baseConfigPath) { | ||||
|                 return JSON.stringify(baseConfig); | ||||
|             } | ||||
|             return ""; | ||||
|         }); | ||||
|         expect(res).toEqual({ | ||||
|             extends: "my-package/base-config.json", | ||||
|             compilerOptions: { | ||||
|                 baseUrl: "kalle", | ||||
|                 paths: { foo: ["bar2"] }, | ||||
|                 strict: true, | ||||
|             }, | ||||
|         }); | ||||
|     }); | ||||
|     it("should use baseUrl relative to location of extended tsconfig", function () { | ||||
|         var firstConfig = { compilerOptions: { baseUrl: "." } }; | ||||
|         var firstConfigPath = (0, path_1.join)("/root", "first-config.json"); | ||||
|         var secondConfig = { extends: "../first-config.json" }; | ||||
|         var secondConfigPath = (0, path_1.join)("/root", "dir1", "second-config.json"); | ||||
|         var thirdConfig = { extends: "../second-config.json" }; | ||||
|         var thirdConfigPath = (0, path_1.join)("/root", "dir1", "dir2", "third-config.json"); | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)((0, path_1.join)("/root", "dir1", "dir2", "third-config.json"), function (path) { | ||||
|             return path === firstConfigPath || | ||||
|                 path === secondConfigPath || | ||||
|                 path === thirdConfigPath; | ||||
|         }, function (path) { | ||||
|             if (path === firstConfigPath) { | ||||
|                 return JSON.stringify(firstConfig); | ||||
|             } | ||||
|             if (path === secondConfigPath) { | ||||
|                 return JSON.stringify(secondConfig); | ||||
|             } | ||||
|             if (path === thirdConfigPath) { | ||||
|                 return JSON.stringify(thirdConfig); | ||||
|             } | ||||
|             return ""; | ||||
|         }); | ||||
|         expect(res).toEqual({ | ||||
|             extends: "../second-config.json", | ||||
|             compilerOptions: { baseUrl: (0, path_1.join)("..", "..") }, | ||||
|         }); | ||||
|     }); | ||||
|     it("should load a config with array extends and overwrite all options", function () { | ||||
|         var baseConfig1 = { | ||||
|             compilerOptions: { baseUrl: ".", paths: { foo: ["bar"] } }, | ||||
|         }; | ||||
|         var baseConfig1Path = (0, path_1.join)("/root", "base-config-1.json"); | ||||
|         var baseConfig2 = { compilerOptions: { baseUrl: "." } }; | ||||
|         var baseConfig2Path = (0, path_1.join)("/root", "dir1", "base-config-2.json"); | ||||
|         var baseConfig3 = { | ||||
|             compilerOptions: { baseUrl: ".", paths: { foo: ["bar2"] } }, | ||||
|         }; | ||||
|         var baseConfig3Path = (0, path_1.join)("/root", "dir1", "dir2", "base-config-3.json"); | ||||
|         var actualConfig = { | ||||
|             extends: [ | ||||
|                 "./base-config-1.json", | ||||
|                 "./dir1/base-config-2.json", | ||||
|                 "./dir1/dir2/base-config-3.json", | ||||
|             ], | ||||
|         }; | ||||
|         var actualConfigPath = (0, path_1.join)("/root", "tsconfig.json"); | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)((0, path_1.join)("/root", "tsconfig.json"), function (path) { | ||||
|             return [ | ||||
|                 baseConfig1Path, | ||||
|                 baseConfig2Path, | ||||
|                 baseConfig3Path, | ||||
|                 actualConfigPath, | ||||
|             ].indexOf(path) >= 0; | ||||
|         }, function (path) { | ||||
|             if (path === baseConfig1Path) { | ||||
|                 return JSON.stringify(baseConfig1); | ||||
|             } | ||||
|             if (path === baseConfig2Path) { | ||||
|                 return JSON.stringify(baseConfig2); | ||||
|             } | ||||
|             if (path === baseConfig3Path) { | ||||
|                 return JSON.stringify(baseConfig3); | ||||
|             } | ||||
|             if (path === actualConfigPath) { | ||||
|                 return JSON.stringify(actualConfig); | ||||
|             } | ||||
|             return ""; | ||||
|         }); | ||||
|         expect(res).toEqual({ | ||||
|             extends: [ | ||||
|                 "./base-config-1.json", | ||||
|                 "./dir1/base-config-2.json", | ||||
|                 "./dir1/dir2/base-config-3.json", | ||||
|             ], | ||||
|             compilerOptions: { | ||||
|                 baseUrl: (0, path_1.join)("dir1", "dir2"), | ||||
|                 paths: { foo: ["bar2"] }, | ||||
|             }, | ||||
|         }); | ||||
|     }); | ||||
|     it("should load a config with array extends without .json extension", function () { | ||||
|         var baseConfig = { | ||||
|             compilerOptions: { baseUrl: ".", paths: { foo: ["bar"] } }, | ||||
|         }; | ||||
|         var baseConfigPath = (0, path_1.join)("/root", "base-config-1.json"); | ||||
|         var actualConfig = { extends: ["./base-config-1"] }; | ||||
|         var actualConfigPath = (0, path_1.join)("/root", "tsconfig.json"); | ||||
|         var res = (0, tsconfig_loader_1.loadTsconfig)((0, path_1.join)("/root", "tsconfig.json"), function (path) { return [baseConfigPath, actualConfigPath].indexOf(path) >= 0; }, function (path) { | ||||
|             if (path === baseConfigPath) { | ||||
|                 return JSON.stringify(baseConfig); | ||||
|             } | ||||
|             if (path === actualConfigPath) { | ||||
|                 return JSON.stringify(actualConfig); | ||||
|             } | ||||
|             return ""; | ||||
|         }); | ||||
|         expect(res).toEqual({ | ||||
|             extends: ["./base-config-1"], | ||||
|             compilerOptions: { | ||||
|                 baseUrl: ".", | ||||
|                 paths: { foo: ["bar"] }, | ||||
|             }, | ||||
|         }); | ||||
|     }); | ||||
| }); | ||||
| //# sourceMappingURL=tsconfig-loader.test.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										33
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| import * as TsConfigLoader2 from "./tsconfig-loader"; | ||||
| export interface ExplicitParams { | ||||
|     baseUrl: string; | ||||
|     paths: { | ||||
|         [key: string]: Array<string>; | ||||
|     }; | ||||
|     mainFields?: (string | string[])[]; | ||||
|     addMatchAll?: boolean; | ||||
| } | ||||
| export declare type TsConfigLoader = (params: TsConfigLoader2.TsConfigLoaderParams) => TsConfigLoader2.TsConfigLoaderResult; | ||||
| export interface ConfigLoaderParams { | ||||
|     cwd: string; | ||||
|     explicitParams?: ExplicitParams; | ||||
|     tsConfigLoader?: TsConfigLoader; | ||||
| } | ||||
| export interface ConfigLoaderSuccessResult { | ||||
|     resultType: "success"; | ||||
|     configFileAbsolutePath: string; | ||||
|     baseUrl?: string; | ||||
|     absoluteBaseUrl: string; | ||||
|     paths: { | ||||
|         [key: string]: Array<string>; | ||||
|     }; | ||||
|     mainFields?: (string | string[])[]; | ||||
|     addMatchAll?: boolean; | ||||
| } | ||||
| export interface ConfigLoaderFailResult { | ||||
|     resultType: "failed"; | ||||
|     message: string; | ||||
| } | ||||
| export declare type ConfigLoaderResult = ConfigLoaderSuccessResult | ConfigLoaderFailResult; | ||||
| export declare function loadConfig(cwd?: string): ConfigLoaderResult; | ||||
| export declare function configLoader({ cwd, explicitParams, tsConfigLoader, }: ConfigLoaderParams): ConfigLoaderResult; | ||||
							
								
								
									
										48
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.configLoader = exports.loadConfig = void 0; | ||||
| var TsConfigLoader2 = require("./tsconfig-loader"); | ||||
| var path = require("path"); | ||||
| function loadConfig(cwd) { | ||||
|     if (cwd === void 0) { cwd = process.cwd(); } | ||||
|     return configLoader({ cwd: cwd }); | ||||
| } | ||||
| exports.loadConfig = loadConfig; | ||||
| function configLoader(_a) { | ||||
|     var cwd = _a.cwd, explicitParams = _a.explicitParams, _b = _a.tsConfigLoader, tsConfigLoader = _b === void 0 ? TsConfigLoader2.tsConfigLoader : _b; | ||||
|     if (explicitParams) { | ||||
|         var absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl) | ||||
|             ? explicitParams.baseUrl | ||||
|             : path.join(cwd, explicitParams.baseUrl); | ||||
|         return { | ||||
|             resultType: "success", | ||||
|             configFileAbsolutePath: "", | ||||
|             baseUrl: explicitParams.baseUrl, | ||||
|             absoluteBaseUrl: absoluteBaseUrl, | ||||
|             paths: explicitParams.paths, | ||||
|             mainFields: explicitParams.mainFields, | ||||
|             addMatchAll: explicitParams.addMatchAll, | ||||
|         }; | ||||
|     } | ||||
|     // Load tsconfig and create path matching function | ||||
|     var loadResult = tsConfigLoader({ | ||||
|         cwd: cwd, | ||||
|         getEnv: function (key) { return process.env[key]; }, | ||||
|     }); | ||||
|     if (!loadResult.tsConfigPath) { | ||||
|         return { | ||||
|             resultType: "failed", | ||||
|             message: "Couldn't find tsconfig.json", | ||||
|         }; | ||||
|     } | ||||
|     return { | ||||
|         resultType: "success", | ||||
|         configFileAbsolutePath: loadResult.tsConfigPath, | ||||
|         baseUrl: loadResult.baseUrl, | ||||
|         absoluteBaseUrl: path.resolve(path.dirname(loadResult.tsConfigPath), loadResult.baseUrl || ""), | ||||
|         paths: loadResult.paths || {}, | ||||
|         addMatchAll: loadResult.baseUrl !== undefined, | ||||
|     }; | ||||
| } | ||||
| exports.configLoader = configLoader; | ||||
| //# sourceMappingURL=config-loader.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/config-loader.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":";;;AAAA,mDAAqD;AACrD,2BAA6B;AAsC7B,SAAgB,UAAU,CAAC,GAA2B;IAA3B,oBAAA,EAAA,MAAc,OAAO,CAAC,GAAG,EAAE;IACpD,OAAO,YAAY,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,CAAC;AAC/B,CAAC;AAFD,gCAEC;AAED,SAAgB,YAAY,CAAC,EAIR;QAHnB,GAAG,SAAA,EACH,cAAc,oBAAA,EACd,sBAA+C,EAA/C,cAAc,mBAAG,eAAe,CAAC,cAAc,KAAA;IAE/C,IAAI,cAAc,EAAE;QAClB,IAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,CAAC;YAC7D,CAAC,CAAC,cAAc,CAAC,OAAO;YACxB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAE3C,OAAO;YACL,UAAU,EAAE,SAAS;YACrB,sBAAsB,EAAE,EAAE;YAC1B,OAAO,EAAE,cAAc,CAAC,OAAO;YAC/B,eAAe,iBAAA;YACf,KAAK,EAAE,cAAc,CAAC,KAAK;YAC3B,UAAU,EAAE,cAAc,CAAC,UAAU;YACrC,WAAW,EAAE,cAAc,CAAC,WAAW;SACxC,CAAC;KACH;IAED,kDAAkD;IAClD,IAAM,UAAU,GAAG,cAAc,CAAC;QAChC,GAAG,KAAA;QACH,MAAM,EAAE,UAAC,GAAW,IAAK,OAAA,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAhB,CAAgB;KAC1C,CAAC,CAAC;IAEH,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE;QAC5B,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,6BAA6B;SACvC,CAAC;KACH;IAED,OAAO;QACL,UAAU,EAAE,SAAS;QACrB,sBAAsB,EAAE,UAAU,CAAC,YAAY;QAC/C,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,eAAe,EAAE,IAAI,CAAC,OAAO,CAC3B,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,EACrC,UAAU,CAAC,OAAO,IAAI,EAAE,CACzB;QACD,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,EAAE;QAC7B,WAAW,EAAE,UAAU,CAAC,OAAO,KAAK,SAAS;KAC9C,CAAC;AACJ,CAAC;AA7CD,oCA6CC"} | ||||
							
								
								
									
										34
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| /** | ||||
|  * Typing for the fields of package.json we care about | ||||
|  */ | ||||
| export interface PackageJson { | ||||
|     [key: string]: string | PackageJson; | ||||
| } | ||||
| /** | ||||
|  * A function that json from a file | ||||
|  */ | ||||
| export interface ReadJsonSync { | ||||
|     (packageJsonPath: string): any | undefined; | ||||
| } | ||||
| export interface FileExistsSync { | ||||
|     (name: string): boolean; | ||||
| } | ||||
| export interface FileExistsAsync { | ||||
|     (path: string, callback: (err?: Error, exists?: boolean) => void): void; | ||||
| } | ||||
| export interface ReadJsonAsyncCallback { | ||||
|     (err?: Error, content?: any): void; | ||||
| } | ||||
| export interface ReadJsonAsync { | ||||
|     (path: string, callback: ReadJsonAsyncCallback): void; | ||||
| } | ||||
| export declare function fileExistsSync(path: string): boolean; | ||||
| /** | ||||
|  * Reads package.json from disk | ||||
|  * | ||||
|  * @param file Path to package.json | ||||
|  */ | ||||
| export declare function readJsonFromDiskSync(packageJsonPath: string): any | undefined; | ||||
| export declare function readJsonFromDiskAsync(path: string, callback: (err?: Error, content?: any) => void): void; | ||||
| export declare function fileExistsAsync(path2: string, callback2: (err?: Error, exists?: boolean) => void): void; | ||||
| export declare function removeExtension(path: string): string; | ||||
							
								
								
									
										61
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										61
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,61 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0; | ||||
| var fs = require("fs"); | ||||
| function fileExistsSync(path) { | ||||
|     // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss | ||||
|     if (!fs.existsSync(path)) { | ||||
|         return false; | ||||
|     } | ||||
|     try { | ||||
|         var stats = fs.statSync(path); | ||||
|         return stats.isFile(); | ||||
|     } | ||||
|     catch (err) { | ||||
|         // If error, assume file did not exist | ||||
|         return false; | ||||
|     } | ||||
| } | ||||
| exports.fileExistsSync = fileExistsSync; | ||||
| /** | ||||
|  * Reads package.json from disk | ||||
|  * | ||||
|  * @param file Path to package.json | ||||
|  */ | ||||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||||
| function readJsonFromDiskSync(packageJsonPath) { | ||||
|     if (!fs.existsSync(packageJsonPath)) { | ||||
|         return undefined; | ||||
|     } | ||||
|     // eslint-disable-next-line @typescript-eslint/no-require-imports | ||||
|     return require(packageJsonPath); | ||||
| } | ||||
| exports.readJsonFromDiskSync = readJsonFromDiskSync; | ||||
| function readJsonFromDiskAsync(path,  | ||||
| // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||||
| callback) { | ||||
|     fs.readFile(path, "utf8", function (err, result) { | ||||
|         // If error, assume file did not exist | ||||
|         if (err || !result) { | ||||
|             return callback(); | ||||
|         } | ||||
|         var json = JSON.parse(result); | ||||
|         return callback(undefined, json); | ||||
|     }); | ||||
| } | ||||
| exports.readJsonFromDiskAsync = readJsonFromDiskAsync; | ||||
| function fileExistsAsync(path2, callback2) { | ||||
|     fs.stat(path2, function (err, stats) { | ||||
|         if (err) { | ||||
|             // If error assume file does not exist | ||||
|             return callback2(undefined, false); | ||||
|         } | ||||
|         callback2(undefined, stats ? stats.isFile() : false); | ||||
|     }); | ||||
| } | ||||
| exports.fileExistsAsync = fileExistsAsync; | ||||
| function removeExtension(path) { | ||||
|     return path.substring(0, path.lastIndexOf(".")) || path; | ||||
| } | ||||
| exports.removeExtension = removeExtension; | ||||
| //# sourceMappingURL=filesystem.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/filesystem.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../src/filesystem.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AAkCzB,SAAgB,cAAc,CAAC,IAAY;IACzC,gGAAgG;IAChG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QACxB,OAAO,KAAK,CAAC;KACd;IACD,IAAI;QACF,IAAM,KAAK,GAAG,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;KACvB;IAAC,OAAO,GAAG,EAAE;QACZ,sCAAsC;QACtC,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAZD,wCAYC;AAED;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,oBAAoB,CAAC,eAAuB;IAC1D,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,EAAE;QACnC,OAAO,SAAS,CAAC;KAClB;IACD,iEAAiE;IACjE,OAAO,OAAO,CAAC,eAAe,CAAC,CAAC;AAClC,CAAC;AAND,oDAMC;AAED,SAAgB,qBAAqB,CACnC,IAAY;AACZ,8DAA8D;AAC9D,QAA8C;IAE9C,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,UAAC,GAAG,EAAE,MAAM;QACpC,sCAAsC;QACtC,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE;YAClB,OAAO,QAAQ,EAAE,CAAC;SACnB;QACD,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAChC,OAAO,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;AACL,CAAC;AAbD,sDAaC;AAED,SAAgB,eAAe,CAC7B,KAAa,EACb,SAAkD;IAElD,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,UAAC,GAAU,EAAE,KAAe;QACzC,IAAI,GAAG,EAAE;YACP,sCAAsC;YACtC,OAAO,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;SACpC;QACD,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAXD,0CAWC;AAED,SAAgB,eAAe,CAAC,IAAY;IAC1C,OAAO,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC;AAC1D,CAAC;AAFD,0CAEC"} | ||||
							
								
								
									
										5
									
								
								frontend/node_modules/tsconfig-paths/lib/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								frontend/node_modules/tsconfig-paths/lib/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| export { createMatchPath, matchFromAbsolutePaths, MatchPath, } from "./match-path-sync"; | ||||
| export { createMatchPathAsync, matchFromAbsolutePathsAsync, MatchPathAsync, } from "./match-path-async"; | ||||
| export { register } from "./register"; | ||||
| export { loadConfig, ConfigLoaderResult, ConfigLoaderSuccessResult, ConfigLoaderFailResult, } from "./config-loader"; | ||||
| export { ReadJsonSync, ReadJsonAsync, FileExistsSync, FileExistsAsync, } from "./filesystem"; | ||||
							
								
								
									
										15
									
								
								frontend/node_modules/tsconfig-paths/lib/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								frontend/node_modules/tsconfig-paths/lib/index.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.loadConfig = exports.register = exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; | ||||
| // register is used from register.js in root dir | ||||
| var match_path_sync_1 = require("./match-path-sync"); | ||||
| Object.defineProperty(exports, "createMatchPath", { enumerable: true, get: function () { return match_path_sync_1.createMatchPath; } }); | ||||
| Object.defineProperty(exports, "matchFromAbsolutePaths", { enumerable: true, get: function () { return match_path_sync_1.matchFromAbsolutePaths; } }); | ||||
| var match_path_async_1 = require("./match-path-async"); | ||||
| Object.defineProperty(exports, "createMatchPathAsync", { enumerable: true, get: function () { return match_path_async_1.createMatchPathAsync; } }); | ||||
| Object.defineProperty(exports, "matchFromAbsolutePathsAsync", { enumerable: true, get: function () { return match_path_async_1.matchFromAbsolutePathsAsync; } }); | ||||
| var register_1 = require("./register"); | ||||
| Object.defineProperty(exports, "register", { enumerable: true, get: function () { return register_1.register; } }); | ||||
| var config_loader_1 = require("./config-loader"); | ||||
| Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_loader_1.loadConfig; } }); | ||||
| //# sourceMappingURL=index.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAgD;AAChD,qDAI2B;AAHzB,kHAAA,eAAe,OAAA;AACf,yHAAA,sBAAsB,OAAA;AAGxB,uDAI4B;AAH1B,wHAAA,oBAAoB,OAAA;AACpB,+HAAA,2BAA2B,OAAA;AAG7B,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,iDAKyB;AAJvB,2GAAA,UAAU,OAAA"} | ||||
							
								
								
									
										18
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| export interface MappingEntry { | ||||
|     readonly pattern: string; | ||||
|     readonly paths: ReadonlyArray<string>; | ||||
| } | ||||
| export interface Paths { | ||||
|     readonly [key: string]: ReadonlyArray<string>; | ||||
| } | ||||
| /** | ||||
|  * Converts an absolute baseUrl and paths to an array of absolute mapping entries. | ||||
|  * The array is sorted by longest prefix. | ||||
|  * Having an array with entries allows us to keep a sorting order rather than | ||||
|  * sort by keys each time we use the mappings. | ||||
|  * | ||||
|  * @param absoluteBaseUrl | ||||
|  * @param paths | ||||
|  * @param addMatchAll | ||||
|  */ | ||||
| export declare function getAbsoluteMappingEntries(absoluteBaseUrl: string, paths: Paths, addMatchAll: boolean): ReadonlyArray<MappingEntry>; | ||||
							
								
								
									
										54
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.getAbsoluteMappingEntries = void 0; | ||||
| var path = require("path"); | ||||
| /** | ||||
|  * Converts an absolute baseUrl and paths to an array of absolute mapping entries. | ||||
|  * The array is sorted by longest prefix. | ||||
|  * Having an array with entries allows us to keep a sorting order rather than | ||||
|  * sort by keys each time we use the mappings. | ||||
|  * | ||||
|  * @param absoluteBaseUrl | ||||
|  * @param paths | ||||
|  * @param addMatchAll | ||||
|  */ | ||||
| function getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll) { | ||||
|     // Resolve all paths to absolute form once here, and sort them by | ||||
|     // longest prefix once here, this saves time on each request later. | ||||
|     // We need to put them in an array to preserve the sorting order. | ||||
|     var sortedKeys = sortByLongestPrefix(Object.keys(paths)); | ||||
|     var absolutePaths = []; | ||||
|     for (var _i = 0, sortedKeys_1 = sortedKeys; _i < sortedKeys_1.length; _i++) { | ||||
|         var key = sortedKeys_1[_i]; | ||||
|         absolutePaths.push({ | ||||
|             pattern: key, | ||||
|             paths: paths[key].map(function (pathToResolve) { | ||||
|                 return path.resolve(absoluteBaseUrl, pathToResolve); | ||||
|             }), | ||||
|         }); | ||||
|     } | ||||
|     // If there is no match-all path specified in the paths section of tsconfig, then try to match | ||||
|     // all paths relative to baseUrl, this is how typescript works. | ||||
|     if (!paths["*"] && addMatchAll) { | ||||
|         absolutePaths.push({ | ||||
|             pattern: "*", | ||||
|             paths: ["".concat(absoluteBaseUrl.replace(/\/$/, ""), "/*")], | ||||
|         }); | ||||
|     } | ||||
|     return absolutePaths; | ||||
| } | ||||
| exports.getAbsoluteMappingEntries = getAbsoluteMappingEntries; | ||||
| /** | ||||
|  * Sort path patterns. | ||||
|  * If a module name can be matched with multiple patterns then pattern with the longest prefix will be picked. | ||||
|  */ | ||||
| function sortByLongestPrefix(arr) { | ||||
|     return arr | ||||
|         .concat() | ||||
|         .sort(function (a, b) { return getPrefixLength(b) - getPrefixLength(a); }); | ||||
| } | ||||
| function getPrefixLength(pattern) { | ||||
|     var prefixLength = pattern.indexOf("*"); | ||||
|     return pattern.substr(0, prefixLength).length; | ||||
| } | ||||
| //# sourceMappingURL=mapping-entry.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/mapping-entry.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"mapping-entry.js","sourceRoot":"","sources":["../src/mapping-entry.ts"],"names":[],"mappings":";;;AAAA,2BAA6B;AAW7B;;;;;;;;;GASG;AACH,SAAgB,yBAAyB,CACvC,eAAuB,EACvB,KAAY,EACZ,WAAoB;IAEpB,iEAAiE;IACjE,mEAAmE;IACnE,iEAAiE;IACjE,IAAM,UAAU,GAAG,mBAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAC3D,IAAM,aAAa,GAAwB,EAAE,CAAC;IAC9C,KAAkB,UAAU,EAAV,yBAAU,EAAV,wBAAU,EAAV,IAAU,EAAE;QAAzB,IAAM,GAAG,mBAAA;QACZ,aAAa,CAAC,IAAI,CAAC;YACjB,OAAO,EAAE,GAAG;YACZ,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,UAAC,aAAa;gBAClC,OAAA,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,aAAa,CAAC;YAA5C,CAA4C,CAC7C;SACF,CAAC,CAAC;KACJ;IACD,8FAA8F;IAC9F,+DAA+D;IAC/D,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,WAAW,EAAE;QAC9B,aAAa,CAAC,IAAI,CAAC;YACjB,OAAO,EAAE,GAAG;YACZ,KAAK,EAAE,CAAC,UAAG,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,OAAI,CAAC;SACnD,CAAC,CAAC;KACJ;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AA5BD,8DA4BC;AAED;;;GAGG;AACH,SAAS,mBAAmB,CAAC,GAAkB;IAC7C,OAAO,GAAG;SACP,MAAM,EAAE;SACR,IAAI,CAAC,UAAC,CAAS,EAAE,CAAS,IAAK,OAAA,eAAe,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,EAAvC,CAAuC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAS,eAAe,CAAC,OAAe;IACtC,IAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,MAAM,CAAC;AAChD,CAAC"} | ||||
							
								
								
									
										21
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| import * as MappingEntry from "./mapping-entry"; | ||||
| import * as Filesystem from "./filesystem"; | ||||
| /** | ||||
|  * Function that can match a path async | ||||
|  */ | ||||
| export interface MatchPathAsync { | ||||
|     (requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: ReadonlyArray<string> | undefined, callback: MatchPathAsyncCallback): void; | ||||
| } | ||||
| export interface MatchPathAsyncCallback { | ||||
|     (err?: Error, path?: string): void; | ||||
| } | ||||
| /** | ||||
|  * See the sync version for docs. | ||||
|  */ | ||||
| export declare function createMatchPathAsync(absoluteBaseUrl: string, paths: { | ||||
|     [key: string]: Array<string>; | ||||
| }, mainFields?: (string | string[])[], addMatchAll?: boolean): MatchPathAsync; | ||||
| /** | ||||
|  * See the sync version for docs. | ||||
|  */ | ||||
| export declare function matchFromAbsolutePathsAsync(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson: Filesystem.ReadJsonAsync | undefined, fileExists: Filesystem.FileExistsAsync | undefined, extensions: readonly string[] | undefined, callback: MatchPathAsyncCallback, mainFields?: (string | string[])[]): void; | ||||
							
								
								
									
										116
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										116
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,116 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.matchFromAbsolutePathsAsync = exports.createMatchPathAsync = void 0; | ||||
| var path = require("path"); | ||||
| var TryPath = require("./try-path"); | ||||
| var MappingEntry = require("./mapping-entry"); | ||||
| var Filesystem = require("./filesystem"); | ||||
| /** | ||||
|  * See the sync version for docs. | ||||
|  */ | ||||
| function createMatchPathAsync(absoluteBaseUrl, paths, mainFields, addMatchAll) { | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     if (addMatchAll === void 0) { addMatchAll = true; } | ||||
|     var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); | ||||
|     return function (requestedModule, readJson, fileExists, extensions, callback) { | ||||
|         return matchFromAbsolutePathsAsync(absolutePaths, requestedModule, readJson, fileExists, extensions, callback, mainFields); | ||||
|     }; | ||||
| } | ||||
| exports.createMatchPathAsync = createMatchPathAsync; | ||||
| /** | ||||
|  * See the sync version for docs. | ||||
|  */ | ||||
| function matchFromAbsolutePathsAsync(absolutePathMappings, requestedModule, readJson, fileExists, extensions, callback, mainFields) { | ||||
|     if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskAsync; } | ||||
|     if (fileExists === void 0) { fileExists = Filesystem.fileExistsAsync; } | ||||
|     if (extensions === void 0) { extensions = Object.keys(require.extensions); } | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); | ||||
|     if (!tryPaths) { | ||||
|         return callback(); | ||||
|     } | ||||
|     findFirstExistingPath(tryPaths, readJson, fileExists, callback, 0, mainFields); | ||||
| } | ||||
| exports.matchFromAbsolutePathsAsync = matchFromAbsolutePathsAsync; | ||||
| function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index) { | ||||
|     if (index === void 0) { index = 0; } | ||||
|     if (index >= mainFields.length) { | ||||
|         return doneCallback(undefined, undefined); | ||||
|     } | ||||
|     var tryNext = function () { | ||||
|         return findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExistsAsync, doneCallback, index + 1); | ||||
|     }; | ||||
|     var mainFieldSelector = mainFields[index]; | ||||
|     var mainFieldMapping = typeof mainFieldSelector === "string" | ||||
|         ? packageJson[mainFieldSelector] | ||||
|         : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); | ||||
|     if (typeof mainFieldMapping !== "string") { | ||||
|         // Skip mappings that are not pointers to replacement files | ||||
|         return tryNext(); | ||||
|     } | ||||
|     var mappedFilePath = path.join(path.dirname(packageJsonPath), mainFieldMapping); | ||||
|     fileExistsAsync(mappedFilePath, function (err, exists) { | ||||
|         if (err) { | ||||
|             return doneCallback(err); | ||||
|         } | ||||
|         if (exists) { | ||||
|             return doneCallback(undefined, mappedFilePath); | ||||
|         } | ||||
|         return tryNext(); | ||||
|     }); | ||||
| } | ||||
| // Recursive loop to probe for physical files | ||||
| function findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index, mainFields) { | ||||
|     if (index === void 0) { index = 0; } | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     var tryPath = tryPaths[index]; | ||||
|     if (tryPath.type === "file" || | ||||
|         tryPath.type === "extension" || | ||||
|         tryPath.type === "index") { | ||||
|         fileExists(tryPath.path, function (err, exists) { | ||||
|             if (err) { | ||||
|                 return doneCallback(err); | ||||
|             } | ||||
|             if (exists) { | ||||
|                 return doneCallback(undefined, TryPath.getStrippedPath(tryPath)); | ||||
|             } | ||||
|             if (index === tryPaths.length - 1) { | ||||
|                 return doneCallback(); | ||||
|             } | ||||
|             // Continue with the next path | ||||
|             return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); | ||||
|         }); | ||||
|     } | ||||
|     else if (tryPath.type === "package") { | ||||
|         readJson(tryPath.path, function (err, packageJson) { | ||||
|             if (err) { | ||||
|                 return doneCallback(err); | ||||
|             } | ||||
|             if (packageJson) { | ||||
|                 return findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists, function (mainFieldErr, mainFieldMappedFile) { | ||||
|                     if (mainFieldErr) { | ||||
|                         return doneCallback(mainFieldErr); | ||||
|                     } | ||||
|                     if (mainFieldMappedFile) { | ||||
|                         return doneCallback(undefined, mainFieldMappedFile); | ||||
|                     } | ||||
|                     // No field in package json was a valid option. Continue with the next path. | ||||
|                     return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); | ||||
|                 }); | ||||
|             } | ||||
|             // This is async code, we need to return unconditionally, otherwise the code still falls | ||||
|             // through and keeps recursing. While this might work in general, libraries that use neo-async | ||||
|             // like Webpack will actually not allow you to call the same callback twice. | ||||
|             // | ||||
|             // An example of where this caused issues: | ||||
|             // https://github.com/dividab/tsconfig-paths-webpack-plugin/issues/11 | ||||
|             // | ||||
|             // Continue with the next path | ||||
|             return findFirstExistingPath(tryPaths, readJson, fileExists, doneCallback, index + 1, mainFields); | ||||
|         }); | ||||
|     } | ||||
|     else { | ||||
|         TryPath.exhaustiveTypeException(tryPath.type); | ||||
|     } | ||||
| } | ||||
| //# sourceMappingURL=match-path-async.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-async.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"match-path-async.js","sourceRoot":"","sources":["../src/match-path-async.ts"],"names":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ED,4EAA4E;oBAC5E,OAAO,qBAAqB,CAC1B,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,KAAK,GAAG,CAAC,EACT,UAAU,CACX,CAAC;gBACJ,CAAC,CACF,CAAC;aACH;YAED,wFAAwF;YACxF,8FAA8F;YAC9F,4EAA4E;YAC5E,EAAE;YACF,0CAA0C;YAC1C,qEAAqE;YACrE,EAAE;YACF,8BAA8B;YAC9B,OAAO,qBAAqB,CAC1B,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,KAAK,GAAG,CAAC,EACT,UAAU,CACX,CAAC;QACJ,CAAC,CAAC,CAAC;KACJ;SAAM;QACL,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;KAC/C;AACH,CAAC"} | ||||
							
								
								
									
										32
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| import * as Filesystem from "./filesystem"; | ||||
| import * as MappingEntry from "./mapping-entry"; | ||||
| /** | ||||
|  * Function that can match a path | ||||
|  */ | ||||
| export interface MatchPath { | ||||
|     (requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | undefined; | ||||
| } | ||||
| /** | ||||
|  * Creates a function that can resolve paths according to tsconfig paths property. | ||||
|  * | ||||
|  * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig. | ||||
|  * @param paths The paths as specified in tsconfig. | ||||
|  * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. | ||||
|  * @param addMatchAll Add a match-all "*" rule if none is present | ||||
|  * @returns a function that can resolve paths. | ||||
|  */ | ||||
| export declare function createMatchPath(absoluteBaseUrl: string, paths: { | ||||
|     [key: string]: Array<string>; | ||||
| }, mainFields?: (string | string[])[], addMatchAll?: boolean): MatchPath; | ||||
| /** | ||||
|  * Finds a path from tsconfig that matches a module load request. | ||||
|  * | ||||
|  * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form. | ||||
|  * @param requestedModule The required module name. | ||||
|  * @param readJson Function that can read json from a path (useful for testing). | ||||
|  * @param fileExists Function that checks for existence of a file at a path (useful for testing). | ||||
|  * @param extensions File extensions to probe for (useful for testing). | ||||
|  * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. | ||||
|  * @returns the found path, or undefined if no path was found. | ||||
|  */ | ||||
| export declare function matchFromAbsolutePaths(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExists?: Filesystem.FileExistsSync, extensions?: Array<string>, mainFields?: (string | string[])[]): string | undefined; | ||||
							
								
								
									
										91
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,91 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.matchFromAbsolutePaths = exports.createMatchPath = void 0; | ||||
| var path = require("path"); | ||||
| var Filesystem = require("./filesystem"); | ||||
| var MappingEntry = require("./mapping-entry"); | ||||
| var TryPath = require("./try-path"); | ||||
| /** | ||||
|  * Creates a function that can resolve paths according to tsconfig paths property. | ||||
|  * | ||||
|  * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig. | ||||
|  * @param paths The paths as specified in tsconfig. | ||||
|  * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. | ||||
|  * @param addMatchAll Add a match-all "*" rule if none is present | ||||
|  * @returns a function that can resolve paths. | ||||
|  */ | ||||
| function createMatchPath(absoluteBaseUrl, paths, mainFields, addMatchAll) { | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     if (addMatchAll === void 0) { addMatchAll = true; } | ||||
|     var absolutePaths = MappingEntry.getAbsoluteMappingEntries(absoluteBaseUrl, paths, addMatchAll); | ||||
|     return function (requestedModule, readJson, fileExists, extensions) { | ||||
|         return matchFromAbsolutePaths(absolutePaths, requestedModule, readJson, fileExists, extensions, mainFields); | ||||
|     }; | ||||
| } | ||||
| exports.createMatchPath = createMatchPath; | ||||
| /** | ||||
|  * Finds a path from tsconfig that matches a module load request. | ||||
|  * | ||||
|  * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form. | ||||
|  * @param requestedModule The required module name. | ||||
|  * @param readJson Function that can read json from a path (useful for testing). | ||||
|  * @param fileExists Function that checks for existence of a file at a path (useful for testing). | ||||
|  * @param extensions File extensions to probe for (useful for testing). | ||||
|  * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. | ||||
|  * @returns the found path, or undefined if no path was found. | ||||
|  */ | ||||
| function matchFromAbsolutePaths(absolutePathMappings, requestedModule, readJson, fileExists, extensions, mainFields) { | ||||
|     if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } | ||||
|     if (fileExists === void 0) { fileExists = Filesystem.fileExistsSync; } | ||||
|     if (extensions === void 0) { extensions = Object.keys(require.extensions); } | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     var tryPaths = TryPath.getPathsToTry(extensions, absolutePathMappings, requestedModule); | ||||
|     if (!tryPaths) { | ||||
|         return undefined; | ||||
|     } | ||||
|     return findFirstExistingPath(tryPaths, readJson, fileExists, mainFields); | ||||
| } | ||||
| exports.matchFromAbsolutePaths = matchFromAbsolutePaths; | ||||
| function findFirstExistingMainFieldMappedFile(packageJson, mainFields, packageJsonPath, fileExists) { | ||||
|     for (var index = 0; index < mainFields.length; index++) { | ||||
|         var mainFieldSelector = mainFields[index]; | ||||
|         var candidateMapping = typeof mainFieldSelector === "string" | ||||
|             ? packageJson[mainFieldSelector] | ||||
|             : mainFieldSelector.reduce(function (obj, key) { return obj[key]; }, packageJson); | ||||
|         if (candidateMapping && typeof candidateMapping === "string") { | ||||
|             var candidateFilePath = path.join(path.dirname(packageJsonPath), candidateMapping); | ||||
|             if (fileExists(candidateFilePath)) { | ||||
|                 return candidateFilePath; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|     return undefined; | ||||
| } | ||||
| function findFirstExistingPath(tryPaths, readJson, fileExists, mainFields) { | ||||
|     if (readJson === void 0) { readJson = Filesystem.readJsonFromDiskSync; } | ||||
|     if (mainFields === void 0) { mainFields = ["main"]; } | ||||
|     for (var _i = 0, tryPaths_1 = tryPaths; _i < tryPaths_1.length; _i++) { | ||||
|         var tryPath = tryPaths_1[_i]; | ||||
|         if (tryPath.type === "file" || | ||||
|             tryPath.type === "extension" || | ||||
|             tryPath.type === "index") { | ||||
|             if (fileExists(tryPath.path)) { | ||||
|                 return TryPath.getStrippedPath(tryPath); | ||||
|             } | ||||
|         } | ||||
|         else if (tryPath.type === "package") { | ||||
|             var packageJson = readJson(tryPath.path); | ||||
|             if (packageJson) { | ||||
|                 var mainFieldMappedFile = findFirstExistingMainFieldMappedFile(packageJson, mainFields, tryPath.path, fileExists); | ||||
|                 if (mainFieldMappedFile) { | ||||
|                     return mainFieldMappedFile; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         else { | ||||
|             TryPath.exhaustiveTypeException(tryPath.type); | ||||
|         } | ||||
|     } | ||||
|     return undefined; | ||||
| } | ||||
| //# sourceMappingURL=match-path-sync.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/match-path-sync.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"match-path-sync.js","sourceRoot":"","sources":["../src/match-path-sync.ts"],"names":[],"mappings":";;;AAAA,2BAA6B;AAC7B,yCAA2C;AAC3C,8CAAgD;AAChD,oCAAsC;AActC;;;;;;;;GAQG;AACH,SAAgB,eAAe,CAC7B,eAAuB,EACvB,KAAuC,EACvC,UAA4C,EAC5C,WAA2B;IAD3B,2BAAA,EAAA,cAAqC,MAAM,CAAC;IAC5C,4BAAA,EAAA,kBAA2B;IAE3B,IAAM,aAAa,GAAG,YAAY,CAAC,yBAAyB,CAC1D,eAAe,EACf,KAAK,EACL,WAAW,CACZ,CAAC;IAEF,OAAO,UACL,eAAuB,EACvB,QAAkC,EAClC,UAAsC,EACtC,UAA0B;QAE1B,OAAA,sBAAsB,CACpB,aAAa,EACb,eAAe,EACf,QAAQ,EACR,UAAU,EACV,UAAU,EACV,UAAU,CACX;IAPD,CAOC,CAAC;AACN,CAAC;AA1BD,0CA0BC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,sBAAsB,CACpC,oBAA8D,EAC9D,eAAuB,EACvB,QAAmE,EACnE,UAAiE,EACjE,UAA2D,EAC3D,UAA4C;IAH5C,yBAAA,EAAA,WAAoC,UAAU,CAAC,oBAAoB;IACnE,2BAAA,EAAA,aAAwC,UAAU,CAAC,cAAc;IACjE,2BAAA,EAAA,aAA4B,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3D,2BAAA,EAAA,cAAqC,MAAM,CAAC;IAE5C,IAAM,QAAQ,GAAG,OAAO,CAAC,aAAa,CACpC,UAAU,EACV,oBAAoB,EACpB,eAAe,CAChB,CAAC;IAEF,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;AAC3E,CAAC;AAnBD,wDAmBC;AAED,SAAS,oCAAo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AAC;aACzC;SACF;aAAM,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,EAAE;YACrC,IAAM,WAAW,GAA2B,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;YACnE,IAAI,WAAW,EAAE;gBACf,IAAM,mBAAmB,GAAG,oCAAoC,CAC9D,WAAW,EACX,UAAU,EACV,OAAO,CAAC,IAAI,EACZ,UAAU,CACX,CAAC;gBACF,IAAI,mBAAmB,EAAE;oBACvB,OAAO,mBAAmB,CAAC;iBAC5B;aACF;SACF;aAAM;YACL,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC/C;KACF;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"} | ||||
							
								
								
									
										12
									
								
								frontend/node_modules/tsconfig-paths/lib/register.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								frontend/node_modules/tsconfig-paths/lib/register.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| import { ExplicitParams } from "./config-loader"; | ||||
| export interface RegisterParams extends ExplicitParams { | ||||
|     /** | ||||
|      * Defaults to `--project` CLI flag or `process.cwd()` | ||||
|      */ | ||||
|     cwd?: string; | ||||
| } | ||||
| /** | ||||
|  * Installs a custom module load function that can adhere to paths in tsconfig. | ||||
|  * Returns a function to undo paths registration. | ||||
|  */ | ||||
| export declare function register(params?: RegisterParams): () => void; | ||||
							
								
								
									
										112
									
								
								frontend/node_modules/tsconfig-paths/lib/register.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										112
									
								
								frontend/node_modules/tsconfig-paths/lib/register.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,112 @@ | ||||
| "use strict"; | ||||
| var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||||
|     if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||||
|         if (ar || !(i in from)) { | ||||
|             if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||||
|             ar[i] = from[i]; | ||||
|         } | ||||
|     } | ||||
|     return to.concat(ar || Array.prototype.slice.call(from)); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.register = void 0; | ||||
| var match_path_sync_1 = require("./match-path-sync"); | ||||
| var config_loader_1 = require("./config-loader"); | ||||
| var noOp = function () { return void 0; }; | ||||
| function getCoreModules(builtinModules) { | ||||
|     builtinModules = builtinModules || [ | ||||
|         "assert", | ||||
|         "buffer", | ||||
|         "child_process", | ||||
|         "cluster", | ||||
|         "crypto", | ||||
|         "dgram", | ||||
|         "dns", | ||||
|         "domain", | ||||
|         "events", | ||||
|         "fs", | ||||
|         "http", | ||||
|         "https", | ||||
|         "net", | ||||
|         "os", | ||||
|         "path", | ||||
|         "punycode", | ||||
|         "querystring", | ||||
|         "readline", | ||||
|         "stream", | ||||
|         "string_decoder", | ||||
|         "tls", | ||||
|         "tty", | ||||
|         "url", | ||||
|         "util", | ||||
|         "v8", | ||||
|         "vm", | ||||
|         "zlib", | ||||
|     ]; | ||||
|     var coreModules = {}; | ||||
|     for (var _i = 0, builtinModules_1 = builtinModules; _i < builtinModules_1.length; _i++) { | ||||
|         var module_1 = builtinModules_1[_i]; | ||||
|         coreModules[module_1] = true; | ||||
|     } | ||||
|     return coreModules; | ||||
| } | ||||
| /** | ||||
|  * Installs a custom module load function that can adhere to paths in tsconfig. | ||||
|  * Returns a function to undo paths registration. | ||||
|  */ | ||||
| function register(params) { | ||||
|     var cwd; | ||||
|     var explicitParams; | ||||
|     if (params) { | ||||
|         cwd = params.cwd; | ||||
|         if (params.baseUrl || params.paths) { | ||||
|             explicitParams = params; | ||||
|         } | ||||
|     } | ||||
|     else { | ||||
|         // eslint-disable-next-line | ||||
|         var minimist = require("minimist"); | ||||
|         var argv = minimist(process.argv.slice(2), { | ||||
|             // eslint-disable-next-line id-denylist | ||||
|             string: ["project"], | ||||
|             alias: { | ||||
|                 project: ["P"], | ||||
|             }, | ||||
|         }); | ||||
|         cwd = argv.project; | ||||
|     } | ||||
|     var configLoaderResult = (0, config_loader_1.configLoader)({ | ||||
|         cwd: cwd !== null && cwd !== void 0 ? cwd : process.cwd(), | ||||
|         explicitParams: explicitParams, | ||||
|     }); | ||||
|     if (configLoaderResult.resultType === "failed") { | ||||
|         console.warn("".concat(configLoaderResult.message, ". tsconfig-paths will be skipped")); | ||||
|         return noOp; | ||||
|     } | ||||
|     var matchPath = (0, match_path_sync_1.createMatchPath)(configLoaderResult.absoluteBaseUrl, configLoaderResult.paths, configLoaderResult.mainFields, configLoaderResult.addMatchAll); | ||||
|     // Patch node's module loading | ||||
|     // eslint-disable-next-line @typescript-eslint/no-require-imports,@typescript-eslint/no-var-requires | ||||
|     var Module = require("module"); | ||||
|     // eslint-disable-next-line no-underscore-dangle | ||||
|     var originalResolveFilename = Module._resolveFilename; | ||||
|     var coreModules = getCoreModules(Module.builtinModules); | ||||
|     // eslint-disable-next-line @typescript-eslint/no-explicit-any,no-underscore-dangle | ||||
|     Module._resolveFilename = function (request, _parent) { | ||||
|         var isCoreModule = coreModules.hasOwnProperty(request); | ||||
|         if (!isCoreModule) { | ||||
|             var found = matchPath(request); | ||||
|             if (found) { | ||||
|                 var modifiedArguments = __spreadArray([found], [].slice.call(arguments, 1), true); // Passes all arguments. Even those that is not specified above. | ||||
|                 return originalResolveFilename.apply(this, modifiedArguments); | ||||
|             } | ||||
|         } | ||||
|         return originalResolveFilename.apply(this, arguments); | ||||
|     }; | ||||
|     return function () { | ||||
|         // Return node's module loading to original state. | ||||
|         // eslint-disable-next-line no-underscore-dangle | ||||
|         Module._resolveFilename = originalResolveFilename; | ||||
|     }; | ||||
| } | ||||
| exports.register = register; | ||||
| //# sourceMappingURL=register.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/register.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/register.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AACpD,iDAA+D;AAE/D,IAAM,IAAI,GAAG,cAAY,OAAA,KAAK,CAAC,EAAN,CAAM,CAAC;AAEhC,SAAS,cAAc,CACrB,cAAoC;IAEpC,cAAc,GAAG,cAAc,IAAI;QACjC,QAAQ;QACR,QAAQ;QACR,eAAe;QACf,SAAS;QACT,QAAQ;QACR,OAAO;QACP,KAAK;QACL,QAAQ;QACR,QAAQ;QACR,IAAI;QACJ,MAAM;QACN,OAAO;QACP,KAAK;QACL,IAAI;QACJ,MAAM;QACN,UAAU;QACV,aAAa;QACb,UAAU;QACV,QAAQ;QACR,gBAAgB;QAChB,KAAK;QACL,KAAK;QACL,KAAK;QACL,MAAM;QACN,IAAI;QACJ,IAAI;QACJ,MAAM;KACP,CAAC;IAEF,IAAM,WAAW,GAA+B,EAAE,CAAC;IACnD,KAAmB,UAAc,EAAd,iCAAc,EAAd,4BAAc,EAAd,IAAc,EAAE;QAA9B,IAAI,QAAM,uBAAA;QACb,WAAW,CAAC,QAAM,CAAC,GAAG,IAAI,CAAC;KAC5B;IAED,OAAO,WAAW,CAAC;AACrB,CAAC;AASD;;;GAGG;AACH,SAAgB,QAAQ,CAAC,MAAuB;IAC9C,IAAI,GAAuB,CAAC;IAC5B,IAAI,cAA0C,CAAC;IAC/C,IAAI,MAAM,EAAE;QACV,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACjB,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,EAAE;YAClC,cAAc,GAAG,MAAM,CAAC;SACzB;KACF;SAAM;QACL,2BAA2B;QAC3B,IAAM,QAAQ,GAAG,OAAO,CAAC,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AAM,iBAAiB,kBAAI,KAAK,GAAK,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,OAAC,CAAC,CAAC,gEAAgE;gBACnI,OAAO,uBAAuB,CAAC,KAAK,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;aAC/D;SACF;QACD,OAAO,uBAAuB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IACxD,CAAC,CAAC;IAEF,OAAO;QACL,kDAAkD;QAClD,gDAAgD;QAChD,MAAM,CAAC,gBAAgB,GAAG,uBAAuB,CAAC;IACpD,CAAC,CAAC;AACJ,CAAC;AAjED,4BAiEC"} | ||||
							
								
								
									
										15
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| import { MappingEntry } from "./mapping-entry"; | ||||
| export interface TryPath { | ||||
|     readonly type: "file" | "extension" | "index" | "package"; | ||||
|     readonly path: string; | ||||
| } | ||||
| /** | ||||
|  * Builds a list of all physical paths to try by: | ||||
|  * 1. Check for file named exactly as request. | ||||
|  * 2. Check for files named as request ending in any of the extensions. | ||||
|  * 3. Check for file specified in package.json's main property. | ||||
|  * 4. Check for files named as request ending in "index" with any of the extensions. | ||||
|  */ | ||||
| export declare function getPathsToTry(extensions: ReadonlyArray<string>, absolutePathMappings: ReadonlyArray<MappingEntry>, requestedModule: string): ReadonlyArray<TryPath> | undefined; | ||||
| export declare function getStrippedPath(tryPath: TryPath): string; | ||||
| export declare function exhaustiveTypeException(check: never): never; | ||||
							
								
								
									
										91
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										91
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,91 @@ | ||||
| "use strict"; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.exhaustiveTypeException = exports.getStrippedPath = exports.getPathsToTry = void 0; | ||||
| var path = require("path"); | ||||
| var path_1 = require("path"); | ||||
| var filesystem_1 = require("./filesystem"); | ||||
| /** | ||||
|  * Builds a list of all physical paths to try by: | ||||
|  * 1. Check for file named exactly as request. | ||||
|  * 2. Check for files named as request ending in any of the extensions. | ||||
|  * 3. Check for file specified in package.json's main property. | ||||
|  * 4. Check for files named as request ending in "index" with any of the extensions. | ||||
|  */ | ||||
| function getPathsToTry(extensions, absolutePathMappings, requestedModule) { | ||||
|     if (!absolutePathMappings || !requestedModule || requestedModule[0] === ".") { | ||||
|         return undefined; | ||||
|     } | ||||
|     var pathsToTry = []; | ||||
|     for (var _i = 0, absolutePathMappings_1 = absolutePathMappings; _i < absolutePathMappings_1.length; _i++) { | ||||
|         var entry = absolutePathMappings_1[_i]; | ||||
|         var starMatch = entry.pattern === requestedModule | ||||
|             ? "" | ||||
|             : matchStar(entry.pattern, requestedModule); | ||||
|         if (starMatch !== undefined) { | ||||
|             var _loop_1 = function (physicalPathPattern) { | ||||
|                 var physicalPath = physicalPathPattern.replace("*", starMatch); | ||||
|                 pathsToTry.push({ type: "file", path: physicalPath }); | ||||
|                 pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "extension", path: physicalPath + e }); })); | ||||
|                 pathsToTry.push({ | ||||
|                     type: "package", | ||||
|                     path: path.join(physicalPath, "/package.json"), | ||||
|                 }); | ||||
|                 var indexPath = path.join(physicalPath, "/index"); | ||||
|                 pathsToTry.push.apply(pathsToTry, extensions.map(function (e) { return ({ type: "index", path: indexPath + e }); })); | ||||
|             }; | ||||
|             for (var _a = 0, _b = entry.paths; _a < _b.length; _a++) { | ||||
|                 var physicalPathPattern = _b[_a]; | ||||
|                 _loop_1(physicalPathPattern); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|     return pathsToTry.length === 0 ? undefined : pathsToTry; | ||||
| } | ||||
| exports.getPathsToTry = getPathsToTry; | ||||
| // Not sure why we don't just return the full found path? | ||||
| function getStrippedPath(tryPath) { | ||||
|     return tryPath.type === "index" | ||||
|         ? (0, path_1.dirname)(tryPath.path) | ||||
|         : tryPath.type === "file" | ||||
|             ? tryPath.path | ||||
|             : tryPath.type === "extension" | ||||
|                 ? (0, filesystem_1.removeExtension)(tryPath.path) | ||||
|                 : tryPath.type === "package" | ||||
|                     ? tryPath.path | ||||
|                     : exhaustiveTypeException(tryPath.type); | ||||
| } | ||||
| exports.getStrippedPath = getStrippedPath; | ||||
| function exhaustiveTypeException(check) { | ||||
|     throw new Error("Unknown type ".concat(check)); | ||||
| } | ||||
| exports.exhaustiveTypeException = exhaustiveTypeException; | ||||
| /** | ||||
|  * Matches pattern with a single star against search. | ||||
|  * Star must match at least one character to be considered a match. | ||||
|  * | ||||
|  * @param patttern for example "foo*" | ||||
|  * @param search for example "fooawesomebar" | ||||
|  * @returns the part of search that * matches, or undefined if no match. | ||||
|  */ | ||||
| function matchStar(pattern, search) { | ||||
|     if (search.length < pattern.length) { | ||||
|         return undefined; | ||||
|     } | ||||
|     if (pattern === "*") { | ||||
|         return search; | ||||
|     } | ||||
|     var star = pattern.indexOf("*"); | ||||
|     if (star === -1) { | ||||
|         return undefined; | ||||
|     } | ||||
|     var part1 = pattern.substring(0, star); | ||||
|     var part2 = pattern.substring(star + 1); | ||||
|     if (search.substr(0, star) !== part1) { | ||||
|         return undefined; | ||||
|     } | ||||
|     if (search.substr(search.length - part2.length) !== part2) { | ||||
|         return undefined; | ||||
|     } | ||||
|     return search.substr(star, search.length - part2.length); | ||||
| } | ||||
| //# sourceMappingURL=try-path.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/try-path.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"try-path.js","sourceRoot":"","sources":["../src/try-path.ts"],"names":[],"mappings":";;;AAAA,2BAA6B;AAE7B,6BAA+B;AAC/B,2CAA+C;AAO/C;;;;;;GAMG;AACH,SAAgB,aAAa,CAC3B,UAAiC,EACjC,oBAAiD,EACjD,eAAuB;IAEvB,IAAI,CAAC,oBAAoB,IAAI,CAAC,eAAe,IAAI,eAAe,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QAC3E,OAAO,SAAS,CAAC;KAClB;IAED,IAAM,UAAU,GAAmB,EAAE,CAAC;IACtC,KAAoB,UAAoB,EAApB,6CAAoB,EAApB,kCAAoB,EAApB,IAAoB,EAAE;QAArC,IAAM,KAAK,6BAAA;QACd,IAAM,SAAS,GACb,KAAK,CAAC,OAAO,KAAK,eAAe;YAC/B,CAAC,CAAC,EAAE;YACJ,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;QAChD,IAAI,SAAS,KAAK,SAAS,EAAE;oCAChB,mBAAmB;gBAC5B,IAAM,YAAY,GAAG,mBAAmB,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;gBACjE,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;gBACtD,UAAU,CAAC,IAAI,OAAf,UAAU,EACL,UAAU,CAAC,GAAG,CACf,UAAC,CAAC,IAAK,OAAA,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,EAAc,CAAA,EAA1D,CAA0D,CAClE,EACD;gBACF,UAAU,CAAC,IAAI,CAAC;oBACd,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,IAAI,CAAC,IAAI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C;AAED;;;;;;;GAOG;AACH,SAAS,SAAS,CAAC,OAAe,EAAE,MAAc;IAChD,IAAI,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE;QAClC,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,OAAO,KAAK,GAAG,EAAE;QACnB,OAAO,MAAM,CAAC;KACf;IACD,IAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,IAAI,KAAK,CAAC,CAAC,EAAE;QACf,OAAO,SAAS,CAAC;KAClB;IACD,IAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;IACzC,IAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC;IAC1C,IAAI,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,KAAK,EAAE;QACpC,OAAO,SAAS,CAAC;KAClB;IACD,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,KAAK,EAAE;QACzD,OAAO,SAAS,CAAC;KAClB;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC"} | ||||
							
								
								
									
										28
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| /** | ||||
|  * Typing for the parts of tsconfig that we care about | ||||
|  */ | ||||
| export interface Tsconfig { | ||||
|     extends?: string | string[]; | ||||
|     compilerOptions?: { | ||||
|         baseUrl?: string; | ||||
|         paths?: { | ||||
|             [key: string]: Array<string>; | ||||
|         }; | ||||
|         strict?: boolean; | ||||
|     }; | ||||
| } | ||||
| export interface TsConfigLoaderResult { | ||||
|     tsConfigPath: string | undefined; | ||||
|     baseUrl: string | undefined; | ||||
|     paths: { | ||||
|         [key: string]: Array<string>; | ||||
|     } | undefined; | ||||
| } | ||||
| export interface TsConfigLoaderParams { | ||||
|     getEnv: (key: string) => string | undefined; | ||||
|     cwd: string; | ||||
|     loadSync?(cwd: string, filename?: string, baseUrl?: string): TsConfigLoaderResult; | ||||
| } | ||||
| export declare function tsConfigLoader({ getEnv, cwd, loadSync, }: TsConfigLoaderParams): TsConfigLoaderResult; | ||||
| export declare function walkForTsConfig(directory: string, readdirSync?: (path: string) => string[]): string | undefined; | ||||
| export declare function loadTsconfig(configFilePath: string, existsSync?: (path: string) => boolean, readFileSync?: (filename: string) => string): Tsconfig | undefined; | ||||
							
								
								
									
										148
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										148
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,148 @@ | ||||
| "use strict"; | ||||
| var __assign = (this && this.__assign) || function () { | ||||
|     __assign = Object.assign || function(t) { | ||||
|         for (var s, i = 1, n = arguments.length; i < n; i++) { | ||||
|             s = arguments[i]; | ||||
|             for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||||
|                 t[p] = s[p]; | ||||
|         } | ||||
|         return t; | ||||
|     }; | ||||
|     return __assign.apply(this, arguments); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||||
| exports.loadTsconfig = exports.walkForTsConfig = exports.tsConfigLoader = void 0; | ||||
| var path = require("path"); | ||||
| var fs = require("fs"); | ||||
| // eslint-disable-next-line @typescript-eslint/no-require-imports | ||||
| var JSON5 = require("json5"); | ||||
| // eslint-disable-next-line @typescript-eslint/no-require-imports | ||||
| var StripBom = require("strip-bom"); | ||||
| function tsConfigLoader(_a) { | ||||
|     var getEnv = _a.getEnv, cwd = _a.cwd, _b = _a.loadSync, loadSync = _b === void 0 ? loadSyncDefault : _b; | ||||
|     var TS_NODE_PROJECT = getEnv("TS_NODE_PROJECT"); | ||||
|     var TS_NODE_BASEURL = getEnv("TS_NODE_BASEURL"); | ||||
|     // tsconfig.loadSync handles if TS_NODE_PROJECT is a file or directory | ||||
|     // and also overrides baseURL if TS_NODE_BASEURL is available. | ||||
|     var loadResult = loadSync(cwd, TS_NODE_PROJECT, TS_NODE_BASEURL); | ||||
|     return loadResult; | ||||
| } | ||||
| exports.tsConfigLoader = tsConfigLoader; | ||||
| function loadSyncDefault(cwd, filename, baseUrl) { | ||||
|     // Tsconfig.loadSync uses path.resolve. This is why we can use an absolute path as filename | ||||
|     var configPath = resolveConfigPath(cwd, filename); | ||||
|     if (!configPath) { | ||||
|         return { | ||||
|             tsConfigPath: undefined, | ||||
|             baseUrl: undefined, | ||||
|             paths: undefined, | ||||
|         }; | ||||
|     } | ||||
|     var config = loadTsconfig(configPath); | ||||
|     return { | ||||
|         tsConfigPath: configPath, | ||||
|         baseUrl: baseUrl || | ||||
|             (config && config.compilerOptions && config.compilerOptions.baseUrl), | ||||
|         paths: config && config.compilerOptions && config.compilerOptions.paths, | ||||
|     }; | ||||
| } | ||||
| function resolveConfigPath(cwd, filename) { | ||||
|     if (filename) { | ||||
|         var absolutePath = fs.lstatSync(filename).isDirectory() | ||||
|             ? path.resolve(filename, "./tsconfig.json") | ||||
|             : path.resolve(cwd, filename); | ||||
|         return absolutePath; | ||||
|     } | ||||
|     if (fs.statSync(cwd).isFile()) { | ||||
|         return path.resolve(cwd); | ||||
|     } | ||||
|     var configAbsolutePath = walkForTsConfig(cwd); | ||||
|     return configAbsolutePath ? path.resolve(configAbsolutePath) : undefined; | ||||
| } | ||||
| function walkForTsConfig(directory, readdirSync) { | ||||
|     if (readdirSync === void 0) { readdirSync = fs.readdirSync; } | ||||
|     var files = readdirSync(directory); | ||||
|     var filesToCheck = ["tsconfig.json", "jsconfig.json"]; | ||||
|     for (var _i = 0, filesToCheck_1 = filesToCheck; _i < filesToCheck_1.length; _i++) { | ||||
|         var fileToCheck = filesToCheck_1[_i]; | ||||
|         if (files.indexOf(fileToCheck) !== -1) { | ||||
|             return path.join(directory, fileToCheck); | ||||
|         } | ||||
|     } | ||||
|     var parentDirectory = path.dirname(directory); | ||||
|     // If we reached the top | ||||
|     if (directory === parentDirectory) { | ||||
|         return undefined; | ||||
|     } | ||||
|     return walkForTsConfig(parentDirectory, readdirSync); | ||||
| } | ||||
| exports.walkForTsConfig = walkForTsConfig; | ||||
| function loadTsconfig(configFilePath,  | ||||
| // eslint-disable-next-line no-shadow | ||||
| existsSync, readFileSync) { | ||||
|     if (existsSync === void 0) { existsSync = fs.existsSync; } | ||||
|     if (readFileSync === void 0) { readFileSync = function (filename) { | ||||
|         return fs.readFileSync(filename, "utf8"); | ||||
|     }; } | ||||
|     if (!existsSync(configFilePath)) { | ||||
|         return undefined; | ||||
|     } | ||||
|     var configString = readFileSync(configFilePath); | ||||
|     var cleanedJson = StripBom(configString); | ||||
|     var config; | ||||
|     try { | ||||
|         config = JSON5.parse(cleanedJson); | ||||
|     } | ||||
|     catch (e) { | ||||
|         throw new Error("".concat(configFilePath, " is malformed ").concat(e.message)); | ||||
|     } | ||||
|     var extendedConfig = config.extends; | ||||
|     if (extendedConfig) { | ||||
|         var base = void 0; | ||||
|         if (Array.isArray(extendedConfig)) { | ||||
|             base = extendedConfig.reduce(function (currBase, extendedConfigElement) { | ||||
|                 return mergeTsconfigs(currBase, loadTsconfigFromExtends(configFilePath, extendedConfigElement, existsSync, readFileSync)); | ||||
|             }, {}); | ||||
|         } | ||||
|         else { | ||||
|             base = loadTsconfigFromExtends(configFilePath, extendedConfig, existsSync, readFileSync); | ||||
|         } | ||||
|         return mergeTsconfigs(base, config); | ||||
|     } | ||||
|     return config; | ||||
| } | ||||
| exports.loadTsconfig = loadTsconfig; | ||||
| /** | ||||
|  * Intended to be called only from loadTsconfig. | ||||
|  * Parameters don't have defaults because they should use the same as loadTsconfig. | ||||
|  */ | ||||
| function loadTsconfigFromExtends(configFilePath, extendedConfigValue,  | ||||
| // eslint-disable-next-line no-shadow | ||||
| existsSync, readFileSync) { | ||||
|     var _a; | ||||
|     if (typeof extendedConfigValue === "string" && | ||||
|         extendedConfigValue.indexOf(".json") === -1) { | ||||
|         extendedConfigValue += ".json"; | ||||
|     } | ||||
|     var currentDir = path.dirname(configFilePath); | ||||
|     var extendedConfigPath = path.join(currentDir, extendedConfigValue); | ||||
|     if (extendedConfigValue.indexOf("/") !== -1 && | ||||
|         extendedConfigValue.indexOf(".") !== -1 && | ||||
|         !existsSync(extendedConfigPath)) { | ||||
|         extendedConfigPath = path.join(currentDir, "node_modules", extendedConfigValue); | ||||
|     } | ||||
|     var config = loadTsconfig(extendedConfigPath, existsSync, readFileSync) || {}; | ||||
|     // baseUrl should be interpreted as relative to extendedConfigPath, | ||||
|     // but we need to update it so it is relative to the original tsconfig being loaded | ||||
|     if ((_a = config.compilerOptions) === null || _a === void 0 ? void 0 : _a.baseUrl) { | ||||
|         var extendsDir = path.dirname(extendedConfigValue); | ||||
|         config.compilerOptions.baseUrl = path.join(extendsDir, config.compilerOptions.baseUrl); | ||||
|     } | ||||
|     return config; | ||||
| } | ||||
| function mergeTsconfigs(base, config) { | ||||
|     base = base || {}; | ||||
|     config = config || {}; | ||||
|     return __assign(__assign(__assign({}, base), config), { compilerOptions: __assign(__assign({}, base.compilerOptions), config.compilerOptions) }); | ||||
| } | ||||
| //# sourceMappingURL=tsconfig-loader.js.map | ||||
							
								
								
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								frontend/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| {"version":3,"file":"tsconfig-loader.js","sourceRoot":"","sources":["../src/tsconfig-loader.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2BAA6B;AAC7B,uBAAyB;AACzB,iEAAiE;AACjE,6BAAgC;AAChC,iEAAiE;AACjE,oCAAuC;AA8BvC,SAAgB,cAAc,CAAC,EAIR;QAHrB,MAAM,YAAA,EACN,GAAG,SAAA,EACH,gBAA0B,EAA1B,QAAQ,mBAAG,eAAe,KAAA;IAE1B,IAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClD,IAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAElD,sEAAsE;IACtE,8DAA8D;IAC9D,IAAM,UAAU,GAAG,QAAQ,CAAC,GAAG,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;IACnE,OAAO,UAAU,CAAC;AACpB,CAAC;AAZD,wCAYC;AAED,SAAS,eAAe,CACtB,GAAW,EACX,QAAiB,EACjB,OAAgB;IAEhB,2FAA2F;IAE3F,IAAM,UAAU,GAAG,iBAAiB,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;IAEpD,IAAI,CAAC,UAAU,EAAE;QACf,OAAO;YACL,YAAY,EAAE,SAAS;YACvB,OAAO,EAAE,SAAS;YAClB,KAAK,EAAE,SAAS;SACjB,CAAC;KACH;IACD,IAAM,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;IAExC,OAAO;QACL,YAAY,EAAE,UAAU;QACxB,OAAO,EACL,OAAO;YACP,CAAC,MAAM,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC;QACtE,KAAK,EAAE,MAAM,IAAI,MAAM,CAAC,eAAe,IAAI,MAAM,CAAC,eAAe,CAAC,KAAK;KACxE,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,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