azure-maps-control 2.1.13 → 2.1.14
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.
- package/dist/atlas-core-bare.js +27 -37
- package/dist/atlas-core-bare.min.js +1 -1
- package/dist/atlas-core.js +27 -37
- package/dist/atlas-core.min.js +1 -1
- package/dist/atlas.js +27 -37
- package/dist/atlas.min.js +1 -1
- package/package.json +1 -1
package/dist/atlas.js
CHANGED
|
@@ -43487,7 +43487,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
43487
43487
|
return Url;
|
|
43488
43488
|
}());
|
|
43489
43489
|
|
|
43490
|
-
var version = "2.1.
|
|
43490
|
+
var version = "2.1.14";
|
|
43491
43491
|
|
|
43492
43492
|
/**
|
|
43493
43493
|
* A helper class that provides methods for getting various forms of the map controls current version.
|
|
@@ -78594,6 +78594,7 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78594
78594
|
var HijackablePromise = /** @class */ (function () {
|
|
78595
78595
|
function HijackablePromise(origin) {
|
|
78596
78596
|
var _this = this;
|
|
78597
|
+
this.isHijacked = function () { return _this._hijackedToResolve !== undefined || _this._hijackedToReject !== undefined; };
|
|
78597
78598
|
this.isResolved = function () { return _this._hijackedToResolve !== undefined || _this._toResolve !== undefined; };
|
|
78598
78599
|
this.isRejected = function () { return _this._hijackedToReject !== undefined || _this._toReject !== undefined; };
|
|
78599
78600
|
this.resultIfResolved = function () { return _this._hijackedToResolve || _this._toResolve; };
|
|
@@ -78607,39 +78608,28 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78607
78608
|
}
|
|
78608
78609
|
else {
|
|
78609
78610
|
// we retain the origin, and check if stays the same as resolved
|
|
78610
|
-
// to make sure we do nothing if the promise was switched
|
|
78611
78611
|
var retainedInvocator_1 = _this.origin;
|
|
78612
78612
|
_this.origin.then(function (result) {
|
|
78613
|
-
|
|
78614
|
-
if (retainedInvocator_1 !== _this.origin) {
|
|
78613
|
+
if (_this.isHijacked()) {
|
|
78615
78614
|
return;
|
|
78616
78615
|
}
|
|
78617
|
-
|
|
78616
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
78617
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
78618
|
+
_this._thenResolver(resolve, reject);
|
|
78619
|
+
}
|
|
78620
|
+
else {
|
|
78618
78621
|
_this._toResolve = result;
|
|
78619
78622
|
resolve(result);
|
|
78620
78623
|
}
|
|
78621
78624
|
}).catch(function (error) {
|
|
78622
|
-
if (
|
|
78623
|
-
_this._toReject = error;
|
|
78624
|
-
reject(error);
|
|
78625
|
-
}
|
|
78626
|
-
});
|
|
78627
|
-
}
|
|
78628
|
-
};
|
|
78629
|
-
this._catchResolver = function (reject) {
|
|
78630
|
-
if (_this._hijackedToReject) {
|
|
78631
|
-
reject(_this._hijackedToReject);
|
|
78632
|
-
}
|
|
78633
|
-
else {
|
|
78634
|
-
// we retain the origin, and check if stays the same as resolved
|
|
78635
|
-
// to make sure we do nothing if the promise was switched
|
|
78636
|
-
var retainedInvocator_2 = _this.origin;
|
|
78637
|
-
_this.origin.catch(function (error) {
|
|
78638
|
-
// origin was switched
|
|
78639
|
-
if (retainedInvocator_2 !== _this.origin) {
|
|
78625
|
+
if (_this.isHijacked()) {
|
|
78640
78626
|
return;
|
|
78641
78627
|
}
|
|
78642
|
-
|
|
78628
|
+
// origin was switched during invocation, discard the result and follow the chain
|
|
78629
|
+
if (retainedInvocator_1 !== _this.origin) {
|
|
78630
|
+
_this._thenResolver(resolve, reject);
|
|
78631
|
+
}
|
|
78632
|
+
else {
|
|
78643
78633
|
_this._toReject = error;
|
|
78644
78634
|
reject(error);
|
|
78645
78635
|
}
|
|
@@ -78666,14 +78656,20 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78666
78656
|
// tslint:disable-next-line: no-reserved-keywords
|
|
78667
78657
|
HijackablePromise.prototype.catch = function (onrejected) {
|
|
78668
78658
|
var _this = this;
|
|
78669
|
-
return new Promise(function (
|
|
78659
|
+
return new Promise(function (resolve, reject) {
|
|
78660
|
+
_this._resolve = resolve;
|
|
78670
78661
|
_this._reject = reject;
|
|
78671
|
-
_this.
|
|
78672
|
-
}).
|
|
78662
|
+
_this._thenResolver(resolve, reject);
|
|
78663
|
+
}).catch(onrejected);
|
|
78673
78664
|
};
|
|
78674
78665
|
// tslint:disable-next-line: no-reserved-keywords
|
|
78675
78666
|
HijackablePromise.prototype.finally = function (onfinally) {
|
|
78676
|
-
|
|
78667
|
+
var _this = this;
|
|
78668
|
+
return new Promise(function (resolve, reject) {
|
|
78669
|
+
_this._resolve = resolve;
|
|
78670
|
+
_this._reject = reject;
|
|
78671
|
+
_this._thenResolver(resolve, reject);
|
|
78672
|
+
}).finally(onfinally);
|
|
78677
78673
|
};
|
|
78678
78674
|
HijackablePromise.prototype.hijackAndResolve = function (value) {
|
|
78679
78675
|
this._hijackedToResolve = value;
|
|
@@ -78688,16 +78684,10 @@ EFFET JURIDIQUE. Le présent contrat décrit certains droits juridiques. Vous po
|
|
|
78688
78684
|
}
|
|
78689
78685
|
};
|
|
78690
78686
|
HijackablePromise.prototype.switchWith = function (promise) {
|
|
78691
|
-
// switching the origin will discard the original in-progress promise result
|
|
78687
|
+
// switching the origin will discard the original in-progress promise result, as well any resolved non-hijacked state
|
|
78692
78688
|
this.origin = promise;
|
|
78693
|
-
|
|
78694
|
-
|
|
78695
|
-
this._thenResolver(this._resolve, this._reject);
|
|
78696
|
-
// catch has been invoked on this promise
|
|
78697
|
-
}
|
|
78698
|
-
else if (this._reject) {
|
|
78699
|
-
this._catchResolver(this._reject);
|
|
78700
|
-
}
|
|
78689
|
+
this._toResolve = undefined;
|
|
78690
|
+
this._toReject = undefined;
|
|
78701
78691
|
};
|
|
78702
78692
|
return HijackablePromise;
|
|
78703
78693
|
}());
|