@jayfong/x-server 2.61.3 → 2.62.0
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/cli/build_util.js +4 -1
- package/lib/_cjs/services/pay.js +2 -2
- package/lib/cli/api_generator.d.ts +2 -2
- package/lib/cli/build_util.js +4 -1
- package/lib/core/ctx_storage.d.ts +0 -1
- package/lib/core/define_bus.d.ts +0 -1
- package/lib/core/types.d.ts +0 -3
- package/lib/services/jwt.d.ts +0 -3
- package/lib/services/pay.js +2 -2
- package/lib/x.d.ts +0 -1
- package/package.json +6 -5
|
@@ -10,6 +10,7 @@ var esbuild = _interopRequireWildcard(require("esbuild"));
|
|
|
10
10
|
var _execa = _interopRequireDefault(require("execa"));
|
|
11
11
|
var _fsExtra = _interopRequireDefault(require("fs-extra"));
|
|
12
12
|
var _globby = _interopRequireDefault(require("globby"));
|
|
13
|
+
var _esbuild2 = _interopRequireDefault(require("unplugin-macros/esbuild"));
|
|
13
14
|
var _vtils = require("vtils");
|
|
14
15
|
class BuildUtil {
|
|
15
16
|
static async build(options) {
|
|
@@ -125,7 +126,9 @@ class BuildUtil {
|
|
|
125
126
|
};
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
|
-
}
|
|
129
|
+
},
|
|
130
|
+
// @ts-ignore
|
|
131
|
+
(0, _esbuild2.default)()],
|
|
129
132
|
loader: {
|
|
130
133
|
// 兼容 x-text-render 在服务端使用
|
|
131
134
|
// dev 时用 css_register 兼容
|
package/lib/_cjs/services/pay.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
exports.__esModule = true;
|
|
5
5
|
exports.PayService = void 0;
|
|
6
|
-
var _form = _interopRequireDefault(require("alipay-sdk/lib/form"));
|
|
7
|
-
var _alipaySdk = _interopRequireDefault(require("alipay-sdk"));
|
|
8
6
|
var _crypto = _interopRequireDefault(require("crypto"));
|
|
7
|
+
var _alipaySdk = _interopRequireDefault(require("alipay-sdk"));
|
|
8
|
+
var _form = _interopRequireDefault(require("alipay-sdk/lib/form"));
|
|
9
9
|
var _got = _interopRequireDefault(require("got"));
|
|
10
10
|
var _http_error = require("../core/http_error");
|
|
11
11
|
class PayService {
|
|
@@ -55,11 +55,11 @@ export declare class ApiGenerator {
|
|
|
55
55
|
servers?: OpenAPIV3_1.ServerObject[];
|
|
56
56
|
} & Pick<{
|
|
57
57
|
paths: OpenAPIV3_1.PathsObject<{}, {}>;
|
|
58
|
-
webhooks: Record<string, OpenAPIV3_1.
|
|
58
|
+
webhooks: Record<string, OpenAPIV3_1.PathItemObject | OpenAPIV3_1.ReferenceObject>;
|
|
59
59
|
components: OpenAPIV3_1.ComponentsObject;
|
|
60
60
|
}, "paths"> & Omit<Partial<{
|
|
61
61
|
paths: OpenAPIV3_1.PathsObject<{}, {}>;
|
|
62
|
-
webhooks: Record<string, OpenAPIV3_1.
|
|
62
|
+
webhooks: Record<string, OpenAPIV3_1.PathItemObject | OpenAPIV3_1.ReferenceObject>;
|
|
63
63
|
components: OpenAPIV3_1.ComponentsObject;
|
|
64
64
|
}>, "paths">;
|
|
65
65
|
}
|
package/lib/cli/build_util.js
CHANGED
|
@@ -4,6 +4,7 @@ import * as esbuild from 'esbuild';
|
|
|
4
4
|
import exec from 'execa';
|
|
5
5
|
import fs from 'fs-extra';
|
|
6
6
|
import globby from 'globby';
|
|
7
|
+
import macrosPlugin from 'unplugin-macros/esbuild';
|
|
7
8
|
import { dedent, uniq } from 'vtils';
|
|
8
9
|
export class BuildUtil {
|
|
9
10
|
static async build(options) {
|
|
@@ -119,7 +120,9 @@ export class BuildUtil {
|
|
|
119
120
|
};
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
|
-
}
|
|
123
|
+
},
|
|
124
|
+
// @ts-ignore
|
|
125
|
+
macrosPlugin()],
|
|
123
126
|
loader: {
|
|
124
127
|
// 兼容 x-text-render 在服务端使用
|
|
125
128
|
// dev 时用 css_register 兼容
|
package/lib/core/define_bus.d.ts
CHANGED
package/lib/core/types.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node/http" />
|
|
3
|
-
/// <reference types="got/dist/source/core/utils/timed-out" />
|
|
4
1
|
import type { IncomingHttpHeaders } from 'http';
|
|
5
2
|
import type { MultipartFile } from '@fastify/multipart';
|
|
6
3
|
import type { SocketStream } from '@fastify/websocket';
|
package/lib/services/jwt.d.ts
CHANGED
package/lib/services/pay.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import AlipayFormData from 'alipay-sdk/lib/form';
|
|
2
|
-
import AlipaySdk from 'alipay-sdk';
|
|
3
1
|
import crypto from 'crypto';
|
|
2
|
+
import AlipaySdk from 'alipay-sdk';
|
|
3
|
+
import AlipayFormData from 'alipay-sdk/lib/form';
|
|
4
4
|
import got from 'got';
|
|
5
5
|
import { HttpError } from "../core/http_error";
|
|
6
6
|
export class PayService {
|
package/lib/x.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jayfong/x-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.62.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "lib/_cjs/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@fastify/formbody": "^7.4.0",
|
|
27
27
|
"@fastify/multipart": "^7.7.0",
|
|
28
28
|
"@fastify/websocket": "^8.1.0",
|
|
29
|
-
"@prisma/client": "^6.
|
|
29
|
+
"@prisma/client": "^6.3.1",
|
|
30
30
|
"@types/busboy": "^0.3.2",
|
|
31
31
|
"@types/http-errors": "^1.8.2",
|
|
32
32
|
"@types/jsonwebtoken": "^8.5.8",
|
|
@@ -60,16 +60,17 @@
|
|
|
60
60
|
"nodemailer": "^6.7.3",
|
|
61
61
|
"pino-pretty": "^10.0.1",
|
|
62
62
|
"pirates": "^4.0.6",
|
|
63
|
-
"prisma": "^6.
|
|
63
|
+
"prisma": "^6.3.1",
|
|
64
64
|
"select-run": "^1.1.2",
|
|
65
65
|
"supports-color": "^8",
|
|
66
66
|
"svg-captcha": "^1.4.0",
|
|
67
67
|
"tencentcloud-sdk-nodejs-sms": "^4.0.681",
|
|
68
68
|
"ts-morph": "^21.0.1",
|
|
69
|
-
"tsx": "^4.
|
|
69
|
+
"tsx": "^4.19.2",
|
|
70
|
+
"unplugin-macros": "^0.16.0",
|
|
70
71
|
"utf-8-validate": "^5.0.9",
|
|
71
72
|
"vscode-generate-index-standalone": "^1.7.1",
|
|
72
|
-
"vtils": "^4.
|
|
73
|
+
"vtils": "^4.128.0",
|
|
73
74
|
"yaml": "^2.3.1",
|
|
74
75
|
"yargs": "^17.4.1"
|
|
75
76
|
},
|