@automattic/vip 2.26.1 → 2.26.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  ## Changelog
2
2
 
3
+ ### 2.26.2
4
+
5
+ - #1278 Prepare v2.26.2
6
+ - #1277 Fix the PassThrough class import
7
+ - #1276 [dev-env] Add ability to override default options for lando with a global Lando config.yml
8
+
9
+ ### 2.26.1
10
+
11
+ - #1275 Prepare v2.26.1
12
+ - #1271 refactor(dev-env): Switch to mysql:8
13
+ - #1273 Add library for the dev-env-sync-sql command
14
+ - #1274 Run validation on filename & not on full filepath
15
+ - #1272 fix(dev-env): Suppress health warnings for new environments
16
+ - #1234 fix(dev-env): Force IPv4 for services bound to localhost
17
+
3
18
  ### 2.26.0
4
19
 
5
20
  - #1237 Skip requoting if the arg is a valid JSON Object
Binary file
@@ -29,6 +29,7 @@ var _chalk = _interopRequireDefault(require("chalk"));
29
29
  var _zlib = require("zlib");
30
30
  var _crypto = require("crypto");
31
31
  var _promises = require("node:stream/promises");
32
+ var _stream = require("stream");
32
33
  var _xml2js = require("xml2js");
33
34
  var _debug = _interopRequireDefault(require("debug"));
34
35
  var _http = _interopRequireDefault(require("../lib/api/http"));
@@ -186,7 +187,7 @@ async function uploadUsingPutObject({
186
187
  };
187
188
 
188
189
  let readBytes = 0;
189
- const progressPassThrough = new _promises.PassThrough();
190
+ const progressPassThrough = new _stream.PassThrough();
190
191
  progressPassThrough.on('data', data => {
191
192
  readBytes += data.length;
192
193
  const percentage = Math.floor(100 * readBytes / fileSize) + '%';
@@ -409,7 +410,7 @@ async function uploadParts({
409
410
  index,
410
411
  partSize
411
412
  } = part;
412
- const progressPassThrough = new _promises.PassThrough();
413
+ const progressPassThrough = new _stream.PassThrough();
413
414
  let partBytesRead = 0;
414
415
  progressPassThrough.on('data', data => {
415
416
  totalBytesRead += data.length;
@@ -19,6 +19,7 @@ var _os = _interopRequireDefault(require("os"));
19
19
  var _fs = _interopRequireDefault(require("fs"));
20
20
  var _path = _interopRequireDefault(require("path"));
21
21
  var _lando = _interopRequireDefault(require("lando/lib/lando"));
22
+ var _bootstrap = require("lando/lib/bootstrap");
22
23
  var _utils = _interopRequireDefault(require("lando/plugins/lando-core/lib/utils"));
23
24
  var _build = _interopRequireDefault(require("lando/plugins/lando-tooling/lib/build"));
24
25
  var _chalk = _interopRequireDefault(require("chalk"));
@@ -49,7 +50,7 @@ async function getLandoConfig() {
49
50
  const nodeModulesPath = _path.default.join(__dirname, '..', '..', '..', 'node_modules');
50
51
  const landoPath = _path.default.join(nodeModulesPath, 'lando');
51
52
  const atLandoPath = _path.default.join(nodeModulesPath, '@lando');
52
- debug(`Getting lando config, using paths '${landoPath}' and '${atLandoPath}' for plugins`);
53
+ debug(`Getting Lando config, using paths '${landoPath}' and '${atLandoPath}' for plugins`);
53
54
  const isLandoDebugSelected = _debug.default.enabled(DEBUG_KEY);
54
55
  const isAllDebugSelected = _debug.default.enabled('"*"');
55
56
  let logLevelConsole;
@@ -70,8 +71,9 @@ async function getLandoConfig() {
70
71
  } catch (err) {
71
72
  // Ignore
72
73
  }
73
- return {
74
+ const config = {
74
75
  logLevelConsole,
76
+ configSources: [_path.default.join(landoDir, 'config.yml')],
75
77
  landoFile: '.lando.yml',
76
78
  preLandoFiles: ['.lando.base.yml', '.lando.dist.yml', '.lando.upstream.yml'],
77
79
  postLandoFiles: ['.lando.local.yml'],
@@ -93,6 +95,7 @@ async function getLandoConfig() {
93
95
  domain: 'lndo.site',
94
96
  version: 'unknown'
95
97
  };
98
+ return (0, _bootstrap.buildConfig)(config);
96
99
  }
97
100
  const appMap = new Map();
98
101
  async function regenerateLandofile(instancePath) {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@automattic/vip",
9
- "version": "2.26.1",
9
+ "version": "2.26.2",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automattic/vip",
3
- "version": "2.26.1",
3
+ "version": "2.26.2",
4
4
  "description": "The VIP Javascript library & CLI",
5
5
  "main": "index.js",
6
6
  "bin": {
Binary file