@mapxus/mapxus-visual-jp 2.0.0-rc.1 → 2.0.0-rc.2
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mapxus
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@mapxus
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.MapxusVisual = {}, global.
|
|
5
|
-
})(this, (function (exports,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mapxus/mapxus-auth-jp')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@mapxus/mapxus-auth-jp'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.MapxusVisual = {}, global.mapxusAuthJp));
|
|
5
|
+
})(this, (function (exports, mapxusAuthJp) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _mergeNamespaces(n, m) {
|
|
8
8
|
m.forEach(function (e) {
|
|
@@ -14466,7 +14466,7 @@
|
|
|
14466
14466
|
*/
|
|
14467
14467
|
_cacheImage$(key) {
|
|
14468
14468
|
return Observable$4.create((subscriber) => __awaiter$2(this, void 0, void 0, function* () {
|
|
14469
|
-
const token = yield
|
|
14469
|
+
const token = yield mapxusAuthJp.getToken();
|
|
14470
14470
|
let xmlHTTP = new XMLHttpRequest();
|
|
14471
14471
|
xmlHTTP.open("GET", Urls.thumbnail(key), true);
|
|
14472
14472
|
xmlHTTP.setRequestHeader("Accept", "image/jpeg");
|
|
@@ -24893,7 +24893,7 @@
|
|
|
24893
24893
|
[401, 403].includes(networkError.statusCode)) {
|
|
24894
24894
|
// refresh token operation
|
|
24895
24895
|
return new Observable$1((observer) => {
|
|
24896
|
-
|
|
24896
|
+
mapxusAuthJp.getToken()
|
|
24897
24897
|
.then((res) => {
|
|
24898
24898
|
this._token = res;
|
|
24899
24899
|
this._setTokenToHeader(operation);
|
|
@@ -28571,7 +28571,7 @@
|
|
|
28571
28571
|
*/
|
|
28572
28572
|
this._authComplete$ = new AsyncSubject();
|
|
28573
28573
|
Settings.setOptions(options);
|
|
28574
|
-
|
|
28574
|
+
mapxusAuthJp.getToken().then((res) => {
|
|
28575
28575
|
const token = res;
|
|
28576
28576
|
const creator = new GraphQLCreator(token);
|
|
28577
28577
|
this._api = new API(creator);
|
|
@@ -38854,7 +38854,7 @@ void main()
|
|
|
38854
38854
|
let xmlHTTP = null;
|
|
38855
38855
|
return [
|
|
38856
38856
|
Observable$4.create((subscriber) => __awaiter(this, void 0, void 0, function* () {
|
|
38857
|
-
const token = yield
|
|
38857
|
+
const token = yield mapxusAuthJp.getToken();
|
|
38858
38858
|
xmlHTTP = new XMLHttpRequest();
|
|
38859
38859
|
xmlHTTP.open("GET", url, true);
|
|
38860
38860
|
xmlHTTP.setRequestHeader("token", token);
|