@apify/utilities 2.31.2 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.mjs CHANGED
@@ -709,7 +709,10 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
709
709
  "key-value-store",
710
710
  "request-queue",
711
711
  "request-queues",
712
+ "build",
712
713
  "builds",
714
+ "dataset",
715
+ "datasets",
713
716
  "schedule",
714
717
  "standby",
715
718
  "pay-per-event",
@@ -730,6 +733,10 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
730
733
  "claude",
731
734
  "copilot",
732
735
  "mistral",
736
+ "gemini",
737
+ "llama",
738
+ "chatbot",
739
+ "chatgpt",
733
740
  "prompt",
734
741
  "prompts",
735
742
  "embeddings",
@@ -765,6 +772,7 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
765
772
  "premium-partner",
766
773
  "staff",
767
774
  "moderator",
775
+ "apify-admin",
768
776
  // Apify subdomain / service names (current and future)
769
777
  "console",
770
778
  "cli",
@@ -806,6 +814,7 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
806
814
  "payouts",
807
815
  "invoice",
808
816
  "invoices",
817
+ "wallet",
809
818
  // Compliance / certifications
810
819
  "soc",
811
820
  "soc2",
@@ -853,10 +862,15 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
853
862
  "conference",
854
863
  "conferences",
855
864
  // Organizations / workspaces / permissions
865
+ "org",
856
866
  "orgs",
867
+ "organisation",
868
+ "workspace",
857
869
  "workspaces",
858
870
  "tenant",
859
871
  "tenants",
872
+ "role",
873
+ "roles",
860
874
  "permission",
861
875
  "permissions",
862
876
  // Auth / security
@@ -864,8 +878,12 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
864
878
  "scim",
865
879
  "token",
866
880
  "tokens",
881
+ "apikey",
867
882
  "api-key",
868
883
  "api-keys",
884
+ "keys",
885
+ "secret",
886
+ "secrets",
869
887
  // Billing / commerce
870
888
  "coupon",
871
889
  "coupons",
@@ -879,12 +897,19 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
879
897
  "billing-portal",
880
898
  // Infrastructure / environments
881
899
  "production",
900
+ "prod",
882
901
  "canary",
902
+ "internal",
883
903
  "restricted",
884
904
  // Communication
885
905
  "conversations",
886
906
  "reactions",
887
907
  "mentions",
908
+ "channel",
909
+ "channels",
910
+ "inbox",
911
+ "no-reply",
912
+ "noreply",
888
913
  // Legal / trust / web standards
889
914
  "accessibility",
890
915
  "imprint",
@@ -902,6 +927,7 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
902
927
  "incident",
903
928
  "incidents",
904
929
  "what-is-new",
930
+ "whatsnew",
905
931
  // Special files
906
932
  "index",
907
933
  "index\\.html",
@@ -921,24 +947,26 @@ var FORBIDDEN_USERNAMES_REGEXPS = [
921
947
  "(\\..*)",
922
948
  // Username starting with xxx-
923
949
  "(xxx-.*)",
924
- // Usernames containing inappropriate/adult content keywords
925
- "(.*porn.*)",
926
- "(.*vagina.*)",
927
- "(.*dildo.*)",
928
- "(.*nsfw.*)",
929
- "(.*hentai.*)",
930
- "(.*cunt.*)",
931
- "(.*fuck.*)",
932
- "(.*shit.*)",
933
- "(.*bitch.*)",
934
- "(.*slut.*)",
935
- "(.*whore.*)",
936
- "(.*boob.*)",
937
- "(.*tits.*)",
938
- // Words that require non-letter boundaries to avoid false positives with
939
- // legitimate surnames (Dickens, Hancock, Nudelman) and words (Uranus, pussycat, snaked)
950
+ // Usernames containing inappropriate/adult content keywords.
951
+ // Each entry requires non-letter boundaries on both sides so the keyword only
952
+ // matches as a whole word — this avoids false positives like Akshit (shit),
953
+ // Hancock (cock), Nudelman (nude), Uranus (anus), pussycat (pussy),
954
+ // snaked (naked), scunthorpe (cunt), christoph-dick-media (dick — legitimate
955
+ // German surname, not blocked), etc.
956
+ "((.+[^a-z]|)porn([^a-z].+|))",
957
+ "((.+[^a-z]|)vagina([^a-z].+|))",
958
+ "((.+[^a-z]|)dildo([^a-z].+|))",
959
+ "((.+[^a-z]|)nsfw([^a-z].+|))",
960
+ "((.+[^a-z]|)hentai([^a-z].+|))",
961
+ "((.+[^a-z]|)cunt([^a-z].+|))",
962
+ "((.+[^a-z]|)fuck([^a-z].+|))",
963
+ "((.+[^a-z]|)shit([^a-z].+|))",
964
+ "((.+[^a-z]|)bitch([^a-z].+|))",
965
+ "((.+[^a-z]|)slut([^a-z].+|))",
966
+ "((.+[^a-z]|)whore([^a-z].+|))",
967
+ "((.+[^a-z]|)boob([^a-z].+|))",
968
+ "((.+[^a-z]|)tits([^a-z].+|))",
940
969
  "((.+[^a-z]|)cock([^a-z].+|))",
941
- "((.+[^a-z]|)dick([^a-z].+|))",
942
970
  "((.+[^a-z]|)anus([^a-z].+|))",
943
971
  "((.+[^a-z]|)pussy([^a-z].+|))",
944
972
  "((.+[^a-z]|)nude([^a-z].+|))",