resuxjs 0.3.10 → 0.4.0-beta.2

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 (361) hide show
  1. package/README.md +23 -1
  2. package/dist/bin.d.ts +1 -2
  3. package/dist/bin.js +4 -0
  4. package/dist/bin.js.map +1 -1
  5. package/dist/build/index.d.ts +28 -0
  6. package/dist/build/index.js +51 -0
  7. package/dist/build/index.js.map +1 -0
  8. package/dist/cli.d.ts +15 -5
  9. package/dist/cli.js +2648 -3668
  10. package/dist/cli.js.map +1 -1
  11. package/dist/compiler/adapter.d.ts +14 -11
  12. package/dist/compiler/adapter.js +68 -93
  13. package/dist/compiler/adapter.js.map +1 -1
  14. package/dist/compiler/dev-warnings.d.ts +8 -5
  15. package/dist/compiler/dev-warnings.js +248 -321
  16. package/dist/compiler/dev-warnings.js.map +1 -1
  17. package/dist/compiler/directives.d.ts +3 -0
  18. package/dist/compiler/directives.js +124 -150
  19. package/dist/compiler/directives.js.map +1 -1
  20. package/dist/compiler/implementation.d.ts +96 -93
  21. package/dist/compiler/implementation.js +2967 -3430
  22. package/dist/compiler/index.d.ts +14 -11
  23. package/dist/compiler/index.js +68 -93
  24. package/dist/compiler/index.js.map +1 -1
  25. package/dist/core/config.d.ts +12 -5
  26. package/dist/core/config.js +42 -25
  27. package/dist/core/config.js.map +1 -1
  28. package/dist/core/hooks.d.ts +127 -126
  29. package/dist/core/hooks.js +45 -55
  30. package/dist/core/hooks.js.map +1 -1
  31. package/dist/core/index.d.ts +5 -4
  32. package/dist/core/index.js +5 -5
  33. package/dist/core/module-container.d.ts +76 -74
  34. package/dist/core/module-container.js +181 -186
  35. package/dist/core/module-container.js.map +1 -1
  36. package/dist/core/resux.d.ts +15 -12
  37. package/dist/core/resux.js +17 -13
  38. package/dist/core/resux.js.map +1 -1
  39. package/dist/create-bin.d.ts +1 -2
  40. package/dist/create-bin.js +4 -0
  41. package/dist/create-bin.js.map +1 -1
  42. package/dist/create.d.ts +3 -0
  43. package/dist/create.js +499 -638
  44. package/dist/create.js.map +1 -1
  45. package/dist/deploy/cloudflare.d.ts +4 -1
  46. package/dist/deploy/cloudflare.js +30 -34
  47. package/dist/deploy/cloudflare.js.map +1 -1
  48. package/dist/deploy/common.d.ts +6 -4
  49. package/dist/deploy/common.js +118 -188
  50. package/dist/deploy/common.js.map +1 -1
  51. package/dist/deploy/framework-runtime.d.ts +3 -0
  52. package/dist/deploy/framework-runtime.js +43 -48
  53. package/dist/deploy/framework-runtime.js.map +1 -1
  54. package/dist/deploy/index.d.ts +4 -1
  55. package/dist/deploy/index.js +58 -80
  56. package/dist/deploy/index.js.map +1 -1
  57. package/dist/deploy/netlify.d.ts +4 -1
  58. package/dist/deploy/netlify.js +40 -41
  59. package/dist/deploy/netlify.js.map +1 -1
  60. package/dist/deploy/node.d.ts +4 -1
  61. package/dist/deploy/node.js +24 -19
  62. package/dist/deploy/node.js.map +1 -1
  63. package/dist/deploy/production-report.d.ts +3 -0
  64. package/dist/deploy/production-report.js +14 -14
  65. package/dist/deploy/production-report.js.map +1 -1
  66. package/dist/deploy/runtime-dependencies.d.ts +3 -0
  67. package/dist/deploy/runtime-dependencies.js +158 -220
  68. package/dist/deploy/runtime-dependencies.js.map +1 -1
  69. package/dist/deploy/static.d.ts +4 -1
  70. package/dist/deploy/static.js +16 -14
  71. package/dist/deploy/static.js.map +1 -1
  72. package/dist/deploy/types.d.ts +25 -22
  73. package/dist/deploy/types.js +0 -1
  74. package/dist/deploy/vercel.d.ts +4 -1
  75. package/dist/deploy/vercel.js +137 -188
  76. package/dist/deploy/vercel.js.map +1 -1
  77. package/dist/fonts/index.d.ts +15 -11
  78. package/dist/fonts/index.js +114 -134
  79. package/dist/fonts/index.js.map +1 -1
  80. package/dist/globals.d.ts +79 -78
  81. package/dist/globals.js +0 -1
  82. package/dist/halal-core/ai/classifyProject.d.ts +4 -1
  83. package/dist/halal-core/ai/classifyProject.js +81 -95
  84. package/dist/halal-core/ai/classifyProject.js.map +1 -1
  85. package/dist/halal-core/ai/classifyRuntimeContent.d.ts +5 -2
  86. package/dist/halal-core/ai/classifyRuntimeContent.js +77 -95
  87. package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -1
  88. package/dist/halal-core/ai/createProjectSummary.d.ts +38 -35
  89. package/dist/halal-core/ai/createProjectSummary.js +38 -39
  90. package/dist/halal-core/ai/createProjectSummary.js.map +1 -1
  91. package/dist/halal-core/ai/halalClassifierPrompt.d.ts +3 -0
  92. package/dist/halal-core/ai/halalClassifierPrompt.js +5 -1
  93. package/dist/halal-core/ai/halalClassifierPrompt.js.map +1 -1
  94. package/dist/halal-core/ai/redactSensitiveData.d.ts +3 -0
  95. package/dist/halal-core/ai/redactSensitiveData.js +82 -110
  96. package/dist/halal-core/ai/redactSensitiveData.js.map +1 -1
  97. package/dist/halal-core/ai/validateAiResponse.d.ts +4 -1
  98. package/dist/halal-core/ai/validateAiResponse.js +58 -85
  99. package/dist/halal-core/ai/validateAiResponse.js.map +1 -1
  100. package/dist/halal-core/cli/check.d.ts +3 -0
  101. package/dist/halal-core/cli/check.js +28 -30
  102. package/dist/halal-core/cli/check.js.map +1 -1
  103. package/dist/halal-core/cli/explain.d.ts +3 -0
  104. package/dist/halal-core/cli/explain.js +27 -31
  105. package/dist/halal-core/cli/explain.js.map +1 -1
  106. package/dist/halal-core/cli/report.d.ts +3 -0
  107. package/dist/halal-core/cli/report.js +14 -10
  108. package/dist/halal-core/cli/report.js.map +1 -1
  109. package/dist/halal-core/cli/submitReview.d.ts +3 -0
  110. package/dist/halal-core/cli/submitReview.js +13 -9
  111. package/dist/halal-core/cli/submitReview.js.map +1 -1
  112. package/dist/halal-core/cli/verifyReview.d.ts +3 -0
  113. package/dist/halal-core/cli/verifyReview.js +18 -15
  114. package/dist/halal-core/cli/verifyReview.js.map +1 -1
  115. package/dist/halal-core/config.d.ts +30 -27
  116. package/dist/halal-core/config.js +76 -118
  117. package/dist/halal-core/config.js.map +1 -1
  118. package/dist/halal-core/crypto/integrity.d.ts +6 -3
  119. package/dist/halal-core/crypto/integrity.js +64 -87
  120. package/dist/halal-core/crypto/integrity.js.map +1 -1
  121. package/dist/halal-core/enforce.d.ts +3 -0
  122. package/dist/halal-core/enforce.js +92 -105
  123. package/dist/halal-core/enforce.js.map +1 -1
  124. package/dist/halal-core/index.d.ts +20 -16
  125. package/dist/halal-core/index.js +18 -19
  126. package/dist/halal-core/lifecycle.d.ts +3 -0
  127. package/dist/halal-core/lifecycle.js +15 -13
  128. package/dist/halal-core/lifecycle.js.map +1 -1
  129. package/dist/halal-core/policy.d.ts +4 -1
  130. package/dist/halal-core/policy.js +6 -2
  131. package/dist/halal-core/policy.js.map +1 -1
  132. package/dist/halal-core/report/formatBrowserOverlay.d.ts +4 -1
  133. package/dist/halal-core/report/formatBrowserOverlay.js +10 -8
  134. package/dist/halal-core/report/formatBrowserOverlay.js.map +1 -1
  135. package/dist/halal-core/report/formatTerminalReport.d.ts +4 -1
  136. package/dist/halal-core/report/formatTerminalReport.js +27 -37
  137. package/dist/halal-core/report/formatTerminalReport.js.map +1 -1
  138. package/dist/halal-core/report/generateHalalReport.d.ts +7 -4
  139. package/dist/halal-core/report/generateHalalReport.js +26 -26
  140. package/dist/halal-core/report/generateHalalReport.js.map +1 -1
  141. package/dist/halal-core/report/signReport.d.ts +4 -1
  142. package/dist/halal-core/report/signReport.js +16 -12
  143. package/dist/halal-core/report/signReport.js.map +1 -1
  144. package/dist/halal-core/report/verifyReport.d.ts +9 -6
  145. package/dist/halal-core/report/verifyReport.js +51 -41
  146. package/dist/halal-core/report/verifyReport.js.map +1 -1
  147. package/dist/halal-core/review/createReviewRequest.d.ts +4 -1
  148. package/dist/halal-core/review/createReviewRequest.js +21 -17
  149. package/dist/halal-core/review/createReviewRequest.js.map +1 -1
  150. package/dist/halal-core/review/reviewPolicy.d.ts +3 -0
  151. package/dist/halal-core/review/reviewPolicy.js +19 -17
  152. package/dist/halal-core/review/reviewPolicy.js.map +1 -1
  153. package/dist/halal-core/review/signedReviewFile.d.ts +11 -8
  154. package/dist/halal-core/review/signedReviewFile.js +24 -22
  155. package/dist/halal-core/review/signedReviewFile.js.map +1 -1
  156. package/dist/halal-core/review/verifyReviewApproval.d.ts +9 -6
  157. package/dist/halal-core/review/verifyReviewApproval.js +68 -62
  158. package/dist/halal-core/review/verifyReviewApproval.js.map +1 -1
  159. package/dist/halal-core/rules/adultContentRules.d.ts +3 -0
  160. package/dist/halal-core/rules/adultContentRules.js +23 -23
  161. package/dist/halal-core/rules/adultContentRules.js.map +1 -1
  162. package/dist/halal-core/rules/alcoholDrugVapeRules.d.ts +3 -0
  163. package/dist/halal-core/rules/alcoholDrugVapeRules.js +22 -22
  164. package/dist/halal-core/rules/alcoholDrugVapeRules.js.map +1 -1
  165. package/dist/halal-core/rules/childSafetyRules.d.ts +3 -0
  166. package/dist/halal-core/rules/childSafetyRules.js +19 -19
  167. package/dist/halal-core/rules/childSafetyRules.js.map +1 -1
  168. package/dist/halal-core/rules/coreCategories.d.ts +7 -4
  169. package/dist/halal-core/rules/coreCategories.js +237 -110
  170. package/dist/halal-core/rules/coreCategories.js.map +1 -1
  171. package/dist/halal-core/rules/cyberAbuseRules.d.ts +3 -0
  172. package/dist/halal-core/rules/cyberAbuseRules.js +27 -27
  173. package/dist/halal-core/rules/cyberAbuseRules.js.map +1 -1
  174. package/dist/halal-core/rules/defaultBlockedRules.d.ts +21 -18
  175. package/dist/halal-core/rules/defaultBlockedRules.js +158 -199
  176. package/dist/halal-core/rules/defaultBlockedRules.js.map +1 -1
  177. package/dist/halal-core/rules/dependencyRules.d.ts +8 -5
  178. package/dist/halal-core/rules/dependencyRules.js +50 -56
  179. package/dist/halal-core/rules/dependencyRules.js.map +1 -1
  180. package/dist/halal-core/rules/endpointRules.d.ts +6 -3
  181. package/dist/halal-core/rules/endpointRules.js +21 -23
  182. package/dist/halal-core/rules/endpointRules.js.map +1 -1
  183. package/dist/halal-core/rules/environmentalHarmRules.d.ts +3 -0
  184. package/dist/halal-core/rules/environmentalHarmRules.js +17 -17
  185. package/dist/halal-core/rules/environmentalHarmRules.js.map +1 -1
  186. package/dist/halal-core/rules/financeRibaRules.d.ts +3 -0
  187. package/dist/halal-core/rules/financeRibaRules.js +20 -20
  188. package/dist/halal-core/rules/financeRibaRules.js.map +1 -1
  189. package/dist/halal-core/rules/gamblingRules.d.ts +3 -0
  190. package/dist/halal-core/rules/gamblingRules.js +22 -22
  191. package/dist/halal-core/rules/gamblingRules.js.map +1 -1
  192. package/dist/halal-core/rules/generalHarmRules.d.ts +3 -0
  193. package/dist/halal-core/rules/generalHarmRules.js +15 -15
  194. package/dist/halal-core/rules/generalHarmRules.js.map +1 -1
  195. package/dist/halal-core/rules/healthHarmRules.d.ts +3 -0
  196. package/dist/halal-core/rules/healthHarmRules.js +19 -19
  197. package/dist/halal-core/rules/healthHarmRules.js.map +1 -1
  198. package/dist/halal-core/rules/keywordRules.d.ts +11 -8
  199. package/dist/halal-core/rules/keywordRules.js +90 -39
  200. package/dist/halal-core/rules/keywordRules.js.map +1 -1
  201. package/dist/halal-core/rules/privacyAbuseRules.d.ts +3 -0
  202. package/dist/halal-core/rules/privacyAbuseRules.js +21 -21
  203. package/dist/halal-core/rules/privacyAbuseRules.js.map +1 -1
  204. package/dist/halal-core/rules/scamFraudRules.d.ts +3 -0
  205. package/dist/halal-core/rules/scamFraudRules.js +29 -29
  206. package/dist/halal-core/rules/scamFraudRules.js.map +1 -1
  207. package/dist/halal-core/rules/selfHarmRules.d.ts +3 -0
  208. package/dist/halal-core/rules/selfHarmRules.js +17 -17
  209. package/dist/halal-core/rules/selfHarmRules.js.map +1 -1
  210. package/dist/halal-core/rules/violenceExtremismRules.d.ts +3 -0
  211. package/dist/halal-core/rules/violenceExtremismRules.js +30 -30
  212. package/dist/halal-core/rules/violenceExtremismRules.js.map +1 -1
  213. package/dist/halal-core/runtime/guard.d.ts +17 -14
  214. package/dist/halal-core/runtime/guard.js +162 -183
  215. package/dist/halal-core/runtime/guard.js.map +1 -1
  216. package/dist/halal-core/runtime/index.d.ts +5 -4
  217. package/dist/halal-core/runtime/index.js +4 -5
  218. package/dist/halal-core/runtime/reviewedMemory.d.ts +4 -1
  219. package/dist/halal-core/runtime/reviewedMemory.js +74 -110
  220. package/dist/halal-core/runtime/reviewedMemory.js.map +1 -1
  221. package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +10 -7
  222. package/dist/halal-core/runtime/serializeRuntimeContent.js +132 -156
  223. package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -1
  224. package/dist/halal-core/runtime/types.d.ts +44 -41
  225. package/dist/halal-core/runtime/types.js +0 -1
  226. package/dist/halal-core/scanner/scanApiRoutes.d.ts +3 -0
  227. package/dist/halal-core/scanner/scanApiRoutes.js +32 -36
  228. package/dist/halal-core/scanner/scanApiRoutes.js.map +1 -1
  229. package/dist/halal-core/scanner/scanComponents.d.ts +3 -0
  230. package/dist/halal-core/scanner/scanComponents.js +12 -13
  231. package/dist/halal-core/scanner/scanComponents.js.map +1 -1
  232. package/dist/halal-core/scanner/scanContent.d.ts +5 -2
  233. package/dist/halal-core/scanner/scanContent.js +193 -263
  234. package/dist/halal-core/scanner/scanContent.js.map +1 -1
  235. package/dist/halal-core/scanner/scanDependencies.d.ts +3 -0
  236. package/dist/halal-core/scanner/scanDependencies.js +16 -15
  237. package/dist/halal-core/scanner/scanDependencies.js.map +1 -1
  238. package/dist/halal-core/scanner/scanDomains.d.ts +5 -2
  239. package/dist/halal-core/scanner/scanDomains.js +12 -12
  240. package/dist/halal-core/scanner/scanDomains.js.map +1 -1
  241. package/dist/halal-core/scanner/scanEnvNames.d.ts +3 -0
  242. package/dist/halal-core/scanner/scanEnvNames.js +23 -26
  243. package/dist/halal-core/scanner/scanEnvNames.js.map +1 -1
  244. package/dist/halal-core/scanner/scanMetadata.d.ts +6 -3
  245. package/dist/halal-core/scanner/scanMetadata.js +20 -29
  246. package/dist/halal-core/scanner/scanMetadata.js.map +1 -1
  247. package/dist/halal-core/scanner/scanPages.d.ts +3 -0
  248. package/dist/halal-core/scanner/scanPages.js +12 -15
  249. package/dist/halal-core/scanner/scanPages.js.map +1 -1
  250. package/dist/halal-core/scanner/scanProject.d.ts +15 -10
  251. package/dist/halal-core/scanner/scanProject.js +43 -49
  252. package/dist/halal-core/scanner/scanProject.js.map +1 -1
  253. package/dist/halal-core/scanner/scanRoutes.d.ts +3 -0
  254. package/dist/halal-core/scanner/scanRoutes.js +32 -39
  255. package/dist/halal-core/scanner/scanRoutes.js.map +1 -1
  256. package/dist/halal-core/scanner/scanTranslations.d.ts +3 -0
  257. package/dist/halal-core/scanner/scanTranslations.js +21 -29
  258. package/dist/halal-core/scanner/scanTranslations.js.map +1 -1
  259. package/dist/halal-core/status.d.ts +14 -11
  260. package/dist/halal-core/status.js +0 -1
  261. package/dist/halal-core/tamper/verifyCoreIntegrity.d.ts +3 -0
  262. package/dist/halal-core/tamper/verifyCoreIntegrity.js +26 -24
  263. package/dist/halal-core/tamper/verifyCoreIntegrity.js.map +1 -1
  264. package/dist/halal-core/tamper/verifyLifecycleHooks.d.ts +3 -0
  265. package/dist/halal-core/tamper/verifyLifecycleHooks.js +13 -12
  266. package/dist/halal-core/tamper/verifyLifecycleHooks.js.map +1 -1
  267. package/dist/halal-core/tamper/verifyReportSignature.d.ts +6 -3
  268. package/dist/halal-core/tamper/verifyReportSignature.js +20 -14
  269. package/dist/halal-core/tamper/verifyReportSignature.js.map +1 -1
  270. package/dist/halal.d.ts +20 -1
  271. package/dist/halal.js +18 -2
  272. package/dist/i18n/index.d.ts +34 -31
  273. package/dist/i18n/index.js +219 -288
  274. package/dist/i18n/index.js.map +1 -1
  275. package/dist/i18n/shared.d.ts +18 -15
  276. package/dist/i18n/shared.js +204 -266
  277. package/dist/i18n/shared.js.map +1 -1
  278. package/dist/icons/index.d.ts +143 -139
  279. package/dist/icons/index.js +322 -273
  280. package/dist/icons/index.js.map +1 -1
  281. package/dist/index.d.ts +8 -1
  282. package/dist/index.js +7 -2
  283. package/dist/kit/index.d.ts +9 -6
  284. package/dist/kit/index.js +45 -43
  285. package/dist/kit/index.js.map +1 -1
  286. package/dist/nitro-server/index.d.ts +7 -4
  287. package/dist/nitro-server/index.js +6 -2
  288. package/dist/nitro-server/index.js.map +1 -1
  289. package/dist/node.d.ts +6 -3
  290. package/dist/node.js +88 -116
  291. package/dist/node.js.map +1 -1
  292. package/dist/reactivity/computed.d.ts +6 -3
  293. package/dist/reactivity/computed.js +46 -53
  294. package/dist/reactivity/computed.js.map +1 -1
  295. package/dist/reactivity/effect.d.ts +8 -5
  296. package/dist/reactivity/effect.js +105 -146
  297. package/dist/reactivity/effect.js.map +1 -1
  298. package/dist/reactivity/index.d.ts +8 -8
  299. package/dist/reactivity/index.js +7 -8
  300. package/dist/reactivity/reactive.d.ts +3 -0
  301. package/dist/reactivity/reactive.js +93 -133
  302. package/dist/reactivity/reactive.js.map +1 -1
  303. package/dist/reactivity/readonly.d.ts +2 -1
  304. package/dist/reactivity/readonly.js +2 -2
  305. package/dist/reactivity/ref.d.ts +15 -15
  306. package/dist/reactivity/ref.js +73 -81
  307. package/dist/reactivity/ref.js.map +1 -1
  308. package/dist/reactivity/scheduler.d.ts +3 -1
  309. package/dist/reactivity/scheduler.js +67 -69
  310. package/dist/reactivity/scheduler.js.map +1 -1
  311. package/dist/reactivity/types.d.ts +17 -14
  312. package/dist/reactivity/types.js +0 -1
  313. package/dist/reactivity/utils.d.ts +7 -4
  314. package/dist/reactivity/utils.js +25 -24
  315. package/dist/reactivity/utils.js.map +1 -1
  316. package/dist/reactivity/watch.d.ts +4 -2
  317. package/dist/reactivity/watch.js +75 -103
  318. package/dist/reactivity/watch.js.map +1 -1
  319. package/dist/runtime/core.d.ts +31 -0
  320. package/dist/runtime/core.js +156 -0
  321. package/dist/runtime/core.js.map +1 -0
  322. package/dist/runtime/index.d.ts +487 -461
  323. package/dist/runtime/index.js +4129 -5254
  324. package/dist/runtime/index.js.map +1 -1
  325. package/dist/runtime/reactivity.d.ts +7 -0
  326. package/dist/runtime/reactivity.js +6 -0
  327. package/dist/runtime/resume.d.ts +79 -0
  328. package/dist/runtime/resume.js +482 -0
  329. package/dist/runtime/resume.js.map +1 -0
  330. package/dist/runtime/router.d.ts +20 -0
  331. package/dist/runtime/router.js +60 -0
  332. package/dist/runtime/router.js.map +1 -0
  333. package/dist/runtime/streaming.d.ts +24 -0
  334. package/dist/runtime/streaming.js +200 -0
  335. package/dist/runtime/streaming.js.map +1 -0
  336. package/dist/security/media-fetch.d.ts +32 -0
  337. package/dist/security/media-fetch.js +301 -0
  338. package/dist/security/media-fetch.js.map +1 -0
  339. package/dist/security/path-boundary.d.ts +7 -0
  340. package/dist/security/path-boundary.js +70 -0
  341. package/dist/security/path-boundary.js.map +1 -0
  342. package/dist/ui/index.d.ts +1580 -1576
  343. package/dist/ui/index.js +975 -674
  344. package/dist/ui/index.js.map +1 -1
  345. package/dist/vite-builder/index.d.ts +6 -3
  346. package/dist/vite-builder/index.js +6 -2
  347. package/dist/vite-builder/index.js.map +1 -1
  348. package/package.json +46 -86
  349. package/dist/compiler/implementation.js.map +0 -1
  350. package/dist/core/index.js.map +0 -1
  351. package/dist/deploy/types.js.map +0 -1
  352. package/dist/globals.js.map +0 -1
  353. package/dist/halal-core/index.js.map +0 -1
  354. package/dist/halal-core/runtime/index.js.map +0 -1
  355. package/dist/halal-core/runtime/types.js.map +0 -1
  356. package/dist/halal-core/status.js.map +0 -1
  357. package/dist/halal.js.map +0 -1
  358. package/dist/index.js.map +0 -1
  359. package/dist/reactivity/index.js.map +0 -1
  360. package/dist/reactivity/readonly.js.map +0 -1
  361. package/dist/reactivity/types.js.map +0 -1
@@ -1,112 +1,239 @@
1
- export const BLOCKED_CATEGORIES = [
2
- {
3
- id: "haram_business",
4
- name: "Haram Business",
5
- description: "Gambling, betting, casinos, lottery, dating/zina apps, alcohol, tobacco, vape, usury (riba), payday loans.",
6
- keywords: [
7
- "casino", "gambling", "betting", "poker", "slot-machine", "lottery", "roulette", "blackjack",
8
- "hookup", "escort", "zina", "adult-dating", "tinder-clone", "onlyfans-clone", "pornography", "adult-video",
9
- "alcohol", "liquor", "winery", "beer", "brewery", "vape", "vaporizer", "tobacco", "cigarettes",
10
- "payday-loan", "usury", "riba", "loan-shark", "predatory-lending", "interest-bearing", "cash-advance"
11
- ]
12
- },
13
- {
14
- id: "illegal_criminal",
15
- name: "Illegal and Criminal Systems",
16
- description: "Fraud, scams, phishing, fake login/payment pages, card stealing, counterfeits, money laundering, sanctions evasion.",
17
- keywords: [
18
- "phishing", "card-stealer", "cc-grabber", "fake-login", "fake-payment", "bank-verification", "identity-theft",
19
- "fake-document", "passport-generator", "money-laundering", "sanctions-evasion", "tax-evasion", "counterfeit-goods",
20
- "stolen-card", "carding", "dumps", "cvv-shop"
21
- ]
22
- },
23
- {
24
- id: "cyber_abuse",
25
- name: "Cyber Abuse and Malware",
26
- description: "Malware, spyware, ransomware, keyloggers, DDoS tools, backdoors, cookie/session stealers, account takeover.",
27
- keywords: [
28
- "malware", "ransomware", "spyware", "keylogger", "backdoor", "botnet", "ddos-tool", "exploit-kit", "stealer",
29
- "credential-stealer", "session-hijacking", "cookie-stealing", "phishing-kit", "account-takeover", "dark-pattern-harvesting"
30
- ]
31
- },
32
- {
33
- id: "violence_harm",
34
- name: "Violence and Physical Harm",
35
- description: "Weapons sales, explosives, bomb-making content, terrorism, extremist recruitment, self-harm, child exploitation, human trafficking.",
36
- keywords: [
37
- "weapons-sales", "guns-marketplace", "bombs", "explosives", "bomb-making", "assassination", "hitman",
38
- "terrorism", "extremist-recruitment", "jihadi-propaganda", "isis-support", "suicide-encouragement", "self-harm",
39
- "eating-disorder", "pro-ana", "human-trafficking", "organ-trade", "child-exploitation"
40
- ]
41
- },
42
- {
43
- id: "hate_harassment",
44
- name: "Hate, Harassment, and Abuse",
45
- description: "Hate speech, doxxing, stalking, blackmail, revenge abuse, non-consensual image sharing, automated bullying.",
46
- keywords: [
47
- "hate-speech", "white-supremacy", "antisemitism", "islamophobia", "doxxing", "stalking-tool", "spy-app",
48
- "blackmail", "sextortion", "revenge-porn", "bullying-automation", "harassment-campaign", "targeted-intimidation"
49
- ]
50
- },
51
- {
52
- id: "sexual_harm",
53
- name: "Sexual Harm and Child Safety",
54
- description: "CSAM, sexual exploitation, grooming, deepfake sexual abuse, sexual blackmail, adult platforms.",
55
- keywords: [
56
- "csam", "child-exploitation", "grooming-tool", "deepfake-porn", "sex-service", "prostitution", "escort-agency"
57
- ]
58
- },
59
- {
60
- id: "deception_manipulation",
61
- name: "Deception, Manipulation, and Dark Patterns",
62
- description: "Fake reviews/followers, deepfake fraud, voice cloning, subscription traps, checkout traps.",
63
- keywords: [
64
- "fake-reviews", "fake-followers", "click-farm", "engagement-generator", "voice-cloning-deception",
65
- "deepfake-fraud", "political-manipulation", "subscription-trap", "hidden-charges", "dark-pattern-checkout"
66
- ]
67
- },
68
- {
69
- id: "privacy_abuse",
70
- name: "Privacy Abuse",
71
- description: "Spy apps, location tracking without consent, contact scraping, data broker services, hidden telemetry.",
72
- keywords: [
73
- "spyware", "unauthorized-tracking", "location-tracking", "contact-scraping", "data-broker", "hidden-telemetry",
74
- "unauthorized-face-recognition", "biometric-collection", "surveillance-system"
75
- ]
76
- },
77
- {
78
- id: "financial_harm",
79
- name: "Financial Harm",
80
- description: "Ponzi/pyramid schemes, rug pulls, pump-and-dump, fake crypto platforms, donation fraud, payment fraud.",
81
- keywords: [
82
- "ponzi", "pyramid-scheme", "rug-pull", "crypto-scam", "pump-and-dump", "fake-trading-bot", "charity-fraud",
83
- "donation-scam", "payment-fraud", "predatory-loans"
84
- ]
85
- },
86
- {
87
- id: "health_safety_harm",
88
- name: "Health and Safety Harm",
89
- description: "Fake medicines, dangerous medical misinformation, unlicensed diagnosis, promotion of self-medication/steroids/diet harm.",
90
- keywords: [
91
- "fake-medicine", "medical-misinformation", "unlicensed-diagnosis", "steroid-abuse", "anabolic-steroids",
92
- "diet-harm", "pro-mia", "eating-disorder-promotion", "anti-vax-misinformation"
93
- ]
94
- },
95
- {
96
- id: "environmental_harm",
97
- name: "Environmental and Animal Harm",
98
- description: "Illegal wildlife trade, animal cruelty platforms, illegal logging, toxic waste dumping.",
99
- keywords: [
100
- "wildlife-trade", "ivory-sales", "animal-cruelty", "illegal-logging", "toxic-waste-dumping"
101
- ]
102
- },
103
- {
104
- id: "general_harm",
105
- name: "Other Serious Harm",
106
- description: "Any other clearly harmful, dangerous, or illegal systems.",
107
- keywords: [
108
- "illegal-activity", "systemic-abuse", "public-harm"
109
- ]
110
- }
1
+ //#region src/halal-core/rules/coreCategories.ts
2
+ const BLOCKED_CATEGORIES = [
3
+ {
4
+ id: "haram_business",
5
+ name: "Haram Business",
6
+ description: "Gambling, betting, casinos, lottery, dating/zina apps, alcohol, tobacco, vape, usury (riba), payday loans.",
7
+ keywords: [
8
+ "casino",
9
+ "gambling",
10
+ "betting",
11
+ "poker",
12
+ "slot-machine",
13
+ "lottery",
14
+ "roulette",
15
+ "blackjack",
16
+ "hookup",
17
+ "escort",
18
+ "zina",
19
+ "adult-dating",
20
+ "tinder-clone",
21
+ "onlyfans-clone",
22
+ "pornography",
23
+ "adult-video",
24
+ "alcohol",
25
+ "liquor",
26
+ "winery",
27
+ "beer",
28
+ "brewery",
29
+ "vape",
30
+ "vaporizer",
31
+ "tobacco",
32
+ "cigarettes",
33
+ "payday-loan",
34
+ "usury",
35
+ "riba",
36
+ "loan-shark",
37
+ "predatory-lending",
38
+ "interest-bearing",
39
+ "cash-advance"
40
+ ]
41
+ },
42
+ {
43
+ id: "illegal_criminal",
44
+ name: "Illegal and Criminal Systems",
45
+ description: "Fraud, scams, phishing, fake login/payment pages, card stealing, counterfeits, money laundering, sanctions evasion.",
46
+ keywords: [
47
+ "phishing",
48
+ "card-stealer",
49
+ "cc-grabber",
50
+ "fake-login",
51
+ "fake-payment",
52
+ "bank-verification",
53
+ "identity-theft",
54
+ "fake-document",
55
+ "passport-generator",
56
+ "money-laundering",
57
+ "sanctions-evasion",
58
+ "tax-evasion",
59
+ "counterfeit-goods",
60
+ "stolen-card",
61
+ "carding",
62
+ "dumps",
63
+ "cvv-shop"
64
+ ]
65
+ },
66
+ {
67
+ id: "cyber_abuse",
68
+ name: "Cyber Abuse and Malware",
69
+ description: "Malware, spyware, ransomware, keyloggers, DDoS tools, backdoors, cookie/session stealers, account takeover.",
70
+ keywords: [
71
+ "malware",
72
+ "ransomware",
73
+ "spyware",
74
+ "keylogger",
75
+ "backdoor",
76
+ "botnet",
77
+ "ddos-tool",
78
+ "exploit-kit",
79
+ "stealer",
80
+ "credential-stealer",
81
+ "session-hijacking",
82
+ "cookie-stealing",
83
+ "phishing-kit",
84
+ "account-takeover",
85
+ "dark-pattern-harvesting"
86
+ ]
87
+ },
88
+ {
89
+ id: "violence_harm",
90
+ name: "Violence and Physical Harm",
91
+ description: "Weapons sales, explosives, bomb-making content, terrorism, extremist recruitment, self-harm, child exploitation, human trafficking.",
92
+ keywords: [
93
+ "weapons-sales",
94
+ "guns-marketplace",
95
+ "bombs",
96
+ "explosives",
97
+ "bomb-making",
98
+ "assassination",
99
+ "hitman",
100
+ "terrorism",
101
+ "extremist-recruitment",
102
+ "jihadi-propaganda",
103
+ "isis-support",
104
+ "suicide-encouragement",
105
+ "self-harm",
106
+ "eating-disorder",
107
+ "pro-ana",
108
+ "human-trafficking",
109
+ "organ-trade",
110
+ "child-exploitation"
111
+ ]
112
+ },
113
+ {
114
+ id: "hate_harassment",
115
+ name: "Hate, Harassment, and Abuse",
116
+ description: "Hate speech, doxxing, stalking, blackmail, revenge abuse, non-consensual image sharing, automated bullying.",
117
+ keywords: [
118
+ "hate-speech",
119
+ "white-supremacy",
120
+ "antisemitism",
121
+ "islamophobia",
122
+ "doxxing",
123
+ "stalking-tool",
124
+ "spy-app",
125
+ "blackmail",
126
+ "sextortion",
127
+ "revenge-porn",
128
+ "bullying-automation",
129
+ "harassment-campaign",
130
+ "targeted-intimidation"
131
+ ]
132
+ },
133
+ {
134
+ id: "sexual_harm",
135
+ name: "Sexual Harm and Child Safety",
136
+ description: "CSAM, sexual exploitation, grooming, deepfake sexual abuse, sexual blackmail, adult platforms.",
137
+ keywords: [
138
+ "csam",
139
+ "child-exploitation",
140
+ "grooming-tool",
141
+ "deepfake-porn",
142
+ "sex-service",
143
+ "prostitution",
144
+ "escort-agency"
145
+ ]
146
+ },
147
+ {
148
+ id: "deception_manipulation",
149
+ name: "Deception, Manipulation, and Dark Patterns",
150
+ description: "Fake reviews/followers, deepfake fraud, voice cloning, subscription traps, checkout traps.",
151
+ keywords: [
152
+ "fake-reviews",
153
+ "fake-followers",
154
+ "click-farm",
155
+ "engagement-generator",
156
+ "voice-cloning-deception",
157
+ "deepfake-fraud",
158
+ "political-manipulation",
159
+ "subscription-trap",
160
+ "hidden-charges",
161
+ "dark-pattern-checkout"
162
+ ]
163
+ },
164
+ {
165
+ id: "privacy_abuse",
166
+ name: "Privacy Abuse",
167
+ description: "Spy apps, location tracking without consent, contact scraping, data broker services, hidden telemetry.",
168
+ keywords: [
169
+ "spyware",
170
+ "unauthorized-tracking",
171
+ "location-tracking",
172
+ "contact-scraping",
173
+ "data-broker",
174
+ "hidden-telemetry",
175
+ "unauthorized-face-recognition",
176
+ "biometric-collection",
177
+ "surveillance-system"
178
+ ]
179
+ },
180
+ {
181
+ id: "financial_harm",
182
+ name: "Financial Harm",
183
+ description: "Ponzi/pyramid schemes, rug pulls, pump-and-dump, fake crypto platforms, donation fraud, payment fraud.",
184
+ keywords: [
185
+ "ponzi",
186
+ "pyramid-scheme",
187
+ "rug-pull",
188
+ "crypto-scam",
189
+ "pump-and-dump",
190
+ "fake-trading-bot",
191
+ "charity-fraud",
192
+ "donation-scam",
193
+ "payment-fraud",
194
+ "predatory-loans"
195
+ ]
196
+ },
197
+ {
198
+ id: "health_safety_harm",
199
+ name: "Health and Safety Harm",
200
+ description: "Fake medicines, dangerous medical misinformation, unlicensed diagnosis, promotion of self-medication/steroids/diet harm.",
201
+ keywords: [
202
+ "fake-medicine",
203
+ "medical-misinformation",
204
+ "unlicensed-diagnosis",
205
+ "steroid-abuse",
206
+ "anabolic-steroids",
207
+ "diet-harm",
208
+ "pro-mia",
209
+ "eating-disorder-promotion",
210
+ "anti-vax-misinformation"
211
+ ]
212
+ },
213
+ {
214
+ id: "environmental_harm",
215
+ name: "Environmental and Animal Harm",
216
+ description: "Illegal wildlife trade, animal cruelty platforms, illegal logging, toxic waste dumping.",
217
+ keywords: [
218
+ "wildlife-trade",
219
+ "ivory-sales",
220
+ "animal-cruelty",
221
+ "illegal-logging",
222
+ "toxic-waste-dumping"
223
+ ]
224
+ },
225
+ {
226
+ id: "general_harm",
227
+ name: "Other Serious Harm",
228
+ description: "Any other clearly harmful, dangerous, or illegal systems.",
229
+ keywords: [
230
+ "illegal-activity",
231
+ "systemic-abuse",
232
+ "public-harm"
233
+ ]
234
+ }
111
235
  ];
236
+ //#endregion
237
+ export { BLOCKED_CATEGORIES };
238
+
112
239
  //# sourceMappingURL=coreCategories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"coreCategories.js","sourceRoot":"","sources":["../../../src/halal-core/rules/coreCategories.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,kBAAkB,GAAyB;IACtD;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,4GAA4G;QACzH,QAAQ,EAAE;YACR,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW;YAC5F,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,aAAa;YAC1G,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY;YAC9F,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,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AC/E;KACF;IACD;QACE,EAAE,EAAE,oBAAoB;QACxB,IAAI,EAAE,+BAA+B;QACrC,WAAW,EAAE,yFAAyF;QACtG,QAAQ,EAAE;YACR,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB;SAC5F;KACF;IACD;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,2DAA2D;QACxE,QAAQ,EAAE;YACR,kBAAkB,EAAE,gBAAgB,EAAE,aAAa;SACpD;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"coreCategories.js","names":[],"sources":["../../../src/halal-core/rules/coreCategories.ts"],"sourcesContent":["export interface CategoryDefinition {\n id: string;\n name: string;\n description: string;\n keywords: string[];\n}\n\nexport const BLOCKED_CATEGORIES: CategoryDefinition[] = [\n {\n id: \"haram_business\",\n name: \"Haram Business\",\n description: \"Gambling, betting, casinos, lottery, dating/zina apps, alcohol, tobacco, vape, usury (riba), payday loans.\",\n keywords: [\n \"casino\", \"gambling\", \"betting\", \"poker\", \"slot-machine\", \"lottery\", \"roulette\", \"blackjack\",\n \"hookup\", \"escort\", \"zina\", \"adult-dating\", \"tinder-clone\", \"onlyfans-clone\", \"pornography\", \"adult-video\",\n \"alcohol\", \"liquor\", \"winery\", \"beer\", \"brewery\", \"vape\", \"vaporizer\", \"tobacco\", \"cigarettes\",\n \"payday-loan\", \"usury\", \"riba\", \"loan-shark\", \"predatory-lending\", \"interest-bearing\", \"cash-advance\"\n ]\n },\n {\n id: \"illegal_criminal\",\n name: \"Illegal and Criminal Systems\",\n description: \"Fraud, scams, phishing, fake login/payment pages, card stealing, counterfeits, money laundering, sanctions evasion.\",\n keywords: [\n \"phishing\", \"card-stealer\", \"cc-grabber\", \"fake-login\", \"fake-payment\", \"bank-verification\", \"identity-theft\",\n \"fake-document\", \"passport-generator\", \"money-laundering\", \"sanctions-evasion\", \"tax-evasion\", \"counterfeit-goods\",\n \"stolen-card\", \"carding\", \"dumps\", \"cvv-shop\"\n ]\n },\n {\n id: \"cyber_abuse\",\n name: \"Cyber Abuse and Malware\",\n description: \"Malware, spyware, ransomware, keyloggers, DDoS tools, backdoors, cookie/session stealers, account takeover.\",\n keywords: [\n \"malware\", \"ransomware\", \"spyware\", \"keylogger\", \"backdoor\", \"botnet\", \"ddos-tool\", \"exploit-kit\", \"stealer\",\n \"credential-stealer\", \"session-hijacking\", \"cookie-stealing\", \"phishing-kit\", \"account-takeover\", \"dark-pattern-harvesting\"\n ]\n },\n {\n id: \"violence_harm\",\n name: \"Violence and Physical Harm\",\n description: \"Weapons sales, explosives, bomb-making content, terrorism, extremist recruitment, self-harm, child exploitation, human trafficking.\",\n keywords: [\n \"weapons-sales\", \"guns-marketplace\", \"bombs\", \"explosives\", \"bomb-making\", \"assassination\", \"hitman\",\n \"terrorism\", \"extremist-recruitment\", \"jihadi-propaganda\", \"isis-support\", \"suicide-encouragement\", \"self-harm\",\n \"eating-disorder\", \"pro-ana\", \"human-trafficking\", \"organ-trade\", \"child-exploitation\"\n ]\n },\n {\n id: \"hate_harassment\",\n name: \"Hate, Harassment, and Abuse\",\n description: \"Hate speech, doxxing, stalking, blackmail, revenge abuse, non-consensual image sharing, automated bullying.\",\n keywords: [\n \"hate-speech\", \"white-supremacy\", \"antisemitism\", \"islamophobia\", \"doxxing\", \"stalking-tool\", \"spy-app\",\n \"blackmail\", \"sextortion\", \"revenge-porn\", \"bullying-automation\", \"harassment-campaign\", \"targeted-intimidation\"\n ]\n },\n {\n id: \"sexual_harm\",\n name: \"Sexual Harm and Child Safety\",\n description: \"CSAM, sexual exploitation, grooming, deepfake sexual abuse, sexual blackmail, adult platforms.\",\n keywords: [\n \"csam\", \"child-exploitation\", \"grooming-tool\", \"deepfake-porn\", \"sex-service\", \"prostitution\", \"escort-agency\"\n ]\n },\n {\n id: \"deception_manipulation\",\n name: \"Deception, Manipulation, and Dark Patterns\",\n description: \"Fake reviews/followers, deepfake fraud, voice cloning, subscription traps, checkout traps.\",\n keywords: [\n \"fake-reviews\", \"fake-followers\", \"click-farm\", \"engagement-generator\", \"voice-cloning-deception\",\n \"deepfake-fraud\", \"political-manipulation\", \"subscription-trap\", \"hidden-charges\", \"dark-pattern-checkout\"\n ]\n },\n {\n id: \"privacy_abuse\",\n name: \"Privacy Abuse\",\n description: \"Spy apps, location tracking without consent, contact scraping, data broker services, hidden telemetry.\",\n keywords: [\n \"spyware\", \"unauthorized-tracking\", \"location-tracking\", \"contact-scraping\", \"data-broker\", \"hidden-telemetry\",\n \"unauthorized-face-recognition\", \"biometric-collection\", \"surveillance-system\"\n ]\n },\n {\n id: \"financial_harm\",\n name: \"Financial Harm\",\n description: \"Ponzi/pyramid schemes, rug pulls, pump-and-dump, fake crypto platforms, donation fraud, payment fraud.\",\n keywords: [\n \"ponzi\", \"pyramid-scheme\", \"rug-pull\", \"crypto-scam\", \"pump-and-dump\", \"fake-trading-bot\", \"charity-fraud\",\n \"donation-scam\", \"payment-fraud\", \"predatory-loans\"\n ]\n },\n {\n id: \"health_safety_harm\",\n name: \"Health and Safety Harm\",\n description: \"Fake medicines, dangerous medical misinformation, unlicensed diagnosis, promotion of self-medication/steroids/diet harm.\",\n keywords: [\n \"fake-medicine\", \"medical-misinformation\", \"unlicensed-diagnosis\", \"steroid-abuse\", \"anabolic-steroids\",\n \"diet-harm\", \"pro-mia\", \"eating-disorder-promotion\", \"anti-vax-misinformation\"\n ]\n },\n {\n id: \"environmental_harm\",\n name: \"Environmental and Animal Harm\",\n description: \"Illegal wildlife trade, animal cruelty platforms, illegal logging, toxic waste dumping.\",\n keywords: [\n \"wildlife-trade\", \"ivory-sales\", \"animal-cruelty\", \"illegal-logging\", \"toxic-waste-dumping\"\n ]\n },\n {\n id: \"general_harm\",\n name: \"Other Serious Harm\",\n description: \"Any other clearly harmful, dangerous, or illegal systems.\",\n keywords: [\n \"illegal-activity\", \"systemic-abuse\", \"public-harm\"\n ]\n }\n];\n"],"mappings":";AAOA,MAAa,qB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qB;GAAoB;GAAe;GAC5F;GAAiC;GAAwB;EAC3D;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAS;GAAkB;GAAY;GAAe;GAAiB;GAAoB;GAC3F;GAAiB;GAAiB;EACpC;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAiB;GAA0B;GAAwB;GAAiB;GACpF;GAAa;GAAW;GAA6B;EACvD;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAkB;GAAe;GAAkB;GAAmB;EACxE;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAoB;GAAkB;EACxC;CACF;AACF"}
@@ -1,2 +1,5 @@
1
+ //#region src/halal-core/rules/cyberAbuseRules.d.ts
1
2
  export declare const CYBER_ABUSE_PATTERNS: RegExp[];
2
3
  export declare function checkCyberAbuse(text: string): string[];
4
+ //#endregion
5
+ //# sourceMappingURL=cyberAbuseRules.d.ts.map
@@ -1,30 +1,30 @@
1
- export const CYBER_ABUSE_PATTERNS = [
2
- /malware/i,
3
- /ransomware/i,
4
- /spyware/i,
5
- /keylogger/i,
6
- /backdoor/i,
7
- /botnet/i,
8
- /ddos[\s_-]?tool/i,
9
- /exploit[\s_-]?kit/i,
10
- /stealer/i,
11
- /credential[\s_-]?stealer/i,
12
- /session[\s_-]?hijacking/i,
13
- /cookie[\s_-]?stealing/i,
14
- /phishing[\s_-]?kit/i,
15
- /account[\s_-]?takeover/i,
16
- /dark[\s_-]?pattern[\s_-]?harvesting/i
1
+ //#region src/halal-core/rules/cyberAbuseRules.ts
2
+ const CYBER_ABUSE_PATTERNS = [
3
+ /malware/i,
4
+ /ransomware/i,
5
+ /spyware/i,
6
+ /keylogger/i,
7
+ /backdoor/i,
8
+ /botnet/i,
9
+ /ddos[\s_-]?tool/i,
10
+ /exploit[\s_-]?kit/i,
11
+ /stealer/i,
12
+ /credential[\s_-]?stealer/i,
13
+ /session[\s_-]?hijacking/i,
14
+ /cookie[\s_-]?stealing/i,
15
+ /phishing[\s_-]?kit/i,
16
+ /account[\s_-]?takeover/i,
17
+ /dark[\s_-]?pattern[\s_-]?harvesting/i
17
18
  ];
18
- export function checkCyberAbuse(text) {
19
- const matches = [];
20
- for (const pattern of CYBER_ABUSE_PATTERNS) {
21
- if (pattern.test(text)) {
22
- const match = text.match(pattern);
23
- if (match) {
24
- matches.push(match[0]);
25
- }
26
- }
27
- }
28
- return matches;
19
+ function checkCyberAbuse(text) {
20
+ const matches = [];
21
+ for (const pattern of CYBER_ABUSE_PATTERNS) if (pattern.test(text)) {
22
+ const match = text.match(pattern);
23
+ if (match) matches.push(match[0]);
24
+ }
25
+ return matches;
29
26
  }
27
+ //#endregion
28
+ export { CYBER_ABUSE_PATTERNS, checkCyberAbuse };
29
+
30
30
  //# sourceMappingURL=cyberAbuseRules.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cyberAbuseRules.js","sourceRoot":"","sources":["../../../src/halal-core/rules/cyberAbuseRules.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,UAAU;IACV,aAAa;IACb,UAAU;IACV,YAAY;IACZ,WAAW;IACX,SAAS;IACT,kBAAkB;IAClB,oBAAoB;IACpB,UAAU;IACV,2BAA2B;IAC3B,0BAA0B;IAC1B,wBAAwB;IACxB,qBAAqB;IACrB,yBAAyB;IACzB,sCAAsC;CACvC,CAAC;AAEF,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,OAAO,IAAI,oBAAoB,EAAE,CAAC;QAC3C,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAClC,IAAI,KAAK,EAAE,CAAC;gBACV,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"cyberAbuseRules.js","names":[],"sources":["../../../src/halal-core/rules/cyberAbuseRules.ts"],"sourcesContent":["export const CYBER_ABUSE_PATTERNS = [\n /malware/i,\n /ransomware/i,\n /spyware/i,\n /keylogger/i,\n /backdoor/i,\n /botnet/i,\n /ddos[\\s_-]?tool/i,\n /exploit[\\s_-]?kit/i,\n /stealer/i,\n /credential[\\s_-]?stealer/i,\n /session[\\s_-]?hijacking/i,\n /cookie[\\s_-]?stealing/i,\n /phishing[\\s_-]?kit/i,\n /account[\\s_-]?takeover/i,\n /dark[\\s_-]?pattern[\\s_-]?harvesting/i\n];\n\nexport function checkCyberAbuse(text: string): string[] {\n const matches: string[] = [];\n for (const pattern of CYBER_ABUSE_PATTERNS) {\n if (pattern.test(text)) {\n const match = text.match(pattern);\n if (match) {\n matches.push(match[0]);\n }\n }\n }\n return matches;\n}\n"],"mappings":";AAAA,MAAa,uBAAuB;CAClC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,SAAgB,gBAAgB,MAAwB;CACtD,MAAM,UAAoB,CAAC;CAC3B,KAAK,MAAM,WAAW,sBACpB,IAAI,QAAQ,KAAK,IAAI,GAAG;EACtB,MAAM,QAAQ,KAAK,MAAM,OAAO;EAChC,IAAI,OACF,QAAQ,KAAK,MAAM,EAAE;CAEzB;CAEF,OAAO;AACT"}
@@ -1,20 +1,23 @@
1
- import type { HalalCheckResult } from "../status.js";
2
- import type { ResuxHalalPolicy } from "../config.js";
1
+ import { HalalCheckResult } from "../status.js";
2
+ import { ResuxHalalPolicy } from "../config.js";
3
+ //#region src/halal-core/rules/defaultBlockedRules.d.ts
3
4
  export declare function evaluateRules(scannedData: {
4
- routes: string[];
5
- pages: string[];
6
- components: string[];
7
- metadata: {
8
- title?: string;
9
- description?: string;
10
- meta?: Record<string, string>;
11
- };
12
- envNames: string[];
13
- dependencies: Record<string, string>;
14
- i18nWords: string[];
15
- contentTexts: Array<{
16
- file: string;
17
- text: string;
18
- }>;
19
- endpoints: string[];
5
+ routes: string[];
6
+ pages: string[];
7
+ components: string[];
8
+ metadata: {
9
+ title?: string;
10
+ description?: string;
11
+ meta?: Record<string, string>;
12
+ };
13
+ envNames: string[];
14
+ dependencies: Record<string, string>;
15
+ i18nWords: string[];
16
+ contentTexts: Array<{
17
+ file: string;
18
+ text: string;
19
+ }>;
20
+ endpoints: string[];
20
21
  }, policy: ResuxHalalPolicy): HalalCheckResult;
22
+ //#endregion
23
+ //# sourceMappingURL=defaultBlockedRules.d.ts.map