Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

akos-egg-nos

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

akos-egg-nos - npm Package Compare versions

Comparing version 1.0.4 to 1.0.6

24

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc