@sdflc/backend-helpers 1.0.136 → 1.0.137
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/build/apiContext.js +5 -0
- package/build/esm/apiContext.js +5 -0
- package/package.json +1 -1
package/build/apiContext.js
CHANGED
|
@@ -90,6 +90,11 @@ const createContextDefault = async (args) => {
|
|
|
90
90
|
authorization,
|
|
91
91
|
fingerprint,
|
|
92
92
|
authorizationToken,
|
|
93
|
+
// Parsed request cookies must be exposed on the context so callers can read
|
|
94
|
+
// `context.cookies` (e.g. cookie-based flows that don't use the JWT). This
|
|
95
|
+
// was dropped from sharedContext in an earlier refactor, leaving
|
|
96
|
+
// `context.cookies` undefined even though the cookie was parsed.
|
|
97
|
+
cookies,
|
|
93
98
|
isExternalDb: !!inDb,
|
|
94
99
|
// Rate limiting — undefined values are omitted so context stays clean when
|
|
95
100
|
// neither is configured.
|
package/build/esm/apiContext.js
CHANGED
|
@@ -83,6 +83,11 @@ export const createContextDefault = async (args) => {
|
|
|
83
83
|
authorization,
|
|
84
84
|
fingerprint,
|
|
85
85
|
authorizationToken,
|
|
86
|
+
// Parsed request cookies must be exposed on the context so callers can read
|
|
87
|
+
// `context.cookies` (e.g. cookie-based flows that don't use the JWT). This
|
|
88
|
+
// was dropped from sharedContext in an earlier refactor, leaving
|
|
89
|
+
// `context.cookies` undefined even though the cookie was parsed.
|
|
90
|
+
cookies,
|
|
86
91
|
isExternalDb: !!inDb,
|
|
87
92
|
// Rate limiting — undefined values are omitted so context stays clean when
|
|
88
93
|
// neither is configured.
|