@alleyboss/micropay-solana-x402-paywall 3.3.9 → 3.3.10
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/next/index.cjs +0 -2
- package/dist/next/index.js +0 -2
- package/package.json +1 -1
package/dist/next/index.cjs
CHANGED
|
@@ -245,7 +245,6 @@ function createX402Middleware(config) {
|
|
|
245
245
|
return async (req, ctx) => {
|
|
246
246
|
const compatibleReq = new Proxy(req, {
|
|
247
247
|
get(target, prop) {
|
|
248
|
-
console.error(`[ProxyDebug] Access req.${String(prop)}`);
|
|
249
248
|
if (prop === "url") {
|
|
250
249
|
return target.nextUrl?.pathname || target.url;
|
|
251
250
|
}
|
|
@@ -253,7 +252,6 @@ function createX402Middleware(config) {
|
|
|
253
252
|
const headers = target.headers;
|
|
254
253
|
return new Proxy(headers, {
|
|
255
254
|
get(hTarget, hProp) {
|
|
256
|
-
console.error(`[ProxyDebug] Access req.headers.${String(hProp)}`);
|
|
257
255
|
if (typeof hProp === "string" && !["get", "set", "has", "delete", "entries", "keys", "values", "forEach", "append"].includes(hProp) && typeof hTarget[hProp] === "undefined") {
|
|
258
256
|
return hTarget.get(hProp) || void 0;
|
|
259
257
|
}
|
package/dist/next/index.js
CHANGED
|
@@ -244,7 +244,6 @@ function createX402Middleware(config) {
|
|
|
244
244
|
return async (req, ctx) => {
|
|
245
245
|
const compatibleReq = new Proxy(req, {
|
|
246
246
|
get(target, prop) {
|
|
247
|
-
console.error(`[ProxyDebug] Access req.${String(prop)}`);
|
|
248
247
|
if (prop === "url") {
|
|
249
248
|
return target.nextUrl?.pathname || target.url;
|
|
250
249
|
}
|
|
@@ -252,7 +251,6 @@ function createX402Middleware(config) {
|
|
|
252
251
|
const headers = target.headers;
|
|
253
252
|
return new Proxy(headers, {
|
|
254
253
|
get(hTarget, hProp) {
|
|
255
|
-
console.error(`[ProxyDebug] Access req.headers.${String(hProp)}`);
|
|
256
254
|
if (typeof hProp === "string" && !["get", "set", "has", "delete", "entries", "keys", "values", "forEach", "append"].includes(hProp) && typeof hTarget[hProp] === "undefined") {
|
|
257
255
|
return hTarget.get(hProp) || void 0;
|
|
258
256
|
}
|
package/package.json
CHANGED