UNPKG

@gmetrixr/rjson

Version:
18 lines (17 loc) 1.08 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getHighestDeploymentVersion = exports.deploymentMigrationTree = void 0; const d000_001_initial_deployment_migrations_1 = __importDefault(require("./deployment-migration-commands/d000_001_initial_deployment_migrations")); const d001_002_multiplayer_collab_properties_false_when_undefined_1 = __importDefault(require("./deployment-migration-commands/d001_002_multiplayer_collab_properties_false_when_undefined")); exports.deploymentMigrationTree = { [0]: d000_001_initial_deployment_migrations_1.default, [1]: d001_002_multiplayer_collab_properties_false_when_undefined_1.default, }; const getHighestDeploymentVersion = () => { const unorderedKeys = Object.keys(exports.deploymentMigrationTree).map(n => parseInt(n)).sort((a, b) => (b - a)); return unorderedKeys[0] + 1; }; exports.getHighestDeploymentVersion = getHighestDeploymentVersion;