create-dp-koa 1.1.13 → 1.1.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-dp-koa",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Scaffold a DP-Koa framework project from the official template",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,15 +57,13 @@
57
57
  "dependencies": {
58
58
  "@koa/cors": "^5.0.0",
59
59
  "@types/bcryptjs": "^2.4.6",
60
- "@types/uuid": "^10.0.0",
61
60
  "bcryptjs": "^3.0.2",
62
61
  "class-transformer": "^0.5.1",
63
62
  "class-validator": "^0.14.2",
64
- "cos-nodejs-sdk-v5": "^2.15.4",
65
63
  "dotenv": "^16.5.0",
66
64
  "dp-ioc2": "^1.0.1",
67
65
  "dp-mqueue": "^1.0.4",
68
- "dp-koa-framework-core": "^0.2.0",
66
+ "dp-koa-framework-core": "^0.2.2",
69
67
  "dp-koa-framework-libs": "^0.1.4",
70
68
  "jsonwebtoken": "^9.0.2",
71
69
  "koa": "^3.0.0",
@@ -86,9 +84,8 @@
86
84
  "sqlite3": "^5.1.7",
87
85
  "svg-captcha": "^1.4.0",
88
86
  "swagger-jsdoc": "^6.2.8",
89
- "tencentcloud-sdk-nodejs": "^4.1.61",
90
- "typeorm": "^0.3.25",
91
- "uuid": "^13.0.0"
87
+ "patch-package": "^8.0.0",
88
+ "typeorm": "^0.3.25"
92
89
  },
93
90
  "devDependencies": {
94
91
  "@types/jest": "^30.0.0",
@@ -20,12 +20,12 @@ import {
20
20
  import { normalizeWpsUserId } from "../core/utils";
21
21
  import { getFilePublicUrl, isCosConfigured, uploadToCos, webofficeCosKey } from "dp-koa-framework-libs";
22
22
  import fs from "fs";
23
- import { v4 as uuidv4 } from "uuid";
23
+ import { randomUUID } from "crypto";
24
24
 
25
25
  @Injectable()
26
26
  export class WebofficeCallbackService extends BaseService {
27
27
  private generateFileId(): string {
28
- return uuidv4().replace(/-/g, "");
28
+ return randomUUID().replace(/-/g, "");
29
29
  }
30
30
 
31
31
  async createDocument(
@@ -1,5 +1,3 @@
1
- jest.mock("uuid", () => ({ v4: () => "test-uuid" }));
2
-
3
1
  import Koa from "koa";
4
2
  import Router from "koa-router";
5
3
  import request from "supertest";
@@ -48,7 +48,6 @@ module.exports = {
48
48
  'log4js': 'commonjs log4js',
49
49
  'socks5': 'commonjs socks5',
50
50
  'multer': 'commonjs multer',
51
- 'cos-nodejs-sdk-v5': 'commonjs cos-nodejs-sdk-v5',
52
51
  'dotenv': 'commonjs dotenv',
53
52
  'edge-js': 'commonjs edge-js',
54
53
  'jsonwebtoken': 'commonjs jsonwebtoken',
@@ -59,7 +58,6 @@ module.exports = {
59
58
  'mysql': 'commonjs mysql',
60
59
  'mysql2': 'commonjs mysql2',
61
60
  'node-cache': 'commonjs node-cache',
62
- 'tencentcloud-sdk-nodejs': 'commonjs tencentcloud-sdk-nodejs',
63
61
  'svg-captcha': 'commonjs svg-captcha',
64
62
  'sqlite3': 'commonjs sqlite3',
65
63
  'sql.js': 'commonjs sql.js',