@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.
@@ -724,7 +724,7 @@ var pxt;
724
724
  headers["authorization"] = `mkcd ${authToken}`;
725
725
  }
726
726
  */
727
- const token = pxt.codle.getCookieToken();
727
+ const token = pxt.cookie.getCookieToken();
728
728
  if (token) {
729
729
  headers["Authorization"] = `Bearer ${token}`;
730
730
  }
@@ -23263,8 +23263,8 @@ var pxt;
23263
23263
  */
23264
23264
  var pxt;
23265
23265
  (function (pxt) {
23266
- var codle;
23267
- (function (codle) {
23266
+ var cookie;
23267
+ (function (cookie_1) {
23268
23268
  /**
23269
23269
  * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
23270
23270
  */
@@ -23276,11 +23276,12 @@ var pxt;
23276
23276
  function getEnv() {
23277
23277
  return window.location.hostname === "localhost"
23278
23278
  ? "local"
23279
- : window.location.hostname.includes("dev")
23279
+ : window.location.hostname.includes("dev") ||
23280
+ window.location.hostname.includes("revised")
23280
23281
  ? "dev"
23281
23282
  : "prd";
23282
23283
  }
23283
- codle.getEnv = getEnv;
23284
+ cookie_1.getEnv = getEnv;
23284
23285
  function getCookieName(name) {
23285
23286
  if (window.location.hostname === "localhost") {
23286
23287
  return `${name}_localhost_local`;
@@ -23288,12 +23289,12 @@ var pxt;
23288
23289
  const tenant = window.location.hostname.split(".")[1];
23289
23290
  return `${name}_${tenant}_${getEnv()}`;
23290
23291
  }
23291
- codle.getCookieName = getCookieName;
23292
+ cookie_1.getCookieName = getCookieName;
23292
23293
  function getCookieToken() {
23293
23294
  return getCookie(getCookieName("token"));
23294
23295
  }
23295
- codle.getCookieToken = getCookieToken;
23296
- })(codle = pxt.codle || (pxt.codle = {}));
23296
+ cookie_1.getCookieToken = getCookieToken;
23297
+ })(cookie = pxt.cookie || (pxt.cookie = {}));
23297
23298
  })(pxt || (pxt = {}));
23298
23299
  // TODO: add a macro facility to make 8-bit assembly easier?
23299
23300
  var ts;
@@ -98405,7 +98405,7 @@ var pxt;
98405
98405
  headers["authorization"] = `mkcd ${authToken}`;
98406
98406
  }
98407
98407
  */
98408
- const token = pxt.codle.getCookieToken();
98408
+ const token = pxt.cookie.getCookieToken();
98409
98409
  if (token) {
98410
98410
  headers["Authorization"] = `Bearer ${token}`;
98411
98411
  }
@@ -120944,8 +120944,8 @@ var pxt;
120944
120944
  */
120945
120945
  var pxt;
120946
120946
  (function (pxt) {
120947
- var codle;
120948
- (function (codle) {
120947
+ var cookie;
120948
+ (function (cookie_1) {
120949
120949
  /**
120950
120950
  * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
120951
120951
  */
@@ -120957,11 +120957,12 @@ var pxt;
120957
120957
  function getEnv() {
120958
120958
  return window.location.hostname === "localhost"
120959
120959
  ? "local"
120960
- : window.location.hostname.includes("dev")
120960
+ : window.location.hostname.includes("dev") ||
120961
+ window.location.hostname.includes("revised")
120961
120962
  ? "dev"
120962
120963
  : "prd";
120963
120964
  }
120964
- codle.getEnv = getEnv;
120965
+ cookie_1.getEnv = getEnv;
120965
120966
  function getCookieName(name) {
120966
120967
  if (window.location.hostname === "localhost") {
120967
120968
  return `${name}_localhost_local`;
@@ -120969,12 +120970,12 @@ var pxt;
120969
120970
  const tenant = window.location.hostname.split(".")[1];
120970
120971
  return `${name}_${tenant}_${getEnv()}`;
120971
120972
  }
120972
- codle.getCookieName = getCookieName;
120973
+ cookie_1.getCookieName = getCookieName;
120973
120974
  function getCookieToken() {
120974
120975
  return getCookie(getCookieName("token"));
120975
120976
  }
120976
- codle.getCookieToken = getCookieToken;
120977
- })(codle = pxt.codle || (pxt.codle = {}));
120977
+ cookie_1.getCookieToken = getCookieToken;
120978
+ })(cookie = pxt.cookie || (pxt.cookie = {}));
120978
120979
  })(pxt || (pxt = {}));
120979
120980
  // TODO: add a macro facility to make 8-bit assembly easier?
120980
120981
  var ts;
@@ -718,7 +718,7 @@ var pxt;
718
718
  headers["authorization"] = `mkcd ${authToken}`;
719
719
  }
720
720
  */
721
- const token = pxt.codle.getCookieToken();
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 codle;
23261
- (function (codle) {
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
- codle.getEnv = getEnv;
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
- codle.getCookieName = getCookieName;
23286
+ cookie_1.getCookieName = getCookieName;
23286
23287
  function getCookieToken() {
23287
23288
  return getCookie(getCookieName("token"));
23288
23289
  }
23289
- codle.getCookieToken = getCookieToken;
23290
- })(codle = pxt.codle || (pxt.codle = {}));
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;
@@ -98415,7 +98415,7 @@ var pxt;
98415
98415
  headers["authorization"] = `mkcd ${authToken}`;
98416
98416
  }
98417
98417
  */
98418
- const token = pxt.codle.getCookieToken();
98418
+ const token = pxt.cookie.getCookieToken();
98419
98419
  if (token) {
98420
98420
  headers["Authorization"] = `Bearer ${token}`;
98421
98421
  }
@@ -120954,8 +120954,8 @@ var pxt;
120954
120954
  */
120955
120955
  var pxt;
120956
120956
  (function (pxt) {
120957
- var codle;
120958
- (function (codle) {
120957
+ var cookie;
120958
+ (function (cookie_1) {
120959
120959
  /**
120960
120960
  * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
120961
120961
  */
@@ -120967,11 +120967,12 @@ var pxt;
120967
120967
  function getEnv() {
120968
120968
  return window.location.hostname === "localhost"
120969
120969
  ? "local"
120970
- : window.location.hostname.includes("dev")
120970
+ : window.location.hostname.includes("dev") ||
120971
+ window.location.hostname.includes("revised")
120971
120972
  ? "dev"
120972
120973
  : "prd";
120973
120974
  }
120974
- codle.getEnv = getEnv;
120975
+ cookie_1.getEnv = getEnv;
120975
120976
  function getCookieName(name) {
120976
120977
  if (window.location.hostname === "localhost") {
120977
120978
  return `${name}_localhost_local`;
@@ -120979,12 +120980,12 @@ var pxt;
120979
120980
  const tenant = window.location.hostname.split(".")[1];
120980
120981
  return `${name}_${tenant}_${getEnv()}`;
120981
120982
  }
120982
- codle.getCookieName = getCookieName;
120983
+ cookie_1.getCookieName = getCookieName;
120983
120984
  function getCookieToken() {
120984
120985
  return getCookie(getCookieName("token"));
120985
120986
  }
120986
- codle.getCookieToken = getCookieToken;
120987
- })(codle = pxt.codle || (pxt.codle = {}));
120987
+ cookie_1.getCookieToken = getCookieToken;
120988
+ })(cookie = pxt.cookie || (pxt.cookie = {}));
120988
120989
  })(pxt || (pxt = {}));
120989
120990
  // TODO: add a macro facility to make 8-bit assembly easier?
120990
120991
  var ts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/pxt-core",
3
- "version": "0.1.9",
3
+ "version": "0.2.1",
4
4
  "files": [
5
5
  "README.md",
6
6
  "built/*.js",