@team-monolith/pxt-core 0.1.8 → 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.7",
384
- "pxt": "0.1.7"
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": "eec28a0d26a270954f08593c68e9f0a1182ca6811bf0e6257234061056012268"
4305
+ "sha": "80ed957cd1e81643e453b701da064abf02466b67e826ad4c6845406402ea1108"
4306
4306
  }
4307
4307
  }
4308
4308
  }
@@ -23265,11 +23265,13 @@ var pxt;
23265
23265
  (function (pxt) {
23266
23266
  var codle;
23267
23267
  (function (codle) {
23268
+ /**
23269
+ * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
23270
+ */
23268
23271
  function getCookie(name) {
23269
- let matches = document.cookie.match(new RegExp("(?:^|; )" +
23270
- name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
23271
- "=([^;]*)"));
23272
- return matches ? decodeURIComponent(matches[1]) : undefined;
23272
+ const cookies = document.cookie.split("; ");
23273
+ const cookie = cookies.find((cookie) => cookie.startsWith(name + "="));
23274
+ return cookie ? decodeURIComponent(cookie.split("=")[1]) : undefined;
23273
23275
  }
23274
23276
  function getEnv() {
23275
23277
  return window.location.hostname === "localhost"
@@ -120946,11 +120946,13 @@ var pxt;
120946
120946
  (function (pxt) {
120947
120947
  var codle;
120948
120948
  (function (codle) {
120949
+ /**
120950
+ * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
120951
+ */
120949
120952
  function getCookie(name) {
120950
- let matches = document.cookie.match(new RegExp("(?:^|; )" +
120951
- name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
120952
- "=([^;]*)"));
120953
- return matches ? decodeURIComponent(matches[1]) : undefined;
120953
+ const cookies = document.cookie.split("; ");
120954
+ const cookie = cookies.find((cookie) => cookie.startsWith(name + "="));
120955
+ return cookie ? decodeURIComponent(cookie.split("=")[1]) : undefined;
120954
120956
  }
120955
120957
  function getEnv() {
120956
120958
  return window.location.hostname === "localhost"
@@ -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"
@@ -120956,11 +120956,13 @@ var pxt;
120956
120956
  (function (pxt) {
120957
120957
  var codle;
120958
120958
  (function (codle) {
120959
+ /**
120960
+ * document.cookie에서 name에 해당하는 쿠키 값을 가져옵니다.
120961
+ */
120959
120962
  function getCookie(name) {
120960
- let matches = document.cookie.match(new RegExp("(?:^|; )" +
120961
- name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1") +
120962
- "=([^;]*)"));
120963
- return matches ? decodeURIComponent(matches[1]) : undefined;
120963
+ const cookies = document.cookie.split("; ");
120964
+ const cookie = cookies.find((cookie) => cookie.startsWith(name + "="));
120965
+ return cookie ? decodeURIComponent(cookie.split("=")[1]) : undefined;
120964
120966
  }
120965
120967
  function getEnv() {
120966
120968
  return window.location.hostname === "localhost"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/pxt-core",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "files": [
5
5
  "README.md",
6
6
  "built/*.js",