pug-site-core 2.0.4 → 2.0.5

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.
Files changed (2) hide show
  1. package/lib/generate.js +3 -3
  2. package/package.json +2 -2
package/lib/generate.js CHANGED
@@ -221,8 +221,8 @@ export async function fetchDataToJsonFile(args) {
221
221
  const commonFuncName = "get_common_data";
222
222
  if (isFillFun(commonFuncName)) {
223
223
  allTasks.push(async () => {
224
- const commonData = await getData[commonFuncName](language);
225
224
  console.log(language, commonFuncName, "开始写入json文件");
225
+ const commonData = await getData[commonFuncName](language);
226
226
  await fse.outputJSON(
227
227
  paths.resolveRoot("jsonData", language, "_common.json"),
228
228
  commonData
@@ -251,9 +251,9 @@ export async function fetchDataToJsonFile(args) {
251
251
  }
252
252
 
253
253
  allTasks.push(async () => {
254
+ console.log(language, obj.getDataFn, "开始写入json文件");
254
255
  let data = await dataFn(language);
255
256
  await checkData(data, language, obj.getDataFn);
256
- console.log(language, obj.getDataFn, "开始写入json文件");
257
257
  let outPutPath = obj.outPutPath.split("/").join(pathSymbol);
258
258
  if (Array.isArray(data)) {
259
259
  let name = outPutPath.split(pathSymbol).pop().replace(/\..*$/, "");
@@ -300,9 +300,9 @@ export async function fetchDataToJsonFile(args) {
300
300
  }
301
301
 
302
302
  allTasks.push(async () => {
303
+ console.log(language, funName, "开始写入json文件");
303
304
  let data = await getData[funName](language);
304
305
  await checkData(data, language, funName);
305
- console.log(language, funName, "开始写入json文件");
306
306
  if (Array.isArray(data)) {
307
307
  for (let index = 0; index < data.length; index++) {
308
308
  const item = data[index];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pug-site-core",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  "axios": "^1.7.7"
38
38
  },
39
39
  "license": "ISC",
40
- "description": "去掉调试log",
40
+ "description": "优化log",
41
41
  "files": [
42
42
  "lib/",
43
43
  "index.js"