UNPKG

@gmetrixr/rjson

Version:
20 lines (19 loc) 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const r_1 = require("../../../r"); /** * Assigns false value to enable_gyro where enable_gyro is undefined. * Because upto this point, enable_gyro had default of false which is now changed to true. */ class Migration { execute(projectJson) { const pJson = projectJson; const projectF = r_1.r.project(pJson); if (projectF.get(r_1.rtp.project.enable_gyro) === undefined) { projectF.set(r_1.rtp.project.enable_gyro, false); } projectF.set(r_1.rtp.project.version, 141); } } const migration = new Migration(); exports.default = migration;