netlify-cli 9.16.3 → 9.16.4

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
- "version": "9.16.3",
3
+ "version": "9.16.4",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "netlify-cli",
9
- "version": "9.16.3",
9
+ "version": "9.16.4",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
@@ -15,7 +15,7 @@
15
15
  "@netlify/framework-info": "^9.0.2",
16
16
  "@netlify/local-functions-proxy": "^1.1.1",
17
17
  "@netlify/plugin-edge-handlers": "^3.0.7",
18
- "@netlify/plugins-list": "^6.18.1",
18
+ "@netlify/plugins-list": "^6.19.0",
19
19
  "@netlify/routing-local-proxy": "^0.34.1",
20
20
  "@netlify/zip-it-and-ship-it": "^5.9.0",
21
21
  "@octokit/rest": "^18.0.0",
@@ -72,7 +72,7 @@
72
72
  "isexe": "^2.0.0",
73
73
  "jsonwebtoken": "^8.5.1",
74
74
  "jwt-decode": "^3.0.0",
75
- "lambda-local": "^2.0.1",
75
+ "lambda-local": "^2.0.2",
76
76
  "listr": "^0.14.3",
77
77
  "locate-path": "^6.0.0",
78
78
  "lodash": "^4.17.20",
@@ -4317,9 +4317,9 @@
4317
4317
  }
4318
4318
  },
4319
4319
  "node_modules/@netlify/plugins-list": {
4320
- "version": "6.18.1",
4321
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.18.1.tgz",
4322
- "integrity": "sha512-4aAF+lpoBYOIVMuTxge2YNjNKdMxnsV1equq0VtknBW6EGJ9yFiTPyL0NU0MXDWTWk7dNu8tS5+Uw7LN7+sgcg==",
4320
+ "version": "6.19.0",
4321
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.19.0.tgz",
4322
+ "integrity": "sha512-EuRZgOhP7QE0H5Sn4+LvsOKL+rcUn+ny6dzwK1V+Rj2HV0cBW2JMGxWj2IEAI1Qb0xU/Gy+Ib+bX23dCvm5LdQ==",
4323
4323
  "engines": {
4324
4324
  "node": "^12.20.0 || ^14.14.0 || >=16.0.0"
4325
4325
  }
@@ -15320,13 +15320,13 @@
15320
15320
  "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A=="
15321
15321
  },
15322
15322
  "node_modules/lambda-local": {
15323
- "version": "2.0.1",
15324
- "resolved": "https://registry.npmjs.org/lambda-local/-/lambda-local-2.0.1.tgz",
15325
- "integrity": "sha512-21AoIJYuGRPNMCEtxAOa/BP2j0fNY10IVYMQ1pRqDyhSJi5xt4r4IZUqWF40+aYU6TJ1SdB7t5s1BmSq391ILQ==",
15323
+ "version": "2.0.2",
15324
+ "resolved": "https://registry.npmjs.org/lambda-local/-/lambda-local-2.0.2.tgz",
15325
+ "integrity": "sha512-sCE0U645QdmQOx5y028kZnmvbfho4NkdAjmJuA8KdwPQS8tz9sByz281WHyEAfcBfXci/9eQxNURuL996Q8ybw==",
15326
15326
  "dependencies": {
15327
- "commander": "^8.3.0",
15328
- "dotenv": "^10.0.0",
15329
- "winston": "^3.3.3"
15327
+ "commander": "^9.0.0",
15328
+ "dotenv": "^16.0.0",
15329
+ "winston": "^3.6.0"
15330
15330
  },
15331
15331
  "bin": {
15332
15332
  "lambda-local": "build/cli.js"
@@ -15335,22 +15335,6 @@
15335
15335
  "node": ">=6"
15336
15336
  }
15337
15337
  },
15338
- "node_modules/lambda-local/node_modules/commander": {
15339
- "version": "8.3.0",
15340
- "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
15341
- "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
15342
- "engines": {
15343
- "node": ">= 12"
15344
- }
15345
- },
15346
- "node_modules/lambda-local/node_modules/dotenv": {
15347
- "version": "10.0.0",
15348
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
15349
- "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==",
15350
- "engines": {
15351
- "node": ">=10"
15352
- }
15353
- },
15354
15338
  "node_modules/latest-version": {
15355
15339
  "version": "5.1.0",
15356
15340
  "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz",
@@ -27266,9 +27250,9 @@
27266
27250
  }
27267
27251
  },
27268
27252
  "@netlify/plugins-list": {
27269
- "version": "6.18.1",
27270
- "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.18.1.tgz",
27271
- "integrity": "sha512-4aAF+lpoBYOIVMuTxge2YNjNKdMxnsV1equq0VtknBW6EGJ9yFiTPyL0NU0MXDWTWk7dNu8tS5+Uw7LN7+sgcg=="
27253
+ "version": "6.19.0",
27254
+ "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.19.0.tgz",
27255
+ "integrity": "sha512-EuRZgOhP7QE0H5Sn4+LvsOKL+rcUn+ny6dzwK1V+Rj2HV0cBW2JMGxWj2IEAI1Qb0xU/Gy+Ib+bX23dCvm5LdQ=="
27272
27256
  },
27273
27257
  "@netlify/routing-local-proxy": {
27274
27258
  "version": "0.34.1",
@@ -35617,25 +35601,13 @@
35617
35601
  "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A=="
35618
35602
  },
35619
35603
  "lambda-local": {
35620
- "version": "2.0.1",
35621
- "resolved": "https://registry.npmjs.org/lambda-local/-/lambda-local-2.0.1.tgz",
35622
- "integrity": "sha512-21AoIJYuGRPNMCEtxAOa/BP2j0fNY10IVYMQ1pRqDyhSJi5xt4r4IZUqWF40+aYU6TJ1SdB7t5s1BmSq391ILQ==",
35604
+ "version": "2.0.2",
35605
+ "resolved": "https://registry.npmjs.org/lambda-local/-/lambda-local-2.0.2.tgz",
35606
+ "integrity": "sha512-sCE0U645QdmQOx5y028kZnmvbfho4NkdAjmJuA8KdwPQS8tz9sByz281WHyEAfcBfXci/9eQxNURuL996Q8ybw==",
35623
35607
  "requires": {
35624
- "commander": "^8.3.0",
35625
- "dotenv": "^10.0.0",
35626
- "winston": "^3.3.3"
35627
- },
35628
- "dependencies": {
35629
- "commander": {
35630
- "version": "8.3.0",
35631
- "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
35632
- "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww=="
35633
- },
35634
- "dotenv": {
35635
- "version": "10.0.0",
35636
- "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz",
35637
- "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q=="
35638
- }
35608
+ "commander": "^9.0.0",
35609
+ "dotenv": "^16.0.0",
35610
+ "winston": "^3.6.0"
35639
35611
  }
35640
35612
  },
35641
35613
  "latest-version": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "netlify-cli",
3
3
  "description": "Netlify command line tool",
4
- "version": "9.16.3",
4
+ "version": "9.16.4",
5
5
  "author": "Netlify Inc.",
6
6
  "contributors": [
7
7
  "Abraham Schilling <AbrahamSchilling@gmail.com> (https://gitlab.com/n4bb12)",
@@ -211,7 +211,7 @@
211
211
  "@netlify/framework-info": "^9.0.2",
212
212
  "@netlify/local-functions-proxy": "^1.1.1",
213
213
  "@netlify/plugin-edge-handlers": "^3.0.7",
214
- "@netlify/plugins-list": "^6.18.1",
214
+ "@netlify/plugins-list": "^6.19.0",
215
215
  "@netlify/routing-local-proxy": "^0.34.1",
216
216
  "@netlify/zip-it-and-ship-it": "^5.9.0",
217
217
  "@octokit/rest": "^18.0.0",
@@ -79,6 +79,11 @@ const validateLambdaResponse = (lambdaResponse) => {
79
79
  if (lambdaResponse === undefined) {
80
80
  return { error: 'lambda response was undefined. check your function code again' }
81
81
  }
82
+ if (lambdaResponse === null) {
83
+ return {
84
+ error: 'no lambda response. check your function code again. make sure to return a promise or use the callback.',
85
+ }
86
+ }
82
87
  if (!Number(lambdaResponse.statusCode)) {
83
88
  return {
84
89
  error: `Your function response must have a numerical statusCode. You gave: $ ${lambdaResponse.statusCode}`,