x402-express-mantle 1.0.5 → 1.0.6
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/lib/cjs/index.js +3 -3
- package/lib/esm/index.mjs +3 -3
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -38,7 +38,7 @@ __export(src_exports, {
|
|
|
38
38
|
x402ResourceServer: () => import_server2.x402ResourceServer
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(src_exports);
|
|
41
|
-
var import_server = require("
|
|
41
|
+
var import_server = require("x402-core-mantle/server");
|
|
42
42
|
|
|
43
43
|
// src/adapter.ts
|
|
44
44
|
var ExpressAdapter = class {
|
|
@@ -130,8 +130,8 @@ var ExpressAdapter = class {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
// src/index.ts
|
|
133
|
-
var import_server2 = require("
|
|
134
|
-
var import_server3 = require("
|
|
133
|
+
var import_server2 = require("x402-core-mantle/server");
|
|
134
|
+
var import_server3 = require("x402-core-mantle/server");
|
|
135
135
|
function checkIfBazaarNeeded(routes) {
|
|
136
136
|
if ("accepts" in routes) {
|
|
137
137
|
return !!(routes.extensions && "bazaar" in routes.extensions);
|
package/lib/esm/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
x402HTTPResourceServer,
|
|
4
4
|
x402ResourceServer
|
|
5
|
-
} from "
|
|
5
|
+
} from "x402-core-mantle/server";
|
|
6
6
|
|
|
7
7
|
// src/adapter.ts
|
|
8
8
|
var ExpressAdapter = class {
|
|
@@ -94,8 +94,8 @@ var ExpressAdapter = class {
|
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
// src/index.ts
|
|
97
|
-
import { x402ResourceServer as x402ResourceServer2, x402HTTPResourceServer as x402HTTPResourceServer2 } from "
|
|
98
|
-
import { RouteConfigurationError } from "
|
|
97
|
+
import { x402ResourceServer as x402ResourceServer2, x402HTTPResourceServer as x402HTTPResourceServer2 } from "x402-core-mantle/server";
|
|
98
|
+
import { RouteConfigurationError } from "x402-core-mantle/server";
|
|
99
99
|
function checkIfBazaarNeeded(routes) {
|
|
100
100
|
if ("accepts" in routes) {
|
|
101
101
|
return !!(routes.extensions && "bazaar" in routes.extensions);
|