@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.
- package/CONTRIBUTING.md +3 -0
- package/LICENSE +27 -4
- package/README.md +5 -3
- package/index.d.ts +43 -0
- package/index.js +2981 -0
- package/package.json +17 -38
- package/packages-to-remove.txt +0 -1
- package/preinstall.js +7 -7
- package/dist/index.d.ts +0 -46
- package/dist/index.js +0 -1904
- package/dist/index.js.map +0 -1
- package/spec/ava.test.js +0 -38
- package/spec/jasmine.test.js +0 -71
- package/spec/jest.test.js +0 -90
- package/spec/manual.test.js +0 -80
- package/spec/mocha.test.js +0 -73
- package/spec/qunit.test.js +0 -44
- package/spec/run_all_tests.js +0 -182
- package/spec/tape.test.js +0 -37
- package/tsconfig.json +0 -45
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@falsejs/falsejs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Returns false.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "node
|
|
7
|
+
"test": "node index.test.js",
|
|
8
8
|
"preinstall": "node preinstall",
|
|
9
9
|
"lint": "npx @biomejs/biome check --write",
|
|
10
10
|
"build": "tsc"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"-": "^0.0.1",
|
|
16
16
|
"@_immo/return": "^1.1.1",
|
|
17
|
+
"@10xly/strict-equals": "^1.0.0",
|
|
17
18
|
"@ahsm/noop": "^1.0.0",
|
|
18
19
|
"@colors/colors": "^1.6.0",
|
|
19
20
|
"@extremejs/utils": "^1.0.0-beta.22",
|
|
@@ -24,15 +25,15 @@
|
|
|
24
25
|
"@kgryte/noop": "^1.0.0",
|
|
25
26
|
"@not-js/not": "^1.1.0",
|
|
26
27
|
"@onesneakymofo/the-number-seven": "^1.1.0",
|
|
28
|
+
"@overkill/is-wds": "^1.3.0",
|
|
29
|
+
"@rightpad/concat": "^1.0.0",
|
|
27
30
|
"@ryotah/noop": "^1.0.0",
|
|
28
31
|
"@sir_wernich/taco-wrap": "^1.0.8",
|
|
29
32
|
"@stdlib/utils-noop": "^0.2.2",
|
|
30
33
|
"@types/bluebird": "^3.5.42",
|
|
31
34
|
"@types/cli-color": "^2.0.6",
|
|
32
|
-
"@types/express": "^5.0.4",
|
|
33
35
|
"@types/lodash.noop": "^3.0.9",
|
|
34
36
|
"@types/luaparse": "^0.2.13",
|
|
35
|
-
"@vue/server-renderer": "^3.5.11",
|
|
36
37
|
"@zodash/noop": "^1.1.8",
|
|
37
38
|
"a-black-hole": "^1.0.0",
|
|
38
39
|
"always-21": "^1.0.0",
|
|
@@ -40,7 +41,6 @@
|
|
|
40
41
|
"always-thirteen": "^1.0.3",
|
|
41
42
|
"ansi-colors": "^4.1.3",
|
|
42
43
|
"append-type": "^1.0.2",
|
|
43
|
-
"are-strictly-equal": "^1.0.0",
|
|
44
44
|
"array-get-member": "^1.0.1",
|
|
45
45
|
"assert-fn": "^1.0.0",
|
|
46
46
|
"async.util.noop": "^0.5.2",
|
|
@@ -60,13 +60,15 @@
|
|
|
60
60
|
"convert-to-lower-case": "^3.0.1",
|
|
61
61
|
"cowsay": "^1.6.0",
|
|
62
62
|
"dolphin-fact": "^1.2.2",
|
|
63
|
-
"dont-install-me": "^1.0.0",
|
|
64
63
|
"eight-toolkit": "^1.0.0",
|
|
65
64
|
"eighteen-positive-number-interactions": "^1.0.0",
|
|
66
65
|
"eleven": "^0.0.1",
|
|
67
66
|
"emoji-100": "^1.3.0",
|
|
68
67
|
"empty-string": "^1.1.1",
|
|
69
|
-
"
|
|
68
|
+
"enterprise-number-classification-sdk": "^1.0.2-enterprise.stable",
|
|
69
|
+
"es-logical-and-operator": "^1.0.0",
|
|
70
|
+
"es-logical-not-operator": "^1.0.0",
|
|
71
|
+
"es-logical-or-operator": "^1.0.0",
|
|
70
72
|
"es2015-noop": "^1.0.0",
|
|
71
73
|
"examplebyraji": "^1.0.0",
|
|
72
74
|
"exit": "^0.1.2",
|
|
@@ -111,7 +113,6 @@
|
|
|
111
113
|
"is-freebsd": "^1.0.3",
|
|
112
114
|
"is-friday": "^1.0.1",
|
|
113
115
|
"is-hundred": "^0.10.0",
|
|
114
|
-
"is-hundred-thousand": "^10000000000001.10000000000001.10000000000000",
|
|
115
116
|
"is-integer-odd": "^3.0.1",
|
|
116
117
|
"is-is-odd": "^1.0.2",
|
|
117
118
|
"is-january": "^1.0.2",
|
|
@@ -123,11 +124,7 @@
|
|
|
123
124
|
"is-monday": "^0.0.1",
|
|
124
125
|
"is-nan": "^1.3.2",
|
|
125
126
|
"is-negative-zero": "^2.0.3",
|
|
126
|
-
"is-nine": "^9.0.19",
|
|
127
|
-
"is-nonpresent": "^1.0.0",
|
|
128
|
-
"is-not-typed-array": "^1.0.0",
|
|
129
127
|
"is-november": "^1.0.3",
|
|
130
|
-
"is-npm": "^6.0.0",
|
|
131
128
|
"is-num-odd": "^0.0.1",
|
|
132
129
|
"is-number": "^7.0.0",
|
|
133
130
|
"is-number-odd-or-even": "^1.0.5",
|
|
@@ -140,7 +137,6 @@
|
|
|
140
137
|
"is-odd-number": "^1.0.0",
|
|
141
138
|
"is-one": "^1.0.0",
|
|
142
139
|
"is-osx": "^1.0.2",
|
|
143
|
-
"is-plain-object": "^5.0.0",
|
|
144
140
|
"is-precisely-true": "^1.0.0",
|
|
145
141
|
"is-real-boolean": "^1.0.0",
|
|
146
142
|
"is-saturday": "^1.0.0",
|
|
@@ -175,8 +171,6 @@
|
|
|
175
171
|
"lodash._noop": "^2.2.1",
|
|
176
172
|
"lodash.constant": "^3.0.0",
|
|
177
173
|
"lodash.noop": "^3.0.1",
|
|
178
|
-
"log": "^6.3.1",
|
|
179
|
-
"log-node": "^8.0.3",
|
|
180
174
|
"logtoconsole": "^1.0.7",
|
|
181
175
|
"lolcatjs": "^2.4.3",
|
|
182
176
|
"lua-interpreter": "^0.0.3",
|
|
@@ -195,7 +189,6 @@
|
|
|
195
189
|
"nooop": "^1.0.0",
|
|
196
190
|
"noop-exec": "^1.0.0",
|
|
197
191
|
"noop-fn": "^1.0.0",
|
|
198
|
-
"noop-logger": "^0.1.1",
|
|
199
192
|
"noop10": "^1.0.3",
|
|
200
193
|
"noop2": "^2.0.0",
|
|
201
194
|
"noop3": "^1000.0.0",
|
|
@@ -215,7 +208,6 @@
|
|
|
215
208
|
"numbertwenty": "^1.0.2",
|
|
216
209
|
"numeric-constant-three": "^1.0.0",
|
|
217
210
|
"once-noop": "^1.0.1",
|
|
218
|
-
"open": "^8.4.2",
|
|
219
211
|
"owoifyx": "^1.0.4",
|
|
220
212
|
"pad": "^3.2.0",
|
|
221
213
|
"phone-number-generator-js": "^1.2.12",
|
|
@@ -257,6 +249,8 @@
|
|
|
257
249
|
"uuid": "^10.0.0",
|
|
258
250
|
"uwuifier": "^4.2.2",
|
|
259
251
|
"value-nine": "^9.0.0",
|
|
252
|
+
"vanilla-javascript": "^1.1.6",
|
|
253
|
+
"vapor-js-npm": "^1.4.6",
|
|
260
254
|
"voidfn": "^1.0.0",
|
|
261
255
|
"vretriever": "^1.0.0",
|
|
262
256
|
"weird-instanceof": "^1.0.0",
|
|
@@ -377,29 +371,14 @@
|
|
|
377
371
|
"browse",
|
|
378
372
|
"is-odd",
|
|
379
373
|
"is-is-odd",
|
|
380
|
-
"meaning-of-life"
|
|
374
|
+
"meaning-of-life",
|
|
375
|
+
"10xly-made",
|
|
376
|
+
"10x-engineer",
|
|
377
|
+
"enterprise",
|
|
378
|
+
"sigma"
|
|
381
379
|
],
|
|
382
380
|
"devDependencies": {
|
|
383
381
|
"@biomejs/biome": "2.2.6",
|
|
384
|
-
"@types/chalk": "^0.4.31",
|
|
385
|
-
"@types/cheerio": "^0.22.35",
|
|
386
|
-
"@types/get-intrinsic": "^1.2.3",
|
|
387
|
-
"@types/jquery": "^3.5.33",
|
|
388
|
-
"@types/jsdom": "^27.0.0",
|
|
389
|
-
"@types/lodash": "^4.17.20",
|
|
390
|
-
"@types/node": "^24.9.1",
|
|
391
|
-
"@types/react": "^19.2.2",
|
|
392
|
-
"@types/react-dom": "^19.2.2",
|
|
393
|
-
"@types/striptags": "^0.0.5",
|
|
394
|
-
"@types/underscore": "^1.13.0",
|
|
395
|
-
"ava": "^6.4.1",
|
|
396
|
-
"chai": "^6.2.1",
|
|
397
|
-
"jake": "^10.9.4",
|
|
398
|
-
"jasmine": "^5.13.0",
|
|
399
|
-
"jest": "^30.2.0",
|
|
400
|
-
"mocha": "^11.7.5",
|
|
401
|
-
"qunit": "^2.24.3",
|
|
402
|
-
"tape": "^5.9.0",
|
|
403
382
|
"typescript": "^5.9.3"
|
|
404
383
|
}
|
|
405
384
|
}
|
package/packages-to-remove.txt
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm uninstall is-computer-on is-computer-off node-script-running is-require-working vapor-js-npm vanilla-javascript ecto1 false true make-jquery-global
|
package/preinstall.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
console.log(`
|
|
2
|
-
----------------------
|
|
3
|
-
FALSEJS WARNING:
|
|
4
|
-
|
|
5
|
-
Warning: Installing FalseJS may show a lot of deprecation warnings. Ignore these as FalseJS is totally safe and has no vulnerabilities through the function that could be dangerous to your project.
|
|
6
|
-
------------------------
|
|
7
|
-
`)
|
|
1
|
+
console.log(`
|
|
2
|
+
----------------------
|
|
3
|
+
FALSEJS WARNING:
|
|
4
|
+
|
|
5
|
+
Warning: Installing FalseJS may show a lot of deprecation warnings. Ignore these as FalseJS is totally safe and has no vulnerabilities through the function that could be dangerous to your project.
|
|
6
|
+
------------------------
|
|
7
|
+
`)
|
package/dist/index.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
}
|