git-digger 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
function addFormatStructureForTime(structure) {
|
|
279
279
|
this.lw(structure);
|
|
280
280
|
}
|
|
281
|
-
setMetadataFor(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', interfaceMeta, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder,
|
|
281
|
+
setMetadataFor(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', interfaceMeta, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
|
|
282
282
|
function offsetHours$default(padding, $super) {
|
|
283
283
|
padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
|
|
284
284
|
var tmp;
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
return tmp;
|
|
332
332
|
}
|
|
333
333
|
setMetadataFor(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', interfaceMeta, VOID, [WithUtcOffset]);
|
|
334
|
-
setMetadataFor(Builder, 'Builder', classMeta, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithUtcOffset
|
|
334
|
+
setMetadataFor(Builder, 'Builder', classMeta, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
|
|
335
335
|
setMetadataFor(AbstractDateTimeFormat, 'AbstractDateTimeFormat', classMeta);
|
|
336
336
|
setMetadataFor(DateTimeComponentsFormat, 'DateTimeComponentsFormat', classMeta, AbstractDateTimeFormat);
|
|
337
337
|
setMetadataFor(TwoDigitNumber, 'TwoDigitNumber', classMeta);
|
|
@@ -32,17 +32,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
32
32
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
if (typeof Math.clz32 === 'undefined') {
|
|
36
|
-
Math.clz32 = function (log, LN2) {
|
|
37
|
-
return function (x) {
|
|
38
|
-
var asUint = x >>> 0;
|
|
39
|
-
if (asUint === 0) {
|
|
40
|
-
return 32;
|
|
41
|
-
}
|
|
42
|
-
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
43
|
-
};
|
|
44
|
-
}(Math.log, Math.LN2);
|
|
45
|
-
}
|
|
46
35
|
if (typeof Math.log2 === 'undefined') {
|
|
47
36
|
Math.log2 = function (x) {
|
|
48
37
|
return Math.log(x) * Math.LOG2E;
|
|
@@ -53,11 +42,16 @@ if (typeof Math.log10 === 'undefined') {
|
|
|
53
42
|
return Math.log(x) * Math.LOG10E;
|
|
54
43
|
};
|
|
55
44
|
}
|
|
56
|
-
if (typeof
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
46
|
+
Math.clz32 = function (log, LN2) {
|
|
47
|
+
return function (x) {
|
|
48
|
+
var asUint = x >>> 0;
|
|
49
|
+
if (asUint === 0) {
|
|
50
|
+
return 32;
|
|
51
|
+
}
|
|
52
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
53
|
+
};
|
|
54
|
+
}(Math.log, Math.LN2);
|
|
61
55
|
}
|
|
62
56
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
63
57
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -70,6 +64,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
70
64
|
return lastIndex !== -1 && lastIndex === position;
|
|
71
65
|
}});
|
|
72
66
|
}
|
|
67
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
68
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
69
|
+
position = position || 0;
|
|
70
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
71
|
+
}});
|
|
72
|
+
}
|
|
73
73
|
if (typeof Math.imul === 'undefined') {
|
|
74
74
|
Math.imul = function imul(a, b) {
|
|
75
75
|
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|