@dcl/sdk-commands 7.9.6-16908909596.commit-3302d67 → 7.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/build/index.js.map +1 -1
- package/dist/commands/deploy/index.d.ts +6 -1
- package/dist/commands/deploy/index.js +27 -8
- package/dist/commands/deploy/index.js.map +1 -1
- package/dist/commands/export-static/index.js +5 -4
- package/dist/commands/export-static/index.js.map +1 -1
- package/dist/commands/init/index.js +5 -4
- package/dist/commands/init/index.js.map +1 -1
- package/dist/commands/quests/index.js +13 -9
- package/dist/commands/quests/index.js.map +1 -1
- package/dist/commands/start/explorer-alpha.js +21 -14
- package/dist/commands/start/explorer-alpha.js.map +1 -1
- package/dist/commands/start/index.d.ts +2 -4
- package/dist/commands/start/index.js +29 -50
- package/dist/commands/start/index.js.map +1 -1
- package/dist/commands/start/server/file-watch-notifier.d.ts +1 -1
- package/dist/commands/start/server/file-watch-notifier.js +3 -9
- package/dist/commands/start/server/file-watch-notifier.js.map +1 -1
- package/dist/components/config.js +2 -1
- package/dist/components/config.js.map +1 -1
- package/dist/locales/en.json +75 -0
- package/dist/locales/es.json +75 -0
- package/dist/locales/zh.json +75 -0
- package/dist/logic/account.js +5 -1
- package/dist/logic/account.js.map +1 -1
- package/dist/logic/args.js +2 -1
- package/dist/logic/args.js.map +1 -1
- package/dist/logic/bundle.js +34 -7
- package/dist/logic/bundle.js.map +1 -1
- package/dist/logic/commands.js +6 -2
- package/dist/logic/commands.js.map +1 -1
- package/dist/logic/debounce.d.ts +1 -0
- package/dist/logic/debounce.js +12 -0
- package/dist/logic/debounce.js.map +1 -0
- package/dist/logic/error.d.ts +6 -1
- package/dist/logic/error.js +6 -0
- package/dist/logic/error.js.map +1 -1
- package/dist/logic/lang.d.ts +7 -0
- package/dist/logic/lang.js +40 -0
- package/dist/logic/lang.js.map +1 -0
- package/dist/logic/portable-experience-sw-validations.js +6 -2
- package/dist/logic/portable-experience-sw-validations.js.map +1 -1
- package/dist/logic/project-files.js +3 -2
- package/dist/logic/project-files.js.map +1 -1
- package/dist/logic/project-validations.js +3 -2
- package/dist/logic/project-validations.js.map +1 -1
- package/dist/logic/scene-validations.js +13 -8
- package/dist/logic/scene-validations.js.map +1 -1
- package/dist/logic/workspace-validations.js +6 -2
- package/dist/logic/workspace-validations.js.map +1 -1
- package/dist/run-command.js +10 -5
- package/dist/run-command.js.map +1 -1
- package/package.json +9 -8
- package/dist/logic/dao-explorer.d.ts +0 -3
- package/dist/logic/dao-explorer.js +0 -156
- package/dist/logic/dao-explorer.js.map +0 -1
@@ -51,7 +51,6 @@ const exit_signal_1 = require("../../components/exit-signal");
|
|
51
51
|
const workspace_validations_1 = require("../../logic/workspace-validations");
|
52
52
|
const beautiful_logs_1 = require("../../logic/beautiful-logs");
|
53
53
|
const project_validations_1 = require("../../logic/project-validations");
|
54
|
-
const dao_explorer_1 = require("../../logic/dao-explorer");
|
55
54
|
const explorer_alpha_1 = require("./explorer-alpha");
|
56
55
|
exports.args = (0, args_1.declareArgs)({
|
57
56
|
'--dir': String,
|
@@ -69,20 +68,18 @@ exports.args = (0, args_1.declareArgs)({
|
|
69
68
|
'-b': '--no-browser',
|
70
69
|
'-w': '--no-watch',
|
71
70
|
'--skip-build': Boolean,
|
72
|
-
'--no-dao-explorer': Boolean,
|
73
71
|
'--data-layer': Boolean,
|
74
|
-
'-e': '--no-dao-explorer',
|
75
|
-
'--customEntryPoint': Boolean,
|
76
72
|
'--explorer-alpha': Boolean,
|
77
73
|
'--hub': Boolean,
|
78
74
|
// Params related to the explorer-alpha
|
79
75
|
'--debug': Boolean,
|
80
76
|
'--dclenv': String,
|
81
77
|
'--realm': String,
|
82
|
-
'--local-scene':
|
78
|
+
'--local-scene': Boolean,
|
83
79
|
'--position': String,
|
84
80
|
'--skip-auth-screen': Boolean,
|
85
|
-
'--landscape-terrain-enabled': Boolean
|
81
|
+
'--landscape-terrain-enabled': Boolean,
|
82
|
+
'-n': Boolean
|
86
83
|
});
|
87
84
|
async function help(options) {
|
88
85
|
options.components.logger.log(`
|
@@ -90,21 +87,22 @@ async function help(options) {
|
|
90
87
|
|
91
88
|
Options:
|
92
89
|
|
93
|
-
-h, --help
|
94
|
-
-p, --port
|
95
|
-
-d, --no-debug
|
96
|
-
-b, --no-browser
|
97
|
-
-w, --no-watch
|
98
|
-
-c, --ci
|
99
|
-
--web3
|
100
|
-
--skip-build
|
101
|
-
--debug
|
102
|
-
--dclenv
|
103
|
-
--realm
|
104
|
-
--local-scene
|
105
|
-
--position
|
106
|
-
--skip-auth-screen
|
107
|
-
--landscape-terrain-enabled
|
90
|
+
-h, --help Displays complete help
|
91
|
+
-p, --port Select a custom port for the development server
|
92
|
+
-d, --no-debug Disable debugging panel
|
93
|
+
-b, --no-browser Do not open a new browser window
|
94
|
+
-w, --no-watch Do not open watch for filesystem changes
|
95
|
+
-c, --ci Run the parcel previewer on a remote unix server
|
96
|
+
--web3 Connects preview to browser wallet to use the associated avatar and account
|
97
|
+
--skip-build Skip build and only serve the files in preview mode
|
98
|
+
--debug Enables Debug panel mode inside DCL Explorer (default=true)
|
99
|
+
--dclenv Decentraland Environment. Which environment to use for the content. This determines the catalyst server used, asset-bundles, etc. Possible values: org, zone, today. (default=org)
|
100
|
+
--realm Realm used to serve the content. (default=Localhost)
|
101
|
+
--local-scene Enable local scene development.
|
102
|
+
--position Initial Position to start the explorer. (default=position defined at scene.json)
|
103
|
+
--skip-auth-screen Skip the auth screen (accepts 'true' or 'false').
|
104
|
+
--landscape-terrain-enabled Enable landscape terrain.
|
105
|
+
-n Open a new instance of the Client even if one is already running.
|
108
106
|
|
109
107
|
|
110
108
|
Examples:
|
@@ -124,8 +122,7 @@ async function main(options) {
|
|
124
122
|
const workingDirectory = path.resolve(process.cwd(), options.args['--dir'] || '.');
|
125
123
|
const isCi = options.args['--ci'] || process.env.CI || false;
|
126
124
|
const debug = !options.args['--no-debug'] && !isCi;
|
127
|
-
const
|
128
|
-
const openBrowser = !options.args['--no-browser'] && !experimentalDaoExplorer && !isCi;
|
125
|
+
const openBrowser = !options.args['--no-browser'] && !isCi;
|
129
126
|
const build = !options.args['--skip-build'];
|
130
127
|
const watch = !options.args['--no-watch'];
|
131
128
|
const withDataLayer = options.args['--data-layer'];
|
@@ -134,9 +131,6 @@ async function main(options) {
|
|
134
131
|
const isHub = !!options.args['--hub'];
|
135
132
|
let hasSmartWearable = false;
|
136
133
|
const workspace = await (0, workspace_validations_1.getValidWorkspace)(options.components, workingDirectory);
|
137
|
-
if (experimentalDaoExplorer) {
|
138
|
-
await (0, dao_explorer_1.ensureDaoExplorer)(options.components, workspace.rootWorkingDirectory);
|
139
|
-
}
|
140
134
|
/* istanbul ignore if */
|
141
135
|
if (workspace.projects.length > 1)
|
142
136
|
(0, beautiful_logs_1.printWarning)(options.components.logger, 'Support for multiple projects is still experimental.');
|
@@ -148,15 +142,7 @@ async function main(options) {
|
|
148
142
|
// first run `npm run build`, this can be disabled with --skip-build
|
149
143
|
// then start the embedded compiler, this can be disabled with --no-watch
|
150
144
|
if (watch || build) {
|
151
|
-
await (0, build_1.buildScene)({
|
152
|
-
...options,
|
153
|
-
args: {
|
154
|
-
'--dir': project.workingDirectory,
|
155
|
-
'--watch': watch,
|
156
|
-
_: [],
|
157
|
-
'--customEntryPoint': !!options.args['--customEntryPoint']
|
158
|
-
}
|
159
|
-
}, project);
|
145
|
+
await (0, build_1.buildScene)({ ...options, args: { '--dir': project.workingDirectory, '--watch': watch, _: [] } }, project);
|
160
146
|
await (0, project_validations_1.startValidations)(options.components, project.workingDirectory);
|
161
147
|
}
|
162
148
|
// track the event
|
@@ -229,45 +215,38 @@ async function main(options) {
|
|
229
215
|
(networkInterfaces[dev] || []).forEach((details) => {
|
230
216
|
if (details.family === 'IPv4') {
|
231
217
|
const oldBackpack = 'DISABLE_backpack_editor_v2=&ENABLE_backpack_editor_v1';
|
232
|
-
|
233
|
-
let url = `${baseUrl}?position=${baseCoords.x}%2C${baseCoords.y}&${oldBackpack}`;
|
218
|
+
let addr = `http://${details.address}:${port}?position=${baseCoords.x}%2C${baseCoords.y}&${oldBackpack}`;
|
234
219
|
if (debug) {
|
235
|
-
|
220
|
+
addr = `${addr}&SCENE_DEBUG_PANEL`;
|
236
221
|
}
|
237
222
|
if (enableWeb3 || hasSmartWearable) {
|
238
|
-
|
223
|
+
addr = `${addr}&ENABLE_WEB3`;
|
239
224
|
}
|
240
|
-
availableURLs.push(
|
225
|
+
availableURLs.push(addr);
|
241
226
|
}
|
242
227
|
});
|
243
228
|
});
|
244
229
|
// Push localhost and 127.0.0.1 at top
|
245
230
|
const sortedURLs = availableURLs.sort((a, _b) => {
|
246
|
-
return a.
|
247
|
-
? -1
|
248
|
-
: 1;
|
231
|
+
return a.toLowerCase().includes('localhost') || a.includes('127.0.0.1') || a.includes('0.0.0.0') ? -1 : 1;
|
249
232
|
});
|
250
233
|
if (!explorerAlpha) {
|
251
234
|
for (const addr of sortedURLs) {
|
252
|
-
components.logger.log(` ${addr
|
235
|
+
components.logger.log(` ${addr}`);
|
253
236
|
}
|
254
237
|
}
|
255
238
|
if (!explorerAlpha) {
|
256
239
|
components.logger.log('\n Details:\n');
|
257
240
|
}
|
258
241
|
components.logger.log('\nPress CTRL+C to exit\n');
|
259
|
-
if (experimentalDaoExplorer && sortedURLs.length) {
|
260
|
-
(0, dao_explorer_1.runDaoExplorer)(components, sortedURLs[0].base, `${baseCoords.x},${baseCoords.y}`, workingDirectory);
|
261
|
-
}
|
262
|
-
// Open preferably localhost/127.0.0.1
|
263
242
|
if (explorerAlpha) {
|
264
|
-
const realm = new URL(sortedURLs[0]
|
243
|
+
const realm = new URL(sortedURLs[0]).origin;
|
265
244
|
await (0, explorer_alpha_1.runExplorerAlpha)(components, { cwd: workingDirectory, realm, baseCoords, isHub, args: options.args });
|
266
245
|
}
|
267
246
|
// Open preferably localhost/127.0.0.1
|
268
247
|
if (!explorerAlpha && openBrowser && sortedURLs.length) {
|
269
248
|
try {
|
270
|
-
await (0, open_1.default)(sortedURLs[0]
|
249
|
+
await (0, open_1.default)(sortedURLs[0]);
|
271
250
|
}
|
272
251
|
catch (_) {
|
273
252
|
components.logger.warn('Unable to open browser automatically.');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,gDAAuB;AAGvB,oCAAqC;AACrC,2CAA8C;AAC9C,qEAA6D;AAC7D,6DAAmD;AAEnD,4DAA2E;AAC3E,kEAA6D;AAC7D,oFAAwF;AACxF,+DAAwF;AACxF,oEAA0E;AAC1E,0DAAyE;AACzE,8CAAuD;AACvD,8CAA4D;AAC5D,sEAA0E;AAC1E,4CAA4C;AAC5C,oCAA+C;AAC/C,6DAA8D;AAC9D,0CAA6D;AAC7D,8DAAwE;AACxE,6EAAqE;AACrE,+DAAyG;AAEzG,yEAAkE;AAClE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,gDAAuB;AAGvB,oCAAqC;AACrC,2CAA8C;AAC9C,qEAA6D;AAC7D,6DAAmD;AAEnD,4DAA2E;AAC3E,kEAA6D;AAC7D,oFAAwF;AACxF,+DAAwF;AACxF,oEAA0E;AAC1E,0DAAyE;AACzE,8CAAuD;AACvD,8CAA4D;AAC5D,sEAA0E;AAC1E,4CAA4C;AAC5C,oCAA+C;AAC/C,6DAA8D;AAC9D,0CAA6D;AAC7D,8DAAwE;AACxE,6EAAqE;AACrE,+DAAyG;AAEzG,yEAAkE;AAClE,qDAAmD;AAOtC,QAAA,IAAI,GAAG,IAAA,kBAAW,EAAC;IAC9B,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,OAAO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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAC3G,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,aAAa,EAAE;gBAClB,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE;oBAC7B,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;iBACrC;aACF;YAED,IAAI,CAAC,aAAa,EAAE;gBAClB,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;aACxC;YACD,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAA;YAEjD,IAAI,aAAa,EAAE;gBACjB,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;gBAC3C,MAAM,IAAA,iCAAgB,EAAC,UAAU,EAAE,EAAE,GAAG,EAAE,gBAAgB,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAA;aAC5G;YAED,sCAAsC;YACtC,IAAI,CAAC,aAAa,IAAI,WAAW,IAAI,UAAU,CAAC,MAAM,EAAE;gBACtD,IAAI;oBACF,MAAM,IAAA,cAAI,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;iBAC1B;gBAAC,OAAO,CAAC,EAAE;oBACV,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;iBAChE;aACF;QACH,CAAC;KACF,CAAC,CAAA;IAEF,mEAAmE;IACnE,8EAA8E;IAC9E,UAAU;IACV,MAAM,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAA;AACjD,CAAC;AA7JD,oBA6JC"}
|
@@ -7,7 +7,7 @@ import { ProjectUnion } from '../../../logic/project-validations';
|
|
7
7
|
*
|
8
8
|
* IMPORTANT: this is a legacy protocol and needs to be revisited for SDK7
|
9
9
|
*/
|
10
|
-
export declare function wireFileWatcherToWebSockets(components: Pick<PreviewComponents, 'fs' | 'ws'>, projectRoot: string, projectKind: ProjectUnion['kind'], desktopClient: boolean): Promise<void>;
|
10
|
+
export declare function wireFileWatcherToWebSockets(components: Pick<PreviewComponents, 'fs' | 'ws' | 'logger'>, projectRoot: string, projectKind: ProjectUnion['kind'], desktopClient: boolean): Promise<void>;
|
11
11
|
/**
|
12
12
|
* @deprecated old explorer (kernel)
|
13
13
|
*/
|
@@ -12,13 +12,7 @@ const dcl_ignore_1 = require("../../../logic/dcl-ignore");
|
|
12
12
|
const routes_1 = require("./routes");
|
13
13
|
const project_files_1 = require("../../../logic/project-files");
|
14
14
|
const local_development_gen_1 = require("@dcl/protocol/out-js/decentraland/sdk/development/local_development.gen");
|
15
|
-
|
16
|
-
let debounceTimer;
|
17
|
-
return (...args) => {
|
18
|
-
clearTimeout(debounceTimer);
|
19
|
-
debounceTimer = setTimeout(() => callback(...args), delay);
|
20
|
-
};
|
21
|
-
}
|
15
|
+
const debounce_1 = require("../../../logic/debounce");
|
22
16
|
/**
|
23
17
|
* This function gets file modification events and sends them to all the connected
|
24
18
|
* websockets, it is used to hot-reload assets of the scene.
|
@@ -40,12 +34,12 @@ async function wireFileWatcherToWebSockets(components, projectRoot, projectKind,
|
|
40
34
|
return removeModel(sceneId, file);
|
41
35
|
}
|
42
36
|
})
|
43
|
-
.on('all', debounce(async (a, file) => {
|
37
|
+
.on('all', (0, debounce_1.debounce)(async (a, file) => {
|
44
38
|
if (desktopClient) {
|
45
39
|
updateScene(sceneId, file);
|
46
40
|
}
|
47
41
|
return __LEGACY__updateScene(projectRoot, routes_1.sceneUpdateClients, projectKind);
|
48
|
-
},
|
42
|
+
}, 800));
|
49
43
|
}
|
50
44
|
exports.wireFileWatcherToWebSockets = wireFileWatcherToWebSockets;
|
51
45
|
function isGLTFModel(file) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"file-watch-notifier.js","sourceRoot":"","sources":["../../../../src/commands/start/server/file-watch-notifier.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAkC;AAClC,gDAAuB;AACvB,2BAA8B;AAC9B,wDAA+B;AAC/B,0DAAgE;AAEhE,qCAA6C;AAE7C,gEAAiE;AACjE,mHAGgF;
|
1
|
+
{"version":3,"file":"file-watch-notifier.js","sourceRoot":"","sources":["../../../../src/commands/start/server/file-watch-notifier.ts"],"names":[],"mappings":";;;;;;AAAA,0CAAkC;AAClC,gDAAuB;AACvB,2BAA8B;AAC9B,wDAA+B;AAC/B,0DAAgE;AAEhE,qCAA6C;AAE7C,gEAAiE;AACjE,mHAGgF;AAChF,sDAAkD;AAElD;;;;;GAKG;AACI,KAAK,UAAU,2BAA2B,CAC/C,UAA2D,EAC3D,WAAmB,EACnB,WAAiC,EACjC,aAAsB;IAEtB,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAoB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAA;IACnE,MAAM,OAAO,GAAG,IAAA,kCAAkB,EAAC,WAAW,CAAC,CAAA;IAE/C,kBAAQ;SACL,KAAK,CAAC,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE;QAChC,MAAM,EAAE,KAAK;QACb,OAAO;QACP,aAAa,EAAE,KAAK;QACpB,GAAG,EAAE,WAAW;KACjB,CAAC;SACD,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAU,EAAE,IAAY,EAAE,EAAE;QACzC,IAAI,aAAa,EAAE;YACjB,OAAO,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;SAClC;IACH,CAAC,CAAC;SACD,EAAE,CACD,KAAK,EACL,IAAA,mBAAQ,EAAC,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACzB,IAAI,aAAa,EAAE;YACjB,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;SAC3B;QACD,OAAO,qBAAqB,CAAC,WAAW,EAAE,2BAAkB,EAAE,WAAW,CAAC,CAAA;IAC5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AC,MAAM,EAAE,CAAA;IAC5D,KAAK,MAAM,MAAM,IAAI,2BAAkB,EAAE;QACvC,IAAI,MAAM,CAAC,UAAU,KAAK,cAAS,CAAC,IAAI,EAAE;YACxC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAA;SACvC;KACF;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,GAAW,EAAE,OAAuB,EAAE,WAAiC;IAC3G,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;QAC5B,IAAI,MAAM,CAAC,UAAU,KAAK,cAAS,CAAC,IAAI,EAAE;YACxC,MAAM,OAAO,GAAoB;gBAC/B,IAAI,EAAE,aAAG,CAAC,YAAY;gBACtB,OAAO,EAAE,EAAE,OAAO,EAAE,IAAA,kCAAkB,EAAC,GAAG,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE;aACtE,CAAA;YAED,eAAe;YACf,MAAM,CAAC,IAAI,CAAC,aAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAA;YAC1C,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAA;SACxD;KACF;AACH,CAAC;AAbD,sDAaC"}
|
@@ -7,6 +7,7 @@ exports.requireStringConfig = exports.readStringConfig = exports.getGlobalDclRcP
|
|
7
7
|
const env_config_provider_1 = require("@well-known-components/env-config-provider");
|
8
8
|
const os_1 = require("os");
|
9
9
|
const path_1 = __importDefault(require("path"));
|
10
|
+
const i18next_1 = __importDefault(require("i18next"));
|
10
11
|
const error_1 = require("../logic/error");
|
11
12
|
exports.DCL_RC = '.dclrc';
|
12
13
|
/**
|
@@ -50,7 +51,7 @@ exports.readStringConfig = readStringConfig;
|
|
50
51
|
async function requireStringConfig(components, key) {
|
51
52
|
const address = await readStringConfig(components, key);
|
52
53
|
if (!address)
|
53
|
-
throw new error_1.CliError(
|
54
|
+
throw new error_1.CliError('CONFIG_NOT_PROVIDED', i18next_1.default.t('errors.config.not_provided', { key }));
|
54
55
|
return address;
|
55
56
|
}
|
56
57
|
exports.requireStringConfig = requireStringConfig;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/components/config.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwF;AACxF,2BAA4B;AAC5B,gDAAuB;
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/components/config.ts"],"names":[],"mappings":";;;;;;AAAA,oFAAwF;AACxF,2BAA4B;AAC5B,gDAAuB;AACvB,sDAA6B;AAG7B,0CAAyC;AAU5B,QAAA,MAAM,GAAG,QAAQ,CAAA;AAE9B;;;;GAIG;AACI,KAAK,UAAU,qBAAqB,CAAC,EAAE,EAAE,EAAgC;IAC9E,MAAM,iBAAiB,GAAa,CAAC,MAAM,uBAAuB,CAAC,EAAE,CAAC,CAAC,CAAA;IAEvE,MAAM,SAAS,GAAG,kBAAkB,EAAE,CAAA;IACtC,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;QAAE,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IAErE,MAAM,YAAY,GAAG,cAAM,CAAA;IAC3B,wBAAwB;IACxB,IAAI,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;IAE3E,OAAO,IAAA,iDAA2B,EAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAA;AACjE,CAAC;AAXD,sDAWC;AAEM,KAAK,UAAU,iBAAiB,CAAC,EAAE,EAAE,EAAgC,EAAE,GAAe,EAAE,KAAa;IAC1G,MAAM,IAAI,GAAG,CAAC,EAAE,EAAE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,GAAG,GAAG,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: All commands must have an \"index.js\" file inside",
|
6
|
+
"not_found": "Command \"{{command}}\" is invalid. {{help}}",
|
7
|
+
"not_valid": "Command does not follow implementation rules:\n* Requires a \"help\" function\n* Requires a \"main\" function"
|
8
|
+
},
|
9
|
+
"config": {
|
10
|
+
"not_provided": "Configuration {{key}} was not provided"
|
11
|
+
},
|
12
|
+
"account": {
|
13
|
+
"invalid_private_key": "Addresses should be 64 characters length."
|
14
|
+
},
|
15
|
+
"args": {
|
16
|
+
"arg_error": "Argument error: {{message}}"
|
17
|
+
},
|
18
|
+
"portable_experience_sw_validations": {
|
19
|
+
"invalid_scene_json": "Invalid scene.json file:\n{{errors}}"
|
20
|
+
},
|
21
|
+
"project_files": {
|
22
|
+
"duplicate_file": "The file {{file}} exists with a different casing. Please manually remove one occurrence",
|
23
|
+
"invalid_package_json": "Error reading the package.json file: {{error}}",
|
24
|
+
"package_json_required": "The project root doesn't have a package.json file",
|
25
|
+
"invalid_project_kind": "The kind of project of the folder {{workingDirectory}} cannot be identified"
|
26
|
+
},
|
27
|
+
"scene_validations": {
|
28
|
+
"invalid_scene_json": "Invalid scene.json file:\n{{errors}}",
|
29
|
+
"duplicate_parcels": "The scene contains duplicated parcel coordinates, they must all be unique. Check Scene Layout settings, or the scene.json file.",
|
30
|
+
"base_parcel_required": "You must include the coordinates for a base parcel {{base}} on the parcels attribute in the scene.json file.",
|
31
|
+
"coordinates_outside_limits": "The coordinates {{x}},{{y}} are re outside of the allowed limits, you cannot publish to those coordinates: \n\n{{constraints}}",
|
32
|
+
"parcels_not_connected": "Some of the parcels listed in the layout are not adjacent to each other, they must all be connected. Check Scene Layout settings, or the scene.json file.",
|
33
|
+
"invalid_main_format": "This scene's scene.main has an unsupported format {{main}}",
|
34
|
+
"max_file_size_exceeded": "Maximum file size exceeded: '{{path}}' is larger than {{maxSizeInMb}}MB"
|
35
|
+
},
|
36
|
+
"workspace_validations": {
|
37
|
+
"invalid_workspace_json": "Invalid {{workspace_file}} file:\n{{errors}}",
|
38
|
+
"invalid_workspace_json_error": "Error reading the {{workspace_file}} file: {{error}}"
|
39
|
+
},
|
40
|
+
"deploy": {
|
41
|
+
"workspace_not_supported": "This scene is not valid for publishing. Make sure the scene dependencies are all up to date.",
|
42
|
+
"invalid_project_type": "The project you're trying to publish is not being recognized as a Decentraland scene. Make sure it's valid, and that the scene dependencies are all up to date.",
|
43
|
+
"invalid_arguments": "You can't set values for both the 'target' and 'target-content' arguments in the same command.",
|
44
|
+
"failed_to_upload": "Could not upload content: {{error}}"
|
45
|
+
},
|
46
|
+
"export_static": {
|
47
|
+
"base_url_required": "--baseUrl is mandatory when --realmName is provided",
|
48
|
+
"invalid_realm_name": "--realmName has invalid characters",
|
49
|
+
"invalid_output_directory": "The destination path {{outputDirectory}} is not a directory"
|
50
|
+
},
|
51
|
+
"init": {
|
52
|
+
"dir_not_empty": "The target directory specified is not empty. Run this command with --yes to override.",
|
53
|
+
"invalid_arguments": "Specifying --template and --project at the same time is not allowed. Please specify only one of them.",
|
54
|
+
"invalid_project": "The requested scene doesn't exist empty. Valid options are: {{options}}",
|
55
|
+
"invalid_template_zip_url": "The zip downloaded has many folder on the root, make sure it has only one folder on the root."
|
56
|
+
},
|
57
|
+
"quests": {
|
58
|
+
"invalid_target": "The provided target is not a valid URL",
|
59
|
+
"invalid_json": "{{path}} doesn't contain a valid JSON",
|
60
|
+
"invalid_quest_json": "You provided an invalid Quest JSON. Please check the documentation",
|
61
|
+
"file_does_not_exist": "File doesn't exist",
|
62
|
+
"creation_cancelled": "Quest creation was cancelled",
|
63
|
+
"invalid_address": "You should provide a valid EVM address",
|
64
|
+
"invalid_uuid": "You should provide a valid uuid"
|
65
|
+
},
|
66
|
+
"bundle": {
|
67
|
+
"scene_main_required": "This scene does not have the required file scene.main",
|
68
|
+
"scene_runtime_version_required": "The field `\"runtimeVersion\": \"7\"` must be present in the scene's scene.json file. Make sure the scene's code is written in SDK 7.x.",
|
69
|
+
"tsconfig_required": "This scene does not have the required file {{tsconfig}}",
|
70
|
+
"no_input_files": "There are no input files to build: {{entrypointSource}}",
|
71
|
+
"rebuild_failed": "Could not rebuild bundle: {{error}}",
|
72
|
+
"type_checker_failed": "Typechecker exited with code {{code}}."
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
{
|
2
|
+
"errors": {
|
3
|
+
"command": {
|
4
|
+
"invalid_folder": "Desarrollador: Todos los comandos deben estar dentro de una carpeta",
|
5
|
+
"invalid_index_file": "Desarrollador: Todos los comandos deben tener un archivo \"index.js\" dentro",
|
6
|
+
"not_found": "El comando \"{{command}}\" no es válido. {{help}}",
|
7
|
+
"not_valid": "El comando no sigue las reglas de implementación:\n* Requiere una función \"help\"\n* Requiere una función \"main\""
|
8
|
+
},
|
9
|
+
"config": {
|
10
|
+
"not_provided": "La configuración {{key}} no fue proporcionada"
|
11
|
+
},
|
12
|
+
"account": {
|
13
|
+
"invalid_private_key": "Las direcciones deben tener 64 caracteres de longitud."
|
14
|
+
},
|
15
|
+
"args": {
|
16
|
+
"arg_error": "Error de argumento: {{message}}"
|
17
|
+
},
|
18
|
+
"portable_experience_sw_validations": {
|
19
|
+
"invalid_scene_json": "Archivo scene.json inválido:\n{{errors}}"
|
20
|
+
},
|
21
|
+
"project_files": {
|
22
|
+
"duplicate_file": "El archivo {{file}} existe con un formato de mayúsculas diferente. Por favor elimina manualmente una de las ocurrencias",
|
23
|
+
"invalid_package_json": "Error al leer el archivo package.json: {{error}}",
|
24
|
+
"package_json_required": "La raíz del proyecto no tiene un archivo package.json",
|
25
|
+
"invalid_project_kind": "No se puede identificar el tipo de proyecto de la carpeta {{workingDirectory}}"
|
26
|
+
},
|
27
|
+
"scene_validations": {
|
28
|
+
"invalid_scene_json": "Archivo scene.json inválido:\n{{errors}}",
|
29
|
+
"duplicate_parcels": "La escena contiene coordenadas de parcelas duplicadas, todas deben ser únicas. Revisa la configuración de Diseño de Escena, o el archivo scene.json.",
|
30
|
+
"base_parcel_required": "Debes incluir las coordenadas para una parcela base {{base}} en el atributo parcels del archivo scene.json.",
|
31
|
+
"coordinates_outside_limits": "Las coordenadas {{x}},{{y}} están fuera de los límites permitidos, no puedes publicar en esas coordenadas: \n\n{{constraints}}",
|
32
|
+
"parcels_not_connected": "Algunas de las parcelas listadas en el diseño no son adyacentes entre sí, todas deben estar conectadas. Revisa la configuración de Diseño de Escena, o el archivo scene.json.",
|
33
|
+
"invalid_main_format": "El scene.main de esta escena tiene un formato no soportado {{main}}",
|
34
|
+
"max_file_size_exceeded": "Tamaño máximo de archivo excedido: '{{path}}' es más grande que {{maxSizeInMb}}MB"
|
35
|
+
},
|
36
|
+
"workspace_validations": {
|
37
|
+
"invalid_workspace_json": "Archivo {{workspace_file}} inválido:\n{{errors}}",
|
38
|
+
"invalid_workspace_json_error": "Error al leer el archivo {{workspace_file}}: {{error}}"
|
39
|
+
},
|
40
|
+
"deploy": {
|
41
|
+
"workspace_not_supported": "Esta escena no es válida para publicar. Asegúrate de que todas las dependencias de la escena estén actualizadas.",
|
42
|
+
"invalid_project_type": "El proyecto que intentas publicar no está siendo reconocido como una escena de Decentraland. Asegúrate de que sea válido y que todas las dependencias de la escena estén actualizadas.",
|
43
|
+
"invalid_arguments": "No puedes establecer valores para ambos argumentos 'target' y 'target-content' en el mismo comando.",
|
44
|
+
"failed_to_upload": "No se pudo subir el contenido: {{error}}"
|
45
|
+
},
|
46
|
+
"export_static": {
|
47
|
+
"base_url_required": "--baseUrl es obligatorio cuando se proporciona --realmName",
|
48
|
+
"invalid_realm_name": "--realmName tiene caracteres inválidos",
|
49
|
+
"invalid_output_directory": "La ruta de destino {{outputDirectory}} no es un directorio"
|
50
|
+
},
|
51
|
+
"init": {
|
52
|
+
"dir_not_empty": "El directorio de destino especificado no está vacío. Ejecuta este comando con --yes para sobrescribir.",
|
53
|
+
"invalid_arguments": "No se permite especificar --template y --project al mismo tiempo. Por favor especifica solo uno de ellos.",
|
54
|
+
"invalid_project": "La escena solicitada no existe. Opciones válidas son: {{options}}",
|
55
|
+
"invalid_template_zip_url": "El zip descargado tiene muchas carpetas en la raíz, asegúrate de que tenga solo una carpeta en la raíz."
|
56
|
+
},
|
57
|
+
"quests": {
|
58
|
+
"invalid_target": "El objetivo proporcionado no es una URL válida",
|
59
|
+
"invalid_json": "{{path}} no contiene un JSON válido",
|
60
|
+
"invalid_quest_json": "Proporcionaste un JSON de Quest inválido. Por favor revisa la documentación",
|
61
|
+
"file_does_not_exist": "El archivo no existe",
|
62
|
+
"creation_cancelled": "La creación de la quest fue cancelada",
|
63
|
+
"invalid_address": "Debes proporcionar una dirección EVM válida",
|
64
|
+
"invalid_uuid": "Debes proporcionar un uuid válido"
|
65
|
+
},
|
66
|
+
"bundle": {
|
67
|
+
"scene_main_required": "Esta escena no tiene el archivo requerido scene.main",
|
68
|
+
"scene_runtime_version_required": "El campo `\"runtimeVersion\": \"7\"` debe estar presente en el archivo scene.json de la escena. Asegúrate de que el código de la escena esté escrito en SDK 7.x.",
|
69
|
+
"tsconfig_required": "Esta escena no tiene el archivo requerido {{tsconfig}}",
|
70
|
+
"no_input_files": "No hay archivos de entrada para construir: {{entrypointSource}}",
|
71
|
+
"rebuild_failed": "No se pudo reconstruir el bundle: {{error}}",
|
72
|
+
"type_checker_failed": "El typechecker salió con código {{code}}."
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
{
|
2
|
+
"errors": {
|
3
|
+
"command": {
|
4
|
+
"invalid_folder": "开发者:所有命令必须在文件夹内",
|
5
|
+
"invalid_index_file": "开发者:所有命令必须包含一个 \"index.js\" 文件",
|
6
|
+
"not_found": "命令 \"{{command}}\" 无效。{{help}}",
|
7
|
+
"not_valid": "命令不符合实现规则:\n* 需要 \"help\" 函数\n* 需要 \"main\" 函数"
|
8
|
+
},
|
9
|
+
"config": {
|
10
|
+
"not_provided": "未提供配置 {{key}}"
|
11
|
+
},
|
12
|
+
"account": {
|
13
|
+
"invalid_private_key": "地址长度应为64个字符。"
|
14
|
+
},
|
15
|
+
"args": {
|
16
|
+
"arg_error": "参数错误:{{message}}"
|
17
|
+
},
|
18
|
+
"portable_experience_sw_validations": {
|
19
|
+
"invalid_scene_json": "无效的 scene.json 文件:\n{{errors}}"
|
20
|
+
},
|
21
|
+
"project_files": {
|
22
|
+
"duplicate_file": "文件 {{file}} 存在大小写不同的版本。请手动删除其中一个",
|
23
|
+
"invalid_package_json": "读取 package.json 文件时出错:{{error}}",
|
24
|
+
"package_json_required": "项目根目录没有 package.json 文件",
|
25
|
+
"invalid_project_kind": "无法识别文件夹 {{workingDirectory}} 的项目类型"
|
26
|
+
},
|
27
|
+
"scene_validations": {
|
28
|
+
"invalid_scene_json": "无效的 scene.json 文件:\n{{errors}}",
|
29
|
+
"duplicate_parcels": "场景包含重复的地块坐标,它们必须都是唯一的。请检查场景布局设置或 scene.json 文件。",
|
30
|
+
"base_parcel_required": "您必须在 scene.json 文件的 parcels 属性中包含基础地块 {{base}} 的坐标。",
|
31
|
+
"coordinates_outside_limits": "坐标 {{x}},{{y}} 超出允许的限制,您无法发布到这些坐标:\n\n{{constraints}}",
|
32
|
+
"parcels_not_connected": "布局中列出的一些地块彼此不相邻,它们必须都连接在一起。请检查场景布局设置或 scene.json 文件。",
|
33
|
+
"invalid_main_format": "此场景的 scene.main 具有不支持的格式 {{main}}",
|
34
|
+
"max_file_size_exceeded": "超出最大文件大小:'{{path}}' 大于 {{maxSizeInMb}}MB"
|
35
|
+
},
|
36
|
+
"workspace_validations": {
|
37
|
+
"invalid_workspace_json": "无效的 {{workspace_file}} 文件:\n{{errors}}",
|
38
|
+
"invalid_workspace_json_error": "读取 {{workspace_file}} 文件时出错:{{error}}"
|
39
|
+
},
|
40
|
+
"deploy": {
|
41
|
+
"workspace_not_supported": "此场景不适合发布。请确保场景依赖项都是最新的。",
|
42
|
+
"invalid_project_type": "您尝试发布的项目未被识别为 Decentraland 场景。请确保它有效,并且场景依赖项都是最新的。",
|
43
|
+
"invalid_arguments": "您不能在同一命令中同时为 'target' 和 'target-content' 参数设置值。",
|
44
|
+
"failed_to_upload": "无法上传内容:{{error}}"
|
45
|
+
},
|
46
|
+
"export_static": {
|
47
|
+
"base_url_required": "提供 --realmName 时,--baseUrl 是必需的",
|
48
|
+
"invalid_realm_name": "--realmName 包含无效字符",
|
49
|
+
"invalid_output_directory": "目标路径 {{outputDirectory}} 不是一个目录"
|
50
|
+
},
|
51
|
+
"init": {
|
52
|
+
"dir_not_empty": "指定的目标目录不为空。使用 --yes 运行此命令以覆盖。",
|
53
|
+
"invalid_arguments": "不允许同时指定 --template 和 --project。请只指定其中一个。",
|
54
|
+
"invalid_project": "请求的场景不存在。有效选项:{{options}}",
|
55
|
+
"invalid_template_zip_url": "下载的压缩包在根目录有多个文件夹,请确保根目录只有一个文件夹。"
|
56
|
+
},
|
57
|
+
"quests": {
|
58
|
+
"invalid_target": "提供的目标不是有效的 URL",
|
59
|
+
"invalid_json": "{{path}} 不包含有效的 JSON",
|
60
|
+
"invalid_quest_json": "您提供了无效的任务 JSON。请查看文档",
|
61
|
+
"file_does_not_exist": "文件不存在",
|
62
|
+
"creation_cancelled": "任务创建已取消",
|
63
|
+
"invalid_address": "您应该提供一个有效的 EVM 地址",
|
64
|
+
"invalid_uuid": "您应该提供一个有效的 uuid"
|
65
|
+
},
|
66
|
+
"bundle": {
|
67
|
+
"scene_main_required": "此场景没有必需的文件 scene.main",
|
68
|
+
"scene_runtime_version_required": "场景的 scene.json 文件中必须存在字段 `\"runtimeVersion\": \"7\"`。请确保场景代码使用 SDK 7.x 编写。",
|
69
|
+
"tsconfig_required": "此场景没有必需的文件 {{tsconfig}}",
|
70
|
+
"no_input_files": "没有要构建的输入文件:{{entrypointSource}}",
|
71
|
+
"rebuild_failed": "无法重新构建包:{{error}}",
|
72
|
+
"type_checker_failed": "类型检查器退出,代码为 {{code}}。"
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
package/dist/logic/account.js
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
6
|
exports.createWallet = void 0;
|
4
7
|
const eth_connect_1 = require("eth-connect");
|
5
8
|
const crypto_1 = require("@dcl/crypto/dist/crypto");
|
9
|
+
const i18next_1 = __importDefault(require("i18next"));
|
6
10
|
const error_1 = require("./error");
|
7
11
|
function createWallet(privateKey) {
|
8
12
|
let length = 64;
|
@@ -10,7 +14,7 @@ function createWallet(privateKey) {
|
|
10
14
|
length = 66;
|
11
15
|
}
|
12
16
|
if (privateKey.length !== length) {
|
13
|
-
throw new error_1.CliError('
|
17
|
+
throw new error_1.CliError('ACCOUNT_INVALID_PRIVATE_KEY', i18next_1.default.t('errors.account.invalid_private_key'));
|
14
18
|
}
|
15
19
|
const pk = (0, eth_connect_1.hexToBytes)(privateKey);
|
16
20
|
const msg = Math.random().toString();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/logic/account.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/logic/account.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAwC;AACxC,oDAAiF;AACjF,sDAA6B;AAE7B,mCAAkC;AAQlC,SAAgB,YAAY,CAAC,UAAkB;IAC7C,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;QAC/B,MAAM,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,UAAU,CAAC,MAAM,KAAK,MAAM,EAAE;QAChC,MAAM,IAAI,gBAAQ,CAAC,6BAA6B,EAAE,iBAAO,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAA;KACnG;IAED,MAAM,EAAE,GAAG,IAAA,wBAAU,EAAC,UAAU,CAAC,CAAA;IACjC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAA;IACpC,MAAM,SAAS,GAAG,IAAA,gBAAO,EAAC,EAAE,EAAE,GAAG,CAAC,CAAA;IAClC,MAAM,OAAO,GAAW,IAAA,uCAA8B,EAAC,SAAS,EAAE,GAAG,CAAC,CAAA;IACtE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAA;AACjD,CAAC;AAhBD,oCAgBC"}
|
package/dist/logic/args.js
CHANGED
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.declareArgs = exports.parseArgs = void 0;
|
7
7
|
const arg_1 = __importDefault(require("arg"));
|
8
|
+
const i18next_1 = __importDefault(require("i18next"));
|
8
9
|
const error_1 = require("./error");
|
9
10
|
function parseArgs(argv, args) {
|
10
11
|
try {
|
@@ -12,7 +13,7 @@ function parseArgs(argv, args) {
|
|
12
13
|
}
|
13
14
|
catch (err) {
|
14
15
|
if (err.name === 'ArgError')
|
15
|
-
throw new error_1.CliError(
|
16
|
+
throw new error_1.CliError('ARGS_ARG_ERROR', i18next_1.default.t('errors.args.arg_error', { message: err.message }));
|
16
17
|
/* istanbul ignore next */
|
17
18
|
throw err;
|
18
19
|
}
|
package/dist/logic/args.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/logic/args.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAiC;AACjC,mCAAkC;AAMlC,SAAgB,SAAS,CAAiB,IAAc,EAAE,IAAO;IAC/D,IAAI;QACF,OAAO,IAAA,aAAG,EAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;KAC3G;IAAC,OAAO,GAAQ,EAAE;QACjB,IAAI,GAAG,CAAC,IAAI,KAAK,UAAU;
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/logic/args.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAiC;AACjC,sDAA6B;AAE7B,mCAAkC;AAMlC,SAAgB,SAAS,CAAiB,IAAc,EAAE,IAAO;IAC/D,IAAI;QACF,OAAO,IAAA,aAAG,EAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;KAC3G;IAAC,OAAO,GAAQ,EAAE;QACjB,IAAI,GAAG,CAAC,IAAI,KAAK,UAAU;YACzB,MAAM,IAAI,gBAAQ,CAAC,gBAAgB,EAAE,iBAAO,CAAC,CAAC,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAA;QACpG,0BAA0B;QAC1B,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AATD,8BASC;AAED,SAAgB,WAAW,CAAiB,IAAO;IACjD,OAAO,IAAI,CAAA;AACb,CAAC;AAFD,kCAEC"}
|