@team-monolith/pxt-core 0.1.7 → 0.1.9

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 CHANGED
@@ -120945,11 +120945,13 @@ var pxt;
120945
120945
  (function (pxt) {
120946
120946
  var codle;
120947
120947
  (function (codle) {
120948
+ /**
120949
+ * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
120950
+ */
120948
120951
  function getCookie(name) {
120949
- let matches = document.cookie.match(new RegExp("(?:^|; )" +
120950
- name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
120951
- "=([^;]*)"));
120952
- return matches ? decodeURIComponent(matches[1]) : undefined;
120952
+ const cookies = document.cookie.split("; ");
120953
+ const cookie = cookies.find((cookie) => cookie.startsWith(name + "="));
120954
+ return cookie ? decodeURIComponent(cookie.split("=")[1]) : undefined;
120953
120955
  }
120954
120956
  function getEnv() {
120955
120957
  return window.location.hostname === "localhost"
package/built/pxtlib.js CHANGED
@@ -23259,11 +23259,13 @@ var pxt;
23259
23259
  (function (pxt) {
23260
23260
  var codle;
23261
23261
  (function (codle) {
23262
+ /**
23263
+ * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
23264
+ */
23262
23265
  function getCookie(name) {
23263
- let matches = document.cookie.match(new RegExp("(?:^|; )" +
23264
- name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
23265
- "=([^;]*)"));
23266
- return matches ? decodeURIComponent(matches[1]) : undefined;
23266
+ const cookies = document.cookie.split("; ");
23267
+ const cookie = cookies.find((cookie) => cookie.startsWith(name + "="));
23268
+ return cookie ? decodeURIComponent(cookie.split("=")[1]) : undefined;
23267
23269
  }
23268
23270
  function getEnv() {
23269
23271
  return window.location.hostname === "localhost"
package/built/target.js CHANGED
@@ -380,8 +380,8 @@ var pxtTargetBundle = {
380
380
  },
381
381
  "uploadDocs": false,
382
382
  "versions": {
383
- "target": "0.1.6",
384
- "pxt": "0.1.6"
383
+ "target": "0.1.9",
384
+ "pxt": "0.1.9"
385
385
  },
386
386
  "blocksprj": {
387
387
  "id": "blocksprj",
@@ -4302,7 +4302,7 @@ var pxtTargetBundle = {
4302
4302
  }
4303
4303
  }
4304
4304
  },
4305
- "sha": "a986dcfee803f652b3ffc4b0d69eb6924fab1df3ecab549b89cdd5c96ef05c1d"
4305
+ "sha": "80ed957cd1e81643e453b701da064abf02466b67e826ad4c6845406402ea1108"
4306
4306
  }
4307
4307
  }
4308
4308
  }