inup 1.6.6 → 1.6.7
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/README.md +16 -0
- package/dist/{interactive-ui.js → app/interactive-ui.js} +32 -21
- package/dist/{core → app}/upgrade-runner.js +12 -11
- package/dist/cli.js +12 -10
- package/dist/{services → features/audit}/background-audit.js +2 -2
- package/dist/features/{headless/vulnerability-audit.js → audit/headless-audit.js} +9 -5
- package/dist/features/audit/index.js +36 -0
- package/dist/{ui/presenters/vulnerability.js → features/audit/presenter.js} +1 -1
- package/dist/{ui/controllers → features/audit}/vulnerability-audit-controller.js +12 -6
- package/dist/{services → features/audit}/vulnerability-checker.js +11 -8
- package/dist/features/changelog/clients/github-client.js +35 -17
- package/dist/features/changelog/clients/npm-registry-client.js +16 -2
- package/dist/features/changelog/index.js +1 -1
- package/dist/features/changelog/services/package-metadata-service.js +6 -2
- package/dist/features/changelog/services/release-notes-service.js +6 -10
- package/dist/features/changelog/types.js +3 -0
- package/dist/features/debug/index.js +3 -4
- package/dist/features/debug/{services/perf-logger.js → perf-logger.js} +1 -1
- package/dist/features/debug/types.js +3 -0
- package/dist/features/headless/headless-runner.js +11 -11
- package/dist/features/headless/index.js +1 -4
- package/dist/features/headless/report.js +2 -0
- package/dist/features/interactive/controllers/index.js +6 -0
- package/dist/{ui → features/interactive}/controllers/package-info-modal-controller.js +3 -3
- package/dist/features/interactive/index.js +21 -0
- package/dist/{ui → features/interactive}/input-handler.js +3 -3
- package/dist/{ui → features/interactive}/modal/layout.js +2 -2
- package/dist/{ui/renderer/package-list.js → features/interactive/modal/package-info-sections/index.js} +3 -3
- package/dist/{ui → features/interactive}/modal/package-info-sections/sections.js +53 -22
- package/dist/{ui → features/interactive}/modal/package-info-sections/text.js +5 -5
- package/dist/{ui → features/interactive}/modal/package-info.js +31 -13
- package/dist/features/interactive/modal/types.js +3 -0
- package/dist/{ui → features/interactive}/presenters/health.js +2 -2
- package/dist/{ui → features/interactive}/renderer/index.js +0 -1
- package/dist/{types.js → features/interactive/renderer/package-list/index.js} +3 -4
- package/dist/{ui → features/interactive}/renderer/package-list/interface.js +9 -10
- package/dist/{ui → features/interactive}/renderer/package-list/rows.js +24 -17
- package/dist/features/{debug → interactive}/renderer/performance-modal.js +1 -1
- package/dist/{ui/utils/version.js → features/interactive/renderer/version-format.js} +6 -10
- package/dist/{ui → features/interactive}/session/index.js +2 -1
- package/dist/{ui → features/interactive}/session/interactive-session.js +39 -19
- package/dist/{ui → features/interactive}/session/selection-state-builder.js +20 -5
- package/dist/{ui → features/interactive}/state/filter-manager.js +2 -2
- package/dist/{ui → features/interactive}/state/state-manager.js +6 -4
- package/dist/{ui → features/interactive}/state/theme-manager.js +8 -4
- package/dist/{ui → features/interactive}/themes-colors.js +5 -2
- package/dist/features/upgrade/index.js +8 -0
- package/dist/{core → features/upgrade}/package-detector.js +74 -33
- package/dist/{core → features/upgrade}/upgrader.js +72 -14
- package/dist/index.js +2 -2
- package/dist/{config → shared/config}/package-meta.js +1 -1
- package/dist/{config → shared/config}/project-config.js +4 -1
- package/dist/{utils/config.js → shared/config/user-config.js} +3 -3
- package/dist/{ui/modal/package-info-sections.js → shared/fs/index.js} +4 -3
- package/dist/{utils/filesystem → shared/fs}/paths.js +3 -3
- package/dist/{utils/filesystem → shared/fs}/scan.js +5 -2
- package/dist/{services → shared}/http/etag-store.js +56 -4
- package/dist/{utils → shared}/local-env.js +1 -1
- package/dist/{services/package-manager-detector.js → shared/package-manager.js} +1 -1
- package/dist/shared/pnpm-catalogs.js +138 -0
- package/dist/{services → shared/registry}/npm-registry.js +48 -29
- package/dist/shared/registry/registry-config.js +76 -0
- package/dist/{services → shared/registry}/version-checker.js +24 -25
- package/dist/{ui/utils → shared/terminal}/index.js +4 -6
- package/dist/{ui/utils → shared/terminal}/terminal-input.js +2 -1
- package/dist/shared/terminal/text.js +48 -0
- package/dist/shared/types/index.js +20 -0
- package/dist/{utils/version.js → shared/versions.js} +12 -1
- package/package.json +15 -6
- package/dist/core/index.js +0 -23
- package/dist/features/changelog/types/changelog.types.js +0 -3
- package/dist/features/debug/types/debug.types.js +0 -3
- package/dist/services/index.js +0 -25
- package/dist/ui/controllers/index.js +0 -8
- package/dist/ui/index.js +0 -27
- package/dist/ui/presenters/index.js +0 -11
- package/dist/ui/utils/text.js +0 -76
- package/dist/utils/filesystem.js +0 -20
- package/dist/utils/index.js +0 -34
- /package/dist/{ui/modal → features/audit}/types.js +0 -0
- /package/dist/features/debug/{services/performance-tracker.js → performance-tracker.js} +0 -0
- /package/dist/{ui → features/interactive}/keymap.js +0 -0
- /package/dist/{ui → features/interactive}/modal/index.js +0 -0
- /package/dist/{ui → features/interactive}/modal/package-info-sections/release-notes.js +0 -0
- /package/dist/{ui → features/interactive}/modal/theme-selector.js +0 -0
- /package/dist/{ui → features/interactive}/renderer/confirmation.js +0 -0
- /package/dist/{ui → features/interactive}/renderer/help-modal.js +0 -0
- /package/dist/{ui → features/interactive}/session/action-dispatcher.js +0 -0
- /package/dist/{ui → features/interactive}/state/index.js +0 -0
- /package/dist/{ui → features/interactive}/state/modal-manager.js +0 -0
- /package/dist/{ui → features/interactive}/state/navigation-manager.js +0 -0
- /package/dist/{ui → features/interactive}/themes.js +0 -0
- /package/dist/{config → shared/config}/constants.js +0 -0
- /package/dist/{config → shared/config}/index.js +0 -0
- /package/dist/{utils → shared}/debug-logger.js +0 -0
- /package/dist/{utils → shared}/engines.js +0 -0
- /package/dist/{utils → shared}/exec.js +0 -0
- /package/dist/{utils/filesystem → shared/fs}/io.js +0 -0
- /package/dist/{utils → shared}/git.js +0 -0
- /package/dist/{services → shared}/http/adaptive-controller.js +0 -0
- /package/dist/{services → shared}/http/inflight.js +0 -0
- /package/dist/{services → shared}/http/resizable-semaphore.js +0 -0
- /package/dist/{services → shared}/http/retry.js +0 -0
- /package/dist/{utils → shared}/manifest.js +0 -0
- /package/dist/{utils → shared/terminal}/color.js +0 -0
- /package/dist/{ui/utils → shared/terminal}/cursor.js +0 -0
- /package/dist/{types → shared/types}/domain.js +0 -0
- /package/dist/{types → shared/types}/streaming.js +0 -0
- /package/dist/{types → shared/types}/ui.js +0 -0
package/dist/services/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* External service integrations
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
__exportStar(require("./npm-registry"), exports);
|
|
21
|
-
__exportStar(require("../features/changelog"), exports);
|
|
22
|
-
__exportStar(require("./version-checker"), exports);
|
|
23
|
-
__exportStar(require("./vulnerability-checker"), exports);
|
|
24
|
-
__exportStar(require("./background-audit"), exports);
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PackageInfoModalController = exports.VulnerabilityAuditController = void 0;
|
|
4
|
-
var vulnerability_audit_controller_1 = require("./vulnerability-audit-controller");
|
|
5
|
-
Object.defineProperty(exports, "VulnerabilityAuditController", { enumerable: true, get: function () { return vulnerability_audit_controller_1.VulnerabilityAuditController; } });
|
|
6
|
-
var package_info_modal_controller_1 = require("./package-info-modal-controller");
|
|
7
|
-
Object.defineProperty(exports, "PackageInfoModalController", { enumerable: true, get: function () { return package_info_modal_controller_1.PackageInfoModalController; } });
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/dist/ui/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./utils"), exports);
|
|
18
|
-
__exportStar(require("./state"), exports);
|
|
19
|
-
__exportStar(require("./renderer"), exports);
|
|
20
|
-
__exportStar(require("./modal"), exports);
|
|
21
|
-
__exportStar(require("./presenters"), exports);
|
|
22
|
-
__exportStar(require("./controllers"), exports);
|
|
23
|
-
__exportStar(require("./input-handler"), exports);
|
|
24
|
-
__exportStar(require("./keymap"), exports);
|
|
25
|
-
__exportStar(require("./themes"), exports);
|
|
26
|
-
__exportStar(require("./themes-colors"), exports);
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.selectRepresentativeAdvisory = exports.mergeVulnerabilitySummary = exports.getVulnerabilitySeverityColor = exports.getVulnerabilityLinkLabel = exports.getVulnerabilityBadge = exports.createVulnerabilitySummary = void 0;
|
|
4
|
-
var vulnerability_1 = require("./vulnerability");
|
|
5
|
-
Object.defineProperty(exports, "createVulnerabilitySummary", { enumerable: true, get: function () { return vulnerability_1.createVulnerabilitySummary; } });
|
|
6
|
-
Object.defineProperty(exports, "getVulnerabilityBadge", { enumerable: true, get: function () { return vulnerability_1.getVulnerabilityBadge; } });
|
|
7
|
-
Object.defineProperty(exports, "getVulnerabilityLinkLabel", { enumerable: true, get: function () { return vulnerability_1.getVulnerabilityLinkLabel; } });
|
|
8
|
-
Object.defineProperty(exports, "getVulnerabilitySeverityColor", { enumerable: true, get: function () { return vulnerability_1.getVulnerabilitySeverityColor; } });
|
|
9
|
-
Object.defineProperty(exports, "mergeVulnerabilitySummary", { enumerable: true, get: function () { return vulnerability_1.mergeVulnerabilitySummary; } });
|
|
10
|
-
Object.defineProperty(exports, "selectRepresentativeAdvisory", { enumerable: true, get: function () { return vulnerability_1.selectRepresentativeAdvisory; } });
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
package/dist/ui/utils/text.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stripAnsi = stripAnsi;
|
|
4
|
-
exports.getVisualLength = getVisualLength;
|
|
5
|
-
exports.truncatePlainText = truncatePlainText;
|
|
6
|
-
exports.wrapPlainText = wrapPlainText;
|
|
7
|
-
const ANSI_PATTERN = /\[[0-9;?]*[ -/]*[@-~]/g;
|
|
8
|
-
const OSC8_PATTERN = /]8;;.*?(?:|\\)|]8;;(?:|\\)/g;
|
|
9
|
-
function stripAnsi(text) {
|
|
10
|
-
return text.replace(OSC8_PATTERN, '').replace(ANSI_PATTERN, '');
|
|
11
|
-
}
|
|
12
|
-
function getVisualLength(text) {
|
|
13
|
-
const cleaned = stripAnsi(text);
|
|
14
|
-
const SegmenterCtor = Intl.Segmenter;
|
|
15
|
-
let length = 0;
|
|
16
|
-
const segments = SegmenterCtor
|
|
17
|
-
? SegmenterCtor.prototype.segment.call(new SegmenterCtor(undefined, { granularity: 'grapheme' }), cleaned)
|
|
18
|
-
: cleaned;
|
|
19
|
-
for (const item of segments) {
|
|
20
|
-
const segment = typeof item === 'string' ? item : item.segment;
|
|
21
|
-
if (/\p{Extended_Pictographic}/u.test(segment) || segment.includes('\uFE0F')) {
|
|
22
|
-
length += 2;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
for (const char of segment) {
|
|
26
|
-
const codePoint = char.codePointAt(0) ?? 0;
|
|
27
|
-
if ((codePoint >= 0xfe00 && codePoint <= 0xfe0f) ||
|
|
28
|
-
(codePoint >= 0x0300 && codePoint <= 0x036f)) {
|
|
29
|
-
continue;
|
|
30
|
-
}
|
|
31
|
-
length += 1;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return length;
|
|
36
|
-
}
|
|
37
|
-
function truncatePlainText(text, maxWidth) {
|
|
38
|
-
if (maxWidth <= 0) {
|
|
39
|
-
return '';
|
|
40
|
-
}
|
|
41
|
-
if (getVisualLength(text) <= maxWidth) {
|
|
42
|
-
return text;
|
|
43
|
-
}
|
|
44
|
-
if (maxWidth <= 3) {
|
|
45
|
-
return '.'.repeat(maxWidth);
|
|
46
|
-
}
|
|
47
|
-
return text.substring(0, maxWidth - 3) + '...';
|
|
48
|
-
}
|
|
49
|
-
function wrapPlainText(text, maxWidth) {
|
|
50
|
-
if (!text) {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
if (maxWidth <= 0 || getVisualLength(text) <= maxWidth) {
|
|
54
|
-
return [text];
|
|
55
|
-
}
|
|
56
|
-
const lines = [];
|
|
57
|
-
let current = '';
|
|
58
|
-
const words = text.split(' ');
|
|
59
|
-
for (const word of words) {
|
|
60
|
-
const candidate = (current + ' ' + word).trim();
|
|
61
|
-
if (getVisualLength(candidate) > maxWidth) {
|
|
62
|
-
if (current) {
|
|
63
|
-
lines.push(current);
|
|
64
|
-
}
|
|
65
|
-
current = word;
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
current = current ? `${current} ${word}` : word;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if (current) {
|
|
72
|
-
lines.push(current);
|
|
73
|
-
}
|
|
74
|
-
return lines;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=text.js.map
|
package/dist/utils/filesystem.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./filesystem/paths"), exports);
|
|
18
|
-
__exportStar(require("./filesystem/io"), exports);
|
|
19
|
-
__exportStar(require("./filesystem/scan"), exports);
|
|
20
|
-
//# sourceMappingURL=filesystem.js.map
|
package/dist/utils/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Shared utilities
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.collectAllDependenciesAsync = exports.readPackageJsonAsync = void 0;
|
|
21
|
-
__exportStar(require("./filesystem"), exports);
|
|
22
|
-
__exportStar(require("./exec"), exports);
|
|
23
|
-
__exportStar(require("./git"), exports);
|
|
24
|
-
__exportStar(require("./version"), exports);
|
|
25
|
-
__exportStar(require("./debug-logger"), exports);
|
|
26
|
-
__exportStar(require("./local-env"), exports);
|
|
27
|
-
__exportStar(require("./color"), exports);
|
|
28
|
-
__exportStar(require("./engines"), exports);
|
|
29
|
-
__exportStar(require("./manifest"), exports);
|
|
30
|
-
// Re-export async functions for convenience
|
|
31
|
-
var filesystem_1 = require("./filesystem");
|
|
32
|
-
Object.defineProperty(exports, "readPackageJsonAsync", { enumerable: true, get: function () { return filesystem_1.readPackageJsonAsync; } });
|
|
33
|
-
Object.defineProperty(exports, "collectAllDependenciesAsync", { enumerable: true, get: function () { return filesystem_1.collectAllDependenciesAsync; } });
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|