UNPKG

@gmetrixr/rjson

Version:
20 lines (19 loc) 673 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const r_1 = require("../../../r"); /** * Assigns true value to enable_gyro where enable_gyro is undefined. * Because upto this point, enable_gyro had default of true which is now changed to false. */ 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, true); } projectF.set(r_1.rtp.project.version, 136); } } const migration = new Migration(); exports.default = migration;