yuque-dl 1.0.1 → 1.0.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/dist/cjs/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var cac = require('cac');
|
|
4
|
-
var index = require('./index-
|
|
4
|
+
var index = require('./index-984ebe84.js');
|
|
5
5
|
require('node:fs/promises');
|
|
6
6
|
require('node:path');
|
|
7
7
|
require('axios');
|
|
@@ -10,7 +10,7 @@ require('progress');
|
|
|
10
10
|
require('rand-user-agent');
|
|
11
11
|
require('pull-md-img');
|
|
12
12
|
|
|
13
|
-
var version = "1.0.
|
|
13
|
+
var version = "1.0.1";
|
|
14
14
|
|
|
15
15
|
const cli = cac.cac('yuque-dl');
|
|
16
16
|
cli
|
|
@@ -171,14 +171,12 @@ async function main(url, options) {
|
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
const articleUrlPrefix = path.parse(url).dir;
|
|
174
|
-
// const url.split('/')
|
|
175
174
|
for (let i = 0; i < total; i++) {
|
|
176
175
|
const item = tocList[i];
|
|
177
176
|
if (typeof item.type !== 'string')
|
|
178
177
|
continue;
|
|
179
178
|
if (uuidMap.get(item.uuid))
|
|
180
179
|
continue;
|
|
181
|
-
console.log(item.uuid);
|
|
182
180
|
const itemType = item.type.toLocaleLowerCase();
|
|
183
181
|
const dirNameReg = /[\\\/:\*\?"<>\|\n\r]/g;
|
|
184
182
|
// 目录
|
|
@@ -238,7 +236,6 @@ async function main(url, options) {
|
|
|
238
236
|
progress.updateProgress(progressItem);
|
|
239
237
|
}
|
|
240
238
|
}
|
|
241
|
-
console.log('完成', item.uuid);
|
|
242
239
|
}
|
|
243
240
|
await progress.completePromise;
|
|
244
241
|
logger.info('生成目录 SUMMARY.md');
|
package/dist/cjs/index.js
CHANGED
package/dist/es/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cac } from 'cac';
|
|
2
|
-
import { m as main, l as logger } from './index-
|
|
2
|
+
import { m as main, l as logger } from './index-ec82d116.js';
|
|
3
3
|
import 'node:fs/promises';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'axios';
|
|
@@ -8,7 +8,7 @@ import 'progress';
|
|
|
8
8
|
import 'rand-user-agent';
|
|
9
9
|
import 'pull-md-img';
|
|
10
10
|
|
|
11
|
-
var version = "1.0.
|
|
11
|
+
var version = "1.0.1";
|
|
12
12
|
|
|
13
13
|
const cli = cac('yuque-dl');
|
|
14
14
|
cli
|
|
@@ -169,14 +169,12 @@ async function main(url, options) {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
const articleUrlPrefix = path.parse(url).dir;
|
|
172
|
-
// const url.split('/')
|
|
173
172
|
for (let i = 0; i < total; i++) {
|
|
174
173
|
const item = tocList[i];
|
|
175
174
|
if (typeof item.type !== 'string')
|
|
176
175
|
continue;
|
|
177
176
|
if (uuidMap.get(item.uuid))
|
|
178
177
|
continue;
|
|
179
|
-
console.log(item.uuid);
|
|
180
178
|
const itemType = item.type.toLocaleLowerCase();
|
|
181
179
|
const dirNameReg = /[\\\/:\*\?"<>\|\n\r]/g;
|
|
182
180
|
// 目录
|
|
@@ -236,7 +234,6 @@ async function main(url, options) {
|
|
|
236
234
|
progress.updateProgress(progressItem);
|
|
237
235
|
}
|
|
238
236
|
}
|
|
239
|
-
console.log('完成', item.uuid);
|
|
240
237
|
}
|
|
241
238
|
await progress.completePromise;
|
|
242
239
|
logger.info('生成目录 SUMMARY.md');
|
package/dist/es/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'node:fs/promises';
|
|
2
2
|
import 'node:path';
|
|
3
3
|
import 'axios';
|
|
4
|
-
export { g as getKnowledgeBaseInfo, m as main } from './index-
|
|
4
|
+
export { g as getKnowledgeBaseInfo, m as main } from './index-ec82d116.js';
|
|
5
5
|
import 'pull-md-img';
|
|
6
6
|
import 'log4js';
|
|
7
7
|
import 'progress';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yuque-dl",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "yuque 知识库下载",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"build": "run-s build:**",
|
|
12
12
|
"build:bundle": "rollup -c rollup.config.ts --configPlugin typescript",
|
|
13
13
|
"build:types": "tsc --emitDeclarationOnly --outDir types -p tsconfig.base.json",
|
|
14
|
+
"clean": "rm -rf dist types",
|
|
14
15
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
"types": "types/index.d.ts",
|
|
41
42
|
"exports": {
|
|
42
43
|
".": {
|
|
43
|
-
"types": "./types/index.d.ts",
|
|
44
|
+
"types": "./types/src/index.d.ts",
|
|
44
45
|
"import": "./es/index.js",
|
|
45
46
|
"require": "./cjs/index.js"
|
|
46
47
|
}
|