@nervur.org/installer-node 0.37.10 → 0.37.11
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/cargo/worker.js +26 -13
- package/package.json +3 -3
- package/src/command/repo.js +18 -8
- package/src/version/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nervur.org/installer-node",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.11",
|
|
4
4
|
"description": "Nervur's installer for Node: the nervur command, the door, the host's organs (console, shell, disk, network) with their blueprints. 0.x, unstable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nervur.org/floor": "0.37.
|
|
40
|
-
"@nervur.org/genome": "0.37.
|
|
39
|
+
"@nervur.org/floor": "0.37.11",
|
|
40
|
+
"@nervur.org/genome": "0.37.11"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=22.23.5"
|
package/src/command/repo.js
CHANGED
|
@@ -27,11 +27,23 @@ import { notRunningWhy, runningOf } from './spawn.js';
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
|
|
31
|
+
const folderOf = async (home , jailer , name , ask ) => {
|
|
32
|
+
const seen = new Set ();
|
|
33
|
+
let cursor = null;
|
|
34
|
+
do {
|
|
35
|
+
const page = await ask(home, ['lobe', jailer, 'folders', dataText(cursor === null ? {} : { cursor })]);
|
|
36
|
+
if ('why' in page) return page;
|
|
37
|
+
const folders = isFields(page.data) ? page.data['folders'] : undefined;
|
|
38
|
+
if (!Array.isArray(folders)) return { why: 'the jailer answered no page of folders' };
|
|
39
|
+
const held = folders.find((one) => isFields(one) && one['folder'] === name);
|
|
40
|
+
if (held !== undefined && isFields(held))
|
|
41
|
+
return { lobe: typeof held['lobe'] === 'string' ? held['lobe'] : null, made: held['made'] === true };
|
|
42
|
+
const next = isFields(page.data) ? page.data['cursor'] : undefined;
|
|
43
|
+
cursor = typeof next === 'string' && !seen.has(next) ? next : null;
|
|
44
|
+
if (cursor !== null) seen.add(cursor);
|
|
45
|
+
} while (cursor !== null);
|
|
46
|
+
return null;
|
|
35
47
|
};
|
|
36
48
|
|
|
37
49
|
const grantedTo = async (home , jailer , making , ask ) => {
|
|
@@ -66,9 +78,7 @@ export const repoMade = async (
|
|
|
66
78
|
) => {
|
|
67
79
|
const jailer = await jailerAt(print, home, making.stand, hands);
|
|
68
80
|
if (typeof jailer !== 'string') return jailer;
|
|
69
|
-
const
|
|
70
|
-
if ('why' in folders) return folders;
|
|
71
|
-
const held = heldOf(folders.data, making.name);
|
|
81
|
+
const held = await folderOf(home, jailer, making.name, hands.ask);
|
|
72
82
|
if (held !== null && 'why' in held) return held;
|
|
73
83
|
if (held?.lobe === null)
|
|
74
84
|
return {
|
package/src/version/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// SPDX-License-Identifier: FSL-1.1-ALv2
|
|
2
|
-
export const INSTALLER_VERSION = '0.37.
|
|
2
|
+
export const INSTALLER_VERSION = '0.37.11';
|