UNPKG

@gmetrixr/rjson

Version:
18 lines (17 loc) 581 B
import { r, rtp } from "../../../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.project(pJson); if (projectF.get(rtp.project.enable_gyro) === undefined) { projectF.set(rtp.project.enable_gyro, false); } projectF.set(rtp.project.version, 141); } } const migration = new Migration(); export default migration;