@uniformdev/context-remix 19.206.0 → 19.207.1-alpha.11
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 +4 -2
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -6,10 +6,12 @@ import {
|
|
|
6
6
|
import { parse } from "cookie";
|
|
7
7
|
var RemixCookieTransitionDataStore = class extends CookieTransitionDataStore {
|
|
8
8
|
constructor({ request, ...options }) {
|
|
9
|
-
var _a, _b;
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
const parsedCookies = request ? parse((_a = request.headers.get("cookie")) != null ? _a : "") : {};
|
|
10
11
|
super({
|
|
11
12
|
...options,
|
|
12
|
-
serverCookieValue:
|
|
13
|
+
serverCookieValue: parsedCookies[(_b = options.cookieName) != null ? _b : UNIFORM_DEFAULT_COOKIE_NAME],
|
|
14
|
+
quirkCookieValue: options.experimental_quirksEnabled ? parsedCookies[(_c = options.quirkCookieName) != null ? _c : UNIFORM_DEFAULT_COOKIE_NAME] : void 0
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
};
|
package/dist/index.js
CHANGED
|
@@ -42,10 +42,12 @@ var import_context = require("@uniformdev/context");
|
|
|
42
42
|
var import_cookie = require("cookie");
|
|
43
43
|
var RemixCookieTransitionDataStore = class extends import_context.CookieTransitionDataStore {
|
|
44
44
|
constructor({ request, ...options }) {
|
|
45
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
46
|
+
const parsedCookies = request ? (0, import_cookie.parse)((_a = request.headers.get("cookie")) != null ? _a : "") : {};
|
|
46
47
|
super({
|
|
47
48
|
...options,
|
|
48
|
-
serverCookieValue:
|
|
49
|
+
serverCookieValue: parsedCookies[(_b = options.cookieName) != null ? _b : import_context.UNIFORM_DEFAULT_COOKIE_NAME],
|
|
50
|
+
quirkCookieValue: options.experimental_quirksEnabled ? parsedCookies[(_c = options.quirkCookieName) != null ? _c : import_context.UNIFORM_DEFAULT_COOKIE_NAME] : void 0
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
53
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -6,10 +6,12 @@ import {
|
|
|
6
6
|
import { parse } from "cookie";
|
|
7
7
|
var RemixCookieTransitionDataStore = class extends CookieTransitionDataStore {
|
|
8
8
|
constructor({ request, ...options }) {
|
|
9
|
-
var _a, _b;
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
const parsedCookies = request ? parse((_a = request.headers.get("cookie")) != null ? _a : "") : {};
|
|
10
11
|
super({
|
|
11
12
|
...options,
|
|
12
|
-
serverCookieValue:
|
|
13
|
+
serverCookieValue: parsedCookies[(_b = options.cookieName) != null ? _b : UNIFORM_DEFAULT_COOKIE_NAME],
|
|
14
|
+
quirkCookieValue: options.experimental_quirksEnabled ? parsedCookies[(_c = options.quirkCookieName) != null ? _c : UNIFORM_DEFAULT_COOKIE_NAME] : void 0
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-remix",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.207.1-alpha.11+682b1954b3",
|
|
4
4
|
"description": "Uniform Context Remix integration package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"react-dom": "18.3.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@uniformdev/context": "19.
|
|
35
|
-
"@uniformdev/context-react": "19.
|
|
34
|
+
"@uniformdev/context": "19.207.1-alpha.11+682b1954b3",
|
|
35
|
+
"@uniformdev/context-react": "19.207.1-alpha.11+682b1954b3",
|
|
36
36
|
"cookie": "1.0.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "682b1954b3ddfeb43952e44367c314cfe6feda69"
|
|
50
50
|
}
|