@team-monolith/pxt-core 0.1.9 → 0.2.1
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 +9 -8
- package/built/pxtlib.d.ts +1 -1
- package/built/pxtlib.js +9 -8
- package/built/target.js +3 -3
- package/built/web/main.js +2 -2
- package/built/web/pxtapp.js +9 -8
- package/built/web/pxtembed.js +9 -8
- package/built/web/pxtlib.js +9 -8
- package/built/web/pxtworker.js +9 -8
- package/package.json +1 -1
package/built/pxt.js
CHANGED
|
@@ -98404,7 +98404,7 @@ var pxt;
|
|
|
98404
98404
|
headers["authorization"] = `mkcd ${authToken}`;
|
|
98405
98405
|
}
|
|
98406
98406
|
*/
|
|
98407
|
-
const token = pxt.
|
|
98407
|
+
const token = pxt.cookie.getCookieToken();
|
|
98408
98408
|
if (token) {
|
|
98409
98409
|
headers["Authorization"] = `Bearer ${token}`;
|
|
98410
98410
|
}
|
|
@@ -120943,8 +120943,8 @@ var pxt;
|
|
|
120943
120943
|
*/
|
|
120944
120944
|
var pxt;
|
|
120945
120945
|
(function (pxt) {
|
|
120946
|
-
var
|
|
120947
|
-
(function (
|
|
120946
|
+
var cookie;
|
|
120947
|
+
(function (cookie_1) {
|
|
120948
120948
|
/**
|
|
120949
120949
|
* document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
|
|
120950
120950
|
*/
|
|
@@ -120956,11 +120956,12 @@ var pxt;
|
|
|
120956
120956
|
function getEnv() {
|
|
120957
120957
|
return window.location.hostname === "localhost"
|
|
120958
120958
|
? "local"
|
|
120959
|
-
: window.location.hostname.includes("dev")
|
|
120959
|
+
: window.location.hostname.includes("dev") ||
|
|
120960
|
+
window.location.hostname.includes("revised")
|
|
120960
120961
|
? "dev"
|
|
120961
120962
|
: "prd";
|
|
120962
120963
|
}
|
|
120963
|
-
|
|
120964
|
+
cookie_1.getEnv = getEnv;
|
|
120964
120965
|
function getCookieName(name) {
|
|
120965
120966
|
if (window.location.hostname === "localhost") {
|
|
120966
120967
|
return `${name}_localhost_local`;
|
|
@@ -120968,12 +120969,12 @@ var pxt;
|
|
|
120968
120969
|
const tenant = window.location.hostname.split(".")[1];
|
|
120969
120970
|
return `${name}_${tenant}_${getEnv()}`;
|
|
120970
120971
|
}
|
|
120971
|
-
|
|
120972
|
+
cookie_1.getCookieName = getCookieName;
|
|
120972
120973
|
function getCookieToken() {
|
|
120973
120974
|
return getCookie(getCookieName("token"));
|
|
120974
120975
|
}
|
|
120975
|
-
|
|
120976
|
-
})(
|
|
120976
|
+
cookie_1.getCookieToken = getCookieToken;
|
|
120977
|
+
})(cookie = pxt.cookie || (pxt.cookie = {}));
|
|
120977
120978
|
})(pxt || (pxt = {}));
|
|
120978
120979
|
// TODO: add a macro facility to make 8-bit assembly easier?
|
|
120979
120980
|
var ts;
|
package/built/pxtlib.d.ts
CHANGED
|
@@ -3496,7 +3496,7 @@ declare namespace pxt.youtube {
|
|
|
3496
3496
|
/**
|
|
3497
3497
|
* Cookie 관련 함수들을 정의합니다.
|
|
3498
3498
|
*/
|
|
3499
|
-
declare namespace pxt.
|
|
3499
|
+
declare namespace pxt.cookie {
|
|
3500
3500
|
function getEnv(): string;
|
|
3501
3501
|
function getCookieName(name: string): string;
|
|
3502
3502
|
function getCookieToken(): string | undefined;
|
package/built/pxtlib.js
CHANGED
|
@@ -718,7 +718,7 @@ var pxt;
|
|
|
718
718
|
headers["authorization"] = `mkcd ${authToken}`;
|
|
719
719
|
}
|
|
720
720
|
*/
|
|
721
|
-
const token = pxt.
|
|
721
|
+
const token = pxt.cookie.getCookieToken();
|
|
722
722
|
if (token) {
|
|
723
723
|
headers["Authorization"] = `Bearer ${token}`;
|
|
724
724
|
}
|
|
@@ -23257,8 +23257,8 @@ var pxt;
|
|
|
23257
23257
|
*/
|
|
23258
23258
|
var pxt;
|
|
23259
23259
|
(function (pxt) {
|
|
23260
|
-
var
|
|
23261
|
-
(function (
|
|
23260
|
+
var cookie;
|
|
23261
|
+
(function (cookie_1) {
|
|
23262
23262
|
/**
|
|
23263
23263
|
* document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
|
|
23264
23264
|
*/
|
|
@@ -23270,11 +23270,12 @@ var pxt;
|
|
|
23270
23270
|
function getEnv() {
|
|
23271
23271
|
return window.location.hostname === "localhost"
|
|
23272
23272
|
? "local"
|
|
23273
|
-
: window.location.hostname.includes("dev")
|
|
23273
|
+
: window.location.hostname.includes("dev") ||
|
|
23274
|
+
window.location.hostname.includes("revised")
|
|
23274
23275
|
? "dev"
|
|
23275
23276
|
: "prd";
|
|
23276
23277
|
}
|
|
23277
|
-
|
|
23278
|
+
cookie_1.getEnv = getEnv;
|
|
23278
23279
|
function getCookieName(name) {
|
|
23279
23280
|
if (window.location.hostname === "localhost") {
|
|
23280
23281
|
return `${name}_localhost_local`;
|
|
@@ -23282,12 +23283,12 @@ var pxt;
|
|
|
23282
23283
|
const tenant = window.location.hostname.split(".")[1];
|
|
23283
23284
|
return `${name}_${tenant}_${getEnv()}`;
|
|
23284
23285
|
}
|
|
23285
|
-
|
|
23286
|
+
cookie_1.getCookieName = getCookieName;
|
|
23286
23287
|
function getCookieToken() {
|
|
23287
23288
|
return getCookie(getCookieName("token"));
|
|
23288
23289
|
}
|
|
23289
|
-
|
|
23290
|
-
})(
|
|
23290
|
+
cookie_1.getCookieToken = getCookieToken;
|
|
23291
|
+
})(cookie = pxt.cookie || (pxt.cookie = {}));
|
|
23291
23292
|
})(pxt || (pxt = {}));
|
|
23292
23293
|
// TODO: add a macro facility to make 8-bit assembly easier?
|
|
23293
23294
|
var ts;
|
package/built/target.js
CHANGED
|
@@ -380,8 +380,8 @@ var pxtTargetBundle = {
|
|
|
380
380
|
},
|
|
381
381
|
"uploadDocs": false,
|
|
382
382
|
"versions": {
|
|
383
|
-
"target": "0.
|
|
384
|
-
"pxt": "0.
|
|
383
|
+
"target": "0.2.0",
|
|
384
|
+
"pxt": "0.2.0"
|
|
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": "cdb29c91a2c1dcff42cd7f6a8c764fd41fe9876d3d63f28d84541bb22932efaf"
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|