@cyberskill/shared 1.209.0 → 1.211.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 (358) hide show
  1. package/dist/config/commitlint/index.cjs +1 -0
  2. package/dist/config/config.type.cjs +1 -0
  3. package/dist/config/config.type.js +4 -0
  4. package/dist/config/config.util.cjs +1 -0
  5. package/dist/config/config.util.js +58 -0
  6. package/dist/config/env/env.constant.cjs +1 -0
  7. package/dist/config/env/env.util.cjs +1 -0
  8. package/dist/config/env/env.util.js +29 -0
  9. package/dist/config/env/index.cjs +1 -0
  10. package/dist/config/eslint/index.cjs +1 -0
  11. package/dist/config/eslint/index.js +26 -0
  12. package/dist/config/graphql-codegen/graphql-codegen.util.cjs +1 -0
  13. package/dist/config/graphql-codegen/graphql-codegen.util.js +42 -0
  14. package/dist/config/graphql-codegen/index.cjs +1 -0
  15. package/dist/config/index.cjs +1 -0
  16. package/dist/config/index.js +6 -0
  17. package/dist/config/lint-staged/index.cjs +1 -0
  18. package/dist/config/vitest/index.cjs +1 -0
  19. package/dist/config/vitest/vitest.e2e.cjs +1 -0
  20. package/dist/config/vitest/vitest.e2e.js +30 -0
  21. package/dist/config/vitest/vitest.unit.cjs +1 -0
  22. package/dist/config/vitest/vitest.unit.js +26 -0
  23. package/dist/constant/common.cjs +1 -0
  24. package/dist/constant/common.js +4 -0
  25. package/dist/constant/index.cjs +1 -0
  26. package/dist/constant/response-status.cjs +1 -0
  27. package/dist/node/apollo-server/apollo-server.util.cjs +1 -0
  28. package/dist/node/apollo-server/apollo-server.util.js +56 -0
  29. package/dist/node/apollo-server/index.cjs +1 -0
  30. package/dist/node/cli/index.cjs +6 -0
  31. package/dist/node/cli/index.js +160 -0
  32. package/dist/node/command/command.type.cjs +1 -0
  33. package/dist/node/command/command.type.js +4 -0
  34. package/dist/node/command/command.util.cjs +2 -0
  35. package/dist/node/command/command.util.js +175 -0
  36. package/dist/node/command/index.cjs +1 -0
  37. package/dist/node/command/index.js +11 -0
  38. package/dist/node/express/express.util.cjs +1 -0
  39. package/dist/node/express/express.util.js +81 -0
  40. package/dist/node/express/index.cjs +1 -0
  41. package/dist/node/fs/fs.util.cjs +1 -0
  42. package/dist/node/fs/fs.util.js +63 -0
  43. package/dist/node/fs/index.cjs +1 -0
  44. package/dist/node/log/index.cjs +1 -0
  45. package/dist/node/log/index.js +8 -0
  46. package/dist/node/log/log.type.cjs +1 -0
  47. package/dist/node/log/log.type.js +4 -0
  48. package/dist/node/log/log.util.cjs +1 -0
  49. package/dist/node/log/log.util.js +60 -0
  50. package/dist/node/mongo/index.cjs +1 -0
  51. package/dist/node/mongo/index.js +17 -0
  52. package/dist/node/mongo/mongo.constant.cjs +1 -0
  53. package/dist/node/mongo/mongo.type.cjs +1 -0
  54. package/dist/node/mongo/mongo.type.js +16 -0
  55. package/dist/node/mongo/mongo.util.cjs +5 -0
  56. package/dist/node/mongo/mongo.util.js +556 -0
  57. package/dist/node/package/index.cjs +1 -0
  58. package/dist/node/package/index.js +10 -0
  59. package/dist/node/package/package.type.cjs +1 -0
  60. package/dist/node/package/package.type.js +4 -0
  61. package/dist/node/package/package.util.cjs +1 -0
  62. package/dist/node/package/package.util.js +254 -0
  63. package/dist/node/path/index.cjs +1 -0
  64. package/dist/node/path/index.js +52 -0
  65. package/dist/node/path/path.constant.cjs +1 -0
  66. package/dist/node/path/path.constant.js +295 -0
  67. package/dist/node/path/path.util.cjs +1 -0
  68. package/dist/node/storage/index.cjs +1 -0
  69. package/dist/node/storage/storage.util.cjs +1 -0
  70. package/dist/node/storage/storage.util.js +81 -0
  71. package/dist/node/upload/index.cjs +1 -0
  72. package/dist/node/upload/index.js +7 -0
  73. package/dist/node/upload/upload.type.cjs +1 -0
  74. package/dist/node/upload/upload.type.js +4 -0
  75. package/dist/node/upload/upload.util.cjs +1 -0
  76. package/dist/node/upload/upload.util.js +154 -0
  77. package/dist/node/ws/index.cjs +1 -0
  78. package/dist/node/ws/ts.util.cjs +1 -0
  79. package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.cjs +1 -0
  80. package/dist/{config-CwzVfkkX.js → node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.js} +1 -1
  81. package/dist/react/apollo-client/apollo-client.component.cjs +1 -0
  82. package/dist/{src/react → react}/apollo-client/apollo-client.component.js +9 -12
  83. package/dist/react/apollo-client/apollo-client.constant.cjs +1 -0
  84. package/dist/react/apollo-client/apollo-client.context.cjs +1 -0
  85. package/dist/{src/react → react}/apollo-client/apollo-client.context.js +2 -2
  86. package/dist/react/apollo-client/apollo-client.util.cjs +1 -0
  87. package/dist/react/apollo-client/apollo-client.util.js +111 -0
  88. package/dist/react/apollo-client/index.cjs +1 -0
  89. package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -0
  90. package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +1 -0
  91. package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +1 -0
  92. package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +21 -0
  93. package/dist/react/apollo-client-nextjs/index.cjs +1 -0
  94. package/dist/react/apollo-error/apollo-error.component.cjs +1 -0
  95. package/dist/{src/react → react}/apollo-error/apollo-error.component.js +5 -12
  96. package/dist/react/apollo-error/apollo-error.context.cjs +1 -0
  97. package/dist/react/apollo-error/apollo-error.hook.cjs +1 -0
  98. package/dist/react/apollo-error/apollo-error.module.scss.cjs +1 -0
  99. package/dist/react/apollo-error/apollo-error.module.scss.js +11 -0
  100. package/dist/react/apollo-error/apollo-error.provider.cjs +1 -0
  101. package/dist/{src/react → react}/apollo-error/apollo-error.provider.js +2 -2
  102. package/dist/react/apollo-error/apollo-error.util.cjs +1 -0
  103. package/dist/{src/react → react}/apollo-error/apollo-error.util.js +1 -1
  104. package/dist/react/apollo-error/index.cjs +1 -0
  105. package/dist/react/i18next/i18next.hook.cjs +1 -0
  106. package/dist/react/i18next/i18next.util.cjs +1 -0
  107. package/dist/react/i18next/index.cjs +1 -0
  108. package/dist/react/loading/index.cjs +1 -0
  109. package/dist/react/loading/loading.component.cjs +6 -0
  110. package/dist/react/loading/loading.component.js +51 -0
  111. package/dist/react/loading/loading.context.cjs +1 -0
  112. package/dist/react/loading/loading.hook.cjs +1 -0
  113. package/dist/react/loading/loading.module.scss.cjs +1 -0
  114. package/dist/react/loading/loading.module.scss.js +15 -0
  115. package/dist/react/loading/loading.provider.cjs +1 -0
  116. package/dist/react/loading/loading.provider.js +17 -0
  117. package/dist/react/log/index.cjs +1 -0
  118. package/dist/react/log/log.util.cjs +1 -0
  119. package/dist/{src/react → react}/log/log.util.js +4 -4
  120. package/dist/react/next-intl/index.cjs +1 -0
  121. package/dist/react/next-intl/next-intl.constant.cjs +1 -0
  122. package/dist/react/next-intl/next-intl.context.cjs +1 -0
  123. package/dist/react/next-intl/next-intl.hoc.cjs +1 -0
  124. package/dist/react/next-intl/next-intl.hoc.js +32 -0
  125. package/dist/react/next-intl/next-intl.hook.cjs +1 -0
  126. package/dist/react/next-intl/next-intl.provider.cjs +1 -0
  127. package/dist/react/next-intl/next-intl.provider.js +23 -0
  128. package/dist/react/storage/index.cjs +1 -0
  129. package/dist/react/storage/storage.hook.cjs +1 -0
  130. package/dist/react/storage/storage.hook.js +77 -0
  131. package/dist/react/storage/storage.util.cjs +1 -0
  132. package/dist/react/storage/storage.util.js +60 -0
  133. package/dist/react/toast/index.cjs +1 -0
  134. package/dist/react/userback/index.cjs +1 -0
  135. package/dist/react/userback/userback.component.cjs +1 -0
  136. package/dist/react/userback/userback.component.js +51 -0
  137. package/dist/style.css +1 -1
  138. package/dist/typescript/common.type.cjs +1 -0
  139. package/dist/typescript/index.cjs +1 -0
  140. package/dist/typescript/index.js +4 -0
  141. package/dist/util/common/common.util.cjs +1 -0
  142. package/dist/util/common/common.util.js +56 -0
  143. package/dist/util/common/index.cjs +1 -0
  144. package/dist/util/index.cjs +1 -0
  145. package/dist/util/object/index.cjs +1 -0
  146. package/dist/util/object/object.util.cjs +1 -0
  147. package/dist/util/object/object.util.js +73 -0
  148. package/dist/util/serializer/index.cjs +1 -0
  149. package/dist/util/serializer/serializer.util.cjs +1 -0
  150. package/dist/util/string/index.cjs +1 -0
  151. package/dist/util/string/string.util.cjs +1 -0
  152. package/dist/util/string/string.util.js +61 -0
  153. package/dist/util/validate/index.cjs +1 -0
  154. package/dist/util/validate/validate.util.cjs +1 -0
  155. package/package.json +103 -69
  156. package/dist/index-BG1UznTl.js +0 -628
  157. package/dist/magic-string.es-BQ9KnLz-.js +0 -659
  158. package/dist/src/config/config.util.js +0 -50
  159. package/dist/src/config/env/env.util.js +0 -29
  160. package/dist/src/config/eslint/index.js +0 -18
  161. package/dist/src/config/graphql-codegen/graphql-codegen.util.js +0 -37
  162. package/dist/src/config/index.js +0 -5
  163. package/dist/src/config/vitest/vitest.e2e.js +0 -23
  164. package/dist/src/config/vitest/vitest.unit.js +0 -19
  165. package/dist/src/config/vitest/vitest.unit.setup.js +0 -30990
  166. package/dist/src/constant/common.js +0 -4
  167. package/dist/src/node/apollo-server/apollo-server.util.js +0 -31
  168. package/dist/src/node/cli/index.js +0 -108
  169. package/dist/src/node/command/command.util.js +0 -16
  170. package/dist/src/node/command/index.js +0 -10
  171. package/dist/src/node/express/express.util.js +0 -50
  172. package/dist/src/node/fs/fs.util.js +0 -48
  173. package/dist/src/node/log/index.js +0 -8
  174. package/dist/src/node/log/log.util.js +0 -59
  175. package/dist/src/node/mongo/index.js +0 -26
  176. package/dist/src/node/mongo/mongo.util.js +0 -488
  177. package/dist/src/node/package/index.js +0 -9
  178. package/dist/src/node/package/package.util.js +0 -13
  179. package/dist/src/node/path/index.js +0 -52
  180. package/dist/src/node/path/path.constant.js +0 -49
  181. package/dist/src/node/storage/storage.util.js +0 -51
  182. package/dist/src/node/upload/index.js +0 -6
  183. package/dist/src/node/upload/upload.util.js +0 -127
  184. package/dist/src/react/apollo-client/apollo-client.hook.js +0 -11
  185. package/dist/src/react/apollo-client/apollo-client.util.js +0 -101
  186. package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +0 -14
  187. package/dist/src/react/loading/loading.component.js +0 -40
  188. package/dist/src/react/loading/loading.provider.js +0 -17
  189. package/dist/src/react/next-intl/next-intl.hoc.js +0 -23
  190. package/dist/src/react/next-intl/next-intl.provider.js +0 -24
  191. package/dist/src/react/storage/storage.hook.js +0 -61
  192. package/dist/src/react/storage/storage.util.js +0 -35
  193. package/dist/src/react/userback/userback.component.js +0 -27
  194. package/dist/src/typescript/style.d.js +0 -1
  195. package/dist/src/util/common/common.util.js +0 -48
  196. package/dist/src/util/object/object.util.js +0 -67
  197. package/dist/src/util/string/string.util.js +0 -51
  198. /package/dist/{src/config → config}/commitlint/index.d.ts +0 -0
  199. /package/dist/{src/config → config}/commitlint/index.js +0 -0
  200. /package/dist/{src/config → config}/config.type.d.ts +0 -0
  201. /package/dist/{src/config → config}/config.util.d.ts +0 -0
  202. /package/dist/{src/config → config}/env/env.constant.d.ts +0 -0
  203. /package/dist/{src/config → config}/env/env.constant.js +0 -0
  204. /package/dist/{src/config → config}/env/env.type.d.ts +0 -0
  205. /package/dist/{src/config → config}/env/env.util.d.ts +0 -0
  206. /package/dist/{src/config → config}/env/index.d.ts +0 -0
  207. /package/dist/{src/config → config}/env/index.js +0 -0
  208. /package/dist/{src/config → config}/eslint/index.d.ts +0 -0
  209. /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.type.d.ts +0 -0
  210. /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.util.d.ts +0 -0
  211. /package/dist/{src/config → config}/graphql-codegen/index.d.ts +0 -0
  212. /package/dist/{src/config → config}/graphql-codegen/index.js +0 -0
  213. /package/dist/{src/config → config}/index.d.ts +0 -0
  214. /package/dist/{src/config → config}/lint-staged/index.d.ts +0 -0
  215. /package/dist/{src/config → config}/lint-staged/index.js +0 -0
  216. /package/dist/{src/config → config}/vitest/index.d.ts +0 -0
  217. /package/dist/{src/config → config}/vitest/index.js +0 -0
  218. /package/dist/{src/config → config}/vitest/vitest.e2e.d.ts +0 -0
  219. /package/dist/{src/config → config}/vitest/vitest.unit.d.ts +0 -0
  220. /package/dist/{src/constant → constant}/common.d.ts +0 -0
  221. /package/dist/{src/constant → constant}/index.d.ts +0 -0
  222. /package/dist/{src/constant → constant}/index.js +0 -0
  223. /package/dist/{src/constant → constant}/response-status.d.ts +0 -0
  224. /package/dist/{src/constant → constant}/response-status.js +0 -0
  225. /package/dist/{src/node → node}/apollo-server/apollo-server.type.d.ts +0 -0
  226. /package/dist/{src/node → node}/apollo-server/apollo-server.util.d.ts +0 -0
  227. /package/dist/{src/node → node}/apollo-server/index.d.ts +0 -0
  228. /package/dist/{src/node → node}/apollo-server/index.js +0 -0
  229. /package/dist/{src/node → node}/cli/index.d.ts +0 -0
  230. /package/dist/{src/node → node}/command/command.type.d.ts +0 -0
  231. /package/dist/{src/node → node}/command/command.util.d.ts +0 -0
  232. /package/dist/{src/node → node}/command/index.d.ts +0 -0
  233. /package/dist/{src/node → node}/express/express.type.d.ts +0 -0
  234. /package/dist/{src/node → node}/express/express.util.d.ts +0 -0
  235. /package/dist/{src/node → node}/express/index.d.ts +0 -0
  236. /package/dist/{src/node → node}/express/index.js +0 -0
  237. /package/dist/{src/node → node}/fs/fs.type.d.ts +0 -0
  238. /package/dist/{src/node → node}/fs/fs.util.d.ts +0 -0
  239. /package/dist/{src/node → node}/fs/index.d.ts +0 -0
  240. /package/dist/{src/node → node}/fs/index.js +0 -0
  241. /package/dist/{src/node → node}/log/index.d.ts +0 -0
  242. /package/dist/{src/node → node}/log/log.type.d.ts +0 -0
  243. /package/dist/{src/node → node}/log/log.util.d.ts +0 -0
  244. /package/dist/{src/node → node}/mongo/index.d.ts +0 -0
  245. /package/dist/{src/node → node}/mongo/mongo.constant.d.ts +0 -0
  246. /package/dist/{src/node → node}/mongo/mongo.constant.js +0 -0
  247. /package/dist/{src/node → node}/mongo/mongo.type.d.ts +0 -0
  248. /package/dist/{src/node → node}/mongo/mongo.util.d.ts +0 -0
  249. /package/dist/{src/node → node}/package/index.d.ts +0 -0
  250. /package/dist/{src/node → node}/package/package.type.d.ts +0 -0
  251. /package/dist/{src/node → node}/package/package.util.d.ts +0 -0
  252. /package/dist/{src/node → node}/path/index.d.ts +0 -0
  253. /package/dist/{src/node → node}/path/path.constant.d.ts +0 -0
  254. /package/dist/{src/node → node}/path/path.util.d.ts +0 -0
  255. /package/dist/{src/node → node}/path/path.util.js +0 -0
  256. /package/dist/{src/node → node}/storage/index.d.ts +0 -0
  257. /package/dist/{src/node → node}/storage/index.js +0 -0
  258. /package/dist/{src/node → node}/storage/storage.util.d.ts +0 -0
  259. /package/dist/{src/node → node}/upload/index.d.ts +0 -0
  260. /package/dist/{src/node → node}/upload/upload.type.d.ts +0 -0
  261. /package/dist/{src/node → node}/upload/upload.util.d.ts +0 -0
  262. /package/dist/{src/node → node}/ws/index.d.ts +0 -0
  263. /package/dist/{src/node → node}/ws/index.js +0 -0
  264. /package/dist/{src/node → node}/ws/ts.util.d.ts +0 -0
  265. /package/dist/{src/node → node}/ws/ts.util.js +0 -0
  266. /package/dist/{src/node → node}/ws/ws.type.d.ts +0 -0
  267. /package/dist/{src/react → react}/apollo-client/apollo-client.component.d.ts +0 -0
  268. /package/dist/{src/react → react}/apollo-client/apollo-client.constant.d.ts +0 -0
  269. /package/dist/{src/react → react}/apollo-client/apollo-client.constant.js +0 -0
  270. /package/dist/{src/react → react}/apollo-client/apollo-client.context.d.ts +0 -0
  271. /package/dist/{src/react → react}/apollo-client/apollo-client.hook.d.ts +0 -0
  272. /package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +0 -0
  273. /package/dist/{src/react → react}/apollo-client/apollo-client.util.d.ts +0 -0
  274. /package/dist/{src/react → react}/apollo-client/index.d.ts +0 -0
  275. /package/dist/{src/react → react}/apollo-client/index.js +0 -0
  276. /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +0 -0
  277. /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.js +0 -0
  278. /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +0 -0
  279. /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.js +0 -0
  280. /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.util.d.ts +0 -0
  281. /package/dist/{src/react → react}/apollo-client-nextjs/index.d.ts +0 -0
  282. /package/dist/{src/react → react}/apollo-client-nextjs/index.js +0 -0
  283. /package/dist/{src/react → react}/apollo-error/apollo-error.component.d.ts +0 -0
  284. /package/dist/{src/react → react}/apollo-error/apollo-error.context.d.ts +0 -0
  285. /package/dist/{src/react → react}/apollo-error/apollo-error.context.js +0 -0
  286. /package/dist/{src/react → react}/apollo-error/apollo-error.hook.d.ts +0 -0
  287. /package/dist/{src/react → react}/apollo-error/apollo-error.hook.js +0 -0
  288. /package/dist/{src/react → react}/apollo-error/apollo-error.provider.d.ts +0 -0
  289. /package/dist/{src/react → react}/apollo-error/apollo-error.type.d.ts +0 -0
  290. /package/dist/{src/react → react}/apollo-error/apollo-error.util.d.ts +0 -0
  291. /package/dist/{src/react → react}/apollo-error/index.d.ts +0 -0
  292. /package/dist/{src/react → react}/apollo-error/index.js +0 -0
  293. /package/dist/{src/react → react}/i18next/i18next.hook.d.ts +0 -0
  294. /package/dist/{src/react → react}/i18next/i18next.hook.js +0 -0
  295. /package/dist/{src/react → react}/i18next/i18next.util.d.ts +0 -0
  296. /package/dist/{src/react → react}/i18next/i18next.util.js +0 -0
  297. /package/dist/{src/react → react}/i18next/index.d.ts +0 -0
  298. /package/dist/{src/react → react}/i18next/index.js +0 -0
  299. /package/dist/{src/react → react}/loading/index.d.ts +0 -0
  300. /package/dist/{src/react → react}/loading/index.js +0 -0
  301. /package/dist/{src/react → react}/loading/loading.component.d.ts +0 -0
  302. /package/dist/{src/react → react}/loading/loading.context.d.ts +0 -0
  303. /package/dist/{src/react → react}/loading/loading.context.js +0 -0
  304. /package/dist/{src/react → react}/loading/loading.hook.d.ts +0 -0
  305. /package/dist/{src/react → react}/loading/loading.hook.js +0 -0
  306. /package/dist/{src/react → react}/loading/loading.provider.d.ts +0 -0
  307. /package/dist/{src/react → react}/loading/loading.type.d.ts +0 -0
  308. /package/dist/{src/react → react}/log/index.d.ts +0 -0
  309. /package/dist/{src/react → react}/log/index.js +0 -0
  310. /package/dist/{src/react → react}/log/log.type.d.ts +0 -0
  311. /package/dist/{src/react → react}/log/log.util.d.ts +0 -0
  312. /package/dist/{src/react → react}/next-intl/index.d.ts +0 -0
  313. /package/dist/{src/react → react}/next-intl/index.js +0 -0
  314. /package/dist/{src/react → react}/next-intl/next-intl.constant.d.ts +0 -0
  315. /package/dist/{src/react → react}/next-intl/next-intl.constant.js +0 -0
  316. /package/dist/{src/react → react}/next-intl/next-intl.context.d.ts +0 -0
  317. /package/dist/{src/react → react}/next-intl/next-intl.context.js +0 -0
  318. /package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +0 -0
  319. /package/dist/{src/react → react}/next-intl/next-intl.hook.d.ts +0 -0
  320. /package/dist/{src/react → react}/next-intl/next-intl.hook.js +0 -0
  321. /package/dist/{src/react → react}/next-intl/next-intl.provider.d.ts +0 -0
  322. /package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +0 -0
  323. /package/dist/{src/react → react}/storage/index.d.ts +0 -0
  324. /package/dist/{src/react → react}/storage/index.js +0 -0
  325. /package/dist/{src/react → react}/storage/storage.hook.d.ts +0 -0
  326. /package/dist/{src/react → react}/storage/storage.util.d.ts +0 -0
  327. /package/dist/{src/react → react}/toast/index.d.ts +0 -0
  328. /package/dist/{src/react → react}/toast/index.js +0 -0
  329. /package/dist/{src/react → react}/userback/index.d.ts +0 -0
  330. /package/dist/{src/react → react}/userback/index.js +0 -0
  331. /package/dist/{src/react → react}/userback/userback.component.d.ts +0 -0
  332. /package/dist/{src/react → react}/userback/userback.type.d.ts +0 -0
  333. /package/dist/{src/typescript → typescript}/common.type.d.ts +0 -0
  334. /package/dist/{src/typescript/index.js → typescript/common.type.js} +0 -0
  335. /package/dist/{src/typescript → typescript}/index.d.ts +0 -0
  336. /package/dist/{src/typescript → typescript}/react.type.d.ts +0 -0
  337. /package/dist/{src/util → util}/common/common.type.d.ts +0 -0
  338. /package/dist/{src/util → util}/common/common.util.d.ts +0 -0
  339. /package/dist/{src/util → util}/common/index.d.ts +0 -0
  340. /package/dist/{src/util → util}/common/index.js +0 -0
  341. /package/dist/{src/util → util}/index.d.ts +0 -0
  342. /package/dist/{src/util → util}/index.js +0 -0
  343. /package/dist/{src/util → util}/object/index.d.ts +0 -0
  344. /package/dist/{src/util → util}/object/index.js +0 -0
  345. /package/dist/{src/util → util}/object/object.util.d.ts +0 -0
  346. /package/dist/{src/util → util}/serializer/index.d.ts +0 -0
  347. /package/dist/{src/util → util}/serializer/index.js +0 -0
  348. /package/dist/{src/util → util}/serializer/serializer.type.d.ts +0 -0
  349. /package/dist/{src/util → util}/serializer/serializer.util.d.ts +0 -0
  350. /package/dist/{src/util → util}/serializer/serializer.util.js +0 -0
  351. /package/dist/{src/util → util}/string/index.d.ts +0 -0
  352. /package/dist/{src/util → util}/string/index.js +0 -0
  353. /package/dist/{src/util → util}/string/string.type.d.ts +0 -0
  354. /package/dist/{src/util → util}/string/string.util.d.ts +0 -0
  355. /package/dist/{src/util → util}/validate/index.d.ts +0 -0
  356. /package/dist/{src/util → util}/validate/index.js +0 -0
  357. /package/dist/{src/util → util}/validate/validate.util.d.ts +0 -0
  358. /package/dist/{src/util → util}/validate/validate.util.js +0 -0
@@ -1,488 +0,0 @@
1
- import R from "migrate-mongo";
2
- import { Document as S } from "mongoose";
3
- import N from "mongoose-aggregate-paginate-v2";
4
- import { default as X } from "mongoose-aggregate-paginate-v2";
5
- import w from "mongoose-paginate-v2";
6
- import { default as Z } from "mongoose-paginate-v2";
7
- import { v4 as h } from "uuid";
8
- import { RESPONSE_STATUS as i } from "../../constant/response-status.js";
9
- import { deepClone as D, getNestedValue as x, setNestedValue as C, isObject as O } from "../../util/object/object.util.js";
10
- import { regexSearchMapper as _ } from "../../util/common/common.util.js";
11
- import { writeFileSync as p, pathExistsSync as I, readFileSync as M, appendFileSync as b } from "../fs/fs.util.js";
12
- import { P as m, M as E } from "../../../index-BG1UznTl.js";
13
- import { validate as A } from "../../util/validate/validate.util.js";
14
- import { generateShortId as T, generateSlug as y } from "../../util/string/string.util.js";
15
- import { catchError as u } from "../log/log.util.js";
16
- const l = {
17
- createGenericFields() {
18
- return {
19
- id: h(),
20
- isDel: !1,
21
- createdAt: /* @__PURE__ */ new Date(),
22
- updatedAt: /* @__PURE__ */ new Date()
23
- };
24
- },
25
- applyPlugins(n, t) {
26
- t.filter((e) => typeof e == "function").forEach((e) => n.plugin(e));
27
- },
28
- applyMiddlewares(n, t) {
29
- t.forEach(({ method: e, pre: r, post: s }) => {
30
- e && r && n.pre(e, r), e && s && n.post(e, s);
31
- });
32
- },
33
- createGenericSchema(n) {
34
- return new n.Schema(
35
- {
36
- id: { type: String, default: h, unique: !0 },
37
- isDel: { type: Boolean, default: !1 }
38
- },
39
- { timestamps: !0 }
40
- );
41
- },
42
- createSchema({
43
- mongoose: n,
44
- schema: t,
45
- virtuals: e = [],
46
- standalone: r = !1
47
- }) {
48
- const s = new n.Schema(t);
49
- return e.forEach(({ name: c, options: a, get: o }) => {
50
- const d = s.virtual(c, a);
51
- o && d.get(o);
52
- }), r || s.add(l.createGenericSchema(n)), s;
53
- },
54
- createModel({
55
- mongoose: n,
56
- name: t,
57
- schema: e,
58
- pagination: r = !1,
59
- aggregate: s = !1,
60
- virtuals: c = [],
61
- middlewares: a = []
62
- }) {
63
- if (!t)
64
- throw new Error("Model name is required.");
65
- if (n.models[t])
66
- return n.models[t];
67
- const o = l.createSchema({ mongoose: n, schema: e, virtuals: c });
68
- return l.applyPlugins(o, [
69
- r && w,
70
- s && N
71
- ]), l.applyMiddlewares(o, a), n.model(t, o);
72
- },
73
- validator: {
74
- isRequired() {
75
- return async function(n) {
76
- return !A.isEmpty(n);
77
- };
78
- },
79
- isUnique(n) {
80
- return async function(t) {
81
- if (!Array.isArray(n) || n.length === 0)
82
- throw new Error("Fields must be a non-empty array of strings.");
83
- const e = { $or: n.map((s) => ({ [s]: t })) };
84
- return !await this.constructor.exists(e);
85
- };
86
- },
87
- matchesRegex(n) {
88
- return async function(t) {
89
- if (!Array.isArray(n) || n.some((e) => !(e instanceof RegExp)))
90
- throw new Error("regexArray must be an array of valid RegExp objects.");
91
- return n.every((e) => e.test(t));
92
- };
93
- }
94
- },
95
- migrate: {
96
- ...R,
97
- setConfig: (n) => {
98
- const t = `// This file is automatically generated by the Cyberskill CLI.
99
- module.exports = ${JSON.stringify(n, null, 4)}`;
100
- p(m.MIGRATE_MONGO_CONFIG, t);
101
- const e = `
102
- ${E}
103
- `;
104
- I(m.GIT_IGNORE) ? M(m.GIT_IGNORE, "utf-8").split(`
105
- `).includes(E) || b(m.GIT_IGNORE, e) : p(m.GIT_IGNORE, e);
106
- }
107
- },
108
- regexify(n, t) {
109
- if (!n)
110
- return {};
111
- let e = D(n);
112
- if (!t || t.length === 0)
113
- return e;
114
- for (const r of t) {
115
- const s = r.toString().split("."), c = x(e, s);
116
- if (typeof c == "string" && c.length > 0) {
117
- const a = {
118
- $regex: `.*${_(c)}.*`,
119
- $options: "i"
120
- };
121
- e = C(e, s, a);
122
- }
123
- }
124
- return e;
125
- }
126
- };
127
- class B {
128
- collection;
129
- constructor(t, e) {
130
- this.collection = t.collection(e);
131
- }
132
- async createOne(t) {
133
- try {
134
- const e = {
135
- ...l.createGenericFields(),
136
- ...t
137
- };
138
- return (await this.collection.insertOne(e)).acknowledged ? {
139
- success: !0,
140
- message: "Document created successfully",
141
- result: e
142
- } : {
143
- success: !1,
144
- message: "Document creation failed",
145
- code: i.INTERNAL_SERVER_ERROR.CODE
146
- };
147
- } catch (e) {
148
- return u(e);
149
- }
150
- }
151
- async createMany(t) {
152
- try {
153
- const e = t.map((s) => ({
154
- ...l.createGenericFields(),
155
- ...s
156
- })), r = await this.collection.insertMany(e);
157
- return r.insertedCount === 0 ? {
158
- success: !1,
159
- message: "No documents were inserted",
160
- code: i.INTERNAL_SERVER_ERROR.CODE
161
- } : {
162
- success: !0,
163
- message: `${r.insertedCount} documents created successfully`,
164
- result: e
165
- };
166
- } catch (e) {
167
- return u(e);
168
- }
169
- }
170
- async findOne(t) {
171
- try {
172
- const e = await this.collection.findOne(t);
173
- return e ? { success: !0, message: "Document found", result: e } : { success: !1, message: "Document not found", code: i.NOT_FOUND.CODE };
174
- } catch (e) {
175
- return u(e);
176
- }
177
- }
178
- async findAll(t = {}) {
179
- try {
180
- return {
181
- success: !0,
182
- message: "Documents retrieved successfully",
183
- result: await this.collection.find(t).toArray()
184
- };
185
- } catch (e) {
186
- return u(e);
187
- }
188
- }
189
- async count(t = {}) {
190
- try {
191
- return {
192
- success: !0,
193
- message: "Count retrieved successfully",
194
- result: await this.collection.countDocuments(t)
195
- };
196
- } catch (e) {
197
- return u(e);
198
- }
199
- }
200
- async updateOne(t, e) {
201
- try {
202
- const r = await this.collection.updateOne(t, {
203
- $set: e
204
- });
205
- return r.matchedCount === 0 ? {
206
- success: !1,
207
- message: "No documents matched the filter",
208
- code: i.INTERNAL_SERVER_ERROR.CODE
209
- } : {
210
- success: !0,
211
- message: "Document updated successfully",
212
- result: r
213
- };
214
- } catch (r) {
215
- return u(r);
216
- }
217
- }
218
- async updateMany(t, e) {
219
- try {
220
- const r = await this.collection.updateMany(t, {
221
- $set: e
222
- });
223
- return r.matchedCount === 0 ? {
224
- success: !1,
225
- message: "No documents matched the filter",
226
- code: i.INTERNAL_SERVER_ERROR.CODE
227
- } : {
228
- success: !0,
229
- message: "Documents updated successfully",
230
- result: r
231
- };
232
- } catch (r) {
233
- return u(r);
234
- }
235
- }
236
- async deleteOne(t) {
237
- try {
238
- const e = await this.collection.deleteOne(t);
239
- return e.deletedCount === 0 ? {
240
- success: !1,
241
- message: "No documents matched the filter",
242
- code: i.INTERNAL_SERVER_ERROR.CODE
243
- } : {
244
- success: !0,
245
- message: "Document deleted successfully",
246
- result: e
247
- };
248
- } catch (e) {
249
- return u(e);
250
- }
251
- }
252
- async deleteMany(t) {
253
- try {
254
- const e = await this.collection.deleteMany(t);
255
- return e.deletedCount === 0 ? {
256
- success: !1,
257
- message: "No documents matched the filter",
258
- code: i.INTERNAL_SERVER_ERROR.CODE
259
- } : {
260
- success: !0,
261
- message: "Documents deleted successfully",
262
- result: e
263
- };
264
- } catch (e) {
265
- return u(e);
266
- }
267
- }
268
- }
269
- class K {
270
- constructor(t) {
271
- this.model = t;
272
- }
273
- getModelName() {
274
- return this.model.modelName;
275
- }
276
- async findOne(t = {}, e = {}, r = {}, s) {
277
- try {
278
- const c = this.model.findOne(t, e, r);
279
- s && c.populate(s);
280
- const a = await c.exec();
281
- return a ? { success: !0, result: a } : {
282
- success: !1,
283
- message: `No ${this.getModelName()} found.`,
284
- code: i.NOT_FOUND.CODE
285
- };
286
- } catch (c) {
287
- return u(c);
288
- }
289
- }
290
- async findAll(t = {}, e = {}, r = {}, s) {
291
- try {
292
- const c = this.model.find(t, e, r);
293
- return s && c.populate(s), { success: !0, result: await c.exec() };
294
- } catch (c) {
295
- return u(c);
296
- }
297
- }
298
- async findPaging(t = {}, e = {}) {
299
- try {
300
- return { success: !0, result: await this.model.paginate(t, e) };
301
- } catch (r) {
302
- return u(r);
303
- }
304
- }
305
- async findPagingAggregate(t, e = {}) {
306
- try {
307
- return { success: !0, result: await this.model.aggregatePaginate(
308
- this.model.aggregate(t),
309
- e
310
- ) };
311
- } catch (r) {
312
- return u(r);
313
- }
314
- }
315
- async count(t = {}) {
316
- try {
317
- return { success: !0, result: await this.model.countDocuments(t) };
318
- } catch (e) {
319
- return u(e);
320
- }
321
- }
322
- async createOne(t) {
323
- try {
324
- return { success: !0, result: await this.model.create(t) };
325
- } catch (e) {
326
- return u(e);
327
- }
328
- }
329
- async createMany(t, e = {}) {
330
- try {
331
- return { success: !0, result: (await this.model.insertMany(t, e)).map((c) => c instanceof S ? c.toObject() : null).filter((c) => c !== null) };
332
- } catch (r) {
333
- return u(r);
334
- }
335
- }
336
- async updateOne(t = {}, e = {}, r = {}) {
337
- try {
338
- const s = await this.model.findOneAndUpdate(t, e, {
339
- new: !0,
340
- ...r
341
- }).exec();
342
- return s ? { success: !0, result: s } : {
343
- success: !1,
344
- message: `Failed to update ${this.getModelName()}.`,
345
- code: i.NOT_FOUND.CODE
346
- };
347
- } catch (s) {
348
- return u(s);
349
- }
350
- }
351
- async updateMany(t = {}, e = {}, r = {}) {
352
- try {
353
- return { success: !0, result: await this.model.updateMany(t, e, r).exec() };
354
- } catch (s) {
355
- return u(s);
356
- }
357
- }
358
- async deleteOne(t = {}, e = {}) {
359
- try {
360
- const r = await this.model.findOneAndDelete(t, e).exec();
361
- return r ? { success: !0, result: r } : {
362
- success: !1,
363
- message: `No ${this.getModelName()} found to delete.`,
364
- code: i.NOT_FOUND.CODE
365
- };
366
- } catch (r) {
367
- return u(r);
368
- }
369
- }
370
- async deleteMany(t = {}, e = {}) {
371
- try {
372
- const r = await this.model.deleteMany(t, e).exec();
373
- return r.deletedCount === 0 ? {
374
- success: !1,
375
- message: "No documents found to delete.",
376
- code: i.NOT_FOUND.CODE
377
- } : { success: !0, result: r };
378
- } catch (r) {
379
- return u(r);
380
- }
381
- }
382
- async createShortId(t, e = 4) {
383
- try {
384
- const s = /* @__PURE__ */ new Set();
385
- for (let c = 0; c < 10; c++) {
386
- const a = T(t, c + e);
387
- if (!s.has(a) && (s.add(a), !await this.model.exists({ shortId: a })))
388
- return { success: !0, result: a };
389
- }
390
- return {
391
- success: !1,
392
- message: "Failed to create a unique shortId",
393
- code: i.INTERNAL_SERVER_ERROR.CODE
394
- };
395
- } catch (r) {
396
- return u(r);
397
- }
398
- }
399
- createSlugQuery({ slug: t, field: e, isObject: r, filter: s }) {
400
- const c = { ...s ?? {} };
401
- return r ? {
402
- ...c,
403
- $or: [
404
- { [`slug.${e}`]: t },
405
- { slugHistory: { $elemMatch: { [`slug.${e}`]: t } } }
406
- ]
407
- } : {
408
- ...c,
409
- $or: [
410
- { slug: t },
411
- { slugHistory: t }
412
- ]
413
- };
414
- }
415
- async createUniqueSlug({ slug: t, field: e, isObject: r, filter: s }) {
416
- const c = y(t);
417
- let a = c, o = 1;
418
- for (; await this.model.exists(this.createSlugQuery({ slug: a, field: e, isObject: r, filter: s })); )
419
- a = `${c}-${o++}`;
420
- return a;
421
- }
422
- async createSlug({ field: t, from: e, filter: r }) {
423
- try {
424
- const s = e[t];
425
- return O(s) ? { success: !0, result: Object.fromEntries(
426
- await Promise.all(
427
- Object.entries(s).map(async ([d, f]) => {
428
- const g = await this.createUniqueSlug({
429
- slug: f,
430
- field: d,
431
- isObject: !0,
432
- filter: r
433
- });
434
- return [d, g];
435
- })
436
- )
437
- ) } : { success: !0, result: await this.createUniqueSlug({
438
- slug: s,
439
- field: t,
440
- isObject: !1,
441
- filter: r
442
- }) };
443
- } catch (s) {
444
- return u(s);
445
- }
446
- }
447
- async checkSlug({ slug: t, field: e, from: r, filter: s }) {
448
- try {
449
- const c = r[e];
450
- if (O(c)) {
451
- for (const f of Object.values(c)) {
452
- const g = y(f);
453
- if (await this.model.exists(this.createSlugQuery({
454
- slug: g,
455
- field: e,
456
- isObject: !0,
457
- filter: s
458
- })))
459
- return { success: !0, result: !0 };
460
- }
461
- return { success: !0, result: !1 };
462
- }
463
- const o = y(t);
464
- return { success: !0, result: await this.model.exists(this.createSlugQuery({
465
- slug: o,
466
- field: e,
467
- isObject: !1,
468
- filter: s
469
- })) !== null };
470
- } catch (c) {
471
- return u(c);
472
- }
473
- }
474
- async aggregate(t) {
475
- try {
476
- return { success: !0, result: await this.model.aggregate(t) };
477
- } catch (e) {
478
- return u(e);
479
- }
480
- }
481
- }
482
- export {
483
- B as MongoController,
484
- K as MongooseController,
485
- X as aggregatePaginate,
486
- l as mongo,
487
- Z as mongoosePaginate
488
- };
@@ -1,9 +0,0 @@
1
- import { E as s, h as g, g as t, i as c, s as k, u as p } from "../../../index-BG1UznTl.js";
2
- export {
3
- s as E_PackageType,
4
- g as getLatestPackageVersion,
5
- t as getPackage,
6
- c as installDependencies,
7
- k as setupPackages,
8
- p as updatePackage
9
- };
@@ -1,13 +0,0 @@
1
- import "node-fetch";
2
- import { h as r, g, i as m, s as c, u as k } from "../../../index-BG1UznTl.js";
3
- import "../fs/fs.util.js";
4
- import "../log/log.util.js";
5
- import "../path/path.util.js";
6
- import "../../config/env/env.util.js";
7
- export {
8
- r as getLatestPackageVersion,
9
- g as getPackage,
10
- m as installDependencies,
11
- c as setupPackages,
12
- k as updatePackage
13
- };
@@ -1,52 +0,0 @@
1
- import { B as E, F as C, D as a, A, C as s, w as N, v as T, b as L, y as O, Z as M, Y as G, x as S, O as P, t as K, q as R, G as D, H as o, L as Y, a1 as e, M as r, a0 as H, N as t, $ as B, _ as m, n, o as U, P as i, Q as J, R as f, p, m as F, U as V, X as v, S as x, T as W, J as X, I as c, K as d, z as g, V as h, W as k, a as l, f as b } from "../../../index-BG1UznTl.js";
2
- import { dirname as q, join as w, path as y, resolve as z, resolveWorkingPath as Q } from "./path.util.js";
3
- export {
4
- E as BUILD_DIRECTORY,
5
- C as COMMIT_LINT_CLI,
6
- a as COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME,
7
- A as COMMIT_LINT_PACKAGE_NAME,
8
- s as CYBERSKILL_CLI,
9
- N as CYBERSKILL_CLI_PATH,
10
- T as CYBERSKILL_DIRECTORY,
11
- L as CYBERSKILL_PACKAGE_NAME,
12
- O as ESLINT_CLI,
13
- M as ESLINT_INSPECT_CLI,
14
- G as ESLINT_INSPECT_PACKAGE_NAME,
15
- S as ESLINT_PACKAGE_NAME,
16
- P as GIT_CLI,
17
- K as GIT_COMMIT_EDITMSG,
18
- R as GIT_HOOK,
19
- D as GIT_IGNORE,
20
- o as LINT_STAGED_CLI,
21
- Y as LINT_STAGED_PACKAGE_NAME,
22
- e as MIGRATE_MONGO_CLI,
23
- r as MIGRATE_MONGO_CONFIG,
24
- H as MIGRATE_MONGO_PACKAGE_NAME,
25
- t as NODE_MODULES,
26
- B as NODE_MODULES_INSPECT_CLI,
27
- m as NODE_MODULES_INSPECT_PACKAGE_NAME,
28
- n as PACKAGE_JSON,
29
- U as PACKAGE_LOCK_JSON,
30
- i as PATH,
31
- J as PNPM_CLI,
32
- f as PNPM_EXEC_CLI,
33
- p as PNPM_LOCK_YAML,
34
- F as PUBLIC_DIRECTORY,
35
- V as SIMPLE_GIT_HOOKS_PACKAGE_NAME,
36
- v as SIMPLE_GIT_HOOK_CLI,
37
- x as SIMPLE_GIT_HOOK_JSON,
38
- W as TSCONFIG_JSON,
39
- X as TSC_CLI,
40
- c as TSC_PACKAGE_NAME,
41
- d as TSX_CLI,
42
- g as VITEST_CLI,
43
- h as VITEST_PACKAGE_NAME,
44
- k as WORKING_DIRECTORY,
45
- l as command,
46
- b as createGitHooksConfig,
47
- q as dirname,
48
- w as join,
49
- y as path,
50
- z as resolve,
51
- Q as resolveWorkingPath
52
- };
@@ -1,49 +0,0 @@
1
- import "fs-extra";
2
- import "./path.util.js";
3
- import { B as A, F as N, D as T, A as L, C as s, w as O, v as M, b as G, y as S, Z as P, Y as K, x as R, O as D, t as o, q as Y, G as H, H as m, L as t, a1 as B, M as r, a0 as U, N as i, $ as p, _ as J, n as F, o as V, P as e, Q as f, R as n, p as X, m as c, U as x, X as W, S as b, T as d, J as g, I as k, K as q, z as v, V as w, W as y, a as z, f as Q } from "../../../index-BG1UznTl.js";
4
- import "../../config/env/env.util.js";
5
- export {
6
- A as BUILD_DIRECTORY,
7
- N as COMMIT_LINT_CLI,
8
- T as COMMIT_LINT_CONVENTIONAL_CONFIG_PACKAGE_NAME,
9
- L as COMMIT_LINT_PACKAGE_NAME,
10
- s as CYBERSKILL_CLI,
11
- O as CYBERSKILL_CLI_PATH,
12
- M as CYBERSKILL_DIRECTORY,
13
- G as CYBERSKILL_PACKAGE_NAME,
14
- S as ESLINT_CLI,
15
- P as ESLINT_INSPECT_CLI,
16
- K as ESLINT_INSPECT_PACKAGE_NAME,
17
- R as ESLINT_PACKAGE_NAME,
18
- D as GIT_CLI,
19
- o as GIT_COMMIT_EDITMSG,
20
- Y as GIT_HOOK,
21
- H as GIT_IGNORE,
22
- m as LINT_STAGED_CLI,
23
- t as LINT_STAGED_PACKAGE_NAME,
24
- B as MIGRATE_MONGO_CLI,
25
- r as MIGRATE_MONGO_CONFIG,
26
- U as MIGRATE_MONGO_PACKAGE_NAME,
27
- i as NODE_MODULES,
28
- p as NODE_MODULES_INSPECT_CLI,
29
- J as NODE_MODULES_INSPECT_PACKAGE_NAME,
30
- F as PACKAGE_JSON,
31
- V as PACKAGE_LOCK_JSON,
32
- e as PATH,
33
- f as PNPM_CLI,
34
- n as PNPM_EXEC_CLI,
35
- X as PNPM_LOCK_YAML,
36
- c as PUBLIC_DIRECTORY,
37
- x as SIMPLE_GIT_HOOKS_PACKAGE_NAME,
38
- W as SIMPLE_GIT_HOOK_CLI,
39
- b as SIMPLE_GIT_HOOK_JSON,
40
- d as TSCONFIG_JSON,
41
- g as TSC_CLI,
42
- k as TSC_PACKAGE_NAME,
43
- q as TSX_CLI,
44
- v as VITEST_CLI,
45
- w as VITEST_PACKAGE_NAME,
46
- y as WORKING_DIRECTORY,
47
- z as command,
48
- Q as createGitHooksConfig
49
- };
@@ -1,51 +0,0 @@
1
- import e from "node-persist";
2
- import { getEnv as c } from "../../config/env/env.util.js";
3
- import { catchError as a, log as i } from "../log/log.util.js";
4
- const s = c();
5
- async function n() {
6
- e.defaultInstance || await e.init({
7
- dir: s.CYBERSKILL_STORAGE_DIRECTORY
8
- });
9
- }
10
- const m = {
11
- async get(r) {
12
- try {
13
- return await n(), await e.getItem(r) ?? null;
14
- } catch (t) {
15
- return a(t, { returnValue: null });
16
- }
17
- },
18
- async set(r, t) {
19
- try {
20
- await n(), await e.setItem(r, t);
21
- } catch (o) {
22
- a(o);
23
- }
24
- },
25
- async remove(r) {
26
- try {
27
- await n(), await e.removeItem(r);
28
- } catch (t) {
29
- a(t);
30
- }
31
- },
32
- async keys() {
33
- try {
34
- await n();
35
- const r = await e.keys();
36
- return Array.isArray(r) ? r : (i.warn("[Storage:keys] Invalid keys response:", r), []);
37
- } catch (r) {
38
- return a(r, { returnValue: [] });
39
- }
40
- },
41
- async getLogLink(r) {
42
- try {
43
- return `${s.CYBERSKILL_STORAGE_DIRECTORY} (key: ${r})`;
44
- } catch (t) {
45
- return a(t, { returnValue: null });
46
- }
47
- }
48
- };
49
- export {
50
- m as storage
51
- };
@@ -1,6 +0,0 @@
1
- import { E as p, createUploadConfig as e, upload as d } from "./upload.util.js";
2
- export {
3
- p as E_UploadType,
4
- e as createUploadConfig,
5
- d as upload
6
- };