@falsejs/falsejs 3.1.1 → 3.3.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.
- package/README.md +7 -1
- package/biome.json +7 -11
- package/dist/index.js +1903 -1746
- package/dist/index.js.map +1 -1
- package/package.json +405 -404
- package/preinstall.js +7 -0
- package/spec/ava.test.js +38 -0
- package/spec/jasmine.test.js +71 -0
- package/spec/jest.test.js +90 -0
- package/spec/manual.test.js +80 -0
- package/spec/mocha.test.js +73 -0
- package/spec/qunit.test.js +44 -0
- package/spec/run_all_tests.js +182 -0
- package/spec/tape.test.js +37 -0
- package/tsconfig.json +45 -45
- package/Sanity.md +0 -17
package/README.md
CHANGED
|
@@ -10,6 +10,8 @@ Ever wondered what would happen if JavaScript changed the `false` keyword to som
|
|
|
10
10
|
|
|
11
11
|
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.
|
|
12
12
|
|
|
13
|
+
If you're looking for a more lightweight package that returns `false`, use [false-value](https://github.com/js-constant/false-value).
|
|
14
|
+
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
15
17
|
Install FalseJS with your favorite package manager.
|
|
@@ -225,9 +227,13 @@ Warning: React does not recognize the `getMember` prop on a DOM element. If you
|
|
|
225
227
|
```
|
|
226
228
|
This is normal. Do not worry. FalseJS uses a package called `get-member` that adds a `getMember` method to every object. React elements are objects, so it gets confused. You may wonder why there's a React error even if you're not using React, but FalseJS uses React.
|
|
227
229
|
|
|
230
|
+
## Tests
|
|
231
|
+
FalseJS uses multiple libraries for testing. Run `npm test` to test FalseJS.
|
|
232
|
+
|
|
228
233
|
## Related Projects
|
|
229
234
|
|
|
230
|
-
- [true-value](https://github.com/
|
|
235
|
+
- [true-value](https://github.com/js-constant/false-value) (more lightweight version of this)
|
|
236
|
+
- [true-value](https://github.com/js-constant/true-value) (returns true)
|
|
231
237
|
- [false](https://github.com/mde/false)
|
|
232
238
|
- [true](https://github.com/mde/true)
|
|
233
239
|
- [alternative-true](https://github.com/donavon/alternative-true)
|
package/biome.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
"vcs": {
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true
|
|
8
|
+
},
|
|
9
9
|
"formatter": {
|
|
10
10
|
"enabled": true,
|
|
11
11
|
"formatWithErrors": false,
|
|
@@ -52,11 +52,7 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"files": {
|
|
55
|
-
|
|
56
|
-
"**",
|
|
57
|
-
"!dist",
|
|
58
|
-
"!node_modules"
|
|
59
|
-
],
|
|
55
|
+
"includes": ["**", "!dist", "!node_modules"],
|
|
60
56
|
"ignoreUnknown": false
|
|
61
|
-
|
|
57
|
+
}
|
|
62
58
|
}
|