resuxjs 0.3.11 → 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.
- package/README.md +23 -1
- package/dist/bin.d.ts +1 -2
- package/dist/bin.js +4 -0
- package/dist/bin.js.map +1 -1
- package/dist/build/index.d.ts +28 -0
- package/dist/build/index.js +51 -0
- package/dist/build/index.js.map +1 -0
- package/dist/cli.d.ts +15 -5
- package/dist/cli.js +2648 -3671
- package/dist/cli.js.map +1 -1
- package/dist/compiler/adapter.d.ts +14 -11
- package/dist/compiler/adapter.js +68 -93
- package/dist/compiler/adapter.js.map +1 -1
- package/dist/compiler/dev-warnings.d.ts +8 -5
- package/dist/compiler/dev-warnings.js +248 -321
- package/dist/compiler/dev-warnings.js.map +1 -1
- package/dist/compiler/directives.d.ts +3 -0
- package/dist/compiler/directives.js +124 -150
- package/dist/compiler/directives.js.map +1 -1
- package/dist/compiler/implementation.d.ts +96 -93
- package/dist/compiler/implementation.js +2967 -3430
- package/dist/compiler/index.d.ts +14 -11
- package/dist/compiler/index.js +68 -93
- package/dist/compiler/index.js.map +1 -1
- package/dist/core/config.d.ts +12 -5
- package/dist/core/config.js +42 -25
- package/dist/core/config.js.map +1 -1
- package/dist/core/hooks.d.ts +127 -126
- package/dist/core/hooks.js +45 -55
- package/dist/core/hooks.js.map +1 -1
- package/dist/core/index.d.ts +5 -4
- package/dist/core/index.js +5 -5
- package/dist/core/module-container.d.ts +76 -74
- package/dist/core/module-container.js +181 -186
- package/dist/core/module-container.js.map +1 -1
- package/dist/core/resux.d.ts +15 -12
- package/dist/core/resux.js +17 -13
- package/dist/core/resux.js.map +1 -1
- package/dist/create-bin.d.ts +1 -2
- package/dist/create-bin.js +4 -0
- package/dist/create-bin.js.map +1 -1
- package/dist/create.d.ts +3 -0
- package/dist/create.js +499 -638
- package/dist/create.js.map +1 -1
- package/dist/deploy/cloudflare.d.ts +4 -1
- package/dist/deploy/cloudflare.js +30 -34
- package/dist/deploy/cloudflare.js.map +1 -1
- package/dist/deploy/common.d.ts +6 -4
- package/dist/deploy/common.js +118 -188
- package/dist/deploy/common.js.map +1 -1
- package/dist/deploy/framework-runtime.d.ts +3 -0
- package/dist/deploy/framework-runtime.js +43 -48
- package/dist/deploy/framework-runtime.js.map +1 -1
- package/dist/deploy/index.d.ts +4 -1
- package/dist/deploy/index.js +58 -80
- package/dist/deploy/index.js.map +1 -1
- package/dist/deploy/netlify.d.ts +4 -1
- package/dist/deploy/netlify.js +40 -41
- package/dist/deploy/netlify.js.map +1 -1
- package/dist/deploy/node.d.ts +4 -1
- package/dist/deploy/node.js +24 -19
- package/dist/deploy/node.js.map +1 -1
- package/dist/deploy/production-report.d.ts +3 -0
- package/dist/deploy/production-report.js +14 -14
- package/dist/deploy/production-report.js.map +1 -1
- package/dist/deploy/runtime-dependencies.d.ts +3 -0
- package/dist/deploy/runtime-dependencies.js +158 -220
- package/dist/deploy/runtime-dependencies.js.map +1 -1
- package/dist/deploy/static.d.ts +4 -1
- package/dist/deploy/static.js +16 -14
- package/dist/deploy/static.js.map +1 -1
- package/dist/deploy/types.d.ts +25 -22
- package/dist/deploy/types.js +0 -1
- package/dist/deploy/vercel.d.ts +4 -1
- package/dist/deploy/vercel.js +137 -188
- package/dist/deploy/vercel.js.map +1 -1
- package/dist/fonts/index.d.ts +15 -11
- package/dist/fonts/index.js +114 -134
- package/dist/fonts/index.js.map +1 -1
- package/dist/globals.d.ts +79 -78
- package/dist/globals.js +0 -1
- package/dist/halal-core/ai/classifyProject.d.ts +4 -1
- package/dist/halal-core/ai/classifyProject.js +81 -95
- package/dist/halal-core/ai/classifyProject.js.map +1 -1
- package/dist/halal-core/ai/classifyRuntimeContent.d.ts +5 -2
- package/dist/halal-core/ai/classifyRuntimeContent.js +77 -95
- package/dist/halal-core/ai/classifyRuntimeContent.js.map +1 -1
- package/dist/halal-core/ai/createProjectSummary.d.ts +38 -35
- package/dist/halal-core/ai/createProjectSummary.js +38 -39
- package/dist/halal-core/ai/createProjectSummary.js.map +1 -1
- package/dist/halal-core/ai/halalClassifierPrompt.d.ts +3 -0
- package/dist/halal-core/ai/halalClassifierPrompt.js +5 -1
- package/dist/halal-core/ai/halalClassifierPrompt.js.map +1 -1
- package/dist/halal-core/ai/redactSensitiveData.d.ts +3 -0
- package/dist/halal-core/ai/redactSensitiveData.js +82 -110
- package/dist/halal-core/ai/redactSensitiveData.js.map +1 -1
- package/dist/halal-core/ai/validateAiResponse.d.ts +4 -1
- package/dist/halal-core/ai/validateAiResponse.js +58 -85
- package/dist/halal-core/ai/validateAiResponse.js.map +1 -1
- package/dist/halal-core/cli/check.d.ts +3 -0
- package/dist/halal-core/cli/check.js +28 -30
- package/dist/halal-core/cli/check.js.map +1 -1
- package/dist/halal-core/cli/explain.d.ts +3 -0
- package/dist/halal-core/cli/explain.js +27 -31
- package/dist/halal-core/cli/explain.js.map +1 -1
- package/dist/halal-core/cli/report.d.ts +3 -0
- package/dist/halal-core/cli/report.js +14 -10
- package/dist/halal-core/cli/report.js.map +1 -1
- package/dist/halal-core/cli/submitReview.d.ts +3 -0
- package/dist/halal-core/cli/submitReview.js +13 -9
- package/dist/halal-core/cli/submitReview.js.map +1 -1
- package/dist/halal-core/cli/verifyReview.d.ts +3 -0
- package/dist/halal-core/cli/verifyReview.js +18 -15
- package/dist/halal-core/cli/verifyReview.js.map +1 -1
- package/dist/halal-core/config.d.ts +30 -27
- package/dist/halal-core/config.js +76 -118
- package/dist/halal-core/config.js.map +1 -1
- package/dist/halal-core/crypto/integrity.d.ts +6 -3
- package/dist/halal-core/crypto/integrity.js +64 -87
- package/dist/halal-core/crypto/integrity.js.map +1 -1
- package/dist/halal-core/enforce.d.ts +3 -0
- package/dist/halal-core/enforce.js +92 -105
- package/dist/halal-core/enforce.js.map +1 -1
- package/dist/halal-core/index.d.ts +20 -16
- package/dist/halal-core/index.js +18 -19
- package/dist/halal-core/lifecycle.d.ts +3 -0
- package/dist/halal-core/lifecycle.js +15 -13
- package/dist/halal-core/lifecycle.js.map +1 -1
- package/dist/halal-core/policy.d.ts +4 -1
- package/dist/halal-core/policy.js +6 -2
- package/dist/halal-core/policy.js.map +1 -1
- package/dist/halal-core/report/formatBrowserOverlay.d.ts +4 -1
- package/dist/halal-core/report/formatBrowserOverlay.js +10 -8
- package/dist/halal-core/report/formatBrowserOverlay.js.map +1 -1
- package/dist/halal-core/report/formatTerminalReport.d.ts +4 -1
- package/dist/halal-core/report/formatTerminalReport.js +27 -37
- package/dist/halal-core/report/formatTerminalReport.js.map +1 -1
- package/dist/halal-core/report/generateHalalReport.d.ts +7 -4
- package/dist/halal-core/report/generateHalalReport.js +26 -26
- package/dist/halal-core/report/generateHalalReport.js.map +1 -1
- package/dist/halal-core/report/signReport.d.ts +4 -1
- package/dist/halal-core/report/signReport.js +16 -12
- package/dist/halal-core/report/signReport.js.map +1 -1
- package/dist/halal-core/report/verifyReport.d.ts +9 -6
- package/dist/halal-core/report/verifyReport.js +51 -41
- package/dist/halal-core/report/verifyReport.js.map +1 -1
- package/dist/halal-core/review/createReviewRequest.d.ts +4 -1
- package/dist/halal-core/review/createReviewRequest.js +21 -17
- package/dist/halal-core/review/createReviewRequest.js.map +1 -1
- package/dist/halal-core/review/reviewPolicy.d.ts +3 -0
- package/dist/halal-core/review/reviewPolicy.js +19 -17
- package/dist/halal-core/review/reviewPolicy.js.map +1 -1
- package/dist/halal-core/review/signedReviewFile.d.ts +11 -8
- package/dist/halal-core/review/signedReviewFile.js +24 -22
- package/dist/halal-core/review/signedReviewFile.js.map +1 -1
- package/dist/halal-core/review/verifyReviewApproval.d.ts +9 -6
- package/dist/halal-core/review/verifyReviewApproval.js +68 -62
- package/dist/halal-core/review/verifyReviewApproval.js.map +1 -1
- package/dist/halal-core/rules/adultContentRules.d.ts +3 -0
- package/dist/halal-core/rules/adultContentRules.js +23 -23
- package/dist/halal-core/rules/adultContentRules.js.map +1 -1
- package/dist/halal-core/rules/alcoholDrugVapeRules.d.ts +3 -0
- package/dist/halal-core/rules/alcoholDrugVapeRules.js +22 -22
- package/dist/halal-core/rules/alcoholDrugVapeRules.js.map +1 -1
- package/dist/halal-core/rules/childSafetyRules.d.ts +3 -0
- package/dist/halal-core/rules/childSafetyRules.js +19 -19
- package/dist/halal-core/rules/childSafetyRules.js.map +1 -1
- package/dist/halal-core/rules/coreCategories.d.ts +7 -4
- package/dist/halal-core/rules/coreCategories.js +237 -110
- package/dist/halal-core/rules/coreCategories.js.map +1 -1
- package/dist/halal-core/rules/cyberAbuseRules.d.ts +3 -0
- package/dist/halal-core/rules/cyberAbuseRules.js +27 -27
- package/dist/halal-core/rules/cyberAbuseRules.js.map +1 -1
- package/dist/halal-core/rules/defaultBlockedRules.d.ts +21 -18
- package/dist/halal-core/rules/defaultBlockedRules.js +158 -199
- package/dist/halal-core/rules/defaultBlockedRules.js.map +1 -1
- package/dist/halal-core/rules/dependencyRules.d.ts +8 -5
- package/dist/halal-core/rules/dependencyRules.js +50 -56
- package/dist/halal-core/rules/dependencyRules.js.map +1 -1
- package/dist/halal-core/rules/endpointRules.d.ts +6 -3
- package/dist/halal-core/rules/endpointRules.js +21 -23
- package/dist/halal-core/rules/endpointRules.js.map +1 -1
- package/dist/halal-core/rules/environmentalHarmRules.d.ts +3 -0
- package/dist/halal-core/rules/environmentalHarmRules.js +17 -17
- package/dist/halal-core/rules/environmentalHarmRules.js.map +1 -1
- package/dist/halal-core/rules/financeRibaRules.d.ts +3 -0
- package/dist/halal-core/rules/financeRibaRules.js +20 -20
- package/dist/halal-core/rules/financeRibaRules.js.map +1 -1
- package/dist/halal-core/rules/gamblingRules.d.ts +3 -0
- package/dist/halal-core/rules/gamblingRules.js +22 -22
- package/dist/halal-core/rules/gamblingRules.js.map +1 -1
- package/dist/halal-core/rules/generalHarmRules.d.ts +3 -0
- package/dist/halal-core/rules/generalHarmRules.js +15 -15
- package/dist/halal-core/rules/generalHarmRules.js.map +1 -1
- package/dist/halal-core/rules/healthHarmRules.d.ts +3 -0
- package/dist/halal-core/rules/healthHarmRules.js +19 -19
- package/dist/halal-core/rules/healthHarmRules.js.map +1 -1
- package/dist/halal-core/rules/keywordRules.d.ts +11 -8
- package/dist/halal-core/rules/keywordRules.js +90 -39
- package/dist/halal-core/rules/keywordRules.js.map +1 -1
- package/dist/halal-core/rules/privacyAbuseRules.d.ts +3 -0
- package/dist/halal-core/rules/privacyAbuseRules.js +21 -21
- package/dist/halal-core/rules/privacyAbuseRules.js.map +1 -1
- package/dist/halal-core/rules/scamFraudRules.d.ts +3 -0
- package/dist/halal-core/rules/scamFraudRules.js +29 -29
- package/dist/halal-core/rules/scamFraudRules.js.map +1 -1
- package/dist/halal-core/rules/selfHarmRules.d.ts +3 -0
- package/dist/halal-core/rules/selfHarmRules.js +17 -17
- package/dist/halal-core/rules/selfHarmRules.js.map +1 -1
- package/dist/halal-core/rules/violenceExtremismRules.d.ts +3 -0
- package/dist/halal-core/rules/violenceExtremismRules.js +30 -30
- package/dist/halal-core/rules/violenceExtremismRules.js.map +1 -1
- package/dist/halal-core/runtime/guard.d.ts +17 -14
- package/dist/halal-core/runtime/guard.js +162 -183
- package/dist/halal-core/runtime/guard.js.map +1 -1
- package/dist/halal-core/runtime/index.d.ts +5 -4
- package/dist/halal-core/runtime/index.js +4 -5
- package/dist/halal-core/runtime/reviewedMemory.d.ts +4 -1
- package/dist/halal-core/runtime/reviewedMemory.js +74 -110
- package/dist/halal-core/runtime/reviewedMemory.js.map +1 -1
- package/dist/halal-core/runtime/serializeRuntimeContent.d.ts +10 -7
- package/dist/halal-core/runtime/serializeRuntimeContent.js +132 -156
- package/dist/halal-core/runtime/serializeRuntimeContent.js.map +1 -1
- package/dist/halal-core/runtime/types.d.ts +44 -41
- package/dist/halal-core/runtime/types.js +0 -1
- package/dist/halal-core/scanner/scanApiRoutes.d.ts +3 -0
- package/dist/halal-core/scanner/scanApiRoutes.js +32 -36
- package/dist/halal-core/scanner/scanApiRoutes.js.map +1 -1
- package/dist/halal-core/scanner/scanComponents.d.ts +3 -0
- package/dist/halal-core/scanner/scanComponents.js +12 -13
- package/dist/halal-core/scanner/scanComponents.js.map +1 -1
- package/dist/halal-core/scanner/scanContent.d.ts +5 -2
- package/dist/halal-core/scanner/scanContent.js +193 -263
- package/dist/halal-core/scanner/scanContent.js.map +1 -1
- package/dist/halal-core/scanner/scanDependencies.d.ts +3 -0
- package/dist/halal-core/scanner/scanDependencies.js +16 -15
- package/dist/halal-core/scanner/scanDependencies.js.map +1 -1
- package/dist/halal-core/scanner/scanDomains.d.ts +5 -2
- package/dist/halal-core/scanner/scanDomains.js +12 -12
- package/dist/halal-core/scanner/scanDomains.js.map +1 -1
- package/dist/halal-core/scanner/scanEnvNames.d.ts +3 -0
- package/dist/halal-core/scanner/scanEnvNames.js +23 -26
- package/dist/halal-core/scanner/scanEnvNames.js.map +1 -1
- package/dist/halal-core/scanner/scanMetadata.d.ts +6 -3
- package/dist/halal-core/scanner/scanMetadata.js +20 -29
- package/dist/halal-core/scanner/scanMetadata.js.map +1 -1
- package/dist/halal-core/scanner/scanPages.d.ts +3 -0
- package/dist/halal-core/scanner/scanPages.js +12 -15
- package/dist/halal-core/scanner/scanPages.js.map +1 -1
- package/dist/halal-core/scanner/scanProject.d.ts +15 -10
- package/dist/halal-core/scanner/scanProject.js +43 -49
- package/dist/halal-core/scanner/scanProject.js.map +1 -1
- package/dist/halal-core/scanner/scanRoutes.d.ts +3 -0
- package/dist/halal-core/scanner/scanRoutes.js +32 -39
- package/dist/halal-core/scanner/scanRoutes.js.map +1 -1
- package/dist/halal-core/scanner/scanTranslations.d.ts +3 -0
- package/dist/halal-core/scanner/scanTranslations.js +21 -29
- package/dist/halal-core/scanner/scanTranslations.js.map +1 -1
- package/dist/halal-core/status.d.ts +14 -11
- package/dist/halal-core/status.js +0 -1
- package/dist/halal-core/tamper/verifyCoreIntegrity.d.ts +3 -0
- package/dist/halal-core/tamper/verifyCoreIntegrity.js +26 -24
- package/dist/halal-core/tamper/verifyCoreIntegrity.js.map +1 -1
- package/dist/halal-core/tamper/verifyLifecycleHooks.d.ts +3 -0
- package/dist/halal-core/tamper/verifyLifecycleHooks.js +13 -12
- package/dist/halal-core/tamper/verifyLifecycleHooks.js.map +1 -1
- package/dist/halal-core/tamper/verifyReportSignature.d.ts +6 -3
- package/dist/halal-core/tamper/verifyReportSignature.js +20 -14
- package/dist/halal-core/tamper/verifyReportSignature.js.map +1 -1
- package/dist/halal.d.ts +20 -1
- package/dist/halal.js +18 -2
- package/dist/i18n/index.d.ts +34 -31
- package/dist/i18n/index.js +219 -288
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/shared.d.ts +18 -15
- package/dist/i18n/shared.js +204 -266
- package/dist/i18n/shared.js.map +1 -1
- package/dist/icons/index.d.ts +143 -139
- package/dist/icons/index.js +322 -273
- package/dist/icons/index.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -2
- package/dist/kit/index.d.ts +9 -6
- package/dist/kit/index.js +45 -43
- package/dist/kit/index.js.map +1 -1
- package/dist/nitro-server/index.d.ts +7 -4
- package/dist/nitro-server/index.js +6 -2
- package/dist/nitro-server/index.js.map +1 -1
- package/dist/node.d.ts +6 -3
- package/dist/node.js +88 -116
- package/dist/node.js.map +1 -1
- package/dist/reactivity/computed.d.ts +6 -3
- package/dist/reactivity/computed.js +46 -53
- package/dist/reactivity/computed.js.map +1 -1
- package/dist/reactivity/effect.d.ts +8 -5
- package/dist/reactivity/effect.js +105 -146
- package/dist/reactivity/effect.js.map +1 -1
- package/dist/reactivity/index.d.ts +8 -8
- package/dist/reactivity/index.js +7 -8
- package/dist/reactivity/reactive.d.ts +3 -0
- package/dist/reactivity/reactive.js +93 -133
- package/dist/reactivity/reactive.js.map +1 -1
- package/dist/reactivity/readonly.d.ts +2 -1
- package/dist/reactivity/readonly.js +2 -2
- package/dist/reactivity/ref.d.ts +15 -15
- package/dist/reactivity/ref.js +73 -81
- package/dist/reactivity/ref.js.map +1 -1
- package/dist/reactivity/scheduler.d.ts +3 -1
- package/dist/reactivity/scheduler.js +67 -69
- package/dist/reactivity/scheduler.js.map +1 -1
- package/dist/reactivity/types.d.ts +17 -14
- package/dist/reactivity/types.js +0 -1
- package/dist/reactivity/utils.d.ts +7 -4
- package/dist/reactivity/utils.js +25 -24
- package/dist/reactivity/utils.js.map +1 -1
- package/dist/reactivity/watch.d.ts +4 -2
- package/dist/reactivity/watch.js +75 -103
- package/dist/reactivity/watch.js.map +1 -1
- package/dist/runtime/core.d.ts +31 -0
- package/dist/runtime/core.js +156 -0
- package/dist/runtime/core.js.map +1 -0
- package/dist/runtime/index.d.ts +487 -461
- package/dist/runtime/index.js +4129 -5254
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/reactivity.d.ts +7 -0
- package/dist/runtime/reactivity.js +6 -0
- package/dist/runtime/resume.d.ts +79 -0
- package/dist/runtime/resume.js +482 -0
- package/dist/runtime/resume.js.map +1 -0
- package/dist/runtime/router.d.ts +20 -0
- package/dist/runtime/router.js +60 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/streaming.d.ts +24 -0
- package/dist/runtime/streaming.js +200 -0
- package/dist/runtime/streaming.js.map +1 -0
- package/dist/security/media-fetch.d.ts +32 -0
- package/dist/security/media-fetch.js +301 -0
- package/dist/security/media-fetch.js.map +1 -0
- package/dist/security/path-boundary.d.ts +7 -0
- package/dist/security/path-boundary.js +70 -0
- package/dist/security/path-boundary.js.map +1 -0
- package/dist/ui/index.d.ts +1580 -1576
- package/dist/ui/index.js +975 -674
- package/dist/ui/index.js.map +1 -1
- package/dist/vite-builder/index.d.ts +6 -3
- package/dist/vite-builder/index.js +6 -2
- package/dist/vite-builder/index.js.map +1 -1
- package/package.json +46 -86
- package/dist/compiler/implementation.js.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/deploy/types.js.map +0 -1
- package/dist/globals.js.map +0 -1
- package/dist/halal-core/index.js.map +0 -1
- package/dist/halal-core/runtime/index.js.map +0 -1
- package/dist/halal-core/runtime/types.js.map +0 -1
- package/dist/halal-core/status.js.map +0 -1
- package/dist/halal.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/reactivity/index.js.map +0 -1
- package/dist/reactivity/readonly.js.map +0 -1
- package/dist/reactivity/types.js.map +0 -1
|
@@ -1,112 +1,239 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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","
|
|
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,qBAA2C;CACtD;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAU;GAAY;GAAW;GAAS;GAAgB;GAAW;GAAY;GACjF;GAAU;GAAU;GAAQ;GAAgB;GAAgB;GAAkB;GAAe;GAC7F;GAAW;GAAU;GAAU;GAAQ;GAAW;GAAQ;GAAa;GAAW;GAClF;GAAe;GAAS;GAAQ;GAAc;GAAqB;GAAoB;EACzF;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAY;GAAgB;GAAc;GAAc;GAAgB;GAAqB;GAC7F;GAAiB;GAAsB;GAAoB;GAAqB;GAAe;GAC/F;GAAe;GAAW;GAAS;EACrC;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAW;GAAc;GAAW;GAAa;GAAY;GAAU;GAAa;GAAe;GACnG;GAAsB;GAAqB;GAAmB;GAAgB;GAAoB;EACpG;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAiB;GAAoB;GAAS;GAAc;GAAe;GAAiB;GAC5F;GAAa;GAAyB;GAAqB;GAAgB;GAAyB;GACpG;GAAmB;GAAW;GAAqB;GAAe;EACpE;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAe;GAAmB;GAAgB;GAAgB;GAAW;GAAiB;GAC9F;GAAa;GAAc;GAAgB;GAAuB;GAAuB;EAC3F;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAQ;GAAsB;GAAiB;GAAiB;GAAe;GAAgB;EACjG;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAgB;GAAkB;GAAc;GAAwB;GACxE;GAAkB;GAA0B;GAAqB;GAAkB;EACrF;CACF;CACA;EACE,IAAI;EACJ,MAAM;EACN,aAAa;EACb,UAAU;GACR;GAAW;GAAyB;GAAqB;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,30 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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","
|
|
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
|
|
2
|
-
import
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|