@dfeidao/atom-mobile
Advanced tools
Comparing version 4.6.201904300920 to 4.6.201904301108
@@ -12,3 +12,4 @@ "use strict"; | ||
const delete_1 = __importDefault(require("./delete")); | ||
const path_1 = require("./path"); | ||
const doc_1 = __importDefault(require("./dir/doc")); | ||
const dir = doc_1.default(); | ||
async function upload(fd, options, begin_cb, progress_cb) { | ||
@@ -18,3 +19,3 @@ const provisional_fils = []; | ||
const files = options.files; | ||
const reg = new RegExp(`^${path_1.DocumentDirectoryPath}`); | ||
const reg = new RegExp(`^${dir}`); | ||
const need_copy = files.filter((i, index) => { | ||
@@ -25,3 +26,3 @@ const filepath = i.filepath; | ||
// 截取文件名+后缀, /public/images/test.jpg => test.jpg | ||
const new_path = path_1.DocumentDirectoryPath + '/' + filepath.replace(/(.*\/)*([^.]+)/i, '$2'); | ||
const new_path = dir + '/' + filepath.replace(/(.*\/)*([^.]+)/i, '$2'); | ||
provisional_fils.push(new_path); | ||
@@ -28,0 +29,0 @@ storage_fils.push(filepath); |
{ | ||
"name": "@dfeidao/atom-mobile", | ||
"version": "4.6.201904300920", | ||
"version": "4.6.201904301108", | ||
"description": "原子操作", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
103355
204
3295