@uniformdev/context 18.31.1-alpha.22 → 18.32.1-alpha.26

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/dist/index.esm.js CHANGED
@@ -865,6 +865,9 @@ function parseScoreCookie(cookieValue) {
865
865
  };
866
866
  }
867
867
  function parseCookieType(type) {
868
+ if (!type) {
869
+ return {};
870
+ }
868
871
  const pairs = type.split(PAIR_SEP).map((pair) => pair.split(KV_SEP));
869
872
  return pairs.reduce((acc, cur) => {
870
873
  if (cur.length < 2)
package/dist/index.js CHANGED
@@ -933,6 +933,9 @@ function parseScoreCookie(cookieValue) {
933
933
  };
934
934
  }
935
935
  function parseCookieType(type) {
936
+ if (!type) {
937
+ return {};
938
+ }
936
939
  const pairs = type.split(PAIR_SEP).map((pair) => pair.split(KV_SEP));
937
940
  return pairs.reduce((acc, cur) => {
938
941
  if (cur.length < 2)
package/dist/index.mjs CHANGED
@@ -865,6 +865,9 @@ function parseScoreCookie(cookieValue) {
865
865
  };
866
866
  }
867
867
  function parseCookieType(type) {
868
+ if (!type) {
869
+ return {};
870
+ }
868
871
  const pairs = type.split(PAIR_SEP).map((pair) => pair.split(KV_SEP));
869
872
  return pairs.reduce((acc, cur) => {
870
873
  if (cur.length < 2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "18.31.1-alpha.22+342a682db",
3
+ "version": "18.32.1-alpha.26+371f15eeb",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "342a682dbc05a6b97b4d529b7604daa62f7d1066"
69
+ "gitHead": "371f15eeb2def5acf3000d0e6efb6567c1ec3395"
70
70
  }