@falsejs/falsejs 2.0.0 → 3.0.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/biome.json CHANGED
@@ -6,10 +6,6 @@
6
6
  "clientKind": "git",
7
7
  "useIgnoreFile": true
8
8
  },
9
-
10
- "files": {
11
- "ignoreUnknown": false
12
- },
13
9
  "formatter": {
14
10
  "enabled": true,
15
11
  "formatWithErrors": false,
@@ -53,5 +49,13 @@
53
49
  "organizeImports": "off"
54
50
  }
55
51
  }
56
- }
52
+ },
53
+ "files": {
54
+ "includes": [
55
+ "**",
56
+ "!dist/**",
57
+ "!node_modules/**"
58
+ ],
59
+ "ignoreUnknown": false
60
+ }
57
61
  }
@@ -0,0 +1,46 @@
1
+ /** biome-ignore-all lint/complexity/noStaticOnlyClass: BRO ITS A D.TS FILE */
2
+ type COMPATIBILITY_MODE_PARAM = "none" | "ie5" | "netscape" | "opera_presto";
3
+
4
+ export default class falsejs {
5
+
6
+ static COMPATIBILITY_MODE: {
7
+ readonly NONE: "none",
8
+ readonly IE5: "ie5",
9
+ readonly NETSCAPE: "netscape",
10
+ readonly OPERA_PRESTO: "opera_presto"
11
+ }
12
+
13
+ /**
14
+ * Returns false from the given parameters.
15
+ *
16
+ * @param {"yes"|"no"} loggingEnabled - Indicates whether logging should be enabled.
17
+ * @param {"yes"|"no"} shouldDoSomethingAsync - A pointless option that indicates whether something should be done asynchronously that just waits 200ms before saying "Did something async"
18
+ * @param {"yes"|"no"} shouldDoSomethingAsyncWithIsTenThousand - Indicates whether something should be done asynchronously when checking the self equality of 10,000 using the isTenThousand module (credits to james-work-account)
19
+ * @param {"yes"|"no"} disableAprilFoolsSideEffects - Indicates whether April Fools side effects should be disabled.
20
+ * @param {"yes"|"no"} definitelyDisableAprilFoolsSideEffects - Indicates whether April Fools side effects should be definitely disabled.
21
+ * @param {"yes"|"no"} strictDisableAprilFoolsSideEffectsCheck - Indicates whether strict checking for disabling April Fools side effects should be enabled.
22
+ * @param {"none"|"ie5"|"netscape"|"opera_presto"} compatibilityMode - The compatibility mode for various legcay browser environments.
23
+ * @returns {boolean} - The calculated boolean value 'false'.
24
+ */
25
+ static False(
26
+ loggingEnabled?: "yes" | "no",
27
+ shouldDoSomethingAsync?: "yes" | "no",
28
+ shouldDoSomethingAsyncWithIsTenThousand?: "yes" | "no",
29
+ disableAprilFoolsSideEffects?: "yes" | "no",
30
+ definitelyDisableAprilFoolsSideEffects?: "yes" | "no",
31
+ strictDisableAprilFoolsSideEffectsCheck?: "yes" | "no",
32
+ compatibilityMode?: COMPATIBILITY_MODE_PARAM
33
+ ): boolean
34
+
35
+ /**
36
+ * Checks if a given value is false.
37
+ *
38
+ * @param {any} value - The value to be checked.
39
+ * @returns {boolean} - True if the value is false, false otherwise.
40
+ */
41
+
42
+ static isFalse(value: any, loggingEnabled?: "yes" | "no"): boolean
43
+
44
+ static injectIntojQuery(): void
45
+ static expressMiddleware(req: any, res: any, next: any): void
46
+ }