@kanonak-protocol/cli 8.12.0 → 8.14.0
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/dist/index.js +211 -210
- package/dist/resolution/WarningLockRepository.d.ts +17 -0
- package/package.json +3 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LockAwareRepository, type KanonakDocument, type LockFile } from '@kanonak-protocol/sdk';
|
|
2
|
+
import type { IKanonakDocumentRepository } from '@kanonak-protocol/types/document/models';
|
|
3
|
+
import type { Import } from '@kanonak-protocol/types/document/models/types';
|
|
4
|
+
/**
|
|
5
|
+
* Reads as {@link LockAwareRepository} does, and warns, once each, wherever {@link ExactLockRepository} would refuse,
|
|
6
|
+
* with its message. Refusing would break a workspace that works today, so `view` reads this way until the next
|
|
7
|
+
* planned major, which makes it read through {@link ExactLockRepository} (typescript#228).
|
|
8
|
+
*/
|
|
9
|
+
export declare class WarningLockRepository extends LockAwareRepository {
|
|
10
|
+
private readonly warn;
|
|
11
|
+
private readonly exact;
|
|
12
|
+
private readonly warned;
|
|
13
|
+
constructor(base: IKanonakDocumentRepository, lock: LockFile, own: readonly KanonakDocument[], warn: (message: string) => void);
|
|
14
|
+
getHighestCompatibleVersionAsync(publisher: string, import_: Import): Promise<KanonakDocument | null>;
|
|
15
|
+
getDocumentsByNamespaceAsync(publisher: string, package_: string): Promise<KanonakDocument[]>;
|
|
16
|
+
private warnIfRefused;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanonak-protocol/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"description": "Command-line tool for the Kanonak Protocol — validate, resolve, preview, and publish semantic ontology packages.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"semantic-web"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@kanonak-protocol/sdk": "^8.
|
|
39
|
-
"@kanonak-protocol/types": "^8.
|
|
38
|
+
"@kanonak-protocol/sdk": "^8.14.0",
|
|
39
|
+
"@kanonak-protocol/types": "^8.14.0",
|
|
40
40
|
"commander": "^13.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|