1 |
|
2 |
|
3 |
|
4 | export var Version = (function () {
|
5 | |
6 |
|
7 |
|
8 | function Version(full) {
|
9 | this.full = full;
|
10 | }
|
11 | Object.defineProperty(Version.prototype, "major", {
|
12 | |
13 |
|
14 |
|
15 | get: function () { return this.full.split('.')[0]; },
|
16 | enumerable: true,
|
17 | configurable: true
|
18 | });
|
19 | Object.defineProperty(Version.prototype, "minor", {
|
20 | |
21 |
|
22 |
|
23 | get: function () { return this.full.split('.')[1]; },
|
24 | enumerable: true,
|
25 | configurable: true
|
26 | });
|
27 | Object.defineProperty(Version.prototype, "patch", {
|
28 | |
29 |
|
30 |
|
31 | get: function () { return this.full.split('.').slice(2).join('.'); },
|
32 | enumerable: true,
|
33 | configurable: true
|
34 | });
|
35 | return Version;
|
36 | }());
|
37 | function Version_tsickle_Closure_declarations() {
|
38 |
|
39 | Version.prototype.full;
|
40 | }
|
41 |
|
42 |
|
43 |
|
44 | export var VERSION = new Version('2.4.0');
|
45 |
|
\ | No newline at end of file |