@fecommunity/reactpress-server 3.0.0 → 3.7.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.
Files changed (193) hide show
  1. package/dist/app.module.js +1 -1
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/filters/http-exception.filter.js +1 -1
  4. package/dist/filters/http-exception.filter.js.map +1 -1
  5. package/dist/generate-swagger.js +10 -10
  6. package/dist/generate-swagger.js.map +1 -1
  7. package/dist/interceptors/transform.interceptor.js +2 -2
  8. package/dist/interceptors/transform.interceptor.js.map +1 -1
  9. package/dist/logger/index.js +3 -3
  10. package/dist/logger/index.js.map +1 -1
  11. package/dist/main.js +4 -4
  12. package/dist/main.js.map +1 -1
  13. package/dist/modules/api-key/api-key.controller.js +9 -9
  14. package/dist/modules/api-key/api-key.controller.js.map +1 -1
  15. package/dist/modules/api-key/api-key.entity.js +16 -16
  16. package/dist/modules/api-key/api-key.entity.js.map +1 -1
  17. package/dist/modules/api-key/api-key.guard.js +1 -1
  18. package/dist/modules/api-key/api-key.guard.js.map +1 -1
  19. package/dist/modules/api-key/api-key.module.js +1 -1
  20. package/dist/modules/api-key/api-key.module.js.map +1 -1
  21. package/dist/modules/api-key/api-key.service.js +2 -2
  22. package/dist/modules/api-key/api-key.service.js.map +1 -1
  23. package/dist/modules/article/article-revision.entity.js +9 -9
  24. package/dist/modules/article/article-revision.entity.js.map +1 -1
  25. package/dist/modules/article/article.controller.js +65 -56
  26. package/dist/modules/article/article.controller.js.map +1 -1
  27. package/dist/modules/article/article.entity.js +43 -43
  28. package/dist/modules/article/article.entity.js.map +1 -1
  29. package/dist/modules/article/article.module.js +1 -1
  30. package/dist/modules/article/article.module.js.map +1 -1
  31. package/dist/modules/article/article.service.js +15 -15
  32. package/dist/modules/article/article.service.js.map +1 -1
  33. package/dist/modules/article/scheduled-publish.service.js +3 -3
  34. package/dist/modules/article/scheduled-publish.service.js.map +1 -1
  35. package/dist/modules/auth/auth.controller.js +11 -11
  36. package/dist/modules/auth/auth.controller.js.map +1 -1
  37. package/dist/modules/auth/auth.module.js +4 -4
  38. package/dist/modules/auth/auth.module.js.map +1 -1
  39. package/dist/modules/auth/auth.service.js +4 -4
  40. package/dist/modules/auth/auth.service.js.map +1 -1
  41. package/dist/modules/auth/jwt-auth.guard.js +2 -2
  42. package/dist/modules/auth/jwt-auth.guard.js.map +1 -1
  43. package/dist/modules/auth/jwt.strategy.js +2 -2
  44. package/dist/modules/auth/jwt.strategy.js.map +1 -1
  45. package/dist/modules/auth/roles.guard.js +2 -2
  46. package/dist/modules/auth/roles.guard.js.map +1 -1
  47. package/dist/modules/category/category.controller.js +21 -20
  48. package/dist/modules/category/category.controller.js.map +1 -1
  49. package/dist/modules/category/category.entity.js +13 -13
  50. package/dist/modules/category/category.entity.js.map +1 -1
  51. package/dist/modules/category/category.module.js +1 -1
  52. package/dist/modules/category/category.module.js.map +1 -1
  53. package/dist/modules/category/category.service.js +2 -2
  54. package/dist/modules/category/category.service.js.map +1 -1
  55. package/dist/modules/comment/comment.controller.js +24 -20
  56. package/dist/modules/comment/comment.controller.js.map +1 -1
  57. package/dist/modules/comment/comment.entity.js +31 -31
  58. package/dist/modules/comment/comment.entity.js.map +1 -1
  59. package/dist/modules/comment/comment.module.js +1 -1
  60. package/dist/modules/comment/comment.module.js.map +1 -1
  61. package/dist/modules/comment/comment.service.js +12 -11
  62. package/dist/modules/comment/comment.service.js.map +1 -1
  63. package/dist/modules/comment/html.js +2 -2
  64. package/dist/modules/comment/html.js.map +1 -1
  65. package/dist/modules/file/file.controller.js +17 -16
  66. package/dist/modules/file/file.controller.js.map +1 -1
  67. package/dist/modules/file/file.entity.js +15 -15
  68. package/dist/modules/file/file.entity.js.map +1 -1
  69. package/dist/modules/file/file.module.js +1 -1
  70. package/dist/modules/file/file.module.js.map +1 -1
  71. package/dist/modules/file/file.service.js +11 -10
  72. package/dist/modules/file/file.service.js.map +1 -1
  73. package/dist/modules/health/health.controller.js +5 -5
  74. package/dist/modules/health/health.controller.js.map +1 -1
  75. package/dist/modules/health/health.module.js +1 -1
  76. package/dist/modules/health/health.module.js.map +1 -1
  77. package/dist/modules/install/install.controller.js +5 -5
  78. package/dist/modules/install/install.controller.js.map +1 -1
  79. package/dist/modules/install/install.module.js +1 -1
  80. package/dist/modules/install/install.module.js.map +1 -1
  81. package/dist/modules/install/install.service.js +2 -2
  82. package/dist/modules/install/install.service.js.map +1 -1
  83. package/dist/modules/knowledge/knowledge.controller.js +35 -33
  84. package/dist/modules/knowledge/knowledge.controller.js.map +1 -1
  85. package/dist/modules/knowledge/knowledge.entity.js +33 -33
  86. package/dist/modules/knowledge/knowledge.entity.js.map +1 -1
  87. package/dist/modules/knowledge/knowledge.module.js +1 -1
  88. package/dist/modules/knowledge/knowledge.module.js.map +1 -1
  89. package/dist/modules/knowledge/knowledge.service.js +9 -9
  90. package/dist/modules/knowledge/knowledge.service.js.map +1 -1
  91. package/dist/modules/page/page.controller.js +24 -23
  92. package/dist/modules/page/page.controller.js.map +1 -1
  93. package/dist/modules/page/page.entity.js +27 -27
  94. package/dist/modules/page/page.entity.js.map +1 -1
  95. package/dist/modules/page/page.module.js +1 -1
  96. package/dist/modules/page/page.module.js.map +1 -1
  97. package/dist/modules/page/page.service.js +8 -8
  98. package/dist/modules/page/page.service.js.map +1 -1
  99. package/dist/modules/search/search.controller.js +12 -12
  100. package/dist/modules/search/search.controller.js.map +1 -1
  101. package/dist/modules/search/search.entity.js +13 -13
  102. package/dist/modules/search/search.entity.js.map +1 -1
  103. package/dist/modules/search/search.module.js +1 -1
  104. package/dist/modules/search/search.module.js.map +1 -1
  105. package/dist/modules/search/search.service.js +2 -2
  106. package/dist/modules/search/search.service.js.map +1 -1
  107. package/dist/modules/setting/setting.constant.d.ts +1 -1
  108. package/dist/modules/setting/setting.controller.js +11 -11
  109. package/dist/modules/setting/setting.controller.js.map +1 -1
  110. package/dist/modules/setting/setting.entity.js +49 -49
  111. package/dist/modules/setting/setting.entity.js.map +1 -1
  112. package/dist/modules/setting/setting.module.js +2 -2
  113. package/dist/modules/setting/setting.module.js.map +1 -1
  114. package/dist/modules/setting/setting.service.js +2 -2
  115. package/dist/modules/setting/setting.service.js.map +1 -1
  116. package/dist/modules/smtp/smtp.controller.js +14 -14
  117. package/dist/modules/smtp/smtp.controller.js.map +1 -1
  118. package/dist/modules/smtp/smtp.entity.js +15 -15
  119. package/dist/modules/smtp/smtp.entity.js.map +1 -1
  120. package/dist/modules/smtp/smtp.module.js +2 -2
  121. package/dist/modules/smtp/smtp.module.js.map +1 -1
  122. package/dist/modules/smtp/smtp.service.js +3 -3
  123. package/dist/modules/smtp/smtp.service.js.map +1 -1
  124. package/dist/modules/tag/tag.controller.js +24 -22
  125. package/dist/modules/tag/tag.controller.js.map +1 -1
  126. package/dist/modules/tag/tag.entity.js +12 -12
  127. package/dist/modules/tag/tag.entity.js.map +1 -1
  128. package/dist/modules/tag/tag.module.js +1 -1
  129. package/dist/modules/tag/tag.module.js.map +1 -1
  130. package/dist/modules/tag/tag.service.js +2 -2
  131. package/dist/modules/tag/tag.service.js.map +1 -1
  132. package/dist/modules/user/user.controller.js +27 -25
  133. package/dist/modules/user/user.controller.js.map +1 -1
  134. package/dist/modules/user/user.entity.js +22 -22
  135. package/dist/modules/user/user.entity.js.map +1 -1
  136. package/dist/modules/user/user.module.js +2 -2
  137. package/dist/modules/user/user.module.js.map +1 -1
  138. package/dist/modules/user/user.service.js +3 -3
  139. package/dist/modules/user/user.service.js.map +1 -1
  140. package/dist/modules/view/view.controller.js +20 -19
  141. package/dist/modules/view/view.controller.js.map +1 -1
  142. package/dist/modules/view/view.entity.js +24 -24
  143. package/dist/modules/view/view.entity.js.map +1 -1
  144. package/dist/modules/view/view.module.js +1 -1
  145. package/dist/modules/view/view.module.js.map +1 -1
  146. package/dist/modules/view/view.service.js +4 -4
  147. package/dist/modules/view/view.service.js.map +1 -1
  148. package/dist/modules/webhook/webhook.controller.js +9 -9
  149. package/dist/modules/webhook/webhook.controller.js.map +1 -1
  150. package/dist/modules/webhook/webhook.entity.js +13 -13
  151. package/dist/modules/webhook/webhook.entity.js.map +1 -1
  152. package/dist/modules/webhook/webhook.module.js +1 -1
  153. package/dist/modules/webhook/webhook.module.js.map +1 -1
  154. package/dist/modules/webhook/webhook.service.js +2 -2
  155. package/dist/modules/webhook/webhook.service.js.map +1 -1
  156. package/dist/public/apple-touch-icon.png +0 -0
  157. package/dist/public/favicon-16.png +0 -0
  158. package/dist/public/favicon-32.png +0 -0
  159. package/dist/public/favicon-48.png +0 -0
  160. package/dist/public/favicon.ico +0 -0
  161. package/dist/public/favicon.png +0 -0
  162. package/dist/public/icon-192.png +0 -0
  163. package/dist/public/icon-512.png +0 -0
  164. package/dist/public/logo-200.png +0 -0
  165. package/dist/public/logo-400.png +0 -0
  166. package/dist/public/logo.png +0 -0
  167. package/dist/public/logo.svg +7 -0
  168. package/dist/starter.js +16 -2
  169. package/dist/starter.js.map +1 -1
  170. package/dist/tsconfig.build.tsbuildinfo +1 -16966
  171. package/dist/utils/date.util.js +1 -1
  172. package/dist/utils/date.util.js.map +1 -1
  173. package/dist/utils/html-sanitize.util.d.ts +1 -0
  174. package/dist/utils/html-sanitize.util.js +33 -0
  175. package/dist/utils/html-sanitize.util.js.map +1 -0
  176. package/dist/utils/query-whitelist.util.d.ts +1 -0
  177. package/dist/utils/query-whitelist.util.js +100 -0
  178. package/dist/utils/query-whitelist.util.js.map +1 -0
  179. package/dist/utils/uniqueid.util.js +1 -1
  180. package/dist/utils/uniqueid.util.js.map +1 -1
  181. package/package.json +3 -3
  182. package/public/apple-touch-icon.png +0 -0
  183. package/public/favicon-16.png +0 -0
  184. package/public/favicon-32.png +0 -0
  185. package/public/favicon-48.png +0 -0
  186. package/public/favicon.ico +0 -0
  187. package/public/favicon.png +0 -0
  188. package/public/icon-192.png +0 -0
  189. package/public/icon-512.png +0 -0
  190. package/public/logo-200.png +0 -0
  191. package/public/logo-400.png +0 -0
  192. package/public/logo.png +0 -0
  193. package/public/logo.svg +7 -0
@@ -7,7 +7,7 @@ const dateFormat = (date = null, format = 'yyyy-MM-dd HH:mm:ss') => {
7
7
  date = new Date();
8
8
  }
9
9
  const t = date instanceof Date ? date : new Date(date);
10
- return date_fns_1.format(t, format);
10
+ return (0, date_fns_1.format)(t, format);
11
11
  };
12
12
  exports.dateFormat = dateFormat;
13
13
  //# sourceMappingURL=date.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"date.util.js","sourceRoot":"","sources":["../../src/utils/date.util.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAE3C,MAAM,UAAU,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,GAAG,qBAAqB,EAAE,EAAE;IACxE,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;KACnB;IAED,MAAM,CAAC,GAAG,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAEvD,OAAO,iBAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AARW,QAAA,UAAU,cAQrB"}
1
+ {"version":3,"file":"date.util.js","sourceRoot":"","sources":["../../src/utils/date.util.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAE3C,MAAM,UAAU,GAAG,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,GAAG,qBAAqB,EAAE,EAAE;IACxE,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;KACnB;IAED,MAAM,CAAC,GAAG,IAAI,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC;IAEvD,OAAO,IAAA,iBAAY,EAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACjC,CAAC,CAAC;AARW,QAAA,UAAU,cAQrB"}
@@ -0,0 +1 @@
1
+ export declare function sanitizeHtml(html: string): string;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sanitizeHtml = void 0;
4
+ const STRIP_TAGS = [
5
+ 'script',
6
+ 'iframe',
7
+ 'object',
8
+ 'embed',
9
+ 'link',
10
+ 'style',
11
+ 'meta',
12
+ 'base',
13
+ 'applet',
14
+ 'frame',
15
+ 'frameset',
16
+ ];
17
+ function sanitizeHtml(html) {
18
+ let clean = html;
19
+ for (const tag of STRIP_TAGS) {
20
+ clean = clean.replace(new RegExp(`<${tag}\\b[^>]*>[\\s\\S]*?<\\/${tag}>`, 'gi'), '');
21
+ clean = clean.replace(new RegExp(`<${tag}\\b[^>]*\\/>`, 'gi'), '');
22
+ clean = clean.replace(new RegExp(`<${tag}\\b[^>]*>`, 'gi'), '');
23
+ }
24
+ clean = clean.replace(/\bon\w+\s*=\s*"(?:[^"\\]|\\.)*"/gi, '');
25
+ clean = clean.replace(/\bon\w+\s*=\s*'(?:[^'\\]|\\.)*'/gi, '');
26
+ clean = clean.replace(/\bon\w+\s*=\s*[^\s>]+/gi, '');
27
+ clean = clean.replace(/href\s*=\s*"javascript\s*:[^"]*"/gi, '');
28
+ clean = clean.replace(/href\s*=\s*'javascript\s*:[^']*'/gi, '');
29
+ clean = clean.replace(/javascript\s*:/gi, '');
30
+ return clean;
31
+ }
32
+ exports.sanitizeHtml = sanitizeHtml;
33
+ //# sourceMappingURL=html-sanitize.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"html-sanitize.util.js","sourceRoot":"","sources":["../../src/utils/html-sanitize.util.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG;IACjB,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,QAAQ;IACR,OAAO;IACP,UAAU;CACX,CAAC;AAEF,SAAgB,YAAY,CAAC,IAAY;IACvC,IAAI,KAAK,GAAG,IAAI,CAAC;IAEjB,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;QAC5B,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,0BAA0B,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACrF,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,cAAc,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;QACnE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,WAAW,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;KACjE;IAGD,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC;IAC/D,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAC;IAGrD,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IAChE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,oCAAoC,EAAE,EAAE,CAAC,CAAC;IAChE,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;IAE9C,OAAO,KAAK,CAAC;AACf,CAAC;AApBD,oCAoBC"}
@@ -0,0 +1 @@
1
+ export declare function filterByWhitelist(entity: string, params: Record<string, unknown>): Record<string, unknown>;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.filterByWhitelist = void 0;
15
+ const ALLOWED_COLUMNS = {
16
+ article: [
17
+ 'id',
18
+ 'title',
19
+ 'cover',
20
+ 'content',
21
+ 'html',
22
+ 'toc',
23
+ 'summary',
24
+ 'status',
25
+ 'views',
26
+ 'likes',
27
+ 'isRecommended',
28
+ 'needPassword',
29
+ 'password',
30
+ 'publishAt',
31
+ 'createAt',
32
+ 'updateAt',
33
+ ],
34
+ comment: [
35
+ 'id',
36
+ 'hostId',
37
+ 'name',
38
+ 'email',
39
+ 'avatar',
40
+ 'content',
41
+ 'html',
42
+ 'pass',
43
+ 'userAgent',
44
+ 'url',
45
+ 'createAt',
46
+ 'updateAt',
47
+ 'parentCommentId',
48
+ 'replyUserName',
49
+ 'replyUserEmail',
50
+ ],
51
+ file: ['id', 'originalname', 'filename', 'url', 'type', 'size', 'createAt', 'updateAt'],
52
+ page: [
53
+ 'id',
54
+ 'name',
55
+ 'cover',
56
+ 'path',
57
+ 'order',
58
+ 'content',
59
+ 'html',
60
+ 'toc',
61
+ 'status',
62
+ 'views',
63
+ 'publishAt',
64
+ 'createAt',
65
+ 'updateAt',
66
+ ],
67
+ knowledge: [
68
+ 'id',
69
+ 'title',
70
+ 'cover',
71
+ 'content',
72
+ 'html',
73
+ 'toc',
74
+ 'summary',
75
+ 'status',
76
+ 'views',
77
+ 'likes',
78
+ 'isCommentable',
79
+ 'order',
80
+ 'parentId',
81
+ 'publishAt',
82
+ 'createAt',
83
+ 'updateAt',
84
+ ],
85
+ };
86
+ function filterByWhitelist(entity, params) {
87
+ const whitelist = ALLOWED_COLUMNS[entity];
88
+ if (!whitelist)
89
+ return {};
90
+ const _a = params, { page, pageSize, status, pass } = _a, otherParams = __rest(_a, ["page", "pageSize", "status", "pass"]);
91
+ const filtered = {};
92
+ Object.keys(otherParams).forEach((key) => {
93
+ if (whitelist.includes(key)) {
94
+ filtered[key] = otherParams[key];
95
+ }
96
+ });
97
+ return filtered;
98
+ }
99
+ exports.filterByWhitelist = filterByWhitelist;
100
+ //# sourceMappingURL=query-whitelist.util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-whitelist.util.js","sourceRoot":"","sources":["../../src/utils/query-whitelist.util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,MAAM,eAAe,GAA6B;IAChD,OAAO,EAAE;QACP,IAAI;QACJ,OAAO;QACP,OAAO;QACP,SAAS;QACT,MAAM;QACN,KAAK;QACL,SAAS;QACT,QAAQ;QACR,OAAO;QACP,OAAO;QACP,eAAe;QACf,cAAc;QACd,UAAU;QACV,WAAW;QACX,UAAU;QACV,UAAU;KACX;IACD,OAAO,EAAE;QACP,IAAI;QACJ,QAAQ;QACR,MAAM;QACN,OAAO;QACP,QAAQ;QACR,SAAS;QACT,MAAM;QACN,MAAM;QACN,WAAW;QACX,KAAK;QACL,UAAU;QACV,UAAU;QACV,iBAAiB;QACjB,eAAe;QACf,gBAAgB;KACjB;IACD,IAAI,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,CAAC;IACvF,IAAI,EAAE;QACJ,IAAI;QACJ,MAAM;QACN,OAAO;QACP,MAAM;QACN,OAAO;QACP,SAAS;QACT,MAAM;QACN,KAAK;QACL,QAAQ;QACR,OAAO;QACP,WAAW;QACX,UAAU;QACV,UAAU;KACX;IACD,SAAS,EAAE;QACT,IAAI;QACJ,OAAO;QACP,OAAO;QACP,SAAS;QACT,MAAM;QACN,KAAK;QACL,SAAS;QACT,QAAQ;QACR,OAAO;QACP,OAAO;QACP,eAAe;QACf,OAAO;QACP,UAAU;QACV,WAAW;QACX,UAAU;QACV,UAAU;KACX;CACF,CAAC;AAEF,SAAgB,iBAAiB,CAAC,MAAc,EAAE,MAA+B;IAC/E,MAAM,SAAS,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAC1C,IAAI,CAAC,SAAS;QAAE,OAAO,EAAE,CAAC;IAE1B,MAAM,KAAmD,MAAiC,EAApF,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,OAAsD,EAAjD,WAAW,cAA9C,sCAAgD,CAAoC,CAAC;IAC3F,MAAM,QAAQ,GAA4B,EAAE,CAAC;IAE7C,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC3B,QAAQ,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;SAClC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC;AAdD,8CAcC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uniqueid = void 0;
4
4
  const nuid_1 = require("nuid");
5
5
  function uniqueid() {
6
- return nuid_1.next();
6
+ return (0, nuid_1.next)();
7
7
  }
8
8
  exports.uniqueid = uniqueid;
9
9
  //# sourceMappingURL=uniqueid.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"uniqueid.util.js","sourceRoot":"","sources":["../../src/utils/uniqueid.util.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAE5B,SAAgB,QAAQ;IACtB,OAAO,WAAI,EAAE,CAAC;AAChB,CAAC;AAFD,4BAEC"}
1
+ {"version":3,"file":"uniqueid.util.js","sourceRoot":"","sources":["../../src/utils/uniqueid.util.ts"],"names":[],"mappings":";;;AAAA,+BAA4B;AAE5B,SAAgB,QAAQ;IACtB,OAAO,IAAA,WAAI,GAAE,CAAC;AAChB,CAAC;AAFD,4BAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-server",
3
- "version": "3.0.0",
3
+ "version": "3.7.0",
4
4
  "deprecated": "请使用 @fecommunity/reactpress-cli 内置 API,3.1 起停止发布",
5
5
  "description": "ReactPress Server - NestJS-based backend API for ReactPress CMS",
6
6
  "author": "fecommunity",
@@ -35,7 +35,7 @@
35
35
  "node": ">=16.5.0"
36
36
  },
37
37
  "dependencies": {
38
- "@fecommunity/reactpress-toolkit": "3.0.0",
38
+ "@fecommunity/reactpress-toolkit": "3.7.0",
39
39
  "@nestjs/cli": "^6.9.0",
40
40
  "@nestjs/common": "^6.7.2",
41
41
  "@nestjs/config": "^0.6.3",
@@ -107,7 +107,7 @@
107
107
  "ts-node": "^8.4.1",
108
108
  "tsconfig-paths": "^3.9.0",
109
109
  "tslint": "^5.20.0",
110
- "typescript": "~4.1.6"
110
+ "typescript": "4.6.2"
111
111
  },
112
112
  "jest": {
113
113
  "moduleFileExtensions": [
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,7 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 102" fill="none" role="img" aria-label="ReactPress">
2
+ <title>ReactPress</title>
3
+ <g><path fill="none" stroke="#087ea4" stroke-width="5.333" stroke-linecap="round" d="M56 75.165c29.455 0 53.333-10.745 53.333-24s-23.878-24-53.333-24-53.334 10.745-53.334 24 23.879 24 53.334 24Z"/>
4
+ <path fill="none" stroke="#087ea4" stroke-width="5.333" stroke-linecap="round" d="M35.215 63.165c14.728 25.509 35.972 40.815 47.451 34.188 11.48-6.628 8.846-32.68-5.882-58.188-14.727-25.51-35.972-40.816-47.45-34.188-11.48 6.627-8.846 32.679 5.881 58.188Z"/>
5
+ <path fill="none" stroke="#087ea4" stroke-width="5.333" stroke-linecap="round" d="M35.215 39.165c-14.727 25.509-17.36 51.56-5.882 58.188 11.48 6.627 32.724-8.68 47.451-34.188 14.728-25.51 17.362-51.56 5.883-58.188-11.48-6.628-32.724 8.679-47.452 34.188Z"/></g>
6
+ <text x="56" y="52" text-anchor="middle" dominant-baseline="central" fill="#087ea4" font-family="Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="33" font-weight="600" letter-spacing="-0.03em">P</text>
7
+ </svg>