Skip to content

Commit e1b82e9

Browse files
committed
chore(release): v1.2.1
1 parent 70367e3 commit e1b82e9

File tree

9 files changed

+20
-11
lines changed

9 files changed

+20
-11
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-storage",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"homepage": "https://github.com/leancloud/javascript-sdk",
55
"authors": [
66
"LeanCloud <[email protected]>"

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.2.1 日期:2016 年 6 月 30 日
2+
* 修复美国节点文件上传成功后 File 实例没有 id 的问题
3+
14
# 1.2.0 日期:2016 年 6 月 29 日
25
* 增加 `AV.User.associateWithAuthData()` 方法
36
* 修复美国节点文件上传失败的问题

dist/av-es6.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11394,9 +11394,11 @@ const request = require('superagent');
1139411394
const AVPromise = require('../promise');
1139511395

1139611396
module.exports = function upload(uploadInfo, data, file, saveOptions = {}) {
11397-
// 海外节点,针对 S3 才会返回 upload_url
1139811397
file.attributes.url = uploadInfo.url;
11398+
file._bucket = uploadInfo.bucket;
11399+
file.id = uploadInfo.objectId;
1139911400
const promise = new AVPromise();
11401+
// 海外节点,针对 S3 才会返回 upload_url
1140011402
const req = request('PUT', uploadInfo.upload_url)
1140111403
.set('Content-Type', file.attributes.metaData.mime_type)
1140211404
.send(data)
@@ -13117,7 +13119,7 @@ module.exports = {
1311713119
* Each engineer has a duty to keep the code elegant
1311813120
**/
1311913121

13120-
module.exports = 'js1.2.0';
13122+
module.exports = 'js1.2.1';
1312113123

1312213124
},{}]},{},[28])(28)
1312313125
});

dist/av-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/av.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11249,9 +11249,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1124911249
module.exports = function upload(uploadInfo, data, file) {
1125011250
var saveOptions = arguments.length <= 3 || arguments[3] === undefined ? {} : arguments[3];
1125111251

11252-
// 海外节点,针对 S3 才会返回 upload_url
1125311252
file.attributes.url = uploadInfo.url;
11253+
file._bucket = uploadInfo.bucket;
11254+
file.id = uploadInfo.objectId;
1125411255
var promise = new AVPromise();
11256+
// 海外节点,针对 S3 才会返回 upload_url
1125511257
var req = request('PUT', uploadInfo.upload_url).set('Content-Type', file.attributes.metaData.mime_type).send(data).end(function (err, res) {
1125611258
if (err) {
1125711259
if (res) {
@@ -12914,6 +12916,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1291412916
* Each engineer has a duty to keep the code elegant
1291512917
**/
1291612918

12917-
module.exports = 'js1.2.0';
12919+
module.exports = 'js1.2.1';
1291812920
}, {}] }, {}, [28])(28);
1291912921
});

dist/node/uploader/s3.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ var AVPromise = require('../promise');
1111
module.exports = function upload(uploadInfo, data, file) {
1212
var saveOptions = arguments.length <= 3 || arguments[3] === undefined ? {} : arguments[3];
1313

14-
// 海外节点,针对 S3 才会返回 upload_url
1514
file.attributes.url = uploadInfo.url;
15+
file._bucket = uploadInfo.bucket;
16+
file.id = uploadInfo.objectId;
1617
var promise = new AVPromise();
18+
// 海外节点,针对 S3 才会返回 upload_url
1719
var req = request('PUT', uploadInfo.upload_url).set('Content-Type', file.attributes.metaData.mime_type).send(data).end(function (err, res) {
1820
if (err) {
1921
if (res) {

dist/node/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
* Each engineer has a duty to keep the code elegant
66
**/
77

8-
module.exports = 'js1.2.0';
8+
module.exports = 'js1.2.1';

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "leancloud-storage",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"main": "./dist/node/index.js",
55
"description": "LeanCloud JavaScript SDK.",
66
"repository": {

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* Each engineer has a duty to keep the code elegant
44
**/
55

6-
module.exports = 'js1.2.0';
6+
module.exports = 'js1.2.1';

0 commit comments

Comments
 (0)