@netlify/redirect-parser 15.0.2 → 15.0.3
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/lib/normalize.js +2 -3
- package/package.json +4 -5
package/lib/normalize.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { includeKeys } from 'filter-obj';
|
|
2
1
|
import isPlainObj from 'is-plain-obj';
|
|
3
2
|
import { normalizeConditions } from './conditions.js';
|
|
4
3
|
import { splitResults } from './results.js';
|
|
@@ -108,8 +107,8 @@ const isProxy = function (status, to) {
|
|
|
108
107
|
return status === 200 && isUrl(to);
|
|
109
108
|
};
|
|
110
109
|
const removeUndefinedValues = function (object) {
|
|
111
|
-
return
|
|
110
|
+
return Object.fromEntries(Object.entries(object).filter(([, value]) => isDefined(value)));
|
|
112
111
|
};
|
|
113
|
-
const isDefined = function (
|
|
112
|
+
const isDefined = function (value) {
|
|
114
113
|
return value !== undefined;
|
|
115
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/redirect-parser",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "Parses netlify redirects into a js object representation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@iarna/toml": "^2.2.5",
|
|
30
30
|
"fast-safe-stringify": "^2.1.1",
|
|
31
|
-
"filter-obj": "^6.0.0",
|
|
32
31
|
"is-plain-obj": "^4.0.0",
|
|
33
32
|
"path-exists": "^5.0.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^18.
|
|
35
|
+
"@types/node": "^18.19.111",
|
|
37
36
|
"typescript": "^5.0.0",
|
|
38
|
-
"vitest": "^0.
|
|
37
|
+
"vitest": "^3.0.0"
|
|
39
38
|
},
|
|
40
39
|
"repository": {
|
|
41
40
|
"type": "git",
|
|
@@ -46,5 +45,5 @@
|
|
|
46
45
|
"url": "https://github.com/netlify/build/issues"
|
|
47
46
|
},
|
|
48
47
|
"homepage": "https://github.com/netlify/build#readme",
|
|
49
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "f65a08178a04db0ad274aa62f7d46319f2ef661a"
|
|
50
49
|
}
|