@slicemachine/manager 0.22.3-alpha.repeatable-link.1 → 0.22.3-alpha.xru-fix-vulns.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.cjs +1 -1
- package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/local/client.js +1 -1
- package/dist/_node_modules/cross-spawn/index.cjs +1 -1
- package/dist/_node_modules/cross-spawn/index.js +1 -1
- package/dist/_virtual/index2.cjs +4 -3
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +4 -2
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +3 -4
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -4
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/lib/serializeCookies.cjs +7 -4
- package/dist/lib/serializeCookies.cjs.map +1 -1
- package/dist/lib/serializeCookies.js +7 -4
- package/dist/lib/serializeCookies.js.map +1 -1
- package/package.json +4 -5
- package/src/lib/serializeCookies.ts +12 -7
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("../../../../../../_virtual/_commonjsHelpers.cjs");
|
3
3
|
const client = require("../../../../../../_virtual/client2.cjs");
|
4
|
-
const index = require("../../../../../../_virtual/
|
4
|
+
const index = require("../../../../../../_virtual/index2.cjs");
|
5
5
|
const experimentCore_esm = require("../../../../../../_virtual/experiment-core.esm.cjs");
|
6
6
|
require("../assignment/assignment.cjs");
|
7
7
|
require("../assignment/assignment-filter.cjs");
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { commonjsGlobal } from "../../../../../../_virtual/_commonjsHelpers.js";
|
2
2
|
import { __exports as client } from "../../../../../../_virtual/client2.js";
|
3
|
-
import require$$0 from "../../../../../../_virtual/
|
3
|
+
import require$$0 from "../../../../../../_virtual/index2.js";
|
4
4
|
import require$$1 from "../../../../../../_virtual/experiment-core.esm.js";
|
5
5
|
import "../assignment/assignment.js";
|
6
6
|
import "../assignment/assignment-filter.js";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
3
|
-
const index = require("../../_virtual/
|
3
|
+
const index = require("../../_virtual/index3.cjs");
|
4
4
|
const require$$0 = require("child_process");
|
5
5
|
const parse$1 = require("./lib/parse.cjs");
|
6
6
|
const enoent$1 = require("./lib/enoent.cjs");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
2
|
-
import { __module as crossSpawn$1 } from "../../_virtual/
|
2
|
+
import { __module as crossSpawn$1 } from "../../_virtual/index3.js";
|
3
3
|
import require$$0 from "child_process";
|
4
4
|
import { p as parse_1 } from "./lib/parse.js";
|
5
5
|
import { e as enoent$1 } from "./lib/enoent.js";
|
package/dist/_virtual/index2.cjs
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
const _commonjsHelpers = require("./_commonjsHelpers.cjs");
|
3
|
+
const index = require('./../_node_modules/@amplitude/analytics-node/lib/esm/index.cjs');
|
4
|
+
const require$$0 = /* @__PURE__ */ _commonjsHelpers.getAugmentedNamespace(index);
|
5
|
+
module.exports = require$$0;
|
5
6
|
//# sourceMappingURL=index2.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/_virtual/index2.js
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
|
1
|
+
import { getAugmentedNamespace } from "./_commonjsHelpers.js";
|
2
|
+
import * as index from './../_node_modules/@amplitude/analytics-node/lib/esm/index.js';
|
3
|
+
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
|
2
4
|
export {
|
3
|
-
|
5
|
+
require$$0 as default
|
4
6
|
};
|
5
7
|
//# sourceMappingURL=index2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/dist/_virtual/index3.cjs
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
module.exports = require$$0;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
var crossSpawn = { exports: {} };
|
4
|
+
exports.__module = crossSpawn;
|
6
5
|
//# sourceMappingURL=index3.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index3.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1
|
-
|
2
|
-
import * as index from './../_node_modules/@amplitude/analytics-node/lib/esm/index.js';
|
3
|
-
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(index);
|
1
|
+
var crossSpawn = { exports: {} };
|
4
2
|
export {
|
5
|
-
|
3
|
+
crossSpawn as __module
|
6
4
|
};
|
7
5
|
//# sourceMappingURL=index3.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -18,10 +18,13 @@ const serializeCookies = (cookies, args = {}) => {
|
|
18
18
|
};
|
19
19
|
const items = [];
|
20
20
|
for (const name in cookiesToSerialize) {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
const cookieValue = cookiesToSerialize[name];
|
22
|
+
if (cookieValue) {
|
23
|
+
items.push(cookie.serialize(name, cookieValue, {
|
24
|
+
// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.
|
25
|
+
encode: (cookie2) => cookie2
|
26
|
+
}));
|
27
|
+
}
|
25
28
|
}
|
26
29
|
return items.join(COOKIE_SEPARATOR);
|
27
30
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializeCookies.cjs","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (
|
1
|
+
{"version":3,"file":"serializeCookies.cjs","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (\n\tcookies: Cookies,\n): Record<string, string | undefined> => {\n\tif (Array.isArray(cookies)) {\n\t\treturn cookie.parse(cookies.join(COOKIE_SEPARATOR));\n\t} else if (typeof cookies === \"string\") {\n\t\treturn cookie.parse(cookies);\n\t} else {\n\t\treturn cookies;\n\t}\n};\n\ntype SerializeCookiesArgs = {\n\tcookieJar?: Cookies;\n};\n\n// TODO: If the `cookieJar` and multiple input types are not used anywhere,\n// simplify this function to only serialize a given object of cookies into a\n// string.\nexport const serializeCookies = (\n\tcookies: Cookies,\n\targs: SerializeCookiesArgs = {},\n): string => {\n\tconst cookiesToSerialize = {\n\t\t...castParsedCookies(args.cookieJar || {}),\n\t\t...castParsedCookies(cookies),\n\t};\n\n\tconst items: string[] = [];\n\n\tfor (const name in cookiesToSerialize) {\n\t\tconst cookieValue = cookiesToSerialize[name];\n\t\tif (cookieValue) {\n\t\t\titems.push(\n\t\t\t\tcookie.serialize(name, cookieValue, {\n\t\t\t\t\t// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.\n\t\t\t\t\tencode: (cookie) => cookie,\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\treturn items.join(COOKIE_SEPARATOR);\n};\n"],"names":["cookie"],"mappings":";;;AAEA,MAAM,mBAAmB;AAIzB,MAAM,oBAAoB,CACzB,YACuC;AACnC,MAAA,MAAM,QAAQ,OAAO,GAAG;AAC3B,WAAO,OAAO,MAAM,QAAQ,KAAK,gBAAgB,CAAC;AAAA,EAAA,WACxC,OAAO,YAAY,UAAU;AAChC,WAAA,OAAO,MAAM,OAAO;AAAA,EAAA,OACrB;AACC,WAAA;AAAA,EACR;AACD;AASO,MAAM,mBAAmB,CAC/B,SACA,OAA6B,OAClB;AACX,QAAM,qBAAqB;AAAA,IAC1B,GAAG,kBAAkB,KAAK,aAAa,EAAE;AAAA,IACzC,GAAG,kBAAkB,OAAO;AAAA,EAAA;AAG7B,QAAM,QAAkB,CAAA;AAExB,aAAW,QAAQ,oBAAoB;AAChC,UAAA,cAAc,mBAAmB,IAAI;AAC3C,QAAI,aAAa;AAChB,YAAM,KACL,OAAO,UAAU,MAAM,aAAa;AAAA;AAAA,QAEnC,QAAQ,CAACA,YAAWA;AAAAA,MACpB,CAAA,CAAC;AAAA,IAEJ;AAAA,EACD;AAEO,SAAA,MAAM,KAAK,gBAAgB;AACnC;;"}
|
@@ -16,10 +16,13 @@ const serializeCookies = (cookies, args = {}) => {
|
|
16
16
|
};
|
17
17
|
const items = [];
|
18
18
|
for (const name in cookiesToSerialize) {
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
const cookieValue = cookiesToSerialize[name];
|
20
|
+
if (cookieValue) {
|
21
|
+
items.push(cookie.serialize(name, cookieValue, {
|
22
|
+
// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.
|
23
|
+
encode: (cookie2) => cookie2
|
24
|
+
}));
|
25
|
+
}
|
23
26
|
}
|
24
27
|
return items.join(COOKIE_SEPARATOR);
|
25
28
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializeCookies.js","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (
|
1
|
+
{"version":3,"file":"serializeCookies.js","sources":["../../../src/lib/serializeCookies.ts"],"sourcesContent":["import cookie from \"cookie\";\n\nconst COOKIE_SEPARATOR = \"; \";\n\ntype Cookies = string | string[] | Record<string, string>;\n\nconst castParsedCookies = (\n\tcookies: Cookies,\n): Record<string, string | undefined> => {\n\tif (Array.isArray(cookies)) {\n\t\treturn cookie.parse(cookies.join(COOKIE_SEPARATOR));\n\t} else if (typeof cookies === \"string\") {\n\t\treturn cookie.parse(cookies);\n\t} else {\n\t\treturn cookies;\n\t}\n};\n\ntype SerializeCookiesArgs = {\n\tcookieJar?: Cookies;\n};\n\n// TODO: If the `cookieJar` and multiple input types are not used anywhere,\n// simplify this function to only serialize a given object of cookies into a\n// string.\nexport const serializeCookies = (\n\tcookies: Cookies,\n\targs: SerializeCookiesArgs = {},\n): string => {\n\tconst cookiesToSerialize = {\n\t\t...castParsedCookies(args.cookieJar || {}),\n\t\t...castParsedCookies(cookies),\n\t};\n\n\tconst items: string[] = [];\n\n\tfor (const name in cookiesToSerialize) {\n\t\tconst cookieValue = cookiesToSerialize[name];\n\t\tif (cookieValue) {\n\t\t\titems.push(\n\t\t\t\tcookie.serialize(name, cookieValue, {\n\t\t\t\t\t// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.\n\t\t\t\t\tencode: (cookie) => cookie,\n\t\t\t\t}),\n\t\t\t);\n\t\t}\n\t}\n\n\treturn items.join(COOKIE_SEPARATOR);\n};\n"],"names":["cookie"],"mappings":";AAEA,MAAM,mBAAmB;AAIzB,MAAM,oBAAoB,CACzB,YACuC;AACnC,MAAA,MAAM,QAAQ,OAAO,GAAG;AAC3B,WAAO,OAAO,MAAM,QAAQ,KAAK,gBAAgB,CAAC;AAAA,EAAA,WACxC,OAAO,YAAY,UAAU;AAChC,WAAA,OAAO,MAAM,OAAO;AAAA,EAAA,OACrB;AACC,WAAA;AAAA,EACR;AACD;AASO,MAAM,mBAAmB,CAC/B,SACA,OAA6B,OAClB;AACX,QAAM,qBAAqB;AAAA,IAC1B,GAAG,kBAAkB,KAAK,aAAa,EAAE;AAAA,IACzC,GAAG,kBAAkB,OAAO;AAAA,EAAA;AAG7B,QAAM,QAAkB,CAAA;AAExB,aAAW,QAAQ,oBAAoB;AAChC,UAAA,cAAc,mBAAmB,IAAI;AAC3C,QAAI,aAAa;AAChB,YAAM,KACL,OAAO,UAAU,MAAM,aAAa;AAAA;AAAA,QAEnC,QAAQ,CAACA,YAAWA;AAAAA,MACpB,CAAA,CAAC;AAAA,IAEJ;AAAA,EACD;AAEO,SAAA,MAAM,KAAK,gBAAgB;AACnC;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@slicemachine/manager",
|
3
|
-
"version": "0.22.3-alpha.
|
3
|
+
"version": "0.22.3-alpha.xru-fix-vulns.1",
|
4
4
|
"description": "Manage all aspects of a Slice Machine project.",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -68,10 +68,10 @@
|
|
68
68
|
"@prismicio/client": "^7.11.0",
|
69
69
|
"@prismicio/custom-types-client": "2.1.0",
|
70
70
|
"@prismicio/mocks": "^2.4.0",
|
71
|
-
"@prismicio/types-internal": "2.
|
71
|
+
"@prismicio/types-internal": "^2.8.0",
|
72
72
|
"@segment/analytics-node": "^2.1.2",
|
73
|
-
"@slicemachine/plugin-kit": "0.4.57-alpha.
|
74
|
-
"cookie": "^0.
|
73
|
+
"@slicemachine/plugin-kit": "0.4.57-alpha.xru-fix-vulns.1",
|
74
|
+
"cookie": "^1.0.1",
|
75
75
|
"cors": "^2.8.5",
|
76
76
|
"execa": "^7.1.1",
|
77
77
|
"file-type": "^18.2.1",
|
@@ -95,7 +95,6 @@
|
|
95
95
|
"@amplitude/experiment-node-server": "1.8.1",
|
96
96
|
"@prismicio/mock": "0.2.0",
|
97
97
|
"@size-limit/preset-small-lib": "8.2.4",
|
98
|
-
"@types/cookie": "0.5.1",
|
99
98
|
"@types/express": "4.17.17",
|
100
99
|
"@types/semver": "7.3.13",
|
101
100
|
"@typescript-eslint/eslint-plugin": "5.55.0",
|
@@ -4,7 +4,9 @@ const COOKIE_SEPARATOR = "; ";
|
|
4
4
|
|
5
5
|
type Cookies = string | string[] | Record<string, string>;
|
6
6
|
|
7
|
-
const castParsedCookies = (
|
7
|
+
const castParsedCookies = (
|
8
|
+
cookies: Cookies,
|
9
|
+
): Record<string, string | undefined> => {
|
8
10
|
if (Array.isArray(cookies)) {
|
9
11
|
return cookie.parse(cookies.join(COOKIE_SEPARATOR));
|
10
12
|
} else if (typeof cookies === "string") {
|
@@ -33,12 +35,15 @@ export const serializeCookies = (
|
|
33
35
|
const items: string[] = [];
|
34
36
|
|
35
37
|
for (const name in cookiesToSerialize) {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
const cookieValue = cookiesToSerialize[name];
|
39
|
+
if (cookieValue) {
|
40
|
+
items.push(
|
41
|
+
cookie.serialize(name, cookieValue, {
|
42
|
+
// Cookies need be stored raw (not encoded or escaped), so that consumers can format them the way they want them to be formatted.
|
43
|
+
encode: (cookie) => cookie,
|
44
|
+
}),
|
45
|
+
);
|
46
|
+
}
|
42
47
|
}
|
43
48
|
|
44
49
|
return items.join(COOKIE_SEPARATOR);
|