kagami-cli 0.1.0 → 0.1.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/README.md +2 -2
- package/dist/download.d.ts +1 -1
- package/dist/download.d.ts.map +1 -1
- package/dist/index.js +0 -0
- package/dist/plugins.d.ts +1 -1
- package/dist/plugins.d.ts.map +1 -1
- package/dist/plugins.js +5 -5
- package/dist/search.d.ts +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.d.ts.map +1 -1
- package/package.json +7 -2
package/README.md
CHANGED
package/dist/download.d.ts
CHANGED
package/dist/download.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../src/download.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"download.d.ts","sourceRoot":"","sources":["../src/download.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAS/D,wBAAsB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,iBAqHjE"}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPlugin } from "@kagami/plugin";
|
|
1
|
+
import { IPlugin } from "@kagami-cli/plugin";
|
|
2
2
|
export declare function discoverPlugins(): Promise<Record<string, IPlugin>>;
|
|
3
3
|
export declare function installPlugin(sourceName: string): Promise<void>;
|
|
4
4
|
//# sourceMappingURL=plugins.d.ts.map
|
package/dist/plugins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAqC7C,wBAAsB,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CA6CxE;AAED,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,iBAsCrD"}
|
package/dist/plugins.js
CHANGED
|
@@ -87,8 +87,8 @@ function discoverPlugins() {
|
|
|
87
87
|
const plugins = {};
|
|
88
88
|
if (!fs.existsSync(nodeModules))
|
|
89
89
|
return plugins;
|
|
90
|
-
// Check @kagami scope
|
|
91
|
-
const kagamiScope = path.join(nodeModules, '@kagami');
|
|
90
|
+
// Check @kagami-cli scope
|
|
91
|
+
const kagamiScope = path.join(nodeModules, '@kagami-cli');
|
|
92
92
|
if (fs.existsSync(kagamiScope)) {
|
|
93
93
|
const dirs = fs.readdirSync(kagamiScope);
|
|
94
94
|
for (const dir of dirs) {
|
|
@@ -102,7 +102,7 @@ function discoverPlugins() {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
catch (e) {
|
|
105
|
-
console.warn(`Failed to load plugin @kagami/${dir}:`, e);
|
|
105
|
+
console.warn(`Failed to load plugin @kagami-cli/${dir}:`, e);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -145,8 +145,8 @@ function installPlugin(sourceName) {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
const candidates = [
|
|
148
|
-
`@kagami/plugin-${sourceName}`,
|
|
149
|
-
`kagami-plugin-${sourceName}`
|
|
148
|
+
`@kagami-cli/plugin-${sourceName}`,
|
|
149
|
+
`kagami-cli-plugin-${sourceName}`
|
|
150
150
|
];
|
|
151
151
|
for (const pkg of candidates) {
|
|
152
152
|
try {
|
package/dist/search.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IManga, IPlugin } from "@kagami/plugin";
|
|
1
|
+
import { IManga, IPlugin } from "@kagami-cli/plugin";
|
|
2
2
|
export declare function prepareManga(manga: IManga, plugin: IPlugin, writeStatus?: (msg: string) => void): Promise<void>;
|
|
3
3
|
export declare function searchManga(query: string, sources: string[], plugins: Record<string, IPlugin>): Promise<Array<IManga>>;
|
|
4
4
|
//# sourceMappingURL=search.d.ts.map
|
package/dist/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CA2CrH;AAED,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAwC1H"}
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IManga, IPlugin } from '@kagami/plugin';
|
|
1
|
+
import { IManga, IPlugin } from '@kagami-cli/plugin';
|
|
2
2
|
export declare function selectSources(availableSources: string[]): Promise<string[]>;
|
|
3
3
|
export declare function selectManga(results: Array<IManga>, plugins: Record<string, IPlugin>): Promise<IManga[]>;
|
|
4
4
|
export declare function confirmDownload(manga: IManga): Promise<boolean>;
|
package/dist/ui.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAErD,wBAAsB,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAajF;AAED,wBAAsB,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA8B7G;AAED,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CASrE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kagami-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI for kagami",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,12 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"keywords": [
|
|
27
|
+
"keywords": [
|
|
28
|
+
"manga",
|
|
29
|
+
"parser",
|
|
30
|
+
"cli",
|
|
31
|
+
"kagami"
|
|
32
|
+
],
|
|
28
33
|
"author": "Ilya Tovstenok <iliya.tovstyonok@gmail.com>",
|
|
29
34
|
"license": "MIT",
|
|
30
35
|
"repository": {
|