@dcl/opscli 1.0.0-3097989545.commit-80fe4dc → 1.0.0-34505710176.commit-d00f7bd
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/README.md +151 -1
- package/dist/bin.d.ts.map +1 -1
- package/dist/bin.js +39 -11
- package/dist/bin.js.map +1 -1
- package/dist/commands/ab-queue-status.d.ts +2 -0
- package/dist/commands/ab-queue-status.d.ts.map +1 -0
- package/dist/commands/ab-queue-status.js +40 -0
- package/dist/commands/ab-queue-status.js.map +1 -0
- package/dist/commands/check-ab-conversion.d.ts +3 -0
- package/dist/commands/check-ab-conversion.d.ts.map +1 -0
- package/dist/commands/check-ab-conversion.js +63 -0
- package/dist/commands/check-ab-conversion.js.map +1 -0
- package/dist/commands/circleci.d.ts +2 -0
- package/dist/commands/circleci.d.ts.map +1 -0
- package/dist/commands/circleci.js +33 -0
- package/dist/commands/circleci.js.map +1 -0
- package/dist/commands/concat-snapshots.d.ts +3 -0
- package/dist/commands/concat-snapshots.d.ts.map +1 -0
- package/dist/commands/concat-snapshots.js +69 -0
- package/dist/commands/concat-snapshots.js.map +1 -0
- package/dist/commands/deploy-entity.d.ts +3 -0
- package/dist/commands/deploy-entity.d.ts.map +1 -0
- package/dist/commands/deploy-entity.js +90 -0
- package/dist/commands/deploy-entity.js.map +1 -0
- package/dist/commands/download-entity.d.ts +3 -0
- package/dist/commands/download-entity.d.ts.map +1 -0
- package/dist/commands/download-entity.js +50 -0
- package/dist/commands/download-entity.js.map +1 -0
- package/dist/commands/parameters-manager.d.ts.map +1 -1
- package/dist/commands/parameters-manager.js +30 -15
- package/dist/commands/parameters-manager.js.map +1 -1
- package/dist/commands/pointer-consistency.d.ts.map +1 -1
- package/dist/commands/pointer-consistency.js +94 -14
- package/dist/commands/pointer-consistency.js.map +1 -1
- package/dist/commands/query-rollout.js +8 -8
- package/dist/commands/query-rollout.js.map +1 -1
- package/dist/commands/queue-ab-conversion-about.d.ts +3 -0
- package/dist/commands/queue-ab-conversion-about.d.ts.map +1 -0
- package/dist/commands/queue-ab-conversion-about.js +61 -0
- package/dist/commands/queue-ab-conversion-about.js.map +1 -0
- package/dist/commands/queue-ab-conversion-snapshot.d.ts +3 -0
- package/dist/commands/queue-ab-conversion-snapshot.d.ts.map +1 -0
- package/dist/commands/queue-ab-conversion-snapshot.js +228 -0
- package/dist/commands/queue-ab-conversion-snapshot.js.map +1 -0
- package/dist/commands/queue-ab-conversion.d.ts +3 -0
- package/dist/commands/queue-ab-conversion.d.ts.map +1 -0
- package/dist/commands/queue-ab-conversion.js +80 -0
- package/dist/commands/queue-ab-conversion.js.map +1 -0
- package/dist/commands/secret-manager.d.ts.map +1 -1
- package/dist/commands/secret-manager.js +46 -22
- package/dist/commands/secret-manager.js.map +1 -1
- package/dist/commands/update-renderer-upm.d.ts.map +1 -1
- package/dist/commands/update-renderer-upm.js +14 -14
- package/dist/commands/update-renderer-upm.js.map +1 -1
- package/dist/commands/wearables-consistency.js +5 -5
- package/dist/commands/wearables-consistency.js.map +1 -1
- package/dist/commands/world-ab-status.d.ts +2 -0
- package/dist/commands/world-ab-status.d.ts.map +1 -0
- package/dist/commands/world-ab-status.js +85 -0
- package/dist/commands/world-ab-status.js.map +1 -0
- package/dist/helpers/ab-registry.d.ts +10 -0
- package/dist/helpers/ab-registry.d.ts.map +1 -0
- package/dist/helpers/ab-registry.js +55 -0
- package/dist/helpers/ab-registry.js.map +1 -0
- package/dist/helpers/ago.js +10 -10
- package/dist/helpers/ago.js.map +1 -1
- package/dist/helpers/assert.d.ts +1 -1
- package/dist/helpers/asset-bundles.d.ts +12 -0
- package/dist/helpers/asset-bundles.d.ts.map +1 -0
- package/dist/helpers/asset-bundles.js +45 -0
- package/dist/helpers/asset-bundles.js.map +1 -0
- package/dist/helpers/catalysts.d.ts +1 -1
- package/dist/helpers/catalysts.d.ts.map +1 -1
- package/dist/helpers/catalysts.js +4 -4
- package/dist/helpers/downloads.d.ts +6 -0
- package/dist/helpers/downloads.d.ts.map +1 -0
- package/dist/helpers/downloads.js +48 -0
- package/dist/helpers/downloads.js.map +1 -0
- package/dist/helpers/env-domains.d.ts +1 -1
- package/dist/helpers/env-domains.js +9 -9
- package/dist/helpers/fileWriter.d.ts +7 -0
- package/dist/helpers/fileWriter.d.ts.map +1 -0
- package/dist/helpers/fileWriter.js +86 -0
- package/dist/helpers/fileWriter.js.map +1 -0
- package/dist/helpers/parse-utils.js +11 -7
- package/dist/helpers/parse-utils.js.map +1 -1
- package/dist/helpers/parseEntityUrn.d.ts +6 -0
- package/dist/helpers/parseEntityUrn.d.ts.map +1 -0
- package/dist/helpers/parseEntityUrn.js +23 -0
- package/dist/helpers/parseEntityUrn.js.map +1 -0
- package/dist/helpers/recurse-folder.d.ts +2 -0
- package/dist/helpers/recurse-folder.d.ts.map +1 -0
- package/dist/helpers/recurse-folder.js +40 -0
- package/dist/helpers/recurse-folder.js.map +1 -0
- package/dist/helpers/rollouts.d.ts +4 -6
- package/dist/helpers/rollouts.d.ts.map +1 -1
- package/dist/helpers/rollouts.js +2 -2
- package/dist/helpers/rollouts.js.map +1 -1
- package/dist/helpers/sign-gpg.js +5 -5
- package/dist/helpers/types.d.ts +1 -1
- package/dist/helpers/types.d.ts.map +1 -1
- package/package.json +22 -13
|
@@ -0,0 +1,85 @@
|
|
|
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 arg_1 = __importDefault(require("arg"));
|
|
7
|
+
const undici_1 = require("undici");
|
|
8
|
+
const ab_registry_1 = require("../helpers/ab-registry");
|
|
9
|
+
async function default_1() {
|
|
10
|
+
const args = (0, arg_1.default)({
|
|
11
|
+
'--world': String,
|
|
12
|
+
'--env': String,
|
|
13
|
+
'--registry': String
|
|
14
|
+
});
|
|
15
|
+
const world = args['--world'];
|
|
16
|
+
if (!world) {
|
|
17
|
+
throw new Error('--world is required');
|
|
18
|
+
}
|
|
19
|
+
const env = args['--env'] || 'org';
|
|
20
|
+
const registry = (0, ab_registry_1.parseRegistry)(args['--registry'], env);
|
|
21
|
+
const worldsUrl = `https://worlds-content-server.decentraland.${env}`;
|
|
22
|
+
const registryUrl = (0, ab_registry_1.registryUrlFor)(registry, env);
|
|
23
|
+
// Step 1: Discover scenes
|
|
24
|
+
console.log(`> Fetching scenes for world: ${world} (${env})`);
|
|
25
|
+
const scenesResponse = await (0, undici_1.fetch)(`${worldsUrl}/world/${encodeURIComponent(world)}/scenes`);
|
|
26
|
+
if (!scenesResponse.ok) {
|
|
27
|
+
throw new Error(`worlds-content-server returned ${scenesResponse.status}`);
|
|
28
|
+
}
|
|
29
|
+
const { scenes } = (await scenesResponse.json());
|
|
30
|
+
if (!scenes.length) {
|
|
31
|
+
console.log('> No scenes found');
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
console.log(`> Found ${scenes.length} scene(s)`);
|
|
35
|
+
// Collect every parcel of every scene: the registry is queried for all of them at once
|
|
36
|
+
const allPointers = [];
|
|
37
|
+
for (const scene of scenes) {
|
|
38
|
+
const name = scene.entity.metadata?.display?.title || 'Untitled';
|
|
39
|
+
const base = scene.entity.metadata?.scene?.base || scene.parcels[0];
|
|
40
|
+
console.log(`\n Scene: ${name} (base: ${base}, parcels: ${scene.parcels.length})`);
|
|
41
|
+
console.log(` Entity ID: ${scene.entityId}`);
|
|
42
|
+
allPointers.push(...scene.parcels);
|
|
43
|
+
}
|
|
44
|
+
// Step 2: Check Asset Bundle Registry
|
|
45
|
+
console.log(`\n> Querying asset bundle registry [${registry}]...`);
|
|
46
|
+
const registryResponse = await (0, undici_1.fetch)(`${registryUrl}/entities/active?world_name=${encodeURIComponent(world)}`, {
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: { 'Content-Type': 'application/json' },
|
|
49
|
+
body: JSON.stringify({ pointers: allPointers })
|
|
50
|
+
});
|
|
51
|
+
if (!registryResponse.ok) {
|
|
52
|
+
console.log(`> Asset Bundle Registry: ❌ (returned ${registryResponse.status})`);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const registryEntities = (await registryResponse.json());
|
|
56
|
+
if (!registryEntities.length) {
|
|
57
|
+
console.log('> Asset Bundle Registry: no entities found (never converted)');
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// Match registry entities back to scenes
|
|
61
|
+
console.log('');
|
|
62
|
+
for (const scene of scenes) {
|
|
63
|
+
const name = scene.entity.metadata?.display?.title || 'Untitled';
|
|
64
|
+
const base = scene.entity.metadata?.scene?.base || scene.parcels[0];
|
|
65
|
+
// Find the registry entry that covers this scene's pointers
|
|
66
|
+
const registryEntry = registryEntities.find((e) => e.pointers.some((p) => scene.parcels.includes(p)));
|
|
67
|
+
console.log(`> Scene: ${name} (base: ${base})`);
|
|
68
|
+
console.log(` Deployed entity: ${scene.entityId}`);
|
|
69
|
+
if (!registryEntry) {
|
|
70
|
+
console.log(` Registry: ❌ not found (never converted)`);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
const idMatch = registryEntry.id === scene.entityId;
|
|
74
|
+
console.log(` Registry entity: ${registryEntry.id}`);
|
|
75
|
+
console.log(` Entity ID match: ${idMatch ? '✅' : '🚨 STALE — registry has different entity'}`);
|
|
76
|
+
console.log(` Status: ${(0, ab_registry_1.statusLabel)(registryEntry.status)}`);
|
|
77
|
+
console.log(' Versions:');
|
|
78
|
+
for (const platform of ab_registry_1.REPORTED_PLATFORMS) {
|
|
79
|
+
const versionStr = (0, ab_registry_1.formatVersion)(registryEntry.versions?.assets?.[platform]);
|
|
80
|
+
console.log(` ${platform.padEnd(10)} ${versionStr}`);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.default = default_1;
|
|
85
|
+
//# sourceMappingURL=world-ab-status.js.map
|
|
@@ -0,0 +1 @@
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aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;QAE7D,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;QAC1B,KAAK,MAAM,QAAQ,IAAI,gCAAkB,EAAE;YACzC,MAAM,UAAU,GAAG,IAAA,2BAAa,EAAC,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;YAC5E,OAAO,CAAC,GAAG,CAAC,OAAO,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAA;SACxD;KACF;AACH,CAAC;AA7FD,4BA6FC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type RegistryKind = 'unity' | 'abgen';
|
|
2
|
+
export declare const REPORTED_PLATFORMS: string[];
|
|
3
|
+
export declare function parseRegistry(value: string | undefined, env: string): RegistryKind;
|
|
4
|
+
export declare function registryUrlFor(kind: RegistryKind, env: string): string;
|
|
5
|
+
export declare function formatVersion(version: {
|
|
6
|
+
version: string;
|
|
7
|
+
buildDate: string;
|
|
8
|
+
} | undefined): string;
|
|
9
|
+
export declare function statusLabel(status: string): string;
|
|
10
|
+
//# sourceMappingURL=ab-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ab-registry.d.ts","sourceRoot":"","sources":["../../src/helpers/ab-registry.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAA;AAS5C,eAAO,MAAM,kBAAkB,UAAqB,CAAA;AAMpD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,YAAY,CAelF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGtE;AAID,wBAAgB,aAAa,CAAC,OAAO,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,GAAG,MAAM,CAEjG;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAelD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.statusLabel = exports.formatVersion = exports.registryUrlFor = exports.parseRegistry = exports.REPORTED_PLATFORMS = void 0;
|
|
4
|
+
const bin_1 = require("../bin");
|
|
5
|
+
// abgen only runs where the ab-admin has an abgen queue configured; `today` has
|
|
6
|
+
// none, and the registry hostname does not even resolve there.
|
|
7
|
+
const ABGEN_ENVS = ['org', 'zone'];
|
|
8
|
+
// webgl is decommissioned, but both registries still return the key (empty, or a
|
|
9
|
+
// version years stale), so the status commands filter on this list instead of
|
|
10
|
+
// reporting whatever the payload happens to carry.
|
|
11
|
+
exports.REPORTED_PLATFORMS = ['windows', 'mac'];
|
|
12
|
+
function isRegistryKind(value) {
|
|
13
|
+
return value === 'unity' || value === 'abgen';
|
|
14
|
+
}
|
|
15
|
+
function parseRegistry(value, env) {
|
|
16
|
+
const kind = value ?? 'unity';
|
|
17
|
+
if (!isRegistryKind(kind)) {
|
|
18
|
+
throw new bin_1.CliError(`! Unknown --registry "${value}". Valid values are "unity" (default) and "abgen".`);
|
|
19
|
+
}
|
|
20
|
+
if (kind === 'abgen' && !ABGEN_ENVS.includes(env)) {
|
|
21
|
+
throw new bin_1.CliError(`! There is no abgen registry on "${env}" — abgen runs on ${ABGEN_ENVS.join(' and ')} only. ` +
|
|
22
|
+
`Re-run without --registry abgen to read the Unity registry.`);
|
|
23
|
+
}
|
|
24
|
+
return kind;
|
|
25
|
+
}
|
|
26
|
+
exports.parseRegistry = parseRegistry;
|
|
27
|
+
function registryUrlFor(kind, env) {
|
|
28
|
+
const host = kind === 'abgen' ? 'asset-bundle-registry-abgen' : 'asset-bundle-registry';
|
|
29
|
+
return `https://${host}.decentraland.${env}`;
|
|
30
|
+
}
|
|
31
|
+
exports.registryUrlFor = registryUrlFor;
|
|
32
|
+
// The registry already stores the version prefixed ("v49"), so it is printed as
|
|
33
|
+
// it comes; an entry with an empty version is a platform that never built.
|
|
34
|
+
function formatVersion(version) {
|
|
35
|
+
return version?.version ? `${version.version} (${version.buildDate})` : 'N/A';
|
|
36
|
+
}
|
|
37
|
+
exports.formatVersion = formatVersion;
|
|
38
|
+
function statusLabel(status) {
|
|
39
|
+
switch (status) {
|
|
40
|
+
case 'complete':
|
|
41
|
+
return '✅ complete';
|
|
42
|
+
case 'pending':
|
|
43
|
+
return '⏳ pending';
|
|
44
|
+
case 'failed':
|
|
45
|
+
return '❌ failed';
|
|
46
|
+
case 'obsolete':
|
|
47
|
+
return '🗑️ obsolete';
|
|
48
|
+
case 'fallback':
|
|
49
|
+
return '🔄 fallback';
|
|
50
|
+
default:
|
|
51
|
+
return `⚠️ ${status}`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.statusLabel = statusLabel;
|
|
55
|
+
//# sourceMappingURL=ab-registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ab-registry.js","sourceRoot":"","sources":["../../src/helpers/ab-registry.ts"],"names":[],"mappings":";;;AAAA,gCAAiC;AAOjC,gFAAgF;AAChF,+DAA+D;AAC/D,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAElC,iFAAiF;AACjF,8EAA8E;AAC9E,mDAAmD;AACtC,QAAA,kBAAkB,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;AAEpD,SAAS,cAAc,CAAC,KAAa;IACnC,OAAO,KAAK,KAAK,OAAO,IAAI,KAAK,KAAK,OAAO,CAAA;AAC/C,CAAC;AAED,SAAgB,aAAa,CAAC,KAAyB,EAAE,GAAW;IAClE,MAAM,IAAI,GAAG,KAAK,IAAI,OAAO,CAAA;IAE7B,IAAI,CAAC,cAAc,CAAC,IAAI,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void 0;
|
|
4
4
|
function format(diff, divisor, unit, past, future, isInTheFuture) {
|
|
5
|
-
|
|
5
|
+
const val = Math.round(Math.abs(diff) / divisor);
|
|
6
6
|
if (isInTheFuture)
|
|
7
|
-
return val <= 1 ? future :
|
|
8
|
-
return val <= 1 ? past : val +
|
|
7
|
+
return val <= 1 ? future : 'in ' + val + ' ' + unit + 's';
|
|
8
|
+
return val <= 1 ? past : val + ' ' + unit + 's ago';
|
|
9
9
|
}
|
|
10
10
|
const units = [
|
|
11
|
-
{ max: 2760000, value: 60000, name:
|
|
12
|
-
{ max: 72000000, value: 3600000, name:
|
|
13
|
-
{ max: 518400000, value: 86400000, name:
|
|
14
|
-
{ max: 2419200000, value: 604800000, name:
|
|
15
|
-
{ max: 28512000000, value: 2592000000, name:
|
|
11
|
+
{ max: 2760000, value: 60000, name: 'minute', past: 'a minute ago', future: 'in a minute' },
|
|
12
|
+
{ max: 72000000, value: 3600000, name: 'hour', past: 'an hour ago', future: 'in an hour' },
|
|
13
|
+
{ max: 518400000, value: 86400000, name: 'day', past: 'yesterday', future: 'tomorrow' },
|
|
14
|
+
{ max: 2419200000, value: 604800000, name: 'week', past: 'last week', future: 'in a week' },
|
|
15
|
+
{ max: 28512000000, value: 2592000000, name: 'month', past: 'last month', future: 'in a month' } // max: 11 months
|
|
16
16
|
];
|
|
17
17
|
function ago(date, max) {
|
|
18
18
|
const diff = Date.now() - date.getTime();
|
|
19
|
-
for (
|
|
19
|
+
for (let i = 0; i < units.length; i++) {
|
|
20
20
|
if (Math.abs(diff) < units[i].max || (max && units[i].name === max)) {
|
|
21
21
|
return format(diff, units[i].value, units[i].name, units[i].past, units[i].future, diff < 0);
|
|
22
22
|
}
|
|
@@ -29,7 +29,7 @@ function ago(date, max) {
|
|
|
29
29
|
// name: 'year',
|
|
30
30
|
// past: 'last year'
|
|
31
31
|
// }
|
|
32
|
-
return format(diff, 31536000000,
|
|
32
|
+
return format(diff, 31536000000, 'year', 'last year', 'in a year', diff < 0);
|
|
33
33
|
}
|
|
34
34
|
exports.ago = ago;
|
|
35
35
|
//# sourceMappingURL=ago.js.map
|
package/dist/helpers/ago.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ago.js","sourceRoot":"","sources":["../../src/helpers/ago.ts"],"names":[],"mappings":";;;AAAA,SAAS,MAAM,CAAC,IAAY,EAAE,OAAe,EAAE,IAAY,EAAE,IAAY,EAAE,MAAc,EAAE,aAAsB;IAC/G,
|
|
1
|
+
{"version":3,"file":"ago.js","sourceRoot":"","sources":["../../src/helpers/ago.ts"],"names":[],"mappings":";;;AAAA,SAAS,MAAM,CAAC,IAAY,EAAE,OAAe,EAAE,IAAY,EAAE,IAAY,EAAE,MAAc,EAAE,aAAsB;IAC/G,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAA;IAChD,IAAI,aAAa;QAAE,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAA;IAC5E,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,OAAO,CAAA;AACrD,CAAC;AAED,MAAM,KAAK,GAAG;IACZ,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,aAAa,EAAE;IAC3F,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE;IAC1F,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,KAA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,kBAkBC"}
|
package/dist/helpers/assert.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function assert<T>(cond: T | undefined | null | false | 0 |
|
|
1
|
+
export declare function assert<T>(cond: T | undefined | null | false | 0 | '', message: string): T | never;
|
|
2
2
|
//# sourceMappingURL=assert.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeploymentToSqs } from '@dcl/schemas/dist/misc/deployments-to-sqs';
|
|
2
|
+
export declare const productionAbAdmin = "https://ab-admin.decentraland.org";
|
|
3
|
+
export declare enum Platform {
|
|
4
|
+
WINDOWS = "windows",
|
|
5
|
+
MAC = "mac",
|
|
6
|
+
ABGEN = "abgen"
|
|
7
|
+
}
|
|
8
|
+
export declare const DEFAULT_PLATFORMS: Platform[];
|
|
9
|
+
export declare function queueConversions(customABConverterServer: string, entity: DeploymentToSqs, token: string, prioritize: boolean, platforms: Platform[]): Promise<Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
}>>;
|
|
12
|
+
//# sourceMappingURL=asset-bundles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-bundles.d.ts","sourceRoot":"","sources":["../../src/helpers/asset-bundles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAA;AAI3E,eAAO,MAAM,iBAAiB,sCAAsC,CAAA;AAEpE,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,GAAG,QAAQ;IAGX,KAAK,UAAU;CAChB;AAID,eAAO,MAAM,iBAAiB,YAAmC,CAAA;AAEjE,wBAAsB,gBAAgB,CACpC,uBAAuB,EAAE,MAAM,EAC/B,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,OAAO,EACnB,SAAS,EAAE,QAAQ,EAAE,GACpB,OAAO,CAAC,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAMhC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.queueConversions = exports.DEFAULT_PLATFORMS = exports.Platform = exports.productionAbAdmin = void 0;
|
|
4
|
+
const undici_1 = require("undici");
|
|
5
|
+
const bin_1 = require("../bin");
|
|
6
|
+
exports.productionAbAdmin = 'https://ab-admin.decentraland.org';
|
|
7
|
+
var Platform;
|
|
8
|
+
(function (Platform) {
|
|
9
|
+
Platform["WINDOWS"] = "windows";
|
|
10
|
+
Platform["MAC"] = "mac";
|
|
11
|
+
// Not an OS: routes the job to the abgen generator's queue instead of a Unity
|
|
12
|
+
// converter queue (one abgen job converts every platform it supports).
|
|
13
|
+
Platform["ABGEN"] = "abgen";
|
|
14
|
+
})(Platform = exports.Platform || (exports.Platform = {}));
|
|
15
|
+
// Used when --platform is omitted. abgen is deliberately excluded so default and
|
|
16
|
+
// mass reconversions don't feed it until explicitly requested with --platform abgen.
|
|
17
|
+
exports.DEFAULT_PLATFORMS = [Platform.WINDOWS, Platform.MAC];
|
|
18
|
+
async function queueConversions(customABConverterServer, entity, token, prioritize, platforms) {
|
|
19
|
+
const ids = [];
|
|
20
|
+
ids.push(await queueConversion(customABConverterServer, entity, token, prioritize, platforms));
|
|
21
|
+
return ids;
|
|
22
|
+
}
|
|
23
|
+
exports.queueConversions = queueConversions;
|
|
24
|
+
async function queueConversion(assetConverterServer, body, token, prioritize, platforms) {
|
|
25
|
+
const url = new URL(`${assetConverterServer}/enqueue-task`);
|
|
26
|
+
platforms.forEach((platform) => url.searchParams.append('platform', platform));
|
|
27
|
+
if (prioritize) {
|
|
28
|
+
;
|
|
29
|
+
body.prioritize = true;
|
|
30
|
+
}
|
|
31
|
+
console.log(`> Enqueueing task to ${url}`, JSON.stringify([body]));
|
|
32
|
+
const res = await (0, undici_1.fetch)(url, {
|
|
33
|
+
method: 'post',
|
|
34
|
+
body: JSON.stringify([body]),
|
|
35
|
+
headers: {
|
|
36
|
+
'content-type': 'application/json',
|
|
37
|
+
Authorization: token
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
if (!res.ok) {
|
|
41
|
+
throw new bin_1.CliError(`! Error publishing asset bundle job. StatusCode=${res.status} Text=${await res.text()}`);
|
|
42
|
+
}
|
|
43
|
+
return (await res.json());
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=asset-bundles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-bundles.js","sourceRoot":"","sources":["../../src/helpers/asset-bundles.ts"],"names":[],"mappings":";;;AACA,mCAA8B;AAC9B,gCAAiC;AAEpB,QAAA,iBAAiB,GAAG,mCAAmC,CAAA;AAEpE,IAAY,QAMX;AAND,WAAY,QAAQ;IAClB,+BAAmB,CAAA;IACnB,uBAAW,CAAA;IACX,8EAA8E;IAC9E,uEAAuE;IACvE,2BAAe,CAAA;AACjB,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAED,iFAAiF;AACjF,qFAAqF;AACxE,QAAA,iBAAiB,GAAG,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;AAE1D,KAAK,UAAU,gBAAgB,CACpC,uBAA+B,EAC/B,MAAuB,EACvB,KAAa,EACb,UAAmB,EACnB,SAAqB;IAErB,MAAM,GAAG,GAA0B,EAAE,CAAA;IAErC,GAAG,CAAC,IAAI,CAAC,MAAM,eAAe,CAAC,uBAAuB,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;IAE9F,OAAO,GAAG,CAAA;AACZ,CAAC;AAZD,4CAYC;AAED,KAAK,UAAU,eAAe,CAC5B,oBAA4B,EAC5B,IAAqB,EACrB,KAAa,EACb,UAAmB,EACnB,SAAqB;IAErB,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,oBAAoB,eAAe,CAAC,CAAA;IAC3D,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;IAE9E,IAAI,UAAU,EAAE;QACd,CAAC;QAAC,IAAY,CAAC,UAAU,GAAG,IAAI,CAAA;KACjC;IACD,OAAO,CAAC,GAAG,CAAC,wBAAwB,GAAG,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAElE,MAAM,GAAG,GAAG,MAAM,IAAA,cAAK,EAAC,GAAG,EAAE;QAC3B,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,CAAC;QAC5B,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,aAAa,EAAE,KAAK;SACrB;KACF,CAAC,CAAA;IAEF,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE;QACX,MAAM,IAAI,cAAQ,CAAC,mDAAmD,GAAG,CAAC,MAAM,SAAS,MAAM,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;KAC7G;IAED,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,CAAmB,CAAA;AAC7C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalysts.d.ts","sourceRoot":"","sources":["../../src/helpers/catalysts.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"catalysts.d.ts","sourceRoot":"","sources":["../../src/helpers/catalysts.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,wBAAsB,YAAY,IAAI,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAGhE;AAED,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;aAKvD,MAAM;gBAAU,MAAM;;GAE5C;AAED,wBAAsB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;;;kBAQ3D,MAAM;uBACD,MAAM;oBACT,MAAM;yBACD,MAAM;wBACP,MAAM;kBACZ,OAAO;kBACP,MAAM,EAAE;iBACT;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,EAAE;;GAG7C"}
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.fetchEntityByPointer = exports.fetchWearablesByAddress = exports.daoCatalysts = void 0;
|
|
4
4
|
const undici_1 = require("undici");
|
|
5
5
|
async function daoCatalysts() {
|
|
6
|
-
console.log(
|
|
7
|
-
return (await (0, undici_1.fetch)(
|
|
6
|
+
console.log('> Fetching DAO catalysts');
|
|
7
|
+
return (await (0, undici_1.fetch)('https://peer.decentraland.org/lambdas/contracts/servers').then(($) => $.json()));
|
|
8
8
|
}
|
|
9
9
|
exports.daoCatalysts = daoCatalysts;
|
|
10
10
|
async function fetchWearablesByAddress(baseUrl, address) {
|
|
11
11
|
return {
|
|
12
12
|
baseUrl,
|
|
13
|
-
wearables: (await (0, undici_1.fetch)(`${baseUrl}/lambdas/collections/wearables-by-owner/${address}`).then(($) => $.json()))
|
|
13
|
+
wearables: (await (0, undici_1.fetch)(`${baseUrl}/lambdas/collections/wearables-by-owner/${address}`).then(($) => $.json()))
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
exports.fetchWearablesByAddress = fetchWearablesByAddress;
|
|
@@ -19,7 +19,7 @@ async function fetchEntityByPointer(baseUrl, pointer) {
|
|
|
19
19
|
baseUrl,
|
|
20
20
|
deployments: (await (0, undici_1.fetch)(`${baseUrl}/content/deployments?pointer=${encodeURIComponent(pointer)}&onlyCurrentlyPointed=true`)
|
|
21
21
|
.then(($) => $.json())
|
|
22
|
-
.then(($) => $.deployments))
|
|
22
|
+
.then(($) => $.deployments))
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
exports.fetchEntityByPointer = fetchEntityByPointer;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Entity } from '@dcl/schemas';
|
|
2
|
+
export declare function downloadEntity(entity: Entity, server: string, destFolder: string): Promise<void>;
|
|
3
|
+
export declare const downloadFile: (server: string, cid: string, filepath: string) => Promise<void>;
|
|
4
|
+
export declare function getActiveEntities(pointers: string[], sourceServer: string): Promise<Entity[]>;
|
|
5
|
+
export declare function downloadEntityAndMetadata(entity: Entity, server: string, destFolder: string): Promise<void>;
|
|
6
|
+
//# sourceMappingURL=downloads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloads.d.ts","sourceRoot":"","sources":["../../src/helpers/downloads.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAYtF;AAED,eAAO,MAAM,YAAY,WAA2B,MAAM,OAAO,MAAM,YAAY,MAAM,kBAMxF,CAAA;AAED,wBAAsB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAenG;AAED,wBAAsB,yBAAyB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAKjG"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.downloadEntityAndMetadata = exports.getActiveEntities = exports.downloadFile = exports.downloadEntity = void 0;
|
|
4
|
+
const undici_1 = require("undici");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const promises_1 = require("fs/promises");
|
|
7
|
+
const fs_1 = require("fs");
|
|
8
|
+
async function downloadEntity(entity, server, destFolder) {
|
|
9
|
+
await (0, promises_1.mkdir)(destFolder, { recursive: true });
|
|
10
|
+
for (const x of entity.content) {
|
|
11
|
+
const out = (0, path_1.resolve)(destFolder, x.file);
|
|
12
|
+
if (!(0, fs_1.existsSync)(out)) {
|
|
13
|
+
await (0, exports.downloadFile)(server, x.hash, out);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
console.log(` ⚠️ File ${out} already exists, it won't be replaced by remote copy`);
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.downloadEntity = downloadEntity;
|
|
22
|
+
const downloadFile = async function (server, cid, filepath) {
|
|
23
|
+
const data = await (await (0, undici_1.fetch)(server + '/contents/' + cid)).arrayBuffer();
|
|
24
|
+
await (0, promises_1.mkdir)((0, path_1.dirname)(filepath), { recursive: true });
|
|
25
|
+
await (0, promises_1.writeFile)(filepath, Buffer.from(data));
|
|
26
|
+
};
|
|
27
|
+
exports.downloadFile = downloadFile;
|
|
28
|
+
async function getActiveEntities(pointers, sourceServer) {
|
|
29
|
+
const url = `${sourceServer}/entities/active`;
|
|
30
|
+
const res = await (0, undici_1.fetch)(url, {
|
|
31
|
+
method: 'post',
|
|
32
|
+
body: JSON.stringify({ pointers }),
|
|
33
|
+
headers: { 'content-type': 'application/json' }
|
|
34
|
+
});
|
|
35
|
+
const response = await res.text();
|
|
36
|
+
if (!res.ok) {
|
|
37
|
+
throw new Error('Error fetching list of active entities: ' + response);
|
|
38
|
+
}
|
|
39
|
+
return JSON.parse(response);
|
|
40
|
+
}
|
|
41
|
+
exports.getActiveEntities = getActiveEntities;
|
|
42
|
+
async function downloadEntityAndMetadata(entity, server, destFolder) {
|
|
43
|
+
await downloadEntity(entity, server, destFolder);
|
|
44
|
+
await (0, promises_1.writeFile)((0, path_1.resolve)(destFolder, '.metadata'), JSON.stringify(entity.metadata, null, 2));
|
|
45
|
+
console.log('> Entity downloaded to ' + destFolder);
|
|
46
|
+
}
|
|
47
|
+
exports.downloadEntityAndMetadata = downloadEntityAndMetadata;
|
|
48
|
+
//# sourceMappingURL=downloads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloads.js","sourceRoot":"","sources":["../../src/helpers/downloads.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAC9B,+BAAuC;AACvC,0CAA8C;AAC9C,2BAA+B;AAGxB,KAAK,UAAU,cAAc,CAAC,MAAc,EAAE,MAAc,EAAE,UAAkB;IACrF,MAAM,IAAA,gBAAK,EAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAA;IAE5C,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE;QAC9B,MAAM,GAAG,GAAG,IAAA,cAAO,EAAC,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC,CAAA;QACvC,IAAI,CAAC,IAAA,eAAU,EAAC,GAAG,CAAC,EAAE;YACpB,MAAM,IAAA,oBAAY,EAAC,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA;SACxC;aAAM;YACL,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,sDAAsD,CAAC,CAAA;YACnF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;SACrB;KACF;AACH,CAAC;AAZD,wCAYC;AAEM,MAAM,YAAY,GAAG,KAAK,WAAW,MAAc,EAAE,GAAW,EAAE,QAAgB;IACvF,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,IAAA,cAAK,EAAC,MAAM,GAAG,YAAY,GAAG,GAAG,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;IAE3E,MAAM,IAAA,gBAAK,EAAC,IAAA,cAAO,EAAC,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE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ems";
|
|
2
2
|
//# sourceMappingURL=env-domains.d.ts.map
|
|
@@ -3,16 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.tldFromEnv = void 0;
|
|
4
4
|
function tldFromEnv(env) {
|
|
5
5
|
switch (env) {
|
|
6
|
-
case
|
|
7
|
-
return
|
|
8
|
-
case
|
|
9
|
-
return
|
|
10
|
-
case
|
|
11
|
-
return
|
|
12
|
-
case
|
|
13
|
-
return
|
|
6
|
+
case 'prd':
|
|
7
|
+
return 'org';
|
|
8
|
+
case 'stg':
|
|
9
|
+
return 'today';
|
|
10
|
+
case 'dev':
|
|
11
|
+
return 'zone';
|
|
12
|
+
case 'biz':
|
|
13
|
+
return 'systems';
|
|
14
14
|
}
|
|
15
|
-
throw new Error(
|
|
15
|
+
throw new Error('Unknown environment ' + env);
|
|
16
16
|
}
|
|
17
17
|
exports.tldFromEnv = tldFromEnv;
|
|
18
18
|
//# sourceMappingURL=env-domains.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileWriter.d.ts","sourceRoot":"","sources":["../../src/helpers/fileWriter.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,KAAK,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAClD,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B,CAAA;AASD,wBAAsB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAkDvE"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.createFileWriter = void 0;
|
|
30
|
+
const fs = __importStar(require("fs"));
|
|
31
|
+
const path_1 = __importDefault(require("path"));
|
|
32
|
+
async function checkFileExists(file) {
|
|
33
|
+
return fs.promises
|
|
34
|
+
.access(file, fs.constants.F_OK)
|
|
35
|
+
.then(() => true)
|
|
36
|
+
.catch(() => false);
|
|
37
|
+
}
|
|
38
|
+
async function createFileWriter(filename) {
|
|
39
|
+
const filePath = path_1.default.resolve(filename);
|
|
40
|
+
// if the process failed while creating the snapshot last time the file may still exists
|
|
41
|
+
// deleting the staging tmpFile just in case
|
|
42
|
+
if (await checkFileExists(filePath)) {
|
|
43
|
+
await fs.promises.unlink(filePath);
|
|
44
|
+
}
|
|
45
|
+
const file = fs.createWriteStream(filePath);
|
|
46
|
+
const fileClosedFuture = new Promise((resolve, reject) => {
|
|
47
|
+
file.on('finish', resolve);
|
|
48
|
+
file.on('end', resolve);
|
|
49
|
+
file.on('error', reject);
|
|
50
|
+
});
|
|
51
|
+
// the following lines exist to naively emulate a buffering algorithm to reduce disk IO
|
|
52
|
+
// and thus, block the disk for less time using more memory
|
|
53
|
+
const MAX_WRITE_BUFFER_SIZE = 1000;
|
|
54
|
+
const writeBuffer = [];
|
|
55
|
+
async function flush() {
|
|
56
|
+
if (writeBuffer.length) {
|
|
57
|
+
const buffer = writeBuffer.join('');
|
|
58
|
+
writeBuffer.length = 0;
|
|
59
|
+
await new Promise((resolve, reject) => {
|
|
60
|
+
file.write(buffer, (err) => {
|
|
61
|
+
if (err)
|
|
62
|
+
reject(err);
|
|
63
|
+
else
|
|
64
|
+
resolve();
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function close() {
|
|
70
|
+
await flush();
|
|
71
|
+
file.close();
|
|
72
|
+
await fileClosedFuture;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
filePath,
|
|
76
|
+
async appendDebounced(buffer) {
|
|
77
|
+
writeBuffer.push(buffer);
|
|
78
|
+
if (writeBuffer.length >= MAX_WRITE_BUFFER_SIZE) {
|
|
79
|
+
await flush();
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
close
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
exports.createFileWriter = createFileWriter;
|
|
86
|
+
//# sourceMappingURL=fileWriter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fileWriter.js","sourceRoot":"","sources":["../../src/helpers/fileWriter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,gDAAuB;AAQvB,KAAK,UAAU,eAAe,CAAC,IAAY;IACzC,OAAO,EAAE,CAAC,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,GAAG;wBAAE,MAAM,CAAC,GAAG,CAAC,CAAA;;wBACf,OAAO,EAAE,CAAA;gBAChB,CAAC,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;SACH;IACH,CAAC;IAED,KAAK,UAAU,KAAK;QAClB,MAAM,KAAK,EAAE,CAAA;QACb,IAAI,CAAC,KAAK,EAAE,CAAA;QACZ,MAAM,gBAAgB,CAAA;IACxB,CAAC;IAED,OAAO;QACL,QAAQ;QACR,KAAK,CAAC,eAAe,CAAC,MAAc;YAClC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACxB,IAAI,WAAW,CAAC,MAAM,IAAI,qBAAqB,EAAE;gBAC/C,MAAM,KAAK,EAAE,CAAA;aACd;QACH,CAAC;QACD,KAAK;KACN,CAAA;AACH,CAAC;AAlDD,4CAkDC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -26,8 +30,8 @@ exports.packagesLockPath = `unity-renderer-desktop/Packages/packages-lock.json`;
|
|
|
26
30
|
const isRendererPath = (path) => {
|
|
27
31
|
const packagePath = `${path}package.json`;
|
|
28
32
|
if (fs.existsSync(packagePath)) {
|
|
29
|
-
const content = JSON.parse(fs.readFileSync(packagePath,
|
|
30
|
-
return content[
|
|
33
|
+
const content = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
|
|
34
|
+
return content['name'] === `com.decentraland.unity-renderer`;
|
|
31
35
|
}
|
|
32
36
|
else {
|
|
33
37
|
return false;
|
|
@@ -35,9 +39,9 @@ const isRendererPath = (path) => {
|
|
|
35
39
|
};
|
|
36
40
|
exports.isRendererPath = isRendererPath;
|
|
37
41
|
const getUPMRendererPath = (initialPath) => {
|
|
38
|
-
if (!initialPath.endsWith(
|
|
39
|
-
initialPath +=
|
|
40
|
-
const extraPaths = [
|
|
42
|
+
if (!initialPath.endsWith('/'))
|
|
43
|
+
initialPath += '/';
|
|
44
|
+
const extraPaths = ['', 'Assets/', 'unity-renderer/Assets/'];
|
|
41
45
|
for (const extraPath of extraPaths) {
|
|
42
46
|
const path = initialPath + extraPath;
|
|
43
47
|
if ((0, exports.isRendererPath)(path)) {
|
|
@@ -48,7 +52,7 @@ const getUPMRendererPath = (initialPath) => {
|
|
|
48
52
|
};
|
|
49
53
|
exports.getUPMRendererPath = getUPMRendererPath;
|
|
50
54
|
const changeJSONFile = (path, changeFunction) => {
|
|
51
|
-
|
|
55
|
+
const content = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
52
56
|
changeFunction(content);
|
|
53
57
|
fs.writeFileSync(path, JSON.stringify(content, null, 2));
|
|
54
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-utils.js","sourceRoot":"","sources":["../../src/helpers/parse-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parse-utils.js","sourceRoot":"","sources":["../../src/helpers/parse-utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AAEX,QAAA,YAAY,GAAG,+CAA+C,CAAA;AAE9D,QAAA,gBAAgB,GAAG,oDAAoD,CAAA;AAE7E,MAAM,cAAc,GAAG,CAAC,IAAY,EAAW,EAAE;IACtD,MAAM,WAAW,GAAG,GAAG,IAAI,cAAc,CAAA;IACzC,IAAI,EAAE,CAAC,UAAU,CAAC,WAAW,CA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