@juki-team/commons 0.1.32 → 0.1.40

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 (254) hide show
  1. package/dist/cjs/index.cjs +3567 -0
  2. package/dist/esm/index.js +3347 -0
  3. package/dist/{constants → types/constants}/commons.d.ts +8 -8
  4. package/dist/{constants → types/constants}/company.d.ts +3 -3
  5. package/dist/{constants → types/constants}/contest.d.ts +3 -3
  6. package/dist/{constants → types/constants}/course.d.ts +2 -2
  7. package/dist/{constants → types/constants}/entity.d.ts +1 -1
  8. package/dist/{constants → types/constants}/file.d.ts +5 -6
  9. package/dist/types/constants/index.d.ts +18 -0
  10. package/dist/{constants → types/constants}/judge.d.ts +9 -11
  11. package/dist/{constants → types/constants}/problem.d.ts +8 -9
  12. package/dist/types/constants/services.d.ts +8 -0
  13. package/dist/{constants → types/constants}/system.d.ts +2 -2
  14. package/dist/{constants → types/constants}/teams.d.ts +3 -4
  15. package/dist/types/constants/user.d.ts +16 -0
  16. package/dist/{constants → types/constants}/websocket.d.ts +1 -1
  17. package/dist/{constants → types/constants}/worksheet.d.ts +2 -2
  18. package/dist/{dto → types/dto}/class.d.ts +4 -4
  19. package/dist/{dto → types/dto}/code.d.ts +1 -1
  20. package/dist/{dto → types/dto}/comments.d.ts +3 -3
  21. package/dist/types/dto/company.d.ts +67 -0
  22. package/dist/{dto → types/dto}/contest.d.ts +8 -9
  23. package/dist/{dto → types/dto}/course.d.ts +5 -5
  24. package/dist/{dto → types/dto}/entity.d.ts +3 -3
  25. package/dist/{dto → types/dto}/excalidraw.d.ts +4 -4
  26. package/dist/{dto → types/dto}/file.d.ts +2 -2
  27. package/dist/types/dto/index.d.ts +25 -0
  28. package/dist/{dto → types/dto}/judge.d.ts +1 -1
  29. package/dist/{dto → types/dto}/markdown.d.ts +4 -4
  30. package/dist/{dto → types/dto}/mermaid.d.ts +4 -4
  31. package/dist/{dto → types/dto}/problem.d.ts +4 -5
  32. package/dist/{dto → types/dto}/scoreboard.d.ts +1 -1
  33. package/dist/{dto → types/dto}/session.d.ts +2 -2
  34. package/dist/{dto → types/dto}/socket.d.ts +7 -8
  35. package/dist/{dto → types/dto}/statistics.d.ts +2 -2
  36. package/dist/{dto → types/dto}/submission.d.ts +4 -5
  37. package/dist/{dto → types/dto}/system.d.ts +18 -18
  38. package/dist/{dto → types/dto}/user.d.ts +14 -14
  39. package/dist/{dto → types/dto}/virtual-user.d.ts +1 -2
  40. package/dist/{dto → types/dto}/worksheet-submissions.d.ts +4 -4
  41. package/dist/{dto → types/dto}/worksheet.d.ts +4 -4
  42. package/dist/{helpers → types/helpers}/class.d.ts +1 -1
  43. package/dist/{helpers → types/helpers}/commons.d.ts +11 -9
  44. package/dist/{helpers → types/helpers}/contest.d.ts +1 -1
  45. package/dist/{helpers → types/helpers}/document.d.ts +2 -2
  46. package/dist/types/helpers/index.d.ts +14 -0
  47. package/dist/types/helpers/interval.d.ts +2 -0
  48. package/dist/{helpers → types/helpers}/judging.d.ts +2 -3
  49. package/dist/types/helpers/object.d.ts +1 -0
  50. package/dist/types/helpers/responses.d.ts +8 -0
  51. package/dist/types/helpers/socket.d.ts +45 -0
  52. package/dist/{helpers → types/helpers}/time.d.ts +1 -1
  53. package/dist/{helpers → types/helpers}/user.d.ts +1 -1
  54. package/dist/types/helpers/worksheet.d.ts +10 -0
  55. package/dist/types/index.d.ts +5 -23
  56. package/dist/{prototypes → types/prototypes}/Error.d.ts +3 -3
  57. package/dist/types/prototypes/Number.d.ts +7 -0
  58. package/dist/types/prototypes/index.d.ts +3 -0
  59. package/dist/types/{class.d.ts → types/class.d.ts} +2 -2
  60. package/dist/types/{commons.d.ts → types/commons.d.ts} +3 -3
  61. package/dist/types/types/company.d.ts +29 -0
  62. package/dist/types/{contest.d.ts → types/contest.d.ts} +26 -9
  63. package/dist/types/{course.d.ts → types/course.d.ts} +1 -1
  64. package/dist/types/{entity.d.ts → types/entity.d.ts} +4 -4
  65. package/dist/types/{excalidraw.d.ts → types/excalidraw.d.ts} +3 -3
  66. package/dist/types/{file.d.ts → types/file.d.ts} +9 -4
  67. package/dist/types/{group.d.ts → types/group.d.ts} +5 -2
  68. package/dist/types/types/index.d.ts +25 -0
  69. package/dist/types/{judge.d.ts → types/judge.d.ts} +32 -3
  70. package/dist/types/{markdown.d.ts → types/markdown.d.ts} +1 -1
  71. package/dist/types/{mermaid.d.ts → types/mermaid.d.ts} +1 -1
  72. package/dist/types/types/prisma.d.ts +284 -0
  73. package/dist/types/{problems.d.ts → types/problems.d.ts} +13 -4
  74. package/dist/types/types/services.d.ts +213 -0
  75. package/dist/types/{sheet.d.ts → types/sheet.d.ts} +2 -3
  76. package/dist/types/{socket.d.ts → types/socket.d.ts} +3 -3
  77. package/dist/types/{teams.d.ts → types/teams.d.ts} +2 -25
  78. package/dist/types/{users.d.ts → types/users.d.ts} +4 -10
  79. package/dist/types/types/virtual-user.d.ts +7 -0
  80. package/dist/types/{worksheet.d.ts → types/worksheet.d.ts} +3 -3
  81. package/package.json +19 -21
  82. package/biome.shared.json +0 -102
  83. package/dist/constants/commons.js +0 -658
  84. package/dist/constants/company.js +0 -24
  85. package/dist/constants/contest.js +0 -29
  86. package/dist/constants/course.js +0 -12
  87. package/dist/constants/date.js +0 -23
  88. package/dist/constants/email.js +0 -34
  89. package/dist/constants/entity.js +0 -18
  90. package/dist/constants/file.js +0 -46
  91. package/dist/constants/index.d.ts +0 -18
  92. package/dist/constants/index.js +0 -18
  93. package/dist/constants/judge.js +0 -221
  94. package/dist/constants/problem.js +0 -72
  95. package/dist/constants/routing.js +0 -7
  96. package/dist/constants/services.d.ts +0 -5
  97. package/dist/constants/services.js +0 -131
  98. package/dist/constants/system.js +0 -9
  99. package/dist/constants/teams.js +0 -18
  100. package/dist/constants/time.js +0 -9
  101. package/dist/constants/user.d.ts +0 -10
  102. package/dist/constants/user.js +0 -35
  103. package/dist/constants/websocket.js +0 -5
  104. package/dist/constants/worksheet.js +0 -66
  105. package/dist/dto/class.js +0 -1
  106. package/dist/dto/code.js +0 -1
  107. package/dist/dto/comments.js +0 -1
  108. package/dist/dto/contest.js +0 -7
  109. package/dist/dto/course.js +0 -1
  110. package/dist/dto/entity.js +0 -5
  111. package/dist/dto/excalidraw.js +0 -1
  112. package/dist/dto/file.js +0 -1
  113. package/dist/dto/image.js +0 -1
  114. package/dist/dto/index.d.ts +0 -24
  115. package/dist/dto/index.js +0 -24
  116. package/dist/dto/judge.js +0 -1
  117. package/dist/dto/markdown.js +0 -1
  118. package/dist/dto/mermaid.js +0 -1
  119. package/dist/dto/organization.d.ts +0 -102
  120. package/dist/dto/organization.js +0 -1
  121. package/dist/dto/problem.js +0 -1
  122. package/dist/dto/scoreboard.js +0 -1
  123. package/dist/dto/session.js +0 -1
  124. package/dist/dto/socket.js +0 -1
  125. package/dist/dto/statistics.js +0 -1
  126. package/dist/dto/submission.js +0 -1
  127. package/dist/dto/system.js +0 -1
  128. package/dist/dto/url.js +0 -1
  129. package/dist/dto/user.js +0 -1
  130. package/dist/dto/virtual-user.js +0 -1
  131. package/dist/dto/worksheet-submissions.js +0 -1
  132. package/dist/dto/worksheet.js +0 -1
  133. package/dist/helpers/class.js +0 -10
  134. package/dist/helpers/comments.js +0 -4
  135. package/dist/helpers/commons.js +0 -191
  136. package/dist/helpers/contest.js +0 -21
  137. package/dist/helpers/document.js +0 -38
  138. package/dist/helpers/file.js +0 -4
  139. package/dist/helpers/index.d.ts +0 -14
  140. package/dist/helpers/index.js +0 -14
  141. package/dist/helpers/interval.d.ts +0 -2
  142. package/dist/helpers/interval.js +0 -22
  143. package/dist/helpers/judging.js +0 -107
  144. package/dist/helpers/object.d.ts +0 -1
  145. package/dist/helpers/object.js +0 -32
  146. package/dist/helpers/responses.d.ts +0 -8
  147. package/dist/helpers/responses.js +0 -78
  148. package/dist/helpers/socket.d.ts +0 -45
  149. package/dist/helpers/socket.js +0 -238
  150. package/dist/helpers/time.js +0 -101
  151. package/dist/helpers/user.js +0 -14
  152. package/dist/helpers/worksheet.d.ts +0 -10
  153. package/dist/helpers/worksheet.js +0 -131
  154. package/dist/index.d.ts +0 -6
  155. package/dist/index.js +0 -6
  156. package/dist/prisma/enums/AssignmentClassType.d.ts +0 -7
  157. package/dist/prisma/enums/AssignmentClassType.js +0 -6
  158. package/dist/prisma/enums/ContestEventAction.d.ts +0 -10
  159. package/dist/prisma/enums/ContestEventAction.js +0 -9
  160. package/dist/prisma/enums/ContestProblemPrerequisiteType.d.ts +0 -5
  161. package/dist/prisma/enums/ContestProblemPrerequisiteType.js +0 -4
  162. package/dist/prisma/enums/ContestRole.d.ts +0 -11
  163. package/dist/prisma/enums/ContestRole.js +0 -10
  164. package/dist/prisma/enums/ContestStatus.d.ts +0 -6
  165. package/dist/prisma/enums/ContestStatus.js +0 -5
  166. package/dist/prisma/enums/CourseRole.d.ts +0 -12
  167. package/dist/prisma/enums/CourseRole.js +0 -11
  168. package/dist/prisma/enums/EntityObjectType.d.ts +0 -13
  169. package/dist/prisma/enums/EntityObjectType.js +0 -12
  170. package/dist/prisma/enums/EntityRole.d.ts +0 -8
  171. package/dist/prisma/enums/EntityRole.js +0 -7
  172. package/dist/prisma/enums/EntitySubjectType.d.ts +0 -7
  173. package/dist/prisma/enums/EntitySubjectType.js +0 -6
  174. package/dist/prisma/enums/FileRole.d.ts +0 -9
  175. package/dist/prisma/enums/FileRole.js +0 -8
  176. package/dist/prisma/enums/FileType.d.ts +0 -5
  177. package/dist/prisma/enums/FileType.js +0 -4
  178. package/dist/prisma/enums/GroupType.d.ts +0 -5
  179. package/dist/prisma/enums/GroupType.js +0 -4
  180. package/dist/prisma/enums/JudgeType.d.ts +0 -12
  181. package/dist/prisma/enums/JudgeType.js +0 -11
  182. package/dist/prisma/enums/OrganizationPlan.d.ts +0 -7
  183. package/dist/prisma/enums/OrganizationPlan.js +0 -6
  184. package/dist/prisma/enums/ProblemRole.d.ts +0 -11
  185. package/dist/prisma/enums/ProblemRole.js +0 -10
  186. package/dist/prisma/enums/ProblemScoringMode.d.ts +0 -6
  187. package/dist/prisma/enums/ProblemScoringMode.js +0 -5
  188. package/dist/prisma/enums/ProblemType.d.ts +0 -6
  189. package/dist/prisma/enums/ProblemType.js +0 -5
  190. package/dist/prisma/enums/ProblemVerdict.d.ts +0 -14
  191. package/dist/prisma/enums/ProblemVerdict.js +0 -13
  192. package/dist/prisma/enums/ShareLinkVisibility.d.ts +0 -5
  193. package/dist/prisma/enums/ShareLinkVisibility.js +0 -4
  194. package/dist/prisma/enums/SubmissionRunStatus.d.ts +0 -18
  195. package/dist/prisma/enums/SubmissionRunStatus.js +0 -17
  196. package/dist/prisma/enums/SystemRole.d.ts +0 -9
  197. package/dist/prisma/enums/SystemRole.js +0 -8
  198. package/dist/prisma/enums/TeamRole.d.ts +0 -9
  199. package/dist/prisma/enums/TeamRole.js +0 -8
  200. package/dist/prisma/enums/TelemetryType.d.ts +0 -9
  201. package/dist/prisma/enums/TelemetryType.js +0 -8
  202. package/dist/prisma/enums/UserRole.d.ts +0 -10
  203. package/dist/prisma/enums/UserRole.js +0 -9
  204. package/dist/prisma/enums/WorkingIn.d.ts +0 -8
  205. package/dist/prisma/enums/WorkingIn.js +0 -7
  206. package/dist/prisma/enums/WorksheetContentType.d.ts +0 -10
  207. package/dist/prisma/enums/WorksheetContentType.js +0 -9
  208. package/dist/prisma/enums/index.d.ts +0 -26
  209. package/dist/prisma/enums/index.js +0 -26
  210. package/dist/prototypes/Date.js +0 -218
  211. package/dist/prototypes/Error.js +0 -17
  212. package/dist/prototypes/Number.d.ts +0 -7
  213. package/dist/prototypes/Number.js +0 -8
  214. package/dist/prototypes/index.d.ts +0 -3
  215. package/dist/prototypes/index.js +0 -3
  216. package/dist/types/account.js +0 -10
  217. package/dist/types/class.js +0 -7
  218. package/dist/types/comments.js +0 -1
  219. package/dist/types/commons.js +0 -69
  220. package/dist/types/company.d.ts +0 -6
  221. package/dist/types/company.js +0 -7
  222. package/dist/types/contest.js +0 -6
  223. package/dist/types/course.js +0 -1
  224. package/dist/types/entity.js +0 -50
  225. package/dist/types/excalidraw.js +0 -1
  226. package/dist/types/file.js +0 -13
  227. package/dist/types/group.js +0 -1
  228. package/dist/types/index.js +0 -23
  229. package/dist/types/judge.js +0 -17
  230. package/dist/types/markdown.js +0 -1
  231. package/dist/types/mermaid.js +0 -1
  232. package/dist/types/notification.js +0 -8
  233. package/dist/types/problems.js +0 -16
  234. package/dist/types/services.d.ts +0 -214
  235. package/dist/types/services.js +0 -147
  236. package/dist/types/sheet.js +0 -16
  237. package/dist/types/socket.js +0 -49
  238. package/dist/types/submission.js +0 -1
  239. package/dist/types/teams.js +0 -28
  240. package/dist/types/users.js +0 -33
  241. package/dist/types/worksheet.js +0 -11
  242. /package/dist/{constants → types/constants}/date.d.ts +0 -0
  243. /package/dist/{constants → types/constants}/email.d.ts +0 -0
  244. /package/dist/{constants → types/constants}/routing.d.ts +0 -0
  245. /package/dist/{constants → types/constants}/time.d.ts +0 -0
  246. /package/dist/{dto → types/dto}/image.d.ts +0 -0
  247. /package/dist/{dto → types/dto}/url.d.ts +0 -0
  248. /package/dist/{helpers → types/helpers}/comments.d.ts +0 -0
  249. /package/dist/{helpers → types/helpers}/file.d.ts +0 -0
  250. /package/dist/{prototypes → types/prototypes}/Date.d.ts +0 -0
  251. /package/dist/types/{account.d.ts → types/account.d.ts} +0 -0
  252. /package/dist/types/{comments.d.ts → types/comments.d.ts} +0 -0
  253. /package/dist/types/{notification.d.ts → types/notification.d.ts} +0 -0
  254. /package/dist/types/{submission.d.ts → types/submission.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import type { SubmissionRunStatus } from '../prisma/enums/index.js';
2
- import type { CodeLanguage } from './commons.js';
1
+ import { CodeLanguage } from './commons';
2
+ import { SubmissionRunStatus } from './judge';
3
3
  export declare enum WorksheetType {
4
4
  JK_MD = "JK_MD",
5
5
  CODE_EDITOR = "CODE_EDITOR",
@@ -46,7 +46,6 @@ export type CodeEditorFile<T> = {
46
46
  hidden: boolean;
47
47
  readonly: boolean;
48
48
  protected: boolean;
49
- active: boolean;
50
49
  };
51
50
  export type CodeEditorFiles<T> = {
52
51
  [key: string]: CodeEditorFile<T>;
@@ -1,4 +1,4 @@
1
- import type { RecordId } from './commons.js';
1
+ import { RecordId } from './commons';
2
2
  export declare enum WebSocketMessageEvent {
3
3
  PING = "PING",
4
4
  CLIENT_TRACK_LOCATION = "CLIENT_TRACK_LOCATION",
@@ -29,7 +29,7 @@ export declare enum WebSocketResponseEvent {
29
29
  CODE_RUN_STATUS = "CODE_RUN_STATUS",
30
30
  SUBMISSION_RUN_STATUS = "SUBMISSION_RUN_STATUS",
31
31
  USER_MESSAGE = "USER_MESSAGE",
32
- SEND_DATA = "SEND_DATA",
32
+ SEND_DATA_ = "SEND_DATA_",
33
33
  SEND_DATA_ECS_TASK_DEFINITIONS_LIST = "SEND_DATA_ECS_TASK_DEFINITIONS_LIST",
34
34
  SEND_DATA_ECS_TASKS_LIST = "SEND_DATA_ECS_TASKS_LIST",
35
35
  SEND_DATA_EC2_INSTANCES_LIST = "SEND_DATA_EC2_INSTANCES_LIST",
@@ -41,7 +41,7 @@ export declare enum WebSocketResponseEvent {
41
41
  SUBMISSIONS_CRAWL = "SUBMISSIONS_CRAWL",
42
42
  CONTEST_CHANGES = "CONTEST_CHANGES",
43
43
  CLIENT_TRACK = "CLIENT_TRACK",
44
- USER_NOTIFICATION = "USER_NOTIFICATION",
44
+ USER_NOTIFICATION_ = "USER_NOTIFICATION_",
45
45
  USER_NOTIFICATION_SUBMISSION = "USER_NOTIFICATION_SUBMISSION",
46
46
  USER_NOTIFICATION_CONTEST_CLARIFICATION = "USER_NOTIFICATION_CONTEST_CLARIFICATION"
47
47
  }
@@ -1,28 +1,5 @@
1
- import type { UserBasic, UserProfile } from './users.js';
2
- export declare enum TeamStatus {
3
- ACTIVE = "ACTIVE",
4
- REPORTED = "REPORTED",
5
- ARCHIVED = "ARCHIVED"
6
- }
7
- export declare enum UserTeamStatus {
8
- PENDING = "PENDING",
9
- ACCEPTED = "ACCEPTED",
10
- REJECTED = "REJECTED"
11
- }
12
- export declare enum AssignmentType {
13
- READING_PDF = "READING_PDF",
14
- READING_WEB = "READING_WEB",
15
- SOLVE_JUKI_JUDGE_PROBLEM = "SOLVE_JUKI_JUDGE_PROBLEM",
16
- SOLVE_CODEFORCES_JUDGE_PROBLEM = "SOLVE_CODEFORCES_JUDGE_PROBLEM"
17
- }
18
- export declare enum MemberRole {
19
- COACH = "COACH",
20
- CO_COACH = "CO_COACH",
21
- CONTESTANT = "CONTESTANT",
22
- ATTENDEE = "ATTENDEE",
23
- RESERVE = "RESERVE",
24
- STAFF = "STAFF"
25
- }
1
+ import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma';
2
+ import { UserBasic, UserProfile } from './users';
26
3
  export interface TeamMember {
27
4
  user: UserProfile;
28
5
  role: MemberRole;
@@ -1,5 +1,5 @@
1
- import type { ContestRole, CourseRole, ProblemRole, SystemRole, TeamRole, UserRole } from '../prisma/enums/index.js';
2
- import { ProfileSetting } from './account.js';
1
+ import { ProfileSetting } from './account';
2
+ import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma';
3
3
  export interface UserBasicInfo {
4
4
  nickname: string;
5
5
  imageUrl: string;
@@ -19,14 +19,6 @@ export interface UserProfile extends UserBasic {
19
19
  export type UserHandles = {
20
20
  [key: string]: string;
21
21
  };
22
- export declare enum Language {
23
- ES = "ES",
24
- EN = "EN"
25
- }
26
- export declare enum Theme {
27
- LIGHT = "LIGHT",
28
- DARK = "DARK"
29
- }
30
22
  export declare enum DataViewMode {
31
23
  CARDS = "CARDS",
32
24
  ROWS = "ROWS"
@@ -55,6 +47,8 @@ export declare enum Role {
55
47
  GUEST = "GUEST",
56
48
  RESTRICTED = "RESTRICTED"
57
49
  }
50
+ export type ProblemRole = Role.RESTRICTED | Role.GUEST | Role.REGULAR | Role.CREATOR | Role.MANAGER | Role.MASTER | Role.ADMIN | Role.SUPER_ADMIN;
51
+ export type ContestRole = Role.RESTRICTED | Role.GUEST | Role.REGULAR | Role.CREATOR | Role.MANAGER | Role.MASTER | Role.ADMIN | Role.SUPER_ADMIN;
58
52
  export type UserRoles = {
59
53
  systemRole: SystemRole;
60
54
  userRole: UserRole;
@@ -0,0 +1,7 @@
1
+ export declare enum WorkingIn {
2
+ NOTHING = "NOTHING",
3
+ SEND_SUBMISSION = "SEND_SUBMISSION",
4
+ TRACKING_SUBMISSION = "TRACKING_SUBMISSION",
5
+ CRAWLING_LANGUAGES = "CRAWLING_LANGUAGES",
6
+ CRAWLING_PROBLEM_DATA = "CRAWLING_PROBLEM_DATA"
7
+ }
@@ -1,6 +1,6 @@
1
- import type { Theme } from 'typedoc';
2
- import type { EntityMembers } from './entity.js';
3
- import type { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet.js';
1
+ import { EntityMembers } from './entity';
2
+ import { Theme } from './prisma';
3
+ import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet';
4
4
  export declare enum AspectRatio {
5
5
  RATIO_21_9 = "21:9",
6
6
  RATIO_20_9 = "20:9",
package/package.json CHANGED
@@ -1,40 +1,38 @@
1
1
  {
2
2
  "name": "@juki-team/commons",
3
- "version": "0.1.32",
3
+ "version": "0.1.40",
4
4
  "author": "juki-team",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
7
+ "main": "dist/cjs/index.cjs",
8
+ "module": "dist/esm/index.js",
9
+ "types": "dist/types/index.d.ts",
9
10
  "exports": {
10
11
  ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.js"
12
+ "types": "./dist/types/index.d.ts",
13
+ "import": "./dist/esm/index.js",
14
+ "require": "./dist/cjs/index.cjs"
13
15
  }
14
16
  },
15
17
  "files": [
16
- "dist",
17
- "biome.shared.json"
18
+ "dist"
18
19
  ],
19
20
  "repository": "https://github.com/juki-team/commons.git",
20
- "publishConfig": {
21
- "access": "public",
22
- "registry": "https://registry.npmjs.org"
23
- },
24
21
  "scripts": {
25
22
  "docs": "typedoc src/index.ts",
26
- "watch": "tsc --watch",
27
- "build": "rm -rf docs && rm -rf dist && tsc && npm run docs",
28
- "commit-push": "f() { param=${1}; message=${param:-chore}; git add .; git commit -m \"$message\"; npm version patch --no-git-tag-version; npm run build; npm publish; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; git commit -m $version; git push origin main; git tag -a $version -m $version; git push origin --tags; }; f",
29
- "push": "f() { npm version patch --no-git-tag-version; npm run build; npm publish; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; git commit -m $version; git push origin main; git tag -a $version -m $version; git push origin --tags; }; f",
30
- "lint": "biome check src/",
31
- "lint:fix": "biome check --write src/",
32
- "lint:format": "biome format --write src/"
23
+ "watch": "rollup -cw",
24
+ "build": "rm -rf docs && rm -rf dist && rollup -c && yarn docs",
25
+ "git:commit-push": "f() { param=${1}; message=${param:-chore}; echo ${message}; git add .; echo $message | git commit -F -; yarn publish --patch --no-git-tag-version; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; echo $version | git commit -F -; git push origin main; echo $version | git tag -a $(echo $version) -F -; git push origin --tags; }; f",
26
+ "git:push": "f() { yarn publish --patch --no-git-tag-version; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; echo $version | git commit -F -; git push origin main; echo $version | git tag -a $(echo $version) -F -; git push origin --tags; }; f",
27
+ "push-commit": "f() { yarn build && yarn git-push \"${1}\"; }; f",
28
+ "push": "yarn build && yarn git:push"
33
29
  },
34
30
  "devDependencies": {
35
- "@biomejs/biome": "^2.4.12",
36
31
  "@types/uuid": "^11.0.0",
37
- "typedoc": "^0.28.19",
38
- "typescript": "^6.0.3"
32
+ "prettier": "^3.8.1",
33
+ "rollup": "^4.57.1",
34
+ "rollup-plugin-typescript2": "^0.36.0",
35
+ "typedoc": "^0.28.16",
36
+ "typescript": "^5.9.3"
39
37
  }
40
38
  }
package/biome.shared.json DELETED
@@ -1,102 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
3
- "formatter": {
4
- "enabled": true,
5
- "formatWithErrors": false,
6
- "indentStyle": "space",
7
- "indentWidth": 2,
8
- "lineEnding": "lf",
9
- "lineWidth": 128,
10
- "attributePosition": "auto",
11
- "bracketSameLine": false,
12
- "bracketSpacing": true,
13
- "expand": "auto",
14
- "useEditorconfig": true
15
- },
16
- "linter": {
17
- "enabled": true,
18
- "rules": {
19
- "recommended": true,
20
- "correctness": {
21
- "noUnusedImports": "error",
22
- "noUnusedVariables": "error",
23
- "noUnusedPrivateClassMembers": "error",
24
- "noUnusedFunctionParameters": "error",
25
- "useExhaustiveDependencies": "error",
26
- "noConstantCondition": "error",
27
- "noVoidTypeReturn": "error",
28
- "noUndeclaredVariables": "error",
29
- "useImportExtensions": "off"
30
- },
31
- "suspicious": {
32
- "noConsole": { "level": "error", "options": { "allow": ["error", "warn", "info"] } },
33
- "noExplicitAny": "error",
34
- "noDoubleEquals": "error",
35
- "noEmptyBlockStatements": "error",
36
- "noConfusingVoidType": "error",
37
- "useAwait": "error",
38
- "noAssignInExpressions": "error",
39
- "noMisleadingInstantiator": "error"
40
- },
41
- "style": {
42
- "noNonNullAssertion": "error",
43
- "useConst": "error",
44
- "useTemplate": "error",
45
- "noParameterAssign": "error",
46
- "useShorthandAssign": "error",
47
- "noUselessElse": "error",
48
- "useDefaultParameterLast": "error",
49
- "noDefaultExport": "error",
50
- "useNamingConvention": {
51
- "level": "error",
52
- "options": {
53
- "strictCase": false,
54
- "conventions": [
55
- {
56
- "selector": { "kind": "enumMember" },
57
- "formats": ["CONSTANT_CASE"]
58
- }
59
- ]
60
- }
61
- },
62
- "useImportType": "error"
63
- },
64
- "performance": {
65
- "noDelete": "error",
66
- "noAccumulatingSpread": "error",
67
- "noNamespaceImport": "error"
68
- },
69
- "complexity": {
70
- "noExcessiveCognitiveComplexity": { "level": "warn", "options": { "maxAllowedComplexity": 10 } },
71
- "noForEach": "error",
72
- "useSimplifiedLogicExpression": "error",
73
- "useFlatMap": "error",
74
- "noStaticOnlyClass": "error",
75
- "noUselessSwitchCase": "error"
76
- }
77
- }
78
- },
79
- "javascript": {
80
- "formatter": {
81
- "jsxQuoteStyle": "double",
82
- "quoteProperties": "asNeeded",
83
- "trailingCommas": "all",
84
- "semicolons": "always",
85
- "arrowParentheses": "always",
86
- "bracketSameLine": false,
87
- "quoteStyle": "single",
88
- "attributePosition": "auto",
89
- "bracketSpacing": true
90
- }
91
- },
92
- "html": {
93
- "formatter": {
94
- "indentScriptAndStyle": false,
95
- "selfCloseVoidElements": "always"
96
- }
97
- },
98
- "assist": {
99
- "enabled": true,
100
- "actions": { "source": { "organizeImports": "on" } }
101
- }
102
- }