@alextheman/utility 3.4.1 → 3.4.2
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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +20 -22
package/dist/index.cjs
CHANGED
|
@@ -397,7 +397,7 @@ var omitProperties_default = omitProperties;
|
|
|
397
397
|
//#region src/functions/parsers/parseBoolean.ts
|
|
398
398
|
function parseBoolean(inputString) {
|
|
399
399
|
const normalisedString = inputString.toLowerCase();
|
|
400
|
-
if (
|
|
400
|
+
if (!["true", "false"].includes(normalisedString)) throw new TypeError("INVALID_BOOLEAN_STRING");
|
|
401
401
|
return normalisedString === "true";
|
|
402
402
|
}
|
|
403
403
|
/** @deprecated This function has been renamed to parseBoolean. */
|
package/dist/index.js
CHANGED
|
@@ -368,7 +368,7 @@ var omitProperties_default = omitProperties;
|
|
|
368
368
|
//#region src/functions/parsers/parseBoolean.ts
|
|
369
369
|
function parseBoolean(inputString) {
|
|
370
370
|
const normalisedString = inputString.toLowerCase();
|
|
371
|
-
if (
|
|
371
|
+
if (!["true", "false"].includes(normalisedString)) throw new TypeError("INVALID_BOOLEAN_STRING");
|
|
372
372
|
return normalisedString === "true";
|
|
373
373
|
}
|
|
374
374
|
/** @deprecated This function has been renamed to parseBoolean. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alextheman/utility",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.2",
|
|
4
4
|
"description": "Helpful utility functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,6 +15,22 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"zod": "^4.1.13"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@alextheman/eslint-plugin": "^4.3.0",
|
|
23
|
+
"@types/node": "^24.10.1",
|
|
24
|
+
"eslint": "^9.39.1",
|
|
25
|
+
"globals": "^16.5.0",
|
|
26
|
+
"husky": "^9.1.7",
|
|
27
|
+
"jsdom": "^27.2.0",
|
|
28
|
+
"prettier": "^3.7.4",
|
|
29
|
+
"tsdown": "^0.17.0",
|
|
30
|
+
"typescript": "^5.9.3",
|
|
31
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
32
|
+
"vitest": "^4.0.15"
|
|
33
|
+
},
|
|
18
34
|
"scripts": {
|
|
19
35
|
"build": "tsdown",
|
|
20
36
|
"change-major": "pnpm version major -m \"Change version number to v%s\"",
|
|
@@ -32,28 +48,10 @@
|
|
|
32
48
|
"lint-prettier-javascript": "prettier --check \"./**/*.js\"",
|
|
33
49
|
"lint-prettier-typescript": "prettier --check --parser typescript \"./**/*.ts\"",
|
|
34
50
|
"lint-tsc": "tsc --noEmit",
|
|
35
|
-
"prepare": "husky",
|
|
36
51
|
"test": "vitest run",
|
|
37
52
|
"test-watch": "vitest",
|
|
38
|
-
"update-dependencies": "
|
|
53
|
+
"update-dependencies": "pnpm update --latest && pnpm update",
|
|
39
54
|
"use-live-eslint-plugin": "pnpm uninstall @alextheman/eslint-plugin && pnpm install --save-dev @alextheman/eslint-plugin",
|
|
40
55
|
"use-local-eslint-plugin": "npm --prefix ../eslint-plugin run create-local-package && pnpm uninstall @alextheman/eslint-plugin && pnpm install --save-dev ../eslint-plugin/alextheman-eslint-plugin-*.tgz"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
"zod": "^4.1.13"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@alextheman/eslint-plugin": "^4.2.3",
|
|
47
|
-
"@types/node": "^24.10.1",
|
|
48
|
-
"eslint": "^9.39.1",
|
|
49
|
-
"globals": "^16.5.0",
|
|
50
|
-
"husky": "^9.1.7",
|
|
51
|
-
"jsdom": "^27.2.0",
|
|
52
|
-
"prettier": "^3.7.2",
|
|
53
|
-
"tsdown": "^0.16.8",
|
|
54
|
-
"typescript": "^5.9.3",
|
|
55
|
-
"vite-tsconfig-paths": "^5.1.4",
|
|
56
|
-
"vitest": "^4.0.14"
|
|
57
|
-
},
|
|
58
|
-
"packageManager": "pnpm@10.24.0+sha512.01ff8ae71b4419903b65c60fb2dc9d34cf8bb6e06d03bde112ef38f7a34d6904c424ba66bea5cdcf12890230bf39f9580473140ed9c946fef328b6e5238a345a"
|
|
59
|
-
}
|
|
56
|
+
}
|
|
57
|
+
}
|