netlify-cli 15.5.1 → 15.6.0
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/npm-shrinkwrap.json +49 -49
- package/package.json +4 -4
- package/src/commands/base-command.mjs +1 -0
- package/src/utils/feature-flags.mjs +19 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.6.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "netlify-cli",
|
|
9
|
-
"version": "15.
|
|
9
|
+
"version": "15.6.0",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@bugsnag/js": "7.20.2",
|
|
14
14
|
"@fastify/static": "6.10.2",
|
|
15
|
-
"@netlify/build": "29.12.
|
|
16
|
-
"@netlify/build-info": "7.0.
|
|
17
|
-
"@netlify/config": "20.
|
|
15
|
+
"@netlify/build": "29.12.6",
|
|
16
|
+
"@netlify/build-info": "7.0.7",
|
|
17
|
+
"@netlify/config": "20.5.1",
|
|
18
18
|
"@netlify/edge-bundler": "8.16.2",
|
|
19
19
|
"@netlify/framework-info": "9.8.10",
|
|
20
20
|
"@netlify/local-functions-proxy": "1.1.1",
|
|
@@ -650,13 +650,13 @@
|
|
|
650
650
|
"integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
|
|
651
651
|
},
|
|
652
652
|
"node_modules/@netlify/build": {
|
|
653
|
-
"version": "29.12.
|
|
654
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.12.
|
|
655
|
-
"integrity": "sha512-
|
|
653
|
+
"version": "29.12.6",
|
|
654
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.12.6.tgz",
|
|
655
|
+
"integrity": "sha512-qTeitoi5KOxjuta5/qPyUC7d5NfqTmc6xT+EohAZKOzgz8C5Bto/hfh+jbmAlfoNnyL20MVngn1wNXKJRZVRAA==",
|
|
656
656
|
"dependencies": {
|
|
657
657
|
"@bugsnag/js": "^7.0.0",
|
|
658
658
|
"@netlify/cache-utils": "^5.1.5",
|
|
659
|
-
"@netlify/config": "^20.
|
|
659
|
+
"@netlify/config": "^20.5.1",
|
|
660
660
|
"@netlify/edge-bundler": "8.16.2",
|
|
661
661
|
"@netlify/framework-info": "^9.8.10",
|
|
662
662
|
"@netlify/functions-utils": "^5.2.12",
|
|
@@ -716,9 +716,9 @@
|
|
|
716
716
|
}
|
|
717
717
|
},
|
|
718
718
|
"node_modules/@netlify/build-info": {
|
|
719
|
-
"version": "7.0.
|
|
720
|
-
"resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.0.
|
|
721
|
-
"integrity": "sha512-
|
|
719
|
+
"version": "7.0.7",
|
|
720
|
+
"resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.0.7.tgz",
|
|
721
|
+
"integrity": "sha512-DAGbkrs+h0s8+1K7+INBWMrF80fkHzEAUrGzZdZ1q3HSNXKuP4wiBfnbdn7Ls0FLAwldS2edqVpBA7dy66KatQ==",
|
|
722
722
|
"dependencies": {
|
|
723
723
|
"@bugsnag/js": "^7.20.0",
|
|
724
724
|
"@netlify/framework-info": "^9.8.10",
|
|
@@ -1223,9 +1223,9 @@
|
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
"node_modules/@netlify/config": {
|
|
1226
|
-
"version": "20.
|
|
1227
|
-
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.
|
|
1228
|
-
"integrity": "sha512-
|
|
1226
|
+
"version": "20.5.1",
|
|
1227
|
+
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.5.1.tgz",
|
|
1228
|
+
"integrity": "sha512-mzaEa40Xf/Ge2Vqz28p6RbqyRdV7nSHvcSPbt1ODl2MxnzMUA8MRdvHkpSuPSbBsQvFumyByDGZg9xGcDPCVhg==",
|
|
1229
1229
|
"dependencies": {
|
|
1230
1230
|
"chalk": "^5.0.0",
|
|
1231
1231
|
"cron-parser": "^4.1.0",
|
|
@@ -2702,9 +2702,9 @@
|
|
|
2702
2702
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
2703
2703
|
},
|
|
2704
2704
|
"node_modules/@octokit/core/node_modules/@octokit/types": {
|
|
2705
|
-
"version": "9.3.
|
|
2706
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
2707
|
-
"integrity": "sha512-
|
|
2705
|
+
"version": "9.3.2",
|
|
2706
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
2707
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
2708
2708
|
"dependencies": {
|
|
2709
2709
|
"@octokit/openapi-types": "^18.0.0"
|
|
2710
2710
|
}
|
|
@@ -2761,9 +2761,9 @@
|
|
|
2761
2761
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
2762
2762
|
},
|
|
2763
2763
|
"node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": {
|
|
2764
|
-
"version": "9.3.
|
|
2765
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
2766
|
-
"integrity": "sha512-
|
|
2764
|
+
"version": "9.3.2",
|
|
2765
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
2766
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
2767
2767
|
"dependencies": {
|
|
2768
2768
|
"@octokit/openapi-types": "^18.0.0"
|
|
2769
2769
|
}
|
|
@@ -2797,9 +2797,9 @@
|
|
|
2797
2797
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
2798
2798
|
},
|
|
2799
2799
|
"node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": {
|
|
2800
|
-
"version": "9.3.
|
|
2801
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
2802
|
-
"integrity": "sha512-
|
|
2800
|
+
"version": "9.3.2",
|
|
2801
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
2802
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
2803
2803
|
"dependencies": {
|
|
2804
2804
|
"@octokit/openapi-types": "^18.0.0"
|
|
2805
2805
|
}
|
|
@@ -12960,9 +12960,9 @@
|
|
|
12960
12960
|
}
|
|
12961
12961
|
},
|
|
12962
12962
|
"node_modules/type-fest": {
|
|
12963
|
-
"version": "3.
|
|
12964
|
-
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.
|
|
12965
|
-
"integrity": "sha512-
|
|
12963
|
+
"version": "3.12.0",
|
|
12964
|
+
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.12.0.tgz",
|
|
12965
|
+
"integrity": "sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA==",
|
|
12966
12966
|
"engines": {
|
|
12967
12967
|
"node": ">=14.16"
|
|
12968
12968
|
},
|
|
@@ -14138,13 +14138,13 @@
|
|
|
14138
14138
|
"integrity": "sha512-4wMPu9iN3/HL97QblBsBay3E1etIciR84izI3U+4iALY+JHCrI+a2jO0qbAZ/nxKoegypYEaiiqWXylm+/zfrw=="
|
|
14139
14139
|
},
|
|
14140
14140
|
"@netlify/build": {
|
|
14141
|
-
"version": "29.12.
|
|
14142
|
-
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.12.
|
|
14143
|
-
"integrity": "sha512-
|
|
14141
|
+
"version": "29.12.6",
|
|
14142
|
+
"resolved": "https://registry.npmjs.org/@netlify/build/-/build-29.12.6.tgz",
|
|
14143
|
+
"integrity": "sha512-qTeitoi5KOxjuta5/qPyUC7d5NfqTmc6xT+EohAZKOzgz8C5Bto/hfh+jbmAlfoNnyL20MVngn1wNXKJRZVRAA==",
|
|
14144
14144
|
"requires": {
|
|
14145
14145
|
"@bugsnag/js": "^7.0.0",
|
|
14146
14146
|
"@netlify/cache-utils": "^5.1.5",
|
|
14147
|
-
"@netlify/config": "^20.
|
|
14147
|
+
"@netlify/config": "^20.5.1",
|
|
14148
14148
|
"@netlify/edge-bundler": "8.16.2",
|
|
14149
14149
|
"@netlify/framework-info": "^9.8.10",
|
|
14150
14150
|
"@netlify/functions-utils": "^5.2.12",
|
|
@@ -14420,9 +14420,9 @@
|
|
|
14420
14420
|
}
|
|
14421
14421
|
},
|
|
14422
14422
|
"@netlify/build-info": {
|
|
14423
|
-
"version": "7.0.
|
|
14424
|
-
"resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.0.
|
|
14425
|
-
"integrity": "sha512-
|
|
14423
|
+
"version": "7.0.7",
|
|
14424
|
+
"resolved": "https://registry.npmjs.org/@netlify/build-info/-/build-info-7.0.7.tgz",
|
|
14425
|
+
"integrity": "sha512-DAGbkrs+h0s8+1K7+INBWMrF80fkHzEAUrGzZdZ1q3HSNXKuP4wiBfnbdn7Ls0FLAwldS2edqVpBA7dy66KatQ==",
|
|
14426
14426
|
"requires": {
|
|
14427
14427
|
"@bugsnag/js": "^7.20.0",
|
|
14428
14428
|
"@netlify/framework-info": "^9.8.10",
|
|
@@ -14513,9 +14513,9 @@
|
|
|
14513
14513
|
}
|
|
14514
14514
|
},
|
|
14515
14515
|
"@netlify/config": {
|
|
14516
|
-
"version": "20.
|
|
14517
|
-
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.
|
|
14518
|
-
"integrity": "sha512-
|
|
14516
|
+
"version": "20.5.1",
|
|
14517
|
+
"resolved": "https://registry.npmjs.org/@netlify/config/-/config-20.5.1.tgz",
|
|
14518
|
+
"integrity": "sha512-mzaEa40Xf/Ge2Vqz28p6RbqyRdV7nSHvcSPbt1ODl2MxnzMUA8MRdvHkpSuPSbBsQvFumyByDGZg9xGcDPCVhg==",
|
|
14519
14519
|
"requires": {
|
|
14520
14520
|
"chalk": "^5.0.0",
|
|
14521
14521
|
"cron-parser": "^4.1.0",
|
|
@@ -15387,9 +15387,9 @@
|
|
|
15387
15387
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
15388
15388
|
},
|
|
15389
15389
|
"@octokit/types": {
|
|
15390
|
-
"version": "9.3.
|
|
15391
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
15392
|
-
"integrity": "sha512-
|
|
15390
|
+
"version": "9.3.2",
|
|
15391
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
15392
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
15393
15393
|
"requires": {
|
|
15394
15394
|
"@octokit/openapi-types": "^18.0.0"
|
|
15395
15395
|
}
|
|
@@ -15436,9 +15436,9 @@
|
|
|
15436
15436
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
15437
15437
|
},
|
|
15438
15438
|
"@octokit/types": {
|
|
15439
|
-
"version": "9.3.
|
|
15440
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
15441
|
-
"integrity": "sha512-
|
|
15439
|
+
"version": "9.3.2",
|
|
15440
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
15441
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
15442
15442
|
"requires": {
|
|
15443
15443
|
"@octokit/openapi-types": "^18.0.0"
|
|
15444
15444
|
}
|
|
@@ -15466,9 +15466,9 @@
|
|
|
15466
15466
|
"integrity": "sha512-V8GImKs3TeQRxRtXFpG2wl19V7444NIOTDF24AWuIbmNaNYOQMWRbjcGDXV5B+0n887fgDcuMNOmlul+k+oJtw=="
|
|
15467
15467
|
},
|
|
15468
15468
|
"@octokit/types": {
|
|
15469
|
-
"version": "9.3.
|
|
15470
|
-
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.
|
|
15471
|
-
"integrity": "sha512-
|
|
15469
|
+
"version": "9.3.2",
|
|
15470
|
+
"resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz",
|
|
15471
|
+
"integrity": "sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA==",
|
|
15472
15472
|
"requires": {
|
|
15473
15473
|
"@octokit/openapi-types": "^18.0.0"
|
|
15474
15474
|
}
|
|
@@ -22926,9 +22926,9 @@
|
|
|
22926
22926
|
}
|
|
22927
22927
|
},
|
|
22928
22928
|
"type-fest": {
|
|
22929
|
-
"version": "3.
|
|
22930
|
-
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.
|
|
22931
|
-
"integrity": "sha512-
|
|
22929
|
+
"version": "3.12.0",
|
|
22930
|
+
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.12.0.tgz",
|
|
22931
|
+
"integrity": "sha512-qj9wWsnFvVEMUDbESiilKeXeHL7FwwiFcogfhfyjmvT968RXSvnl23f1JOClTHYItsi7o501C/7qVllscUP3oA=="
|
|
22932
22932
|
},
|
|
22933
22933
|
"type-is": {
|
|
22934
22934
|
"version": "1.6.18",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
3
|
"description": "Netlify command line tool",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.6.0",
|
|
5
5
|
"author": "Netlify Inc.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@bugsnag/js": "7.20.2",
|
|
46
46
|
"@fastify/static": "6.10.2",
|
|
47
|
-
"@netlify/build": "29.12.
|
|
48
|
-
"@netlify/build-info": "7.0.
|
|
49
|
-
"@netlify/config": "20.
|
|
47
|
+
"@netlify/build": "29.12.6",
|
|
48
|
+
"@netlify/build-info": "7.0.7",
|
|
49
|
+
"@netlify/config": "20.5.1",
|
|
50
50
|
"@netlify/edge-bundler": "8.16.2",
|
|
51
51
|
"@netlify/framework-info": "9.8.10",
|
|
52
52
|
"@netlify/local-functions-proxy": "1.1.1",
|
|
@@ -527,6 +527,7 @@ export default class BaseCommand extends Command {
|
|
|
527
527
|
pathPrefix,
|
|
528
528
|
scheme,
|
|
529
529
|
offline,
|
|
530
|
+
siteFeatureFlagPrefix: 'cli',
|
|
530
531
|
})
|
|
531
532
|
} catch (error_) {
|
|
532
533
|
const isUserError = error_.customErrorInfo !== undefined && error_.customErrorInfo.type === 'resolveConfig'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allows us to check if a feature flag is enabled for a site.
|
|
3
|
+
* Due to versioning of the cli, and the desire to remove flags from
|
|
4
|
+
* our feature flag service when they should always evaluate to true,
|
|
5
|
+
* we can't just look for the presense of {featureFlagName: true}, as
|
|
6
|
+
* the absense of a flag should also evaluate to the flag being enabled.
|
|
7
|
+
* Instead, we return that the feature flag is enabled if it isn't
|
|
8
|
+
* specifically set to false in the response
|
|
9
|
+
* @param {*} siteInfo
|
|
10
|
+
* @param {string} flagName
|
|
11
|
+
*
|
|
12
|
+
* @returns {boolean}
|
|
13
|
+
*/
|
|
14
|
+
export const isFeatureFlagEnabled = (flagName, siteInfo) => {
|
|
15
|
+
if (siteInfo.feature_flags && siteInfo.feature_flags[flagName] !== false) {
|
|
16
|
+
return true
|
|
17
|
+
}
|
|
18
|
+
return false
|
|
19
|
+
}
|