@upstash/qstash 2.5.1-canary → 2.5.1
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/nextjs.js +2 -4
- package/nextjs.mjs +2 -4
- package/package.json +1 -1
package/nextjs.js
CHANGED
|
@@ -75,7 +75,6 @@ function verifySignatureEdge(handler, config) {
|
|
|
75
75
|
nextSigningKey
|
|
76
76
|
});
|
|
77
77
|
return async (request, nfe) => {
|
|
78
|
-
const requestClone = request.clone();
|
|
79
78
|
const signature = request.headers.get("upstash-signature");
|
|
80
79
|
if (!signature) {
|
|
81
80
|
return new (0, _server.NextResponse)(new TextEncoder().encode("`Upstash-Signature` header is missing"), {
|
|
@@ -94,7 +93,7 @@ function verifySignatureEdge(handler, config) {
|
|
|
94
93
|
if (!isValid) {
|
|
95
94
|
return new (0, _server.NextResponse)(new TextEncoder().encode("invalid signature"), { status: 403 });
|
|
96
95
|
}
|
|
97
|
-
return handler(
|
|
96
|
+
return handler(request, nfe);
|
|
98
97
|
};
|
|
99
98
|
}
|
|
100
99
|
function verifySignatureAppRouter(handler, config) {
|
|
@@ -115,7 +114,6 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
115
114
|
nextSigningKey
|
|
116
115
|
});
|
|
117
116
|
return async (request) => {
|
|
118
|
-
const requestClone = request.clone();
|
|
119
117
|
const signature = request.headers.get("upstash-signature");
|
|
120
118
|
if (!signature) {
|
|
121
119
|
return new (0, _server.NextResponse)(new TextEncoder().encode("`Upstash-Signature` header is missing"), {
|
|
@@ -134,7 +132,7 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
134
132
|
if (!isValid) {
|
|
135
133
|
return new (0, _server.NextResponse)(new TextEncoder().encode("invalid signature"), { status: 403 });
|
|
136
134
|
}
|
|
137
|
-
return handler(
|
|
135
|
+
return handler(request);
|
|
138
136
|
};
|
|
139
137
|
}
|
|
140
138
|
|
package/nextjs.mjs
CHANGED
|
@@ -75,7 +75,6 @@ function verifySignatureEdge(handler, config) {
|
|
|
75
75
|
nextSigningKey
|
|
76
76
|
});
|
|
77
77
|
return async (request, nfe) => {
|
|
78
|
-
const requestClone = request.clone();
|
|
79
78
|
const signature = request.headers.get("upstash-signature");
|
|
80
79
|
if (!signature) {
|
|
81
80
|
return new NextResponse(new TextEncoder().encode("`Upstash-Signature` header is missing"), {
|
|
@@ -94,7 +93,7 @@ function verifySignatureEdge(handler, config) {
|
|
|
94
93
|
if (!isValid) {
|
|
95
94
|
return new NextResponse(new TextEncoder().encode("invalid signature"), { status: 403 });
|
|
96
95
|
}
|
|
97
|
-
return handler(
|
|
96
|
+
return handler(request, nfe);
|
|
98
97
|
};
|
|
99
98
|
}
|
|
100
99
|
function verifySignatureAppRouter(handler, config) {
|
|
@@ -115,7 +114,6 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
115
114
|
nextSigningKey
|
|
116
115
|
});
|
|
117
116
|
return async (request) => {
|
|
118
|
-
const requestClone = request.clone();
|
|
119
117
|
const signature = request.headers.get("upstash-signature");
|
|
120
118
|
if (!signature) {
|
|
121
119
|
return new NextResponse(new TextEncoder().encode("`Upstash-Signature` header is missing"), {
|
|
@@ -134,7 +132,7 @@ function verifySignatureAppRouter(handler, config) {
|
|
|
134
132
|
if (!isValid) {
|
|
135
133
|
return new NextResponse(new TextEncoder().encode("invalid signature"), { status: 403 });
|
|
136
134
|
}
|
|
137
|
-
return handler(
|
|
135
|
+
return handler(request);
|
|
138
136
|
};
|
|
139
137
|
}
|
|
140
138
|
export {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"v2.5.1
|
|
1
|
+
{"version":"v2.5.1","name":"@upstash/qstash","description":"Official Typescript client for QStash","author":"Andreas Thomas <dev@chronark.com>","license":"MIT","homepage":"https://github.com/upstash/sdk-qstash-ts#readme","repository":{"type":"git","url":"git+https://github.com/upstash/sdk-qstash-ts.git"},"bugs":{"url":"https://github.com/upstash/sdk-qstash-ts/issues"},"main":"./index.js","module":"./index.mjs","types":"./index.d.ts","files":["./**"],"exports":{".":{"import":"./index.mjs","require":"./index.js"},"./nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"},"./dist/nextjs":{"import":"./nextjs.mjs","require":"./nextjs.js"}},"typesVersions":{"*":{"nextjs":["./nextjs.d.ts"]}},"keywords":["qstash","queue","events","serverless","upstash"],"scripts":{"build":"tsup && cp README.md ./dist/ && cp package.json ./dist/ && cp LICENSE ./dist/","test":"bun test","fmt":"prettier --write .","lint":"tsc && eslint \"src/**/*.{js,ts,tsx}\" --quiet --fix"},"devDependencies":{"@biomejs/biome":"^1.3.3","@commitlint/cli":"^19.2.2","@commitlint/config-conventional":"^19.2.2","@types/crypto-js":"^4.2.0","@types/node":"^20.5.7","@typescript-eslint/eslint-plugin":"^7.0.1","@typescript-eslint/parser":"^7.0.1","bun-types":"latest","eslint":"^8","eslint-plugin-unicorn":"^51.0.1","husky":"^9.0.10","next":"^14.0.2","prettier":"^3.2.5","tsup":"latest","typescript":"^5.4.5","vitest":"latest"},"dependencies":{"crypto-js":">=4.2.0","jose":"^ 5.2.3","undici":"^6.16.0"}}
|