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

ali-oss

Package Overview
Dependencies
Maintainers
4
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-oss - npm Package Compare versions

Comparing version 4.11.0 to 4.11.1

6

History.md
4.11.1 / 2017-11-07
==================
**fixes**
* [[`029dcc2`](http://github.com/ali-sdk/ali-oss/commit/029dcc2374c1d4cbb1589a4b15bae1d3057228e0)] - fix: process the client's local time is skew (#314) (饶培泽 <<peizerao@gmail.com>>)
4.11.0 / 2017-10-25

@@ -3,0 +9,0 @@ ==================

10

lib/browser/client.js

@@ -49,2 +49,5 @@ 'use strict';

this.userAgent = this._getUserAgent();
// record the time difference between client and server
this.amendTimeSkewed = 0;
}

@@ -229,3 +232,3 @@

var headers = {
'x-oss-date': dateFormat(new Date(), 'UTC:ddd, dd mmm yyyy HH:MM:ss \'GMT\''),
'x-oss-date': dateFormat(+new Date() + this.amendTimeSkewed, 'UTC:ddd, dd mmm yyyy HH:MM:ss \'GMT\''),
'x-oss-user-agent': this.userAgent,

@@ -313,2 +316,6 @@ 'User-Agent': this.userAgent

var err = yield* this.requestError(result);
if (err.code === 'RequestTimeTooSkewed') {
this.amendTimeSkewed = +new Date(err.serverTime) - new Date()
return yield* this.request(params);
}
err.params = params;

@@ -488,2 +495,3 @@ throw err;

err.hostId = info.HostId;
err.serverTime = info.ServerTime;
}

@@ -490,0 +498,0 @@

3

package.json
{
"name": "ali-oss",
"version": "4.11.0",
"version": "4.11.1",
"description": "aliyun oss(object storage service) node client",

@@ -85,2 +85,3 @@ "main": "lib/client.js",

"thunk-mocha": "^1.0.3",
"timemachine": "^0.3.0",
"uglify-js": "^2.8.29",

@@ -87,0 +88,0 @@ "watchify": "^3.9.0"

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