akos-egg-nos
Advanced tools
Comparing version 1.0.4 to 1.0.6
{ | ||
"name": "akos-egg-nos", | ||
"version": "1.0.4", | ||
"version": "1.0.6", | ||
"description": "[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][download-url]", | ||
@@ -15,4 +15,4 @@ "eggPlugin": { | ||
"dependencies": { | ||
"node-uuid": "^1.4.8", | ||
"nos-node-sdk": "^0.0.5" | ||
"nos-node-sdk": "^0.0.5", | ||
"uuid": "^3.4.0" | ||
}, | ||
@@ -51,10 +51,2 @@ "devDependencies": { | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/eggjs/egg-nos.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/eggjs/egg/issues" | ||
}, | ||
"homepage": "https://github.com/eggjs/egg-nos#readme", | ||
"author": "Alps_lin", | ||
@@ -66,3 +58,11 @@ "license": "MIT", | ||
"test": "test" | ||
} | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/akos/egg-nos.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/akos/egg-nos/issues" | ||
}, | ||
"homepage": "https://github.com/akos/egg-nos#readme" | ||
} |
@@ -48,2 +48,8 @@ # akos-egg-nos | ||
exports.nos = { | ||
accessId: '', // accessId | ||
secretId: '', // secretId | ||
endpoint: '', // eg:nos-eastchina1.126.net | ||
bucket: '', // testnos | ||
port: '', // eg: 80, 443 | ||
rmFile: '',// 是否删除上报源文件 | ||
}; | ||
@@ -57,2 +63,22 @@ ``` | ||
<!-- example here --> | ||
```js | ||
const result = await this.app.nos.uploadFile(__dirname + '/home.js'); | ||
返回: | ||
{ | ||
statusCode: 200, | ||
headers: { | ||
date: 'Tue, 21 Jan 2020 07:10:12 GMT', | ||
'content-type': 'application/javascript', | ||
'content-length': '0', | ||
connection: 'close', | ||
'x-nos-request-id': '5245eb29-fb6e-4e38-b30d-a15494f55b91', | ||
'x-nos-requesttype': 'PutObject', | ||
'x-nos-object-name': 'home_3fa36420c26b4f469c7bbc7ef1594402.js', | ||
etag: '7026e4bda37cf12fb33b15548ae645be', | ||
'x-nos-storage-class': 'STANDARD', | ||
server: 'nos/v1.0.0' | ||
}, | ||
file_key: 'home_3fa36420c26b4f469c7bbc7ef1594402.js'//文件名 | ||
} | ||
``` | ||
@@ -59,0 +85,0 @@ ## Questions & Suggestions |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7799
0
90
+ Addeduuid@^3.4.0
+ Addeduuid@3.4.0(transitive)
- Removednode-uuid@^1.4.8
- Removednode-uuid@1.4.8(transitive)