decentrand 3.21.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +201 -0
- package/README.md +56 -0
- package/abi/EstateRegistry.json +1226 -0
- package/abi/LANDRegistry.json +1372 -0
- package/abi/MANAToken.json +410 -0
- package/dist/commands/build.d.ts +3 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +108 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/coords.d.ts +3 -0
- package/dist/commands/coords.d.ts.map +1 -0
- package/dist/commands/coords.js +122 -0
- package/dist/commands/coords.js.map +1 -0
- package/dist/commands/deploy.d.ts +4 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +280 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/export.d.ts +3 -0
- package/dist/commands/export.d.ts.map +1 -0
- package/dist/commands/export.js +20 -0
- package/dist/commands/export.js.map +1 -0
- package/dist/commands/index.d.ts +3 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +19 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/info.d.ts +3 -0
- package/dist/commands/info.d.ts.map +1 -0
- package/dist/commands/info.js +186 -0
- package/dist/commands/info.js.map +1 -0
- package/dist/commands/init/help.d.ts +12 -0
- package/dist/commands/init/help.d.ts.map +1 -0
- package/dist/commands/init/help.js +41 -0
- package/dist/commands/init/help.js.map +1 -0
- package/dist/commands/init/index.d.ts +3 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +96 -0
- package/dist/commands/init/index.js.map +1 -0
- package/dist/commands/init/library.d.ts +1 -0
- package/dist/commands/init/library.d.ts.map +1 -0
- package/dist/commands/init/library.js +2 -0
- package/dist/commands/init/library.js.map +1 -0
- package/dist/commands/init/repositories.d.ts +11 -0
- package/dist/commands/init/repositories.d.ts.map +1 -0
- package/dist/commands/init/repositories.js +40 -0
- package/dist/commands/init/repositories.js.map +1 -0
- package/dist/commands/init/scene.d.ts +3 -0
- package/dist/commands/init/scene.d.ts.map +1 -0
- package/dist/commands/init/scene.js +56 -0
- package/dist/commands/init/scene.js.map +1 -0
- package/dist/commands/init/types.d.ts +22 -0
- package/dist/commands/init/types.d.ts.map +1 -0
- package/dist/commands/init/types.js +3 -0
- package/dist/commands/init/types.js.map +1 -0
- package/dist/commands/init/utils.d.ts +6 -0
- package/dist/commands/init/utils.d.ts.map +1 -0
- package/dist/commands/init/utils.js +76 -0
- package/dist/commands/init/utils.js.map +1 -0
- package/dist/commands/install.d.ts +3 -0
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/commands/install.js +92 -0
- package/dist/commands/install.js.map +1 -0
- package/dist/commands/pack.d.ts +3 -0
- package/dist/commands/pack.d.ts.map +1 -0
- package/dist/commands/pack.js +102 -0
- package/dist/commands/pack.js.map +1 -0
- package/dist/commands/start.d.ts +3 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +235 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status.d.ts +3 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +80 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/workspace.d.ts +3 -0
- package/dist/commands/workspace.d.ts.map +1 -0
- package/dist/commands/workspace.js +81 -0
- package/dist/commands/workspace.js.map +1 -0
- package/dist/commands/world-acl.d.ts +22 -0
- package/dist/commands/world-acl.d.ts.map +1 -0
- package/dist/commands/world-acl.js +262 -0
- package/dist/commands/world-acl.js.map +1 -0
- package/dist/config.d.ts +31 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +128 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/API.d.ts +23 -0
- package/dist/lib/API.d.ts.map +1 -0
- package/dist/lib/API.js +175 -0
- package/dist/lib/API.js.map +1 -0
- package/dist/lib/Decentraland.d.ts +75 -0
- package/dist/lib/Decentraland.d.ts.map +1 -0
- package/dist/lib/Decentraland.js +227 -0
- package/dist/lib/Decentraland.js.map +1 -0
- package/dist/lib/Ethereum.d.ts +52 -0
- package/dist/lib/Ethereum.d.ts.map +1 -0
- package/dist/lib/Ethereum.js +245 -0
- package/dist/lib/Ethereum.js.map +1 -0
- package/dist/lib/IEthereumDataProvider.d.ts +17 -0
- package/dist/lib/IEthereumDataProvider.d.ts.map +1 -0
- package/dist/lib/IEthereumDataProvider.js +3 -0
- package/dist/lib/IEthereumDataProvider.js.map +1 -0
- package/dist/lib/LinkerAPI.d.ts +28 -0
- package/dist/lib/LinkerAPI.d.ts.map +1 -0
- package/dist/lib/LinkerAPI.js +151 -0
- package/dist/lib/LinkerAPI.js.map +1 -0
- package/dist/lib/Preview.d.ts +17 -0
- package/dist/lib/Preview.d.ts.map +1 -0
- package/dist/lib/Preview.js +113 -0
- package/dist/lib/Preview.js.map +1 -0
- package/dist/lib/Project.d.ts +152 -0
- package/dist/lib/Project.d.ts.map +1 -0
- package/dist/lib/Project.js +446 -0
- package/dist/lib/Project.js.map +1 -0
- package/dist/lib/Workspace.d.ts +21 -0
- package/dist/lib/Workspace.d.ts.map +1 -0
- package/dist/lib/Workspace.js +140 -0
- package/dist/lib/Workspace.js.map +1 -0
- package/dist/lib/WorldsContentServer.d.ts +27 -0
- package/dist/lib/WorldsContentServer.d.ts.map +1 -0
- package/dist/lib/WorldsContentServer.js +79 -0
- package/dist/lib/WorldsContentServer.js.map +1 -0
- package/dist/lib/WorldsContentServerLinkerAPI.d.ts +21 -0
- package/dist/lib/WorldsContentServerLinkerAPI.d.ts.map +1 -0
- package/dist/lib/WorldsContentServerLinkerAPI.js +105 -0
- package/dist/lib/WorldsContentServerLinkerAPI.js.map +1 -0
- package/dist/lib/adapters/proto/broker.d.ts +2 -0
- package/dist/lib/adapters/proto/broker.d.ts.map +1 -0
- package/dist/lib/adapters/proto/broker.js +2189 -0
- package/dist/lib/adapters/proto/broker.js.map +1 -0
- package/dist/lib/adapters/proto/comms.d.ts +2 -0
- package/dist/lib/adapters/proto/comms.d.ts.map +1 -0
- package/dist/lib/adapters/proto/comms.js +965 -0
- package/dist/lib/adapters/proto/comms.js.map +1 -0
- package/dist/lib/adapters/ws.d.ts +12 -0
- package/dist/lib/adapters/ws.d.ts.map +1 -0
- package/dist/lib/adapters/ws.js +20 -0
- package/dist/lib/adapters/ws.js.map +1 -0
- package/dist/lib/content/ContentService.d.ts +27 -0
- package/dist/lib/content/ContentService.d.ts.map +1 -0
- package/dist/lib/content/ContentService.js +60 -0
- package/dist/lib/content/ContentService.js.map +1 -0
- package/dist/lib/content/types.d.ts +12 -0
- package/dist/lib/content/types.d.ts.map +1 -0
- package/dist/lib/content/types.js +3 -0
- package/dist/lib/content/types.js.map +1 -0
- package/dist/lib/controllers/bff.d.ts +8 -0
- package/dist/lib/controllers/bff.d.ts.map +1 -0
- package/dist/lib/controllers/bff.js +58 -0
- package/dist/lib/controllers/bff.js.map +1 -0
- package/dist/lib/controllers/debugger.d.ts +4 -0
- package/dist/lib/controllers/debugger.d.ts.map +1 -0
- package/dist/lib/controllers/debugger.js +42 -0
- package/dist/lib/controllers/debugger.js.map +1 -0
- package/dist/lib/controllers/ecs6-endpoints.d.ts +11 -0
- package/dist/lib/controllers/ecs6-endpoints.d.ts.map +1 -0
- package/dist/lib/controllers/ecs6-endpoints.js +543 -0
- package/dist/lib/controllers/ecs6-endpoints.js.map +1 -0
- package/dist/lib/controllers/legacy-comms-v1.d.ts +7 -0
- package/dist/lib/controllers/legacy-comms-v1.d.ts.map +1 -0
- package/dist/lib/controllers/legacy-comms-v1.js +98 -0
- package/dist/lib/controllers/legacy-comms-v1.js.map +1 -0
- package/dist/lib/smartItems/buildSmartItem.d.ts +2 -0
- package/dist/lib/smartItems/buildSmartItem.d.ts.map +1 -0
- package/dist/lib/smartItems/buildSmartItem.js +18 -0
- package/dist/lib/smartItems/buildSmartItem.js.map +1 -0
- package/dist/lib/smartItems/packProject.d.ts +2 -0
- package/dist/lib/smartItems/packProject.d.ts.map +1 -0
- package/dist/lib/smartItems/packProject.js +31 -0
- package/dist/lib/smartItems/packProject.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +151 -0
- package/dist/main.js.map +1 -0
- package/dist/project/installDependencies.d.ts +2 -0
- package/dist/project/installDependencies.d.ts.map +1 -0
- package/dist/project/installDependencies.js +57 -0
- package/dist/project/installDependencies.js.map +1 -0
- package/dist/project/isTypescriptProject.d.ts +2 -0
- package/dist/project/isTypescriptProject.d.ts.map +1 -0
- package/dist/project/isTypescriptProject.js +14 -0
- package/dist/project/isTypescriptProject.js.map +1 -0
- package/dist/project/projectInfo.d.ts +8 -0
- package/dist/project/projectInfo.d.ts.map +1 -0
- package/dist/project/projectInfo.js +89 -0
- package/dist/project/projectInfo.js.map +1 -0
- package/dist/project/updateBundleDependenciesField.d.ts +4 -0
- package/dist/project/updateBundleDependenciesField.d.ts.map +1 -0
- package/dist/project/updateBundleDependenciesField.js +67 -0
- package/dist/project/updateBundleDependenciesField.js.map +1 -0
- package/dist/sceneJson/index.d.ts +4 -0
- package/dist/sceneJson/index.d.ts.map +1 -0
- package/dist/sceneJson/index.js +24 -0
- package/dist/sceneJson/index.js.map +1 -0
- package/dist/sceneJson/lintSceneFile.d.ts +2 -0
- package/dist/sceneJson/lintSceneFile.d.ts.map +1 -0
- package/dist/sceneJson/lintSceneFile.js +13 -0
- package/dist/sceneJson/lintSceneFile.js.map +1 -0
- package/dist/sceneJson/utils.d.ts +3 -0
- package/dist/sceneJson/utils.d.ts.map +1 -0
- package/dist/sceneJson/utils.js +66 -0
- package/dist/sceneJson/utils.js.map +1 -0
- package/dist/utils/analytics.d.ts +42 -0
- package/dist/utils/analytics.d.ts.map +1 -0
- package/dist/utils/analytics.js +111 -0
- package/dist/utils/analytics.js.map +1 -0
- package/dist/utils/buildProject.d.ts +2 -0
- package/dist/utils/buildProject.d.ts.map +1 -0
- package/dist/utils/buildProject.js +26 -0
- package/dist/utils/buildProject.js.map +1 -0
- package/dist/utils/catalystPointers.d.ts +20 -0
- package/dist/utils/catalystPointers.d.ts.map +1 -0
- package/dist/utils/catalystPointers.js +51 -0
- package/dist/utils/catalystPointers.js.map +1 -0
- package/dist/utils/coordinateHelpers.d.ts +65 -0
- package/dist/utils/coordinateHelpers.d.ts.map +1 -0
- package/dist/utils/coordinateHelpers.js +126 -0
- package/dist/utils/coordinateHelpers.js.map +1 -0
- package/dist/utils/download.d.ts +3 -0
- package/dist/utils/download.d.ts.map +1 -0
- package/dist/utils/download.js +42 -0
- package/dist/utils/download.js.map +1 -0
- package/dist/utils/env.d.ts +6 -0
- package/dist/utils/env.d.ts.map +1 -0
- package/dist/utils/env.js +31 -0
- package/dist/utils/env.js.map +1 -0
- package/dist/utils/errors.d.ts +18 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +27 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/filesystem.d.ts +41 -0
- package/dist/utils/filesystem.d.ts.map +1 -0
- package/dist/utils/filesystem.js +84 -0
- package/dist/utils/filesystem.js.map +1 -0
- package/dist/utils/getDummyMappings.d.ts +3 -0
- package/dist/utils/getDummyMappings.d.ts.map +1 -0
- package/dist/utils/getDummyMappings.js +19 -0
- package/dist/utils/getDummyMappings.js.map +1 -0
- package/dist/utils/getProjectFilePaths.d.ts +2 -0
- package/dist/utils/getProjectFilePaths.d.ts.map +1 -0
- package/dist/utils/getProjectFilePaths.js +40 -0
- package/dist/utils/getProjectFilePaths.js.map +1 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +33 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/installedDependencies.d.ts +6 -0
- package/dist/utils/installedDependencies.d.ts.map +1 -0
- package/dist/utils/installedDependencies.js +44 -0
- package/dist/utils/installedDependencies.js.map +1 -0
- package/dist/utils/land.d.ts +4 -0
- package/dist/utils/land.d.ts.map +1 -0
- package/dist/utils/land.js +35 -0
- package/dist/utils/land.js.map +1 -0
- package/dist/utils/logging.d.ts +19 -0
- package/dist/utils/logging.d.ts.map +1 -0
- package/dist/utils/logging.js +97 -0
- package/dist/utils/logging.js.map +1 -0
- package/dist/utils/moduleHelpers.d.ts +22 -0
- package/dist/utils/moduleHelpers.d.ts.map +1 -0
- package/dist/utils/moduleHelpers.js +163 -0
- package/dist/utils/moduleHelpers.js.map +1 -0
- package/dist/utils/nodeAndNpmVersion.d.ts +5 -0
- package/dist/utils/nodeAndNpmVersion.d.ts.map +1 -0
- package/dist/utils/nodeAndNpmVersion.js +64 -0
- package/dist/utils/nodeAndNpmVersion.js.map +1 -0
- package/dist/utils/pathsExistOnDir.d.ts +2 -0
- package/dist/utils/pathsExistOnDir.d.ts.map +1 -0
- package/dist/utils/pathsExistOnDir.js +12 -0
- package/dist/utils/pathsExistOnDir.js.map +1 -0
- package/dist/utils/project.d.ts +29 -0
- package/dist/utils/project.d.ts.map +1 -0
- package/dist/utils/project.js +48 -0
- package/dist/utils/project.js.map +1 -0
- package/dist/utils/shellCommands.d.ts +19 -0
- package/dist/utils/shellCommands.d.ts.map +1 -0
- package/dist/utils/shellCommands.js +73 -0
- package/dist/utils/shellCommands.js.map +1 -0
- package/dist/utils/spinner.d.ts +6 -0
- package/dist/utils/spinner.d.ts.map +1 -0
- package/dist/utils/spinner.js +58 -0
- package/dist/utils/spinner.js.map +1 -0
- package/package.json +115 -0
- package/samples/workspace/Dockerfile +21 -0
- package/samples/workspace/package.json +16 -0
- package/sbzkmrj2.cjs +1 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY,QAAwB,MAAM,QAAQ,MAAM,kBAGpE,CAAA;AAED,eAAO,MAAM,eAAe,QAAwB,MAAM,QAAQ,MAAM,kBA8BvE,CAAA"}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.downloadRepoZip = exports.downloadFile = void 0;
|
7
|
+
const extract_zip_1 = __importDefault(require("extract-zip"));
|
8
|
+
const fs_1 = require("fs");
|
9
|
+
const fs_extra_1 = require("fs-extra");
|
10
|
+
const path_1 = __importDefault(require("path"));
|
11
|
+
const node_fetch_1 = __importDefault(require("node-fetch"));
|
12
|
+
const downloadFile = async function (url, dest) {
|
13
|
+
const data = await (await (0, node_fetch_1.default)(url)).arrayBuffer();
|
14
|
+
await (0, fs_extra_1.writeFile)(dest, Buffer.from(data));
|
15
|
+
};
|
16
|
+
exports.downloadFile = downloadFile;
|
17
|
+
const downloadRepoZip = async function (url, dest) {
|
18
|
+
const zipFilePath = path_1.default.resolve(dest, 'temp-zip-project.zip');
|
19
|
+
await (0, exports.downloadFile)(url, zipFilePath);
|
20
|
+
const oldFiles = await (0, fs_extra_1.readdir)(dest);
|
21
|
+
try {
|
22
|
+
await (0, extract_zip_1.default)(zipFilePath, { dir: dest });
|
23
|
+
}
|
24
|
+
catch (err) {
|
25
|
+
console.log(`Couldn't extract the zip of the repository.`, err);
|
26
|
+
throw err;
|
27
|
+
}
|
28
|
+
const newFiles = await (0, fs_extra_1.readdir)(dest);
|
29
|
+
const directoryCreated = newFiles.filter((value) => !oldFiles.includes(value));
|
30
|
+
if (directoryCreated.length !== 1) {
|
31
|
+
throw new Error('Please, make sure not to modify the directory while the example repository is downloading.');
|
32
|
+
}
|
33
|
+
const extractedPath = path_1.default.resolve(dest, directoryCreated[0]);
|
34
|
+
const filesToMove = await (0, fs_extra_1.readdir)(extractedPath);
|
35
|
+
for (const filePath of filesToMove) {
|
36
|
+
await (0, fs_extra_1.move)(path_1.default.resolve(extractedPath, filePath), path_1.default.resolve(dest, filePath));
|
37
|
+
}
|
38
|
+
(0, fs_1.rmdirSync)(extractedPath);
|
39
|
+
await (0, fs_extra_1.remove)(zipFilePath);
|
40
|
+
};
|
41
|
+
exports.downloadRepoZip = downloadRepoZip;
|
42
|
+
//# sourceMappingURL=download.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"download.js","sourceRoot":"","sources":["../../src/utils/download.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AACjC,2BAA8B;AAC9B,uCAA2D;AAC3D,gDAAuB;AACvB,4DAA8B;AAEvB,MAAM,YAAY,GAAG,KAAK,WAAW,GAAW,EAAE,IAAY;IACnE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,IAAA,oBAAK,EAAC,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;IACnD,MAAM,IAAA,oBAAS,EAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;AAC1C,CAAC,CAAA;AAHY,QAAA,YAAY,gBAGxB;AAEM,MAAM,eAAe,GAAG,KAAK,WAAW,GAAW,EAAE,IAAY;IACtE,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,sBAAsB,CAAC,CAAA;IAC9D,MAAM,IAAA,oBAAY,EAAC,GAAG,EAAE,WAAW,CAAC,CAAA;IAEpC,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAA;IAEpC,IAAI;QACF,MAAM,IAAA,qBAAO,EAAC,WAAW,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAA;KAC1C;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,GAAG,CAAC,CAAA;QAC/D,MAAM,GAAG,CAAA;KACV;IAED,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAA;IAEpC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;IAE9E,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE;QACjC,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC,CAAA;KAC9G;IAED,MAAM,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7D,MAAM,WAAW,GAAG,MAAM,IAAA,kBAAO,EAAC,aAAa,CAAC,CAAA;IAEhD,KAAK,MAAM,QAAQ,IAAI,WAAW,EAAE;QAClC,MAAM,IAAA,eAAI,EAAC,cAAI,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,EAAE,cAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAA;KAChF;IAED,IAAA,cAAS,EAAC,aAAa,CAAC,CAAA;IACxB,MAAM,IAAA,iBAAM,EAAC,WAAW,CAAC,CAAA;AAC3B,CAAC,CAAA;AA9BY,QAAA,eAAe,mBA8B3B"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export declare function isDevelopment(): boolean;
|
2
|
+
export declare function isDebug(): boolean;
|
3
|
+
export declare const isDev: boolean;
|
4
|
+
export declare function getProvider(): "https://rpc.decentraland.org/sepolia" | "https://rpc.decentraland.org/mainnet";
|
5
|
+
export declare function isEnvCi(): boolean;
|
6
|
+
//# sourceMappingURL=env.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../src/utils/env.ts"],"names":[],"mappings":"AAEA,wBAAgB,aAAa,YAW5B;AAED,wBAAgB,OAAO,YAEtB;AAED,eAAO,MAAM,KAAK,EAAE,OAAuC,CAAA;AAC3D,wBAAgB,WAAW,oFAE1B;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isEnvCi = exports.getProvider = exports.isDev = exports.isDebug = exports.isDevelopment = void 0;
|
4
|
+
const _1 = require(".");
|
5
|
+
function isDevelopment() {
|
6
|
+
if (!process.env.NODE_ENV) {
|
7
|
+
try {
|
8
|
+
require.resolve('decentraland-eth');
|
9
|
+
return true;
|
10
|
+
}
|
11
|
+
catch (e) {
|
12
|
+
return false;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
return process.env.NODE_ENV !== 'production';
|
16
|
+
}
|
17
|
+
exports.isDevelopment = isDevelopment;
|
18
|
+
function isDebug() {
|
19
|
+
return !!process.env.DEBUG;
|
20
|
+
}
|
21
|
+
exports.isDebug = isDebug;
|
22
|
+
exports.isDev = process.env.DCL_ENV === 'dev';
|
23
|
+
function getProvider() {
|
24
|
+
return exports.isDev ? 'https://rpc.decentraland.org/sepolia' : 'https://rpc.decentraland.org/mainnet';
|
25
|
+
}
|
26
|
+
exports.getProvider = getProvider;
|
27
|
+
function isEnvCi() {
|
28
|
+
return (0, _1.getOrElse)(process.env.CI, false);
|
29
|
+
}
|
30
|
+
exports.isEnvCi = isEnvCi;
|
31
|
+
//# sourceMappingURL=env.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/utils/env.ts"],"names":[],"mappings":";;;AAAA,wBAA6B;AAE7B,SAAgB,aAAa;IAC3B,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;QACzB,IAAI;YACF,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;YACnC,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,KAAK,CAAA;SACb;KACF;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAA;AAC9C,CAAC;AAXD,sCAWC;AAED,SAAgB,OAAO;IACrB,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAA;AAC5B,CAAC;AAFD,0BAEC;AAEY,QAAA,KAAK,GAAY,OAAO,CAAC,GAAG,CAAC,OAAO,KAAK,KAAK,CAAA;AAC3D,SAAgB,WAAW;IACzB,OAAO,aAAK,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,sCAAsC,CAAA;AAChG,CAAC;AAFD,kCAEC;AAED,SAAgB,OAAO;IACrB,OAAO,IAAA,YAAS,EAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAA;AACzC,CAAC;AAFD,0BAEC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export declare enum ErrorType {
|
2
|
+
INIT_ERROR = "InitError",
|
3
|
+
LINKER_ERROR = "LinkerError",
|
4
|
+
ETHEREUM_ERROR = "EthereumError",
|
5
|
+
PROJECT_ERROR = "ProjectError",
|
6
|
+
PREVIEW_ERROR = "PreviewError",
|
7
|
+
UPGRADE_ERROR = "UpgradeError",
|
8
|
+
INFO_ERROR = "InfoError",
|
9
|
+
STATUS_ERROR = "StatusError",
|
10
|
+
DEPLOY_ERROR = "DeployError",
|
11
|
+
API_ERROR = "APIError",
|
12
|
+
UPLOAD_ERROR = "UploadError",
|
13
|
+
CONTENT_SERVER_ERROR = "ContentServerError",
|
14
|
+
WORLD_CONTENT_SERVER_ERROR = "WorldContentServerError",
|
15
|
+
WORKSPACE_ERROR = "WorkspaceError"
|
16
|
+
}
|
17
|
+
export declare function fail(type: ErrorType, message: string): void;
|
18
|
+
//# sourceMappingURL=errors.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,UAAU,cAAc;IACxB,YAAY,gBAAgB;IAC5B,cAAc,kBAAkB;IAChC,aAAa,iBAAiB;IAC9B,aAAa,iBAAiB;IAC9B,aAAa,iBAAiB;IAC9B,UAAU,cAAc;IACxB,YAAY,gBAAgB;IAC5B,YAAY,gBAAgB;IAC5B,SAAS,aAAa;IACtB,YAAY,gBAAgB;IAC5B,oBAAoB,uBAAuB;IAC3C,0BAA0B,4BAA4B;IACtD,eAAe,mBAAmB;CACnC;AAED,wBAAgB,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAIpD"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fail = exports.ErrorType = void 0;
|
4
|
+
var ErrorType;
|
5
|
+
(function (ErrorType) {
|
6
|
+
ErrorType["INIT_ERROR"] = "InitError";
|
7
|
+
ErrorType["LINKER_ERROR"] = "LinkerError";
|
8
|
+
ErrorType["ETHEREUM_ERROR"] = "EthereumError";
|
9
|
+
ErrorType["PROJECT_ERROR"] = "ProjectError";
|
10
|
+
ErrorType["PREVIEW_ERROR"] = "PreviewError";
|
11
|
+
ErrorType["UPGRADE_ERROR"] = "UpgradeError";
|
12
|
+
ErrorType["INFO_ERROR"] = "InfoError";
|
13
|
+
ErrorType["STATUS_ERROR"] = "StatusError";
|
14
|
+
ErrorType["DEPLOY_ERROR"] = "DeployError";
|
15
|
+
ErrorType["API_ERROR"] = "APIError";
|
16
|
+
ErrorType["UPLOAD_ERROR"] = "UploadError";
|
17
|
+
ErrorType["CONTENT_SERVER_ERROR"] = "ContentServerError";
|
18
|
+
ErrorType["WORLD_CONTENT_SERVER_ERROR"] = "WorldContentServerError";
|
19
|
+
ErrorType["WORKSPACE_ERROR"] = "WorkspaceError";
|
20
|
+
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
21
|
+
function fail(type, message) {
|
22
|
+
const e = new Error(message);
|
23
|
+
e.name = type;
|
24
|
+
throw e;
|
25
|
+
}
|
26
|
+
exports.fail = fail;
|
27
|
+
//# sourceMappingURL=errors.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/utils/errors.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAeX;AAfD,WAAY,SAAS;IACnB,qCAAwB,CAAA;IACxB,yCAA4B,CAAA;IAC5B,6CAAgC,CAAA;IAChC,2CAA8B,CAAA;IAC9B,2CAA8B,CAAA;IAC9B,2CAA8B,CAAA;IAC9B,qCAAwB,CAAA;IACxB,yCAA4B,CAAA;IAC5B,yCAA4B,CAAA;IAC5B,mCAAsB,CAAA;IACtB,yCAA4B,CAAA;IAC5B,wDAA2C,CAAA;IAC3C,mEAAsD,CAAA;IACtD,+CAAkC,CAAA;AACpC,CAAC,EAfW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAepB;AAED,SAAgB,IAAI,CAAC,IAAe,EAAE,OAAe;IACnD,MAAM,CAAC,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;IAC5B,CAAC,CAAC,IAAI,GAAG,IAAI,CAAA;IACb,MAAM,CAAC,CAAA;AACT,CAAC;AAJD,oBAIC"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* Checks if a folder exists and creates it if necessary.
|
3
|
+
* @param path One or multiple paths to be checked.
|
4
|
+
*/
|
5
|
+
export declare function ensureFolder(path: string | Array<string>): Promise<void>;
|
6
|
+
/**
|
7
|
+
* Merges the provided content with a json file
|
8
|
+
* @param path The path to the subject json file
|
9
|
+
* @param content The content to be applied (as a plain object)
|
10
|
+
*/
|
11
|
+
export declare function writeJSON(path: string, content: any): Promise<void>;
|
12
|
+
/**
|
13
|
+
* Reads a file and parses it's JSON content
|
14
|
+
* @param path The path to the subject json file
|
15
|
+
*/
|
16
|
+
export declare function readJSON<T>(path: string): Promise<T>;
|
17
|
+
/**
|
18
|
+
* Reads a file and parses it's JSON content
|
19
|
+
* @param path The path to the subject json file
|
20
|
+
*/
|
21
|
+
export declare function readJSONSync<T>(path: string): T;
|
22
|
+
/**
|
23
|
+
* Returns true if the directory is empty
|
24
|
+
*/
|
25
|
+
export declare function isEmptyDirectory(dir?: string): Promise<boolean>;
|
26
|
+
/**
|
27
|
+
* Returns th name of the Home directory in a platform-independent way.
|
28
|
+
* @returns `USERPROFILE` or `HOME`
|
29
|
+
*/
|
30
|
+
export declare function getUserHome(): string;
|
31
|
+
export declare type PackageJson<T = Record<string, unknown>> = {
|
32
|
+
name: string;
|
33
|
+
version: string;
|
34
|
+
main?: string;
|
35
|
+
dependencies?: Record<string, string>;
|
36
|
+
devDependencies?: Record<string, string>;
|
37
|
+
peerDependencies?: Record<string, string>;
|
38
|
+
bundledDependencies?: string[];
|
39
|
+
bundleDependencies?: string[];
|
40
|
+
} & T;
|
41
|
+
//# sourceMappingURL=filesystem.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesystem.d.ts","sourceRoot":"","sources":["../../src/utils/filesystem.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkB9E;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAYzE;AAED;;;GAGG;AACH,wBAAsB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAG1D;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAG/C;AAED;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,GAAE,MAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAG1E;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAEpC;AAED,oBAAY,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACrC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEzC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAA;IAC9B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,GAAG,CAAC,CAAA"}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getUserHome = exports.isEmptyDirectory = exports.readJSONSync = exports.readJSON = exports.writeJSON = exports.ensureFolder = void 0;
|
7
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
8
|
+
/**
|
9
|
+
* Checks if a folder exists and creates it if necessary.
|
10
|
+
* @param path One or multiple paths to be checked.
|
11
|
+
*/
|
12
|
+
async function ensureFolder(path) {
|
13
|
+
if (typeof path === 'string') {
|
14
|
+
if (await fs_extra_1.default.pathExists(path)) {
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
await fs_extra_1.default.mkdir(path);
|
18
|
+
}
|
19
|
+
if (Array.isArray(path)) {
|
20
|
+
if (path.length === 0) {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
else if (path.length === 1) {
|
24
|
+
return ensureFolder(path[0]);
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
await ensureFolder(path[0]);
|
28
|
+
await ensureFolder(path.slice(1));
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
exports.ensureFolder = ensureFolder;
|
33
|
+
/**
|
34
|
+
* Merges the provided content with a json file
|
35
|
+
* @param path The path to the subject json file
|
36
|
+
* @param content The content to be applied (as a plain object)
|
37
|
+
*/
|
38
|
+
async function writeJSON(path, content) {
|
39
|
+
let currentFile;
|
40
|
+
try {
|
41
|
+
currentFile = await readJSON(path);
|
42
|
+
}
|
43
|
+
catch (e) {
|
44
|
+
currentFile = {};
|
45
|
+
}
|
46
|
+
const strContent = JSON.stringify(Object.assign(Object.assign({}, currentFile), content), null, 2);
|
47
|
+
return fs_extra_1.default.outputFile(path, strContent);
|
48
|
+
}
|
49
|
+
exports.writeJSON = writeJSON;
|
50
|
+
/**
|
51
|
+
* Reads a file and parses it's JSON content
|
52
|
+
* @param path The path to the subject json file
|
53
|
+
*/
|
54
|
+
async function readJSON(path) {
|
55
|
+
const content = await fs_extra_1.default.readFile(path, 'utf-8');
|
56
|
+
return JSON.parse(content);
|
57
|
+
}
|
58
|
+
exports.readJSON = readJSON;
|
59
|
+
/**
|
60
|
+
* Reads a file and parses it's JSON content
|
61
|
+
* @param path The path to the subject json file
|
62
|
+
*/
|
63
|
+
function readJSONSync(path) {
|
64
|
+
const content = fs_extra_1.default.readFileSync(path, 'utf-8');
|
65
|
+
return JSON.parse(content);
|
66
|
+
}
|
67
|
+
exports.readJSONSync = readJSONSync;
|
68
|
+
/**
|
69
|
+
* Returns true if the directory is empty
|
70
|
+
*/
|
71
|
+
async function isEmptyDirectory(dir = '.') {
|
72
|
+
const files = await fs_extra_1.default.readdir(dir);
|
73
|
+
return files.length === 0;
|
74
|
+
}
|
75
|
+
exports.isEmptyDirectory = isEmptyDirectory;
|
76
|
+
/**
|
77
|
+
* Returns th name of the Home directory in a platform-independent way.
|
78
|
+
* @returns `USERPROFILE` or `HOME`
|
79
|
+
*/
|
80
|
+
function getUserHome() {
|
81
|
+
return process.env[process.platform === 'win32' ? 'USERPROFILE' : 'HOME'] || '';
|
82
|
+
}
|
83
|
+
exports.getUserHome = getUserHome;
|
84
|
+
//# sourceMappingURL=filesystem.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"filesystem.js","sourceRoot":"","sources":["../../src/utils/filesystem.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAyB;AAEzB;;;GAGG;AACI,KAAK,UAAU,YAAY,CAAC,IAA4B;IAC7D,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,IAAI,MAAM,kBAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;YAC7B,OAAM;SACP;QACD,MAAM,kBAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;KACrB;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACvB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACrB,OAAM;SACP;aAAM,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YAC5B,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SAC7B;aAAM;YACL,MAAM,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;YAC3B,MAAM,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;SAClC;KACF;AACH,CAAC;AAlBD,oCAkBC;AAED;;;;GAIG;AACI,KAAK,UAAU,SAAS,CAAC,IAAY,EAAE,OAAY;IACxD,IAAI,WAAW,CAAA;IAEf,IAAI;QACF,WAAW,GAAG,MAAM,QAAQ,CAAM,IAAI,CAAC,CAAA;KACxC;IAAC,OAAO,CAAC,EAAE;QACV,WAAW,GAAG,EAAE,CAAA;KACjB;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,iCAAM,WAAW,GAAK,OAAO,GAAI,IAAI,EAAE,CAAC,CAAC,CAAA;IAE1E,OAAO,kBAAE,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;AACxC,CAAC;AAZD,8BAYC;AAED;;;GAGG;AACI,KAAK,UAAU,QAAQ,CAAI,IAAY;IAC5C,MAAM,OAAO,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAChD,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAM,CAAA;AACjC,CAAC;AAHD,4BAGC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAAI,IAAY;IAC1C,MAAM,OAAO,GAAG,kBAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9C,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAM,CAAA;AACjC,CAAC;AAHD,oCAGC;AAED;;GAEG;AACI,KAAK,UAAU,gBAAgB,CAAC,MAAc,GAAG;IACtD,MAAM,KAAK,GAAG,MAAM,kBAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IACnC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAA;AAC3B,CAAC;AAHD,4CAGC;AAED;;;GAGG;AACH,SAAgB,WAAW;IACzB,OAAO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;AACjF,CAAC;AAFD,kCAEC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getDummyMappings.d.ts","sourceRoot":"","sources":["../../src/utils/getDummyMappings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,YAAY,CAgB1E"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
function getDummyMappings(filePaths) {
|
4
|
+
// In case of Windows
|
5
|
+
const finalPaths = filePaths.map((f) => f.replace(/\\/g, '/'));
|
6
|
+
const mappings = finalPaths.reduce((acc, f) => {
|
7
|
+
acc[f] = f;
|
8
|
+
return acc;
|
9
|
+
}, {});
|
10
|
+
return {
|
11
|
+
mappings,
|
12
|
+
contents: Object.entries(mappings).map(([file, hash]) => ({ file, hash })),
|
13
|
+
parcel_id: '0,0',
|
14
|
+
publisher: '0x0000000000000000000000000000000000000000',
|
15
|
+
root_cid: 'Qm0000000000000000000000000000000000000000'
|
16
|
+
};
|
17
|
+
}
|
18
|
+
exports.default = getDummyMappings;
|
19
|
+
//# sourceMappingURL=getDummyMappings.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getDummyMappings.js","sourceRoot":"","sources":["../../src/utils/getDummyMappings.ts"],"names":[],"mappings":";;AAEA,SAAwB,gBAAgB,CAAC,SAAmB;IAC1D,qBAAqB;IACrB,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAA;IAE9D,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC,GAA2B,EAAE,CAAC,EAAE,EAAE;QACpE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACV,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO;QACL,QAAQ;QACR,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1E,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,4CAA4C;QACvD,QAAQ,EAAE,4CAA4C;KACvD,CAAA;AACH,CAAC;AAhBD,mCAgBC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getProjectFilePaths.d.ts","sourceRoot":"","sources":["../../src/utils/getProjectFilePaths.ts"],"names":[],"mappings":"AAIA,wBAA8B,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAgC5G"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const path_1 = __importDefault(require("path"));
|
7
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
8
|
+
const ignore_1 = __importDefault(require("ignore"));
|
9
|
+
async function getProjectFilePaths(dir, ignoreFileContent) {
|
10
|
+
const fileNames = ignore_1.default()
|
11
|
+
.add(ignoreFileContent)
|
12
|
+
.filter(await fs_extra_1.default.readdir(dir));
|
13
|
+
const filePaths = fileNames.map((fileName) => path_1.default.resolve(dir, fileName));
|
14
|
+
const stats = await Promise.all(filePaths.map((filePath) => fs_extra_1.default.stat(filePath)));
|
15
|
+
const files = [];
|
16
|
+
const pendingPromises = [];
|
17
|
+
stats.forEach(async (stat, i) => {
|
18
|
+
if (stat.isDirectory()) {
|
19
|
+
const promise = new Promise((resolve, reject) => {
|
20
|
+
getProjectFilePaths(filePaths[i], ignoreFileContent)
|
21
|
+
.then((resolvedFilePaths) => {
|
22
|
+
const finals = resolvedFilePaths.map((f) => path_1.default.join(fileNames[i], f));
|
23
|
+
resolve(finals);
|
24
|
+
})
|
25
|
+
.catch(reject);
|
26
|
+
});
|
27
|
+
pendingPromises.push(promise);
|
28
|
+
}
|
29
|
+
else {
|
30
|
+
files.push(fileNames[i]);
|
31
|
+
}
|
32
|
+
});
|
33
|
+
const pResults = (await Promise.all(pendingPromises)).reduce((acc, r) => {
|
34
|
+
acc.push(...r);
|
35
|
+
return acc;
|
36
|
+
}, []);
|
37
|
+
return [...files, ...pResults];
|
38
|
+
}
|
39
|
+
exports.default = getProjectFilePaths;
|
40
|
+
//# sourceMappingURL=getProjectFilePaths.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getProjectFilePaths.js","sourceRoot":"","sources":["../../src/utils/getProjectFilePaths.ts"],"names":[],"mappings":";;;;;AAAA,gDAAuB;AACvB,wDAAyB;AACzB,oDAA2B;AAEZ,KAAK,UAAU,mBAAmB,CAAC,GAAW,EAAE,iBAA0B;IACvF,MAAM,SAAS,GAAI,gBAAc,EAAE;SAChC,GAAG,CAAC,iBAAiB,CAAC;SACtB,MAAM,CAAC,MAAM,kBAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAa,CAAA;IAC5C,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAA;IAC1E,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,kBAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC/E,MAAM,KAAK,GAAa,EAAE,CAAA;IAC1B,MAAM,eAAe,GAAuB,EAAE,CAAA;IAE9C,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;QAC9B,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE;YACtB,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBAC9C,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC;qBACjD,IAAI,CAAC,CAAC,iBAAiB,EAAE,EAAE;oBAC1B,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;oBACvE,OAAO,CAAC,MAAM,CAAC,CAAA;gBACjB,CAAC,CAAC;qBACD,KAAK,CAAC,MAAM,CAAC,CAAA;YAClB,CAAC,CAAC,CAAA;YAEF,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;SAC9B;aAAM;YACL,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;SACzB;IACH,CAAC,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,GAAa,EAAE,CAAM,EAAE,EAAE;QACrF,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QACd,OAAO,GAAG,CAAA;IACZ,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CAAC,GAAG,KAAK,EAAE,GAAG,QAAQ,CAAC,CAAA;AAChC,CAAC;AAhCD,sCAgCC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare function getOrElse(value: any, def: any): any;
|
2
|
+
/**
|
3
|
+
* Returns an object with the specified attributes with null as value
|
4
|
+
*/
|
5
|
+
export declare function createEmptyObj(attributes: string[], obj?: any): any;
|
6
|
+
/**
|
7
|
+
* Filter undefined keys from provided object
|
8
|
+
*/
|
9
|
+
export declare function removeEmptyKeys(obj: Record<string, unknown>): Record<string, unknown>;
|
10
|
+
export declare function isRecord(obj: unknown): obj is Record<string, unknown>;
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,OAE7C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,GAAG,GAAE,GAAQ,OAKjE;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2BAM3D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAErE"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isRecord = exports.removeEmptyKeys = exports.createEmptyObj = exports.getOrElse = void 0;
|
4
|
+
function getOrElse(value, def) {
|
5
|
+
return value !== undefined ? value : def;
|
6
|
+
}
|
7
|
+
exports.getOrElse = getOrElse;
|
8
|
+
/**
|
9
|
+
* Returns an object with the specified attributes with null as value
|
10
|
+
*/
|
11
|
+
function createEmptyObj(attributes, obj = {}) {
|
12
|
+
attributes.forEach((attr) => {
|
13
|
+
obj[attr] = null;
|
14
|
+
});
|
15
|
+
return obj;
|
16
|
+
}
|
17
|
+
exports.createEmptyObj = createEmptyObj;
|
18
|
+
/**
|
19
|
+
* Filter undefined keys from provided object
|
20
|
+
*/
|
21
|
+
function removeEmptyKeys(obj) {
|
22
|
+
const result = {};
|
23
|
+
Object.keys(obj)
|
24
|
+
.filter((k) => !!obj[k])
|
25
|
+
.forEach((k) => (result[k] = obj[k]));
|
26
|
+
return result;
|
27
|
+
}
|
28
|
+
exports.removeEmptyKeys = removeEmptyKeys;
|
29
|
+
function isRecord(obj) {
|
30
|
+
return typeof obj === 'object' && !Array.isArray(obj) && !!obj;
|
31
|
+
}
|
32
|
+
exports.isRecord = isRecord;
|
33
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,SAAS,CAAC,KAAU,EAAE,GAAQ;IAC5C,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAA;AAC1C,CAAC;AAFD,8BAEC;AAED;;GAEG;AACH,SAAgB,cAAc,CAAC,UAAoB,EAAE,MAAW,EAAE;IAChE,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1B,GAAG,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAClB,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAA;AACZ,CAAC;AALD,wCAKC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,GAA4B;IAC1D,MAAM,MAAM,GAA4B,EAAE,CAAA;IAC1C,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;SACb,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACvB,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IACvC,OAAO,MAAM,CAAA;AACf,CAAC;AAND,0CAMC;AAED,SAAgB,QAAQ,CAAC,GAAY;IACnC,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAA;AAChE,CAAC;AAFD,4BAEC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { PackageJson } from './filesystem';
|
2
|
+
declare type Dependencies = Pick<PackageJson, 'dependencies' | 'devDependencies' | 'bundledDependencies' | 'peerDependencies'>;
|
3
|
+
export declare function getDependencies(packageJSON: PackageJson): Required<Dependencies>;
|
4
|
+
export declare function getDecentralandDependencies(dependencies: Record<string, string>, workDir: string): Promise<string[]>;
|
5
|
+
export {};
|
6
|
+
//# sourceMappingURL=installedDependencies.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"installedDependencies.d.ts","sourceRoot":"","sources":["../../src/utils/installedDependencies.ts"],"names":[],"mappings":"AAGA,OAAO,EAAY,WAAW,EAAE,MAAM,cAAc,CAAA;AAIpD,aAAK,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,cAAc,GAAG,iBAAiB,GAAG,qBAAqB,GAAG,kBAAkB,CAAC,CAAA;AAStH,wBAAgB,eAAe,CAAC,WAAW,EAAE,WAAW,GAAG,QAAQ,CAAC,YAAY,CAAC,CAkBhF;AAMD,wBAAsB,2BAA2B,CAC/C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,EAAE,CAAC,CAcnB"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.getDecentralandDependencies = exports.getDependencies = void 0;
|
7
|
+
const fs_extra_1 = __importDefault(require("fs-extra"));
|
8
|
+
const path_1 = __importDefault(require("path"));
|
9
|
+
const filesystem_1 = require("./filesystem");
|
10
|
+
const parseBundled = (dependencies) => {
|
11
|
+
if (dependencies instanceof Array) {
|
12
|
+
return dependencies;
|
13
|
+
}
|
14
|
+
return [];
|
15
|
+
};
|
16
|
+
function getDependencies(packageJSON) {
|
17
|
+
const { bundleDependencies = [], bundledDependencies = [], dependencies = {}, devDependencies = {}, peerDependencies = {} } = packageJSON;
|
18
|
+
const bundled = [...parseBundled(bundleDependencies), ...parseBundled(bundledDependencies)].filter((b) => typeof b === 'string');
|
19
|
+
return {
|
20
|
+
dependencies,
|
21
|
+
devDependencies,
|
22
|
+
peerDependencies,
|
23
|
+
bundledDependencies: bundled
|
24
|
+
};
|
25
|
+
}
|
26
|
+
exports.getDependencies = getDependencies;
|
27
|
+
function getPath(workDir, name) {
|
28
|
+
return path_1.default.resolve(workDir, 'node_modules', name, 'package.json');
|
29
|
+
}
|
30
|
+
async function getDecentralandDependencies(dependencies, workDir) {
|
31
|
+
const dependenciesName = [];
|
32
|
+
for (const dependency of Object.keys(dependencies)) {
|
33
|
+
const modulePath = getPath(workDir, dependency);
|
34
|
+
if (fs_extra_1.default.pathExistsSync(modulePath)) {
|
35
|
+
const pkgJson = await (0, filesystem_1.readJSON)(modulePath);
|
36
|
+
if (pkgJson.decentralandLibrary && pkgJson.name && pkgJson.version) {
|
37
|
+
dependenciesName.push(dependency);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return dependenciesName;
|
42
|
+
}
|
43
|
+
exports.getDecentralandDependencies = getDecentralandDependencies;
|
44
|
+
//# sourceMappingURL=installedDependencies.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"installedDependencies.js","sourceRoot":"","sources":["../../src/utils/installedDependencies.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAyB;AACzB,gDAAuB;AAEvB,6CAAoD;AAMpD,MAAM,YAAY,GAAG,CAAC,YAAqB,EAAE,EAAE;IAC7C,IAAI,YAAY,YAAY,KAAK,EAAE;QACjC,OAAO,YAAY,CAAA;KACpB;IACD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAED,SAAgB,eAAe,CAAC,WAAwB;IACtD,MAAM,EACJ,kBAAkB,GAAG,EAAE,EACvB,mBAAmB,GAAG,EAAE,EACxB,YAAY,GAAG,EAAE,EACjB,eAAe,GAAG,EAAE,EACpB,gBAAgB,GAAG,EAAE,EACtB,GAAG,WAAW,CAAA;IACf,MAAM,OAAO,GAAG,CAAC,GAAG,YAAY,CAAC,kBAAkB,CAAC,EAAE,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAM,CAChG,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,CAC7B,CAAA;IAED,OAAO;QACL,YAAY;QACZ,eAAe;QACf,gBAAgB;QAChB,mBAAmB,EAAE,OAAO;KAC7B,CAAA;AACH,CAAC;AAlBD,0CAkBC;AAED,SAAS,OAAO,CAAC,OAAe,EAAE,IAAY;IAC5C,OAAO,cAAI,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,cAAc,CAAC,CAAA;AACpE,CAAC;AAEM,KAAK,UAAU,2BAA2B,CAC/C,YAAoC,EACpC,OAAe;IAEf,MAAM,gBAAgB,GAAG,EAAE,CAAA;IAC3B,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;QAClD,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;QAE/C,IAAI,kBAAE,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE;YACjC,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAQ,EAAsB,UAAU,CAAC,CAAA;YAC/D,IAAI,OAAO,CAAC,mBAAmB,IAAI,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,OAAO,EAAE;gBAClE,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;aAClC;SACF;KACF;IAED,OAAO,gBAAgB,CAAA;AACzB,CAAC;AAjBD,kEAiBC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"land.d.ts","sourceRoot":"","sources":["../../src/utils/land.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE1C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,QAAQ,CAMpE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,OA0BpC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.parseTarget = exports.filterAndFillEmpty = void 0;
|
4
|
+
function filterAndFillEmpty(data, def) {
|
5
|
+
if (!data) {
|
6
|
+
return { name: def || '', description: def || '' };
|
7
|
+
}
|
8
|
+
return { name: data.name || def, description: data.description || def };
|
9
|
+
}
|
10
|
+
exports.filterAndFillEmpty = filterAndFillEmpty;
|
11
|
+
function parseTarget(args) {
|
12
|
+
const args1 = parseInt(args[1], 10);
|
13
|
+
if (Number.isInteger(args1) && args1 < 0) {
|
14
|
+
let coords = '-';
|
15
|
+
for (let i = 0; i < args.length; i++) {
|
16
|
+
if (args[i] === '-,') {
|
17
|
+
coords += ',';
|
18
|
+
continue;
|
19
|
+
}
|
20
|
+
const uint = args[i].substring(1);
|
21
|
+
if (!Number.isInteger(parseInt(uint, 10))) {
|
22
|
+
continue;
|
23
|
+
}
|
24
|
+
if (args[i - 1] === '--') {
|
25
|
+
coords += `-${uint}`;
|
26
|
+
continue;
|
27
|
+
}
|
28
|
+
coords += uint;
|
29
|
+
}
|
30
|
+
return coords;
|
31
|
+
}
|
32
|
+
return args[1];
|
33
|
+
}
|
34
|
+
exports.parseTarget = parseTarget;
|
35
|
+
//# sourceMappingURL=land.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"land.js","sourceRoot":"","sources":["../../src/utils/land.ts"],"names":[],"mappings":";;;AAEA,SAAgB,kBAAkB,CAAC,IAAS,EAAE,GAAY;IACxD,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,CAAA;KACnD;IAED,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,IAAI,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,GAAG,EAAE,CAAA;AACzE,CAAC;AAND,gDAMC;AAED,SAAgB,WAAW,CAAC,IAAS;IACnC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IACnC,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,EAAE;QACxC,IAAI,MAAM,GAAG,GAAG,CAAA;QAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE;gBACpB,MAAM,IAAI,GAAG,CAAA;gBACb,SAAQ;aACT;YAED,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YACjC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE;gBACzC,SAAQ;aACT;YAED,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,IAAI,EAAE;gBACxB,MAAM,IAAI,IAAI,IAAI,EAAE,CAAA;gBACpB,SAAQ;aACT;YAED,MAAM,IAAI,IAAI,CAAA;SACf;QACD,OAAO,MAAM,CAAA;KACd;IAED,OAAO,IAAI,CAAC,CAAC,CAAC,CAAA;AAChB,CAAC;AA1BD,kCA0BC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare function debug(...messages: any[]): void;
|
2
|
+
export declare function error(message: string): string;
|
3
|
+
export declare function warning(message: string): string;
|
4
|
+
export declare function tabulate(spaces?: number): string;
|
5
|
+
export declare function isEmpty(obj: Record<string, unknown>): boolean;
|
6
|
+
export declare function formatDictionary(obj: Record<string, unknown>, options: {
|
7
|
+
spacing: number;
|
8
|
+
padding: number;
|
9
|
+
}, level?: number, context?: 'array' | 'object'): string;
|
10
|
+
export declare function formatList(list: Array<any>, options: {
|
11
|
+
spacing: number;
|
12
|
+
padding: number;
|
13
|
+
}, level?: number, _context?: 'array' | 'object'): string;
|
14
|
+
export declare function formatOutdatedMessage(arg: {
|
15
|
+
package: string;
|
16
|
+
installedVersion: string;
|
17
|
+
latestVersion: string;
|
18
|
+
}): string;
|
19
|
+
//# sourceMappingURL=logging.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/utils/logging.ts"],"names":[],"mappings":"AAKA,wBAAgB,KAAK,CAAC,GAAG,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,CAI9C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED,wBAAgB,QAAQ,CAAC,MAAM,GAAE,MAAU,UAE1C;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAOnD;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC7C,KAAK,GAAE,MAAU,EACjB,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAC3B,MAAM,CAuBR;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAChB,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAC7C,KAAK,GAAE,MAAU,EACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAC5B,MAAM,CAoBR;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE;IACzC,OAAO,EAAE,MAAM,CAAA;IACf,gBAAgB,EAAE,MAAM,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;CACtB,GAAG,MAAM,CAST"}
|