@team-monolith/pxt-core 0.1.9 → 0.2.0
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 +7 -7
- package/built/pxtlib.d.ts +1 -1
- package/built/pxtlib.js +7 -7
- package/built/target.js +3 -3
- package/built/web/main.js +2 -2
- package/built/web/pxtapp.js +7 -7
- package/built/web/pxtembed.js +7 -7
- package/built/web/pxtlib.js +7 -7
- package/built/web/pxtworker.js +7 -7
- 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
|
*/
|
|
@@ -120960,7 +120960,7 @@ var pxt;
|
|
|
120960
120960
|
? "dev"
|
|
120961
120961
|
: "prd";
|
|
120962
120962
|
}
|
|
120963
|
-
|
|
120963
|
+
cookie_1.getEnv = getEnv;
|
|
120964
120964
|
function getCookieName(name) {
|
|
120965
120965
|
if (window.location.hostname === "localhost") {
|
|
120966
120966
|
return `${name}_localhost_local`;
|
|
@@ -120968,12 +120968,12 @@ var pxt;
|
|
|
120968
120968
|
const tenant = window.location.hostname.split(".")[1];
|
|
120969
120969
|
return `${name}_${tenant}_${getEnv()}`;
|
|
120970
120970
|
}
|
|
120971
|
-
|
|
120971
|
+
cookie_1.getCookieName = getCookieName;
|
|
120972
120972
|
function getCookieToken() {
|
|
120973
120973
|
return getCookie(getCookieName("token"));
|
|
120974
120974
|
}
|
|
120975
|
-
|
|
120976
|
-
})(
|
|
120975
|
+
cookie_1.getCookieToken = getCookieToken;
|
|
120976
|
+
})(cookie = pxt.cookie || (pxt.cookie = {}));
|
|
120977
120977
|
})(pxt || (pxt = {}));
|
|
120978
120978
|
// TODO: add a macro facility to make 8-bit assembly easier?
|
|
120979
120979
|
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
|
*/
|
|
@@ -23274,7 +23274,7 @@ var pxt;
|
|
|
23274
23274
|
? "dev"
|
|
23275
23275
|
: "prd";
|
|
23276
23276
|
}
|
|
23277
|
-
|
|
23277
|
+
cookie_1.getEnv = getEnv;
|
|
23278
23278
|
function getCookieName(name) {
|
|
23279
23279
|
if (window.location.hostname === "localhost") {
|
|
23280
23280
|
return `${name}_localhost_local`;
|
|
@@ -23282,12 +23282,12 @@ var pxt;
|
|
|
23282
23282
|
const tenant = window.location.hostname.split(".")[1];
|
|
23283
23283
|
return `${name}_${tenant}_${getEnv()}`;
|
|
23284
23284
|
}
|
|
23285
|
-
|
|
23285
|
+
cookie_1.getCookieName = getCookieName;
|
|
23286
23286
|
function getCookieToken() {
|
|
23287
23287
|
return getCookie(getCookieName("token"));
|
|
23288
23288
|
}
|
|
23289
|
-
|
|
23290
|
-
})(
|
|
23289
|
+
cookie_1.getCookieToken = getCookieToken;
|
|
23290
|
+
})(cookie = pxt.cookie || (pxt.cookie = {}));
|
|
23291
23291
|
})(pxt || (pxt = {}));
|
|
23292
23292
|
// TODO: add a macro facility to make 8-bit assembly easier?
|
|
23293
23293
|
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": "698413e78009e89a8eb1e00e19688ac1c42a9cc3725a1b6fd0fd94857c3afaf9"
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
4308
|
}
|