@luxass/utils 2.7.0 → 2.7.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.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isNotNull, isNotNullish, isNotUndefined, isTruthy } from "./guards-O1HGJraI.js";
|
|
2
2
|
import { capitalize, dedent, dedentRaw, formatStr, sanitizeIdentifier, toCamelCase, toKebabCase, toPascalCase, toSnakeCase } from "./string-BlwTLoKD.js";
|
|
3
3
|
import { clamp } from "./number-BS9T5WGO.js";
|
|
4
|
-
import { getChangedKeys, getOwnProperty, hasOwnProperty, omit } from "./object-
|
|
5
|
-
import { appendTrailingSlash, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-
|
|
4
|
+
import { getChangedKeys, getOwnProperty, hasOwnProperty, omit } from "./object-DWHqMFiC.js";
|
|
5
|
+
import { appendTrailingSlash, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-UEx_WP0U.js";
|
|
6
6
|
import pRetry from "p-retry";
|
|
7
7
|
|
|
8
8
|
//#region src/common.ts
|
|
@@ -19,7 +19,7 @@ function hasOwnProperty(obj, key) {
|
|
|
19
19
|
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
20
20
|
}
|
|
21
21
|
function getOwnProperty(obj, key) {
|
|
22
|
-
if (!hasOwnProperty(obj, key)) return
|
|
22
|
+
if (!hasOwnProperty(obj, key)) return;
|
|
23
23
|
return obj[key];
|
|
24
24
|
}
|
|
25
25
|
/**
|
package/dist/object.js
CHANGED
|
@@ -119,8 +119,7 @@ function joinURL(base, ...segments) {
|
|
|
119
119
|
if (path.length > 0) {
|
|
120
120
|
const pathTrailing = path[path.length - 1] === "/";
|
|
121
121
|
const segLeading = seg[0] === "/";
|
|
122
|
-
|
|
123
|
-
if (both) path += seg.slice(1);
|
|
122
|
+
if (pathTrailing && segLeading) path += seg.slice(1);
|
|
124
123
|
else path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
125
124
|
} else path += seg;
|
|
126
125
|
}
|
package/dist/path.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-
|
|
1
|
+
import { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash } from "./path-UEx_WP0U.js";
|
|
2
2
|
|
|
3
3
|
export { appendTrailingSlash, joinURL, prependLeadingSlash, trimLeadingSlash, trimTrailingSlash };
|
package/dist/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luxass/utils",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.2",
|
|
4
4
|
"description": "A collection of utilities for JavaScript/TypeScript",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"email": "lucasnrgaard@gmail.com",
|
|
9
9
|
"url": "https://luxass.dev"
|
|
10
10
|
},
|
|
11
|
-
"packageManager": "pnpm@10.
|
|
11
|
+
"packageManager": "pnpm@10.16.0",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"homepage": "https://github.com/luxass/utils",
|
|
14
14
|
"repository": {
|
|
@@ -50,17 +50,17 @@
|
|
|
50
50
|
"typecheck": "tsc --noEmit"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"p-retry": "^
|
|
53
|
+
"p-retry": "^7.0.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@luxass/eslint-config": "^5.
|
|
57
|
-
"@types/node": "^22.
|
|
56
|
+
"@luxass/eslint-config": "^5.3.1",
|
|
57
|
+
"@types/node": "^22.18.3",
|
|
58
58
|
"@vitest/coverage-v8": "3.2.4",
|
|
59
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.35.0",
|
|
60
60
|
"eslint-plugin-format": "^1.0.1",
|
|
61
61
|
"publint": "^0.3.12",
|
|
62
|
-
"tsdown": "^0.
|
|
63
|
-
"typescript": "^5.
|
|
62
|
+
"tsdown": "^0.15.1",
|
|
63
|
+
"typescript": "^5.9.2",
|
|
64
64
|
"vitest": "^3.2.4",
|
|
65
65
|
"vitest-package-exports": "^0.1.1"
|
|
66
66
|
}
|