projecte_ionic/node_modules/@angular/cli/models/version.js
2022-02-09 18:30:03 +01:00

21 lines
678 B
JavaScript
Executable file

"use strict";
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = exports.Version = void 0;
// Same structure as used in framework packages
class Version {
constructor(full) {
this.full = full;
this.major = full.split('.')[0];
this.minor = full.split('.')[1];
this.patch = full.split('.').slice(2).join('.');
}
}
exports.Version = Version;
exports.VERSION = new Version(require('../package.json').version);