dfs-adapter 1.0.3 → 1.0.4
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/lib/sftp.js +3 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +43 -43
package/lib/sftp.js
CHANGED
|
@@ -35,10 +35,11 @@ class SftpDfs extends declare_1.Dfs {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
getSavePath(savePath) {
|
|
38
|
+
let localPath = savePath;
|
|
38
39
|
if (!savePath.startsWith('/')) {
|
|
39
|
-
|
|
40
|
+
localPath = '/' + savePath;
|
|
40
41
|
}
|
|
41
|
-
return this.options.saveDir +
|
|
42
|
+
return this.options.saveDir + localPath;
|
|
42
43
|
}
|
|
43
44
|
async upload(remotePath, buffer) {
|
|
44
45
|
return this.doSftp(async (client) => {
|
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/cos.ts","../src/declare.ts","../src/fastdfs.ts","../src/http.ts","../src/index.ts","../src/mdfs.ts","../src/minio.ts","../src/native.ts","../src/obs.ts","../src/oss.ts","../src/sftp.ts"],"version":"5.
|
|
1
|
+
{"root":["../src/cos.ts","../src/declare.ts","../src/fastdfs.ts","../src/http.ts","../src/index.ts","../src/mdfs.ts","../src/minio.ts","../src/native.ts","../src/obs.ts","../src/oss.ts","../src/sftp.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dfs-adapter",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "oss minio fastdfs native",
|
|
5
|
-
"main": "./lib/index",
|
|
6
|
-
"files": [
|
|
7
|
-
"lib/"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"test": "node bin/app.js",
|
|
11
|
-
"build": "tsc --build tsconfig.json",
|
|
12
|
-
"run": "npm run build && node bin/app.js"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git@codeup.aliyun.com:60b0836844816b8ed2335ed6/vweb/modules/mq-adapter.git"
|
|
17
|
-
},
|
|
18
|
-
"devDependencies": {
|
|
19
|
-
"@babel/cli": "^7.16.0",
|
|
20
|
-
"@babel/core": "^7.16.0",
|
|
21
|
-
"@babel/plugin-proposal-decorators": "^7.16.4",
|
|
22
|
-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
23
|
-
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
24
|
-
"@babel/preset-env": "^7.16.4",
|
|
25
|
-
"@babel/register": "^7.16.0",
|
|
26
|
-
"@babel/runtime": "^7.16.3",
|
|
27
|
-
"@types/ali-oss": "^6.16.3",
|
|
28
|
-
"@types/node": "^16.11.12",
|
|
29
|
-
"@types/ssh2-sftp-client": "^9.0.5",
|
|
30
|
-
"ali-oss": "^6.18.1",
|
|
31
|
-
"axios": "^1.6.1",
|
|
32
|
-
"babel-plugin-transform-decorators-legacy": "^1.3.5",
|
|
33
|
-
"cos-nodejs-sdk-v5": "^2.14.4",
|
|
34
|
-
"esdk-obs-nodejs": "^3.24.3",
|
|
35
|
-
"form-data": "^4.0.0",
|
|
36
|
-
"minio": "^8.0.0",
|
|
37
|
-
"ssh2-sftp-client": "^12.0.1",
|
|
38
|
-
"vweb-core": "^3.0.14",
|
|
39
|
-
"vweb-mvc": "^1.2.18"
|
|
40
|
-
},
|
|
41
|
-
"author": "",
|
|
42
|
-
"license": "ISC"
|
|
43
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dfs-adapter",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "oss minio fastdfs native",
|
|
5
|
+
"main": "./lib/index",
|
|
6
|
+
"files": [
|
|
7
|
+
"lib/"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "node bin/app.js",
|
|
11
|
+
"build": "tsc --build tsconfig.json",
|
|
12
|
+
"run": "npm run build && node bin/app.js"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git@codeup.aliyun.com:60b0836844816b8ed2335ed6/vweb/modules/mq-adapter.git"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@babel/cli": "^7.16.0",
|
|
20
|
+
"@babel/core": "^7.16.0",
|
|
21
|
+
"@babel/plugin-proposal-decorators": "^7.16.4",
|
|
22
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
23
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
24
|
+
"@babel/preset-env": "^7.16.4",
|
|
25
|
+
"@babel/register": "^7.16.0",
|
|
26
|
+
"@babel/runtime": "^7.16.3",
|
|
27
|
+
"@types/ali-oss": "^6.16.3",
|
|
28
|
+
"@types/node": "^16.11.12",
|
|
29
|
+
"@types/ssh2-sftp-client": "^9.0.5",
|
|
30
|
+
"ali-oss": "^6.18.1",
|
|
31
|
+
"axios": "^1.6.1",
|
|
32
|
+
"babel-plugin-transform-decorators-legacy": "^1.3.5",
|
|
33
|
+
"cos-nodejs-sdk-v5": "^2.14.4",
|
|
34
|
+
"esdk-obs-nodejs": "^3.24.3",
|
|
35
|
+
"form-data": "^4.0.0",
|
|
36
|
+
"minio": "^8.0.0",
|
|
37
|
+
"ssh2-sftp-client": "^12.0.1",
|
|
38
|
+
"vweb-core": "^3.0.14",
|
|
39
|
+
"vweb-mvc": "^1.2.18"
|
|
40
|
+
},
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "ISC"
|
|
43
|
+
}
|