@nvwa-app/sdk-functions 6.0.52 → 6.0.53

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/index.d.mts CHANGED
@@ -19,7 +19,7 @@ interface AuthUser {
19
19
  declare function getRequestUser(req: Request, baseUrlOverride?: string): Promise<AuthUser | null>;
20
20
 
21
21
  /** 支付端类型:与 integrations/payment 中的 supportedPlatforms 一致,用于按端过滤可用 provider。 */
22
- type PaymentPlatform = "web" | "uniapp" | "wechat-miniprogram";
22
+ type PaymentPlatform = "web" | "uniapp" | "wechat-miniprogram" | "alipay-miniprogram";
23
23
  interface PaymentGatewayClientOptions {
24
24
  baseUrl: string;
25
25
  /** Project key (PAYMENT_PROJECT_KEY) for project-side auth; gateway validates via X-Payment-Project-Key */
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ interface AuthUser {
19
19
  declare function getRequestUser(req: Request, baseUrlOverride?: string): Promise<AuthUser | null>;
20
20
 
21
21
  /** 支付端类型:与 integrations/payment 中的 supportedPlatforms 一致,用于按端过滤可用 provider。 */
22
- type PaymentPlatform = "web" | "uniapp" | "wechat-miniprogram";
22
+ type PaymentPlatform = "web" | "uniapp" | "wechat-miniprogram" | "alipay-miniprogram";
23
23
  interface PaymentGatewayClientOptions {
24
24
  baseUrl: string;
25
25
  /** Project key (PAYMENT_PROJECT_KEY) for project-side auth; gateway validates via X-Payment-Project-Key */
package/dist/index.js CHANGED
@@ -100,6 +100,7 @@ async function getRequestUser(req, baseUrlOverride) {
100
100
  var PROVIDER_SUPPORTED_PLATFORMS = {
101
101
  "wechat-pay": ["web", "uniapp", "wechat-miniprogram"],
102
102
  "alipay": ["web", "uniapp"],
103
+ "alipay-miniprogram": ["alipay-miniprogram"],
103
104
  "stripe": ["web"]
104
105
  };
105
106
  function resolveBaseUrl(explicit) {
package/dist/index.mjs CHANGED
@@ -56,6 +56,7 @@ async function getRequestUser(req, baseUrlOverride) {
56
56
  var PROVIDER_SUPPORTED_PLATFORMS = {
57
57
  "wechat-pay": ["web", "uniapp", "wechat-miniprogram"],
58
58
  "alipay": ["web", "uniapp"],
59
+ "alipay-miniprogram": ["alipay-miniprogram"],
59
60
  "stripe": ["web"]
60
61
  };
61
62
  function resolveBaseUrl(explicit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nvwa-app/sdk-functions",
3
- "version": "6.0.52",
3
+ "version": "6.0.53",
4
4
  "description": "NVWA Edge Functions SDK: db, payment gateway, auth, provider list. Use in Deno: import from 'npm:@nvwa-app/sdk-functions'.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",