resuxjs 0.3.11 → 0.4.0-beta.3

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 +5 -0
  4. package/dist/bin.js.map +1 -1
  5. package/dist/build/index.d.ts +29 -0
  6. package/dist/build/index.js +51 -0
  7. package/dist/build/index.js.map +1 -0
  8. package/dist/cli.d.ts +19 -8
  9. package/dist/cli.js +2653 -3688
  10. package/dist/cli.js.map +1 -1
  11. package/dist/compiler/adapter.d.ts +19 -15
  12. package/dist/compiler/adapter.js +69 -93
  13. package/dist/compiler/adapter.js.map +1 -1
  14. package/dist/compiler/dev-warnings.d.ts +14 -10
  15. package/dist/compiler/dev-warnings.js +247 -319
  16. package/dist/compiler/dev-warnings.js.map +1 -1
  17. package/dist/compiler/directives.d.ts +7 -3
  18. package/dist/compiler/directives.js +125 -150
  19. package/dist/compiler/directives.js.map +1 -1
  20. package/dist/compiler/implementation.d.ts +117 -112
  21. package/dist/compiler/implementation.js +2954 -3426
  22. package/dist/compiler/index.d.ts +19 -15
  23. package/dist/compiler/index.js +69 -93
  24. package/dist/compiler/index.js.map +1 -1
  25. package/dist/core/config.d.ts +19 -10
  26. package/dist/core/config.js +42 -25
  27. package/dist/core/config.js.map +1 -1
  28. package/dist/core/hooks.d.ts +133 -131
  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 +6 -5
  33. package/dist/core/module-container.d.ts +97 -93
  34. package/dist/core/module-container.js +180 -185
  35. package/dist/core/module-container.js.map +1 -1
  36. package/dist/core/resux.d.ts +20 -15
  37. package/dist/core/resux.js +18 -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 +5 -0
  41. package/dist/create-bin.js.map +1 -1
  42. package/dist/create.d.ts +6 -2
  43. package/dist/create.js +496 -638
  44. package/dist/create.js.map +1 -1
  45. package/dist/deploy/cloudflare.d.ts +7 -2
  46. package/dist/deploy/cloudflare.js +31 -34
  47. package/dist/deploy/cloudflare.js.map +1 -1
  48. package/dist/deploy/common.d.ts +19 -15
  49. package/dist/deploy/common.js +119 -188
  50. package/dist/deploy/common.js.map +1 -1
  51. package/dist/deploy/framework-runtime.d.ts +5 -1
  52. package/dist/deploy/framework-runtime.js +44 -48
  53. package/dist/deploy/framework-runtime.js.map +1 -1
  54. package/dist/deploy/index.d.ts +8 -3
  55. package/dist/deploy/index.js +56 -80
  56. package/dist/deploy/index.js.map +1 -1
  57. package/dist/deploy/netlify.d.ts +7 -2
  58. package/dist/deploy/netlify.js +41 -41
  59. package/dist/deploy/netlify.js.map +1 -1
  60. package/dist/deploy/node.d.ts +7 -2
  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 +5 -1
  64. package/dist/deploy/production-report.js +15 -14
  65. package/dist/deploy/production-report.js.map +1 -1
  66. package/dist/deploy/runtime-dependencies.d.ts +8 -4
  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 +7 -2
  70. package/dist/deploy/static.js +17 -14
  71. package/dist/deploy/static.js.map +1 -1
  72. package/dist/deploy/types.d.ts +33 -29
  73. package/dist/deploy/types.js +1 -2
  74. package/dist/deploy/vercel.d.ts +8 -3
  75. package/dist/deploy/vercel.js +138 -188
  76. package/dist/deploy/vercel.js.map +1 -1
  77. package/dist/fonts/index.d.ts +19 -14
  78. package/dist/fonts/index.js +115 -134
  79. package/dist/fonts/index.js.map +1 -1
  80. package/dist/globals.d.ts +79 -78
  81. package/dist/globals.js +1 -2
  82. package/dist/halal-core/ai/classifyProject.d.ts +9 -4
  83. package/dist/halal-core/ai/classifyProject.js +82 -95
  84. package/dist/halal-core/ai/classifyProject.js.map +1 -1
  85. package/dist/halal-core/ai/classifyRuntimeContent.d.ts +8 -3
  86. package/dist/halal-core/ai/classifyRuntimeContent.js +78 -95
  87. package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -1
  88. package/dist/halal-core/ai/createProjectSummary.d.ts +40 -36
  89. package/dist/halal-core/ai/createProjectSummary.js +39 -39
  90. package/dist/halal-core/ai/createProjectSummary.js.map +1 -1
  91. package/dist/halal-core/ai/halalClassifierPrompt.d.ts +5 -1
  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 +5 -1
  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 +7 -2
  98. package/dist/halal-core/ai/validateAiResponse.js +56 -83
  99. package/dist/halal-core/ai/validateAiResponse.js.map +1 -1
  100. package/dist/halal-core/cli/check.d.ts +5 -1
  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 +5 -1
  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 +5 -1
  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 +5 -1
  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 +5 -1
  113. package/dist/halal-core/cli/verifyReview.js +17 -15
  114. package/dist/halal-core/cli/verifyReview.js.map +1 -1
  115. package/dist/halal-core/config.d.ts +39 -35
  116. package/dist/halal-core/config.js +77 -118
  117. package/dist/halal-core/config.js.map +1 -1
  118. package/dist/halal-core/crypto/integrity.d.ts +12 -8
  119. package/dist/halal-core/crypto/integrity.js +65 -87
  120. package/dist/halal-core/crypto/integrity.js.map +1 -1
  121. package/dist/halal-core/enforce.d.ts +9 -5
  122. package/dist/halal-core/enforce.js +90 -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 +19 -19
  126. package/dist/halal-core/lifecycle.d.ts +5 -1
  127. package/dist/halal-core/lifecycle.js +16 -13
  128. package/dist/halal-core/lifecycle.js.map +1 -1
  129. package/dist/halal-core/policy.d.ts +7 -2
  130. package/dist/halal-core/policy.js +7 -2
  131. package/dist/halal-core/policy.js.map +1 -1
  132. package/dist/halal-core/report/formatBrowserOverlay.d.ts +7 -2
  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 +7 -2
  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 +11 -6
  139. package/dist/halal-core/report/generateHalalReport.js +25 -27
  140. package/dist/halal-core/report/generateHalalReport.js.map +1 -1
  141. package/dist/halal-core/report/signReport.d.ts +8 -3
  142. package/dist/halal-core/report/signReport.js +17 -12
  143. package/dist/halal-core/report/signReport.js.map +1 -1
  144. package/dist/halal-core/report/verifyReport.d.ts +14 -9
  145. package/dist/halal-core/report/verifyReport.js +52 -41
  146. package/dist/halal-core/report/verifyReport.js.map +1 -1
  147. package/dist/halal-core/review/createReviewRequest.d.ts +7 -2
  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 +7 -3
  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 +17 -12
  154. package/dist/halal-core/review/signedReviewFile.js +25 -22
  155. package/dist/halal-core/review/signedReviewFile.js.map +1 -1
  156. package/dist/halal-core/review/verifyReviewApproval.d.ts +12 -8
  157. package/dist/halal-core/review/verifyReviewApproval.js +69 -62
  158. package/dist/halal-core/review/verifyReviewApproval.js.map +1 -1
  159. package/dist/halal-core/rules/adultContentRules.d.ts +6 -2
  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 +6 -2
  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 +6 -2
  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 +10 -6
  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 +6 -2
  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 +24 -19
  175. package/dist/halal-core/rules/defaultBlockedRules.js +156 -199
  176. package/dist/halal-core/rules/defaultBlockedRules.js.map +1 -1
  177. package/dist/halal-core/rules/dependencyRules.d.ts +11 -7
  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 +9 -5
  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 +6 -2
  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 +6 -2
  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 +6 -2
  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 +6 -2
  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 +6 -2
  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 +13 -9
  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 +6 -2
  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 +6 -2
  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 +6 -2
  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 +6 -2
  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 +22 -17
  214. package/dist/halal-core/runtime/guard.js +163 -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 +5 -5
  218. package/dist/halal-core/runtime/reviewedMemory.d.ts +10 -5
  219. package/dist/halal-core/runtime/reviewedMemory.js +75 -110
  220. package/dist/halal-core/runtime/reviewedMemory.js.map +1 -1
  221. package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +17 -12
  222. package/dist/halal-core/runtime/serializeRuntimeContent.js +133 -156
  223. package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -1
  224. package/dist/halal-core/runtime/types.d.ts +55 -50
  225. package/dist/halal-core/runtime/types.js +1 -2
  226. package/dist/halal-core/scanner/scanApiRoutes.d.ts +5 -1
  227. package/dist/halal-core/scanner/scanApiRoutes.js +33 -36
  228. package/dist/halal-core/scanner/scanApiRoutes.js.map +1 -1
  229. package/dist/halal-core/scanner/scanComponents.d.ts +5 -1
  230. package/dist/halal-core/scanner/scanComponents.js +13 -13
  231. package/dist/halal-core/scanner/scanComponents.js.map +1 -1
  232. package/dist/halal-core/scanner/scanContent.d.ts +8 -4
  233. package/dist/halal-core/scanner/scanContent.js +192 -261
  234. package/dist/halal-core/scanner/scanContent.js.map +1 -1
  235. package/dist/halal-core/scanner/scanDependencies.d.ts +5 -1
  236. package/dist/halal-core/scanner/scanDependencies.js +17 -15
  237. package/dist/halal-core/scanner/scanDependencies.js.map +1 -1
  238. package/dist/halal-core/scanner/scanDomains.d.ts +7 -3
  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 +5 -1
  242. package/dist/halal-core/scanner/scanEnvNames.js +24 -26
  243. package/dist/halal-core/scanner/scanEnvNames.js.map +1 -1
  244. package/dist/halal-core/scanner/scanMetadata.d.ts +9 -5
  245. package/dist/halal-core/scanner/scanMetadata.js +21 -29
  246. package/dist/halal-core/scanner/scanMetadata.js.map +1 -1
  247. package/dist/halal-core/scanner/scanPages.d.ts +5 -1
  248. package/dist/halal-core/scanner/scanPages.js +13 -15
  249. package/dist/halal-core/scanner/scanPages.js.map +1 -1
  250. package/dist/halal-core/scanner/scanProject.d.ts +19 -12
  251. package/dist/halal-core/scanner/scanProject.js +44 -49
  252. package/dist/halal-core/scanner/scanProject.js.map +1 -1
  253. package/dist/halal-core/scanner/scanRoutes.d.ts +5 -1
  254. package/dist/halal-core/scanner/scanRoutes.js +33 -39
  255. package/dist/halal-core/scanner/scanRoutes.js.map +1 -1
  256. package/dist/halal-core/scanner/scanTranslations.d.ts +5 -1
  257. package/dist/halal-core/scanner/scanTranslations.js +22 -29
  258. package/dist/halal-core/scanner/scanTranslations.js.map +1 -1
  259. package/dist/halal-core/status.d.ts +17 -13
  260. package/dist/halal-core/status.js +1 -2
  261. package/dist/halal-core/tamper/verifyCoreIntegrity.d.ts +5 -1
  262. package/dist/halal-core/tamper/verifyCoreIntegrity.js +27 -24
  263. package/dist/halal-core/tamper/verifyCoreIntegrity.js.map +1 -1
  264. package/dist/halal-core/tamper/verifyLifecycleHooks.d.ts +5 -1
  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 +9 -4
  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 +19 -2
  272. package/dist/i18n/index.d.ts +44 -40
  273. package/dist/i18n/index.js +218 -288
  274. package/dist/i18n/index.js.map +1 -1
  275. package/dist/i18n/shared.d.ts +33 -29
  276. package/dist/i18n/shared.js +204 -266
  277. package/dist/i18n/shared.js.map +1 -1
  278. package/dist/icons/index.d.ts +160 -154
  279. package/dist/icons/index.js +323 -273
  280. package/dist/icons/index.js.map +1 -1
  281. package/dist/index.d.ts +8 -1
  282. package/dist/index.js +8 -2
  283. package/dist/kit/index.d.ts +32 -27
  284. package/dist/kit/index.js +46 -43
  285. package/dist/kit/index.js.map +1 -1
  286. package/dist/nitro-server/index.d.ts +10 -6
  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 +9 -4
  290. package/dist/node.js +89 -116
  291. package/dist/node.js.map +1 -1
  292. package/dist/reactivity/computed.d.ts +11 -6
  293. package/dist/reactivity/computed.js +46 -53
  294. package/dist/reactivity/computed.js.map +1 -1
  295. package/dist/reactivity/effect.d.ts +23 -18
  296. package/dist/reactivity/effect.js +105 -147
  297. package/dist/reactivity/effect.js.map +1 -1
  298. package/dist/reactivity/index.d.ts +8 -8
  299. package/dist/reactivity/index.js +8 -8
  300. package/dist/reactivity/reactive.d.ts +9 -5
  301. package/dist/reactivity/reactive.js +95 -134
  302. package/dist/reactivity/reactive.js.map +1 -1
  303. package/dist/reactivity/readonly.d.ts +2 -1
  304. package/dist/reactivity/readonly.js +3 -2
  305. package/dist/reactivity/ref.d.ts +23 -21
  306. package/dist/reactivity/ref.js +71 -81
  307. package/dist/reactivity/ref.js.map +1 -1
  308. package/dist/reactivity/scheduler.d.ts +8 -5
  309. package/dist/reactivity/scheduler.js +67 -69
  310. package/dist/reactivity/scheduler.js.map +1 -1
  311. package/dist/reactivity/types.d.ts +29 -25
  312. package/dist/reactivity/types.js +1 -2
  313. package/dist/reactivity/utils.d.ts +17 -13
  314. package/dist/reactivity/utils.js +25 -24
  315. package/dist/reactivity/utils.js.map +1 -1
  316. package/dist/reactivity/watch.d.ts +8 -4
  317. package/dist/reactivity/watch.js +74 -103
  318. package/dist/reactivity/watch.js.map +1 -1
  319. package/dist/runtime/core.d.ts +32 -0
  320. package/dist/runtime/core.js +155 -0
  321. package/dist/runtime/core.js.map +1 -0
  322. package/dist/runtime/index.d.ts +649 -622
  323. package/dist/runtime/index.js +4105 -5243
  324. package/dist/runtime/index.js.map +1 -1
  325. package/dist/runtime/reactivity.d.ts +7 -0
  326. package/dist/runtime/reactivity.js +7 -0
  327. package/dist/runtime/resume.d.ts +80 -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 +21 -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 +25 -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 +33 -0
  337. package/dist/security/media-fetch.js +302 -0
  338. package/dist/security/media-fetch.js.map +1 -0
  339. package/dist/security/path-boundary.d.ts +8 -0
  340. package/dist/security/path-boundary.js +71 -0
  341. package/dist/security/path-boundary.js.map +1 -0
  342. package/dist/ui/index.d.ts +1774 -1768
  343. package/dist/ui/index.js +974 -674
  344. package/dist/ui/index.js.map +1 -1
  345. package/dist/vite-builder/index.d.ts +9 -5
  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
+
237
+ //#endregion
238
+ export { BLOCKED_CATEGORIES };
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;GAC1D;EACF;CACD;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAS;GAAkB;GAAY;GAAe;GAAiB;GAAoB;GAC3F;GAAiB;GAAiB;GACnC;EACF;CACD;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAiB;GAA0B;GAAwB;GAAiB;GACpF;GAAa;GAAW;GAA6B;GACtD;EACF;CACD;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAkB;GAAe;GAAkB;GAAmB;GACvE;EACF;CACD;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAoB;GAAkB;GACvC;EACF;CACF"}
@@ -1,2 +1,6 @@
1
- export declare const CYBER_ABUSE_PATTERNS: RegExp[];
2
- export declare function checkCyberAbuse(text: string): string[];
1
+ //#region src/halal-core/rules/cyberAbuseRules.d.ts
2
+ declare const CYBER_ABUSE_PATTERNS: RegExp[];
3
+ declare function checkCyberAbuse(text: string): string[];
4
+ //#endregion
5
+ export { CYBER_ABUSE_PATTERNS, checkCyberAbuse };
6
+ //# 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
+
28
+ //#endregion
29
+ export { CYBER_ABUSE_PATTERNS, checkCyberAbuse };
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;CACD;AAED,SAAgB,gBAAgB,MAAwB;CACtD,MAAM,UAAoB,EAAE;AAC5B,MAAK,MAAM,WAAW,qBACpB,KAAI,QAAQ,KAAK,KAAK,EAAE;EACtB,MAAM,QAAQ,KAAK,MAAM,QAAQ;AACjC,MAAI,MACF,SAAQ,KAAK,MAAM,GAAG;;AAI5B,QAAO"}
@@ -1,20 +1,25 @@
1
- import type { HalalCheckResult } from "../status.js";
2
- import type { ResuxHalalPolicy } from "../config.js";
3
- 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[];
1
+ import { HalalCheckResult } from "../status.js";
2
+ import { ResuxHalalPolicy } from "../config.js";
3
+
4
+ //#region src/halal-core/rules/defaultBlockedRules.d.ts
5
+ declare function evaluateRules(scannedData: {
6
+ routes: string[];
7
+ pages: string[];
8
+ components: string[];
9
+ metadata: {
10
+ title?: string;
11
+ description?: string;
12
+ meta?: Record<string, string>;
13
+ };
14
+ envNames: string[];
15
+ dependencies: Record<string, string>;
16
+ i18nWords: string[];
17
+ contentTexts: Array<{
18
+ file: string;
19
+ text: string;
20
+ }>;
21
+ endpoints: string[];
20
22
  }, policy: ResuxHalalPolicy): HalalCheckResult;
23
+ //#endregion
24
+ export { evaluateRules };
25
+ //# sourceMappingURL=defaultBlockedRules.d.ts.map