@netlify/config 20.4.4 → 20.4.6
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/bin/flags.js +2 -2
- package/lib/log/cleanup.js +2 -2
- package/lib/utils/remove_falsy.js +3 -3
- package/package.json +6 -6
package/lib/bin/flags.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import process from 'process';
|
|
2
|
-
import
|
|
2
|
+
import { includeKeys } from 'filter-obj';
|
|
3
3
|
import yargs from 'yargs';
|
|
4
4
|
import { hideBin } from 'yargs/helpers';
|
|
5
5
|
import { normalizeCliFeatureFlags } from '../options/feature_flags.js';
|
|
@@ -11,7 +11,7 @@ export const parseFlags = function () {
|
|
|
11
11
|
.parse();
|
|
12
12
|
const featureFlags = normalizeCliFeatureFlags(cliFeatureFlags);
|
|
13
13
|
const flagsA = { ...flags, featureFlags };
|
|
14
|
-
const flagsB =
|
|
14
|
+
const flagsB = includeKeys(flagsA, isUserFlag);
|
|
15
15
|
return flagsB;
|
|
16
16
|
};
|
|
17
17
|
const jsonParse = function (value) {
|
package/lib/log/cleanup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { includeKeys } from 'filter-obj';
|
|
2
2
|
import { simplifyConfig } from '../simplify.js';
|
|
3
3
|
// Make sure we are not printing secret values. Use an allow list.
|
|
4
4
|
export const cleanupConfig = function ({ build: { base, command, commandOrigin, environment = {}, edge_functions: edgeFunctions, ignore, processing, publish, publishOrigin, } = {}, headers, headersOrigin, plugins = [], redirects, redirectsOrigin, baseRelDir, functions, functionsDirectory, }) {
|
|
@@ -47,7 +47,7 @@ const BUILDBOT_ENVIRONMENT = new Set([
|
|
|
47
47
|
'URL',
|
|
48
48
|
]);
|
|
49
49
|
const cleanupPlugin = function ({ package: packageName, origin, inputs = {} }) {
|
|
50
|
-
const inputsA =
|
|
50
|
+
const inputsA = includeKeys(inputs, isPublicInput);
|
|
51
51
|
return { package: packageName, origin, inputs: inputsA };
|
|
52
52
|
};
|
|
53
53
|
const isPublicInput = function (key, input) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { includeKeys } from 'filter-obj';
|
|
2
2
|
// Remove falsy values from object
|
|
3
3
|
export const removeFalsy = function (obj) {
|
|
4
|
-
return
|
|
4
|
+
return includeKeys(obj, (key, value) => isTruthy(value));
|
|
5
5
|
};
|
|
6
6
|
export const removeUndefined = function (obj) {
|
|
7
|
-
return
|
|
7
|
+
return includeKeys(obj, (key, value) => isDefined(value));
|
|
8
8
|
};
|
|
9
9
|
export const isTruthy = function (value) {
|
|
10
10
|
return isDefined(value) && (typeof value !== 'string' || value.trim() !== '');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/config",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.6",
|
|
4
4
|
"description": "Netlify config module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./lib/index.js",
|
|
@@ -63,16 +63,16 @@
|
|
|
63
63
|
"dot-prop": "^7.0.0",
|
|
64
64
|
"execa": "^6.0.0",
|
|
65
65
|
"fast-safe-stringify": "^2.0.7",
|
|
66
|
-
"figures": "^
|
|
67
|
-
"filter-obj": "^
|
|
66
|
+
"figures": "^5.0.0",
|
|
67
|
+
"filter-obj": "^5.0.0",
|
|
68
68
|
"find-up": "^6.0.0",
|
|
69
69
|
"indent-string": "^5.0.0",
|
|
70
70
|
"is-plain-obj": "^4.0.0",
|
|
71
71
|
"js-yaml": "^4.0.0",
|
|
72
72
|
"map-obj": "^5.0.0",
|
|
73
|
-
"netlify": "^13.1.
|
|
73
|
+
"netlify": "^13.1.9",
|
|
74
74
|
"netlify-headers-parser": "^7.1.2",
|
|
75
|
-
"netlify-redirect-parser": "^14.1.
|
|
75
|
+
"netlify-redirect-parser": "^14.1.3",
|
|
76
76
|
"omit.js": "^2.0.2",
|
|
77
77
|
"p-locate": "^6.0.0",
|
|
78
78
|
"path-type": "^5.0.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"engines": {
|
|
94
94
|
"node": "^14.16.0 || >=16.0.0"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "2f5a0d4c921ca8f8ae7e559410908f538ffb3d72"
|
|
97
97
|
}
|