@falsejs/falsejs 3.3.2 → 4.0.1

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.
@@ -0,0 +1,3 @@
1
+ # Contributing
2
+
3
+ We don't care *how* you contribute, as long as you *do* contribute.
package/LICENSE CHANGED
@@ -1,7 +1,30 @@
1
- Copyright 2025 10x'ly Made.
1
+ Enterprise General Public Software License 10x
2
+ Version 1.0 (EGPSL10X-1.0)
2
3
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+ Copyright (c) 2025 10x'ly Made Software Ventures AB
4
5
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+ This license is a guide on your rights to use the Software, redistribute the Software, and any other rights pertaining/related to the Software. Read this entire license carefully before using the Software.
7
+ This license is in the public domain.
6
8
 
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+ Definitions:
10
+
11
+ 1. The "License" or "license" is this text laying out the terms and conditions of the Software.
12
+ 2. The "Software" is the software that you are currently using that uses this license.
13
+
14
+ Terms:
15
+
16
+ 1. the User can do absolutely whatever they want with the Software.
17
+ 2. Additional terms: the creator of the Software is not responsible for anything that may happen to you that resulted from the use of the Software, which includes, but is not limited to: death, endless crying, laughing, embarassment, over-seriousness, under-seriousness, bloating, cancer, tuberculosis, addiction, war crimes, criminal acts, human trafficking, homocide, physical injury, disease, overdose, ligma, arthiritis, ect. It's not Their Problem.
18
+ 3. To the fullest extent permitted by law, the creator(s) of this work dedicate all copyright and related rights in this work to the public domain worldwide, EXCEPT, depending on the Schrodinger state of the universe, certain individuals who have ever read or viewed any portion of this license text, including the notice above, if the superposition collapses right.
19
+
20
+ Other Notes:
21
+
22
+ 1. If anything is vague in this license, you can add your own details to the License. After all, just do whatever you want.
23
+
24
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ BY USING THIS SOFTWARE, YOU AGREE THAT ANY ARGUMENTS RELATED TO THE SOFTWARE HAVE AN ASSUMPTION THAT YOU HAVE READ THIS ENTIRE LICENSE. TO AVOID LEGAL CONFLICTS, PLEASE READ THE ENTIRETY OF THIS LICENSE, OR DON'T, BUT AT YOUR OWN RISK.
27
+
28
+ IF YOU DO NOT WANT TO READ THIS WHOLE LICENSE, ALL YOU NEED TO READ IS ON THE LAST LINE OF THIS FILE.
29
+
30
+ Do whatever you want with the Software.
package/README.md CHANGED
@@ -4,8 +4,7 @@
4
4
 
5
5
  #### Better than the keyword itself.
6
6
 
7
- Ever wondered what would happen if JavaScript changed the `false` keyword to something else, like `no`, `nope`, `noway`, or something else? Chaos. That is what FalseJS is for.
8
-
7
+ Ever wondered what would happen if JavaScript changed the `false` keyword to something else, like `no`, `nope`, `noway`, or something else? Chaos. That is what FalseJS is for. At the very beginning of the code, it checks if `false` and `true` don't exist, and if it does, it redefines them. That's one of the main reasons to use this library, if `false` doesn't exist, this will still work (hopefully).
9
8
 
10
9
 
11
10
  The 10 attempts to get the value of false ensure that if one fails, it will go on to the next, so if JavaScript breaks one, there will still be more attempts. This is an alternative to the library `false` by mde, which uses the hardcoded boolean value `false` (which I believe they are trying to resolve on the sister library `true`, which will probably be passed down to the `false` library), and is way too short. FalseJS is way better. It includes checks for whether your computer is on fire as well, just in case it *is* on fire.
@@ -219,6 +218,9 @@ const falseValue = falsejs.False(
219
218
  ```
220
219
 
221
220
  ## Important
221
+ Note: Installing FalseJS may show you a lot of deprecation warnings and vulnerabilities. This is normal, as FalseJS installs a total of more than 1000 dependencies. Don't worry, that's for a good reason - they're all used.
222
+
223
+ ## Other important note
222
224
  In the console you may see this error:
223
225
  ```
224
226
  Warning: React does not recognize the `getMember` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `getmember` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
@@ -241,6 +243,6 @@ FalseJS uses multiple libraries for testing. Run `npm test` to test FalseJS.
241
243
 
242
244
  ## License
243
245
 
244
- FalseJS uses the MIT license.
246
+ FalseJS uses the [EGPSL10X-1.0](https://github.com/10xEngineersQualityProgramming/EGPSL10X-1.0) license
245
247
 
246
248
  ## made with HEAVY BLACK HEART U+2764
package/index.d.ts ADDED
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Type definitions for FalseJS
3
+ */
4
+
5
+ export interface FalseJS {
6
+ /**
7
+ * The core False function.
8
+ * Accepts configuration strings and a compatibility mode.
9
+ */
10
+ False: (...args: (string | any)[]) => false
11
+
12
+ /**
13
+ * Validates if a value is strictly false.
14
+ */
15
+ isFalse: (value: any) => value is false
16
+
17
+ /**
18
+ * Injects FalseJS functionality into a global jQuery instance.
19
+ */
20
+ injectIntojQuery: () => void
21
+
22
+ /**
23
+ * Express.js middleware that attaches False and isFalse to the request object.
24
+ */
25
+ expressMiddleware: (req: any, res: any, next: () => void) => void
26
+
27
+ /**
28
+ * Compatibility constants nested strictly under the default export.
29
+ */
30
+ COMPATIBILITY_MODE: {
31
+ NONE: "none"
32
+ NETSCAPE: "netscape"
33
+ IE5: "ie5"
34
+ OPERA_PRESTO: "opera_presto"
35
+ }
36
+ }
37
+
38
+ /**
39
+ * The single default export representing the library object.
40
+ */
41
+ declare const falsejs: FalseJS
42
+
43
+ export default falsejs