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