Comparing version 0.6.0-next.5 to 0.6.0-next.6
@@ -43,5 +43,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, saveMode, source, dest, includeExtname, excludeExtname, openCache, mkdirIfSingle; | ||
return __generator(this, function (_b) { | ||
switch (_b.label) { | ||
var config, saveMode, source, dest, includeExtname, excludeExtname, openCache, mkdirIfSingle; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
@@ -56,3 +56,4 @@ configPath = path.isAbsolute(configPath) | ||
case 1: | ||
_a = (_b.sent())["default"], saveMode = _a.saveMode, source = _a.source, dest = _a.dest, includeExtname = _a.includeExtname, excludeExtname = _a.excludeExtname, openCache = _a.openCache, mkdirIfSingle = _a.mkdirIfSingle; | ||
config = (_a.sent())["default"]; | ||
saveMode = config.saveMode, source = config.source, dest = config.dest, includeExtname = config.includeExtname, excludeExtname = config.excludeExtname, openCache = config.openCache, mkdirIfSingle = config.mkdirIfSingle; | ||
if (source) { | ||
@@ -59,0 +60,0 @@ warning(!path.isAbsolute(source), '配置文件', chalk.cyan(configPath), '源地址必须指定绝对路劲'); |
@@ -5,3 +5,3 @@ import path from 'path'; | ||
export var hlinkHomeDir = path.join(os.homedir(), '.hlink'); | ||
export var configName = 'hlink.config.js'; | ||
export var configName = 'hlink.config.mjs'; | ||
export var configPath = path.join(os.homedir(), configName); | ||
@@ -8,0 +8,0 @@ export var cachePath = path.join(hlinkHomeDir, 'cache-array.json'); |
{ | ||
"name": "hlink", | ||
"version": "0.6.0-next.5", | ||
"version": "0.6.0-next.6", | ||
"description": "hlink", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89303
31
1775