@team-monolith/pxt-core 0.1.2 → 0.1.4
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/built/pxt.js +5 -1
- package/built/pxtlib.js +5 -1
- package/built/target.js +3 -3
- package/built/web/main.js +19 -9
- package/built/web/pxtapp.js +5 -1
- package/built/web/pxtembed.js +5 -1
- package/built/web/pxtlib.js +5 -1
- package/built/web/pxtworker.js +5 -1
- package/package.json +1 -1
package/built/pxt.js
CHANGED
|
@@ -98407,7 +98407,8 @@ var pxt;
|
|
|
98407
98407
|
headers["Authorization"] = `Bearer ${token}`;
|
|
98408
98408
|
}
|
|
98409
98409
|
headers[X_PXT_TARGET] = (_a = pxt.appTarget) === null || _a === void 0 ? void 0 : _a.id;
|
|
98410
|
-
url = pxt.BrowserUtils.isLocalHostDev() ? `${pxt.cloud.DEV_BACKEND}${url}` :
|
|
98410
|
+
// url = pxt.BrowserUtils.isLocalHostDev() ? `${pxt.cloud.DEV_BACKEND}${url}` : url;
|
|
98411
|
+
url = `${pxt.Cloud.apiRoot.replace(/\/$/, "")}${url}`;
|
|
98411
98412
|
return pxt.Util.requestAsync({
|
|
98412
98413
|
url,
|
|
98413
98414
|
headers,
|
|
@@ -120955,6 +120956,9 @@ var pxt;
|
|
|
120955
120956
|
}
|
|
120956
120957
|
codle.getEnv = getEnv;
|
|
120957
120958
|
function getCookieName(name) {
|
|
120959
|
+
if (window.location.hostname === "localhost") {
|
|
120960
|
+
return `${name}_localhost_local`;
|
|
120961
|
+
}
|
|
120958
120962
|
const tenant = window.location.hostname.split(".")[1];
|
|
120959
120963
|
return `${name}_${tenant}_${getEnv()}`;
|
|
120960
120964
|
}
|
package/built/pxtlib.js
CHANGED
|
@@ -721,7 +721,8 @@ var pxt;
|
|
|
721
721
|
headers["Authorization"] = `Bearer ${token}`;
|
|
722
722
|
}
|
|
723
723
|
headers[X_PXT_TARGET] = (_a = pxt.appTarget) === null || _a === void 0 ? void 0 : _a.id;
|
|
724
|
-
url = pxt.BrowserUtils.isLocalHostDev() ? `${pxt.cloud.DEV_BACKEND}${url}` :
|
|
724
|
+
// url = pxt.BrowserUtils.isLocalHostDev() ? `${pxt.cloud.DEV_BACKEND}${url}` : url;
|
|
725
|
+
url = `${pxt.Cloud.apiRoot.replace(/\/$/, "")}${url}`;
|
|
725
726
|
return pxt.Util.requestAsync({
|
|
726
727
|
url,
|
|
727
728
|
headers,
|
|
@@ -23269,6 +23270,9 @@ var pxt;
|
|
|
23269
23270
|
}
|
|
23270
23271
|
codle.getEnv = getEnv;
|
|
23271
23272
|
function getCookieName(name) {
|
|
23273
|
+
if (window.location.hostname === "localhost") {
|
|
23274
|
+
return `${name}_localhost_local`;
|
|
23275
|
+
}
|
|
23272
23276
|
const tenant = window.location.hostname.split(".")[1];
|
|
23273
23277
|
return `${name}_${tenant}_${getEnv()}`;
|
|
23274
23278
|
}
|
package/built/target.js
CHANGED
|
@@ -380,8 +380,8 @@ var pxtTargetBundle = {
|
|
|
380
380
|
},
|
|
381
381
|
"uploadDocs": false,
|
|
382
382
|
"versions": {
|
|
383
|
-
"target": "0.1.
|
|
384
|
-
"pxt": "0.1.
|
|
383
|
+
"target": "0.1.3",
|
|
384
|
+
"pxt": "0.1.3"
|
|
385
385
|
},
|
|
386
386
|
"blocksprj": {
|
|
387
387
|
"id": "blocksprj",
|
|
@@ -4302,7 +4302,7 @@ var pxtTargetBundle = {
|
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
4304
4304
|
},
|
|
4305
|
-
"sha": "
|
|
4305
|
+
"sha": "b7ed78479e6582d2b004d3cc14686d9b9022444280b17075ca8fac68c21b5485"
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|