@arcblock/payment-service 1.29.11 → 1.29.12
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/cf.d.ts +11 -0
- package/dist/cf.js +40 -40
- package/dist/index.d.ts +13 -0
- package/dist/index.js +4 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,19 @@ export interface PaymentCoreSlots {
|
|
|
61
61
|
* Typed `any` so this package's .d.ts carries no did-connect-js type dependency.
|
|
62
62
|
*/
|
|
63
63
|
didConnectRuntime?: any;
|
|
64
|
+
/**
|
|
65
|
+
* Host-injected logger — payment's lines join the host's unified log stream
|
|
66
|
+
* instead of the lazy @blocklet/logger / console fallback. Positional
|
|
67
|
+
* (winston-style) `(message, ...args)`; the four levels are all payment uses.
|
|
68
|
+
* Inline shape keeps this package's .d.ts dependency-free (same convention as
|
|
69
|
+
* `staticHandler` / `didConnectRuntime`).
|
|
70
|
+
*/
|
|
71
|
+
logger?: {
|
|
72
|
+
debug: (...args: any[]) => void;
|
|
73
|
+
info: (...args: any[]) => void;
|
|
74
|
+
warn: (...args: any[]) => void;
|
|
75
|
+
error: (...args: any[]) => void;
|
|
76
|
+
};
|
|
64
77
|
}
|
|
65
78
|
export interface PaymentCoreLifecycle {
|
|
66
79
|
start: () => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1182,6 +1182,9 @@ var init_context = __esm({
|
|
|
1182
1182
|
});
|
|
1183
1183
|
|
|
1184
1184
|
// ../../blocklets/core/api/src/libs/logger.ts
|
|
1185
|
+
function setResolvedLogger(l) {
|
|
1186
|
+
resolved = l;
|
|
1187
|
+
}
|
|
1185
1188
|
function resolveLogger() {
|
|
1186
1189
|
if (resolved) return resolved;
|
|
1187
1190
|
try {
|
|
@@ -78050,6 +78053,7 @@ async function stopBackgroundServices() {
|
|
|
78050
78053
|
}
|
|
78051
78054
|
function createEmbeddedPaymentService(slots) {
|
|
78052
78055
|
if (!slots || typeof slots !== "object") throw new PaymentCoreSlotError("config");
|
|
78056
|
+
if (slots.logger) setResolvedLogger(slots.logger);
|
|
78053
78057
|
if (!slots.config) throw new PaymentCoreSlotError("config");
|
|
78054
78058
|
if (!slots.db || !slots.db.sequelize) throw new PaymentCoreSlotError("db");
|
|
78055
78059
|
let effectiveConfig = slots.config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/payment-service",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.12",
|
|
4
4
|
"description": "Embedded payment service factory (W2) — side-effect-free core for arc / blocklet server / standalone worker hosts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@blocklet/constant": "^1.17.13-beta-20260613-094425-b81920c8",
|
|
45
45
|
"@blocklet/error": "^0.3.5",
|
|
46
46
|
"@blocklet/logger": "^1.17.13-beta-20260613-094425-b81920c8",
|
|
47
|
-
"@blocklet/payment-vendor": "1.29.
|
|
47
|
+
"@blocklet/payment-vendor": "1.29.12",
|
|
48
48
|
"@blocklet/sdk": "^1.17.13-beta-20260613-094425-b81920c8",
|
|
49
49
|
"@blocklet/xss": "^0.15.4",
|
|
50
50
|
"@hono/node-server": "^2.0.4",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"ts-jest": "^29.1.2",
|
|
91
91
|
"typescript": "^5.4.3"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "8473f4c5a7716d03d53f253563229f31e63ec0c4"
|
|
94
94
|
}
|