@florianpat/lando-core 3.23.3-compose → 3.23.7-compose
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 +17 -1
- package/_redirects +1 -0
- package/checksums.txt +0 -0
- package/components/plugin.js +1 -1
- package/hooks/app-run-events.js +22 -0
- package/lib/checksums.txt +0 -0
- package/lib/router.js +1 -1
- package/lib/updates.js +6 -1
- package/netlify.toml +1 -6
- package/node_modules/cross-spawn/README.md +3 -10
- package/node_modules/cross-spawn/lib/enoent.js +1 -1
- package/node_modules/cross-spawn/lib/util/escape.js +4 -2
- package/node_modules/cross-spawn/package.json +1 -1
- package/package.json +8 -7
- package/release-aliases/3-EDGE +1 -1
- package/release-aliases/3-STABLE +1 -1
- package/scripts/generate-checksums.sh +2 -2
- package/scripts/lando-entrypoint.sh +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
|
|
2
2
|
|
|
3
|
-
## v3.23.
|
|
3
|
+
## v3.23.7-compose - [November 17, 2024](https://github.com/florianPat/lando-core/releases/tag/v3.23.7-compose)
|
|
4
|
+
|
|
5
|
+
## v3.23.7 - [November 13, 2024](https://github.com/lando/core/releases/tag/v3.23.7)
|
|
6
|
+
|
|
7
|
+
* Updated to [@lando/vitepress-theme-default-plus@v1.1.0-beta.23](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.1.0-beta.23)
|
|
8
|
+
|
|
9
|
+
## v3.23.6 - [November 13, 2024](https://github.com/lando/core/releases/tag/v3.23.6)
|
|
10
|
+
|
|
11
|
+
* Improved homepage documentation selector part 2
|
|
12
|
+
|
|
13
|
+
## v3.23.5 - [November 13, 2024](https://github.com/lando/core/releases/tag/v3.23.5)
|
|
14
|
+
|
|
15
|
+
* Improved homepage documentation selector
|
|
16
|
+
|
|
17
|
+
## v3.23.4 - [November 12, 2024](https://github.com/lando/core/releases/tag/v3.23.4)
|
|
18
|
+
|
|
19
|
+
* Updated to [@lando/vitepress-theme-default-plus@v1.1.0-beta.21](https://github.com/lando/vitepress-theme-default-plus/releases/tag/v1.1.0-beta.21)
|
|
4
20
|
|
|
5
21
|
## v3.23.3 - [November 4, 2024](https://github.com/lando/core/releases/tag/v3.23.3)
|
|
6
22
|
|
package/_redirects
CHANGED
|
@@ -67,6 +67,7 @@ https://api.lando.dev/* https://docs.lando.dev/:splat 302
|
|
|
67
67
|
/contrib/evangelist-* /contrib/evangelist.html 301
|
|
68
68
|
/contrib/sponsor-* /contrib/sponsoring.html 301
|
|
69
69
|
/contrib/how.html /contrib 301
|
|
70
|
+
/install /install/index.html 301
|
|
70
71
|
/lando-service.html /services/lando-3.html 301
|
|
71
72
|
/getting-started/updating.html /guides/updating.html 301
|
|
72
73
|
/getting-started/uninstalling.html /guides/uninstalling.html 301
|
package/checksums.txt
ADDED
|
File without changes
|
package/components/plugin.js
CHANGED
|
@@ -226,7 +226,7 @@ class Plugin {
|
|
|
226
226
|
// add auxilary package info
|
|
227
227
|
this.spec = `${this.package}@${this.version}`;
|
|
228
228
|
this.scope = require('npm-package-arg')(this.spec).scope;
|
|
229
|
-
if (this.scope) this.unscoped = this.
|
|
229
|
+
if (this.scope) this.unscoped = this.package.replace(`${this.scope}/`, '');
|
|
230
230
|
|
|
231
231
|
// add some computed properties
|
|
232
232
|
// @NOTE: do we need a stronger check for isupdateable?
|
package/hooks/app-run-events.js
CHANGED
|
@@ -6,6 +6,28 @@ const path = require('path');
|
|
|
6
6
|
|
|
7
7
|
module.exports = async (app, lando, cmds, data, event) => {
|
|
8
8
|
const eventCommands = require('./../utils/parse-events-config')(cmds, app, data, lando);
|
|
9
|
+
// add perm sweeping to all v3 services
|
|
10
|
+
if (!_.isEmpty(eventCommands)) {
|
|
11
|
+
const permsweepers = _(eventCommands)
|
|
12
|
+
.filter(command => command.api === 3)
|
|
13
|
+
.map(command => ({id: command.id, services: _.get(command, 'opts.services', [])}))
|
|
14
|
+
.uniqBy('id')
|
|
15
|
+
.value();
|
|
16
|
+
lando.log.debug('added preemptive perm sweeping to evented v3 services %j', permsweepers.map(s => s.id));
|
|
17
|
+
_.forEach(permsweepers, ({id, services}) => {
|
|
18
|
+
eventCommands.unshift({
|
|
19
|
+
id,
|
|
20
|
+
cmd: '/helpers/user-perms.sh --silent',
|
|
21
|
+
compose: app.compose,
|
|
22
|
+
project: app.project,
|
|
23
|
+
opts: {
|
|
24
|
+
mode: 'attach',
|
|
25
|
+
user: 'root',
|
|
26
|
+
services,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
}
|
|
9
31
|
const injectable = _.has(app, 'engine') ? app : lando;
|
|
10
32
|
return injectable.engine.run(eventCommands).catch(err => {
|
|
11
33
|
const command = _.tail(event.split('-')).join('-');
|
|
File without changes
|
package/lib/router.js
CHANGED
|
@@ -90,7 +90,7 @@ exports.run = (data, compose, docker, started = true) => Promise.mapSeries(norma
|
|
|
90
90
|
'/bin/sh',
|
|
91
91
|
'-c',
|
|
92
92
|
// eslint-disable-next-line max-len
|
|
93
|
-
'if [ "$LANDO_SERVICE_API" = "3" ]
|
|
93
|
+
'if [ "$LANDO_SERVICE_API" = "3" ]; then if [ -f /helpers/check-entrypoint-ran.sh ]; then /helpers/check-entrypoint-ran.sh; fi fi',
|
|
94
94
|
];
|
|
95
95
|
return compose('run', _.merge(
|
|
96
96
|
{},
|
package/lib/updates.js
CHANGED
|
@@ -126,13 +126,18 @@ module.exports = class UpdateManager {
|
|
|
126
126
|
const {data, status, url} = await octokit.rest.repos.listReleases({owner: 'lando', repo: 'core'});
|
|
127
127
|
this.debug('retrieved cli information from %o [%o]', url, status);
|
|
128
128
|
|
|
129
|
+
const newestCoreVersion = semver.clean((await this.plugins.find(plugin => plugin.core)?.check4Update())?.update?.version ?? '');
|
|
130
|
+
|
|
129
131
|
const versions = data
|
|
130
132
|
.map(release => ({...release, version: semver.clean(release.tag_name)}))
|
|
131
133
|
.filter(release => semver.valid(release.version) !== null)
|
|
132
134
|
.filter(release => semver.satisfies(release.version, '>=3.0.0 <4', {loose: true, includePrerelease: true}))
|
|
133
135
|
.filter(release => release.draft === false)
|
|
134
136
|
.filter(release => this.channel === 'edge' ? true : release.prerelease === false)
|
|
135
|
-
.map(release => release.version)
|
|
137
|
+
.map(release => release.version)
|
|
138
|
+
.filter(version => null === newestCoreVersion ?
|
|
139
|
+
true : require('../utils/is-lte-version')(version, newestCoreVersion),
|
|
140
|
+
);
|
|
136
141
|
|
|
137
142
|
// get highest version
|
|
138
143
|
const hv = semver.rsort(versions)[0];
|
package/netlify.toml
CHANGED
|
@@ -58,12 +58,7 @@
|
|
|
58
58
|
output_path = "reports/lighthouse.html"
|
|
59
59
|
|
|
60
60
|
# SEE _redirects for 301/302 which get loaded first
|
|
61
|
-
# NOTE THAT REDIRECTS ARE EXECUTED FIRST COME FIRST SERVE
|
|
62
|
-
# setup site
|
|
63
|
-
[[redirects]]
|
|
64
|
-
from = "/install/*"
|
|
65
|
-
to = "https://setup-lando.netlify.app/:splat"
|
|
66
|
-
status = 200
|
|
61
|
+
# NOTE THAT REDIRECTS/REWRITES ARE EXECUTED FIRST COME FIRST SERVE
|
|
67
62
|
|
|
68
63
|
# lando 4 docs (for now)
|
|
69
64
|
[[redirects]]
|
|
@@ -1,24 +1,17 @@
|
|
|
1
1
|
# cross-spawn
|
|
2
2
|
|
|
3
|
-
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][
|
|
3
|
+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Build status][appveyor-image]][appveyor-url]
|
|
4
4
|
|
|
5
5
|
[npm-url]:https://npmjs.org/package/cross-spawn
|
|
6
6
|
[downloads-image]:https://img.shields.io/npm/dm/cross-spawn.svg
|
|
7
7
|
[npm-image]:https://img.shields.io/npm/v/cross-spawn.svg
|
|
8
|
-
[
|
|
9
|
-
[
|
|
8
|
+
[ci-url]:https://github.com/moxystudio/cross-spawn/actions/workflows/ci.yaml
|
|
9
|
+
[ci-image]:https://github.com/moxystudio/node-cross-spawn/actions/workflows/ci.yaml/badge.svg
|
|
10
10
|
[appveyor-url]:https://ci.appveyor.com/project/satazor/node-cross-spawn
|
|
11
11
|
[appveyor-image]:https://img.shields.io/appveyor/ci/satazor/node-cross-spawn/master.svg
|
|
12
|
-
[codecov-url]:https://codecov.io/gh/moxystudio/node-cross-spawn
|
|
13
|
-
[codecov-image]:https://img.shields.io/codecov/c/github/moxystudio/node-cross-spawn/master.svg
|
|
14
|
-
[david-dm-url]:https://david-dm.org/moxystudio/node-cross-spawn
|
|
15
|
-
[david-dm-image]:https://img.shields.io/david/moxystudio/node-cross-spawn.svg
|
|
16
|
-
[david-dm-dev-url]:https://david-dm.org/moxystudio/node-cross-spawn?type=dev
|
|
17
|
-
[david-dm-dev-image]:https://img.shields.io/david/dev/moxystudio/node-cross-spawn.svg
|
|
18
12
|
|
|
19
13
|
A cross platform solution to node's spawn and spawnSync.
|
|
20
14
|
|
|
21
|
-
|
|
22
15
|
## Installation
|
|
23
16
|
|
|
24
17
|
Node.js version 8 and up:
|
|
@@ -24,7 +24,7 @@ function hookChildProcess(cp, parsed) {
|
|
|
24
24
|
// the command exists and emit an "error" instead
|
|
25
25
|
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
26
26
|
if (name === 'exit') {
|
|
27
|
-
const err = verifyENOENT(arg1, parsed
|
|
27
|
+
const err = verifyENOENT(arg1, parsed);
|
|
28
28
|
|
|
29
29
|
if (err) {
|
|
30
30
|
return originalEmit.call(cp, 'error', err);
|
|
@@ -15,15 +15,17 @@ function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
|
15
15
|
arg = `${arg}`;
|
|
16
16
|
|
|
17
17
|
// Algorithm below is based on https://qntm.org/cmd
|
|
18
|
+
// It's slightly altered to disable JS backtracking to avoid hanging on specially crafted input
|
|
19
|
+
// Please see https://github.com/moxystudio/node-cross-spawn/pull/160 for more information
|
|
18
20
|
|
|
19
21
|
// Sequence of backslashes followed by a double quote:
|
|
20
22
|
// double up all the backslashes and escape the double quote
|
|
21
|
-
arg = arg.replace(/(
|
|
23
|
+
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
|
|
22
24
|
|
|
23
25
|
// Sequence of backslashes followed by the end of the string
|
|
24
26
|
// (which will become a double quote later):
|
|
25
27
|
// double up all the backslashes
|
|
26
|
-
arg = arg.replace(/(
|
|
28
|
+
arg = arg.replace(/(?=(\\+?)?)\1$/, '$1$1');
|
|
27
29
|
|
|
28
30
|
// All other backslashes occur literally
|
|
29
31
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@florianpat/lando-core",
|
|
3
3
|
"description": "The libraries that power all of Lando. Fork by flo for compose integration",
|
|
4
|
-
"version": "3.23.
|
|
4
|
+
"version": "3.23.7-compose",
|
|
5
5
|
"author": "Florian Patruck @florianPat",
|
|
6
6
|
"license": "GPL-3.0",
|
|
7
7
|
"repository": "florianPat/lando-core",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"devDependencies": {
|
|
169
169
|
"@babel/eslint-parser": "^7.16.0",
|
|
170
170
|
"@lando/leia": "^1.0.0-beta.4",
|
|
171
|
-
"@lando/vitepress-theme-default-plus": "^1.1.0-beta.
|
|
171
|
+
"@lando/vitepress-theme-default-plus": "^1.1.0-beta.23",
|
|
172
172
|
"@yao-pkg/pkg": "^5.16.1",
|
|
173
173
|
"chai": "^4.3.4",
|
|
174
174
|
"chai-as-promised": "^7.1.1",
|
|
@@ -181,7 +181,8 @@
|
|
|
181
181
|
"nyc": "^15.1.0",
|
|
182
182
|
"sinon": "^4.3.0",
|
|
183
183
|
"sinon-chai": "^2.14.0",
|
|
184
|
-
"
|
|
184
|
+
"ua-parser-js": "^1.0.39",
|
|
185
|
+
"vitepress": "^1.5.0"
|
|
185
186
|
},
|
|
186
187
|
"bundledDependencies": [
|
|
187
188
|
"@lando/argv",
|
|
@@ -246,9 +247,9 @@
|
|
|
246
247
|
"yargs-parser"
|
|
247
248
|
],
|
|
248
249
|
"dist": {
|
|
249
|
-
"integrity": "sha512-
|
|
250
|
-
"shasum": "
|
|
251
|
-
"filename": "florianpat-lando-core-3.23.
|
|
252
|
-
"unpackedSize":
|
|
250
|
+
"integrity": "sha512-6Xq72IhD1/1DBzarI6IEybpTykDn0k4Msia/Uwovg7sXRH+ML1DOnrPG8YvZyQVmPh2KBrsCVGkyfT57zJu80g==",
|
|
251
|
+
"shasum": "66e479f5ab1a093a4d4e0a7709ac28a4c2b2b910",
|
|
252
|
+
"filename": "florianpat-lando-core-3.23.7-compose.tgz",
|
|
253
|
+
"unpackedSize": 60880860
|
|
253
254
|
}
|
|
254
255
|
}
|
package/release-aliases/3-EDGE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v3.23.
|
|
1
|
+
v3.23.7
|
package/release-aliases/3-STABLE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
v3.23.
|
|
1
|
+
v3.23.7
|
|
@@ -72,9 +72,9 @@ debug ""
|
|
|
72
72
|
> "$OUTPUT_FILE"
|
|
73
73
|
|
|
74
74
|
# Loop through each file in the directory with specified depth
|
|
75
|
-
find "$DIRECTORY" -maxdepth "$DEPTH" -type f | while read -r file; do
|
|
75
|
+
find "$DIRECTORY" -maxdepth "$DEPTH" -type f | sort | while read -r file; do
|
|
76
76
|
# Calculate the SHA-256 checksum and append to the output file
|
|
77
|
-
sha256sum "$file" >> "$OUTPUT_FILE"
|
|
77
|
+
sha256sum "${file#./}" >> "$OUTPUT_FILE"
|
|
78
78
|
# debug
|
|
79
79
|
debug "wrote checksum $(sha256sum "$file") to ${OUTPUT_FILE}"
|
|
80
80
|
done
|