File tree Expand file tree Collapse file tree 10 files changed +52
-49
lines changed
Expand file tree Collapse file tree 10 files changed +52
-49
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " leancloud-storage" ,
3- "version" : " 1.3.2 " ,
3+ "version" : " 1.3.3 " ,
44 "homepage" : " https://github.com/leancloud/javascript-sdk" ,
55 "authors" : [
66
Original file line number Diff line number Diff line change 1+ ## 1.3.3 日期:2016 年 8 月 2 日
2+ * 修复在 ` AV.Object ` 子类某属性的 getter 中调用 ` AV.Object#get ` 方法时调用栈溢出的问题
3+
14## 1.3.2 日期:2016 年 7 月 26 日
25* 修复 1.3.1 中未彻底解决的 ` A promise was resolved even though it had already been resolved ` 异常问题
36
Original file line number Diff line number Diff line change @@ -5635,14 +5635,16 @@ module.exports = function(AV) {
56355635 get : function ( attrName ) {
56365636 switch ( attrName ) {
56375637 case 'objectId' :
5638- // 兼容 objectId
5639- return this . id ;
5638+ case 'id' :
5639+ return this . id ;
5640+ case 'url' :
5641+ case 'name' :
5642+ case 'metaData' :
5643+ case 'createdAt' :
5644+ case 'updatedAt' :
5645+ return this . attributes [ attrName ] ;
56405646 default :
5641- if ( this . attributes [ attrName ] === undefined ) {
56425647 return this . attributes . metaData [ attrName ] ;
5643- } else {
5644- return this . attributes [ attrName ] ;
5645- }
56465648 }
56475649 } ,
56485650
@@ -6637,15 +6639,13 @@ module.exports = function(AV) {
66376639 get : function ( attr ) {
66386640 switch ( attr ) {
66396641 case 'objectId' :
6640- // 兼容 objectId
6641- return this . id ;
6642- default :
6643- // 兼容 createdAt、updatedAt
6644- if ( this . attributes [ attr ] === undefined ) {
6642+ case 'id' :
6643+ return this . id ;
6644+ case 'createdAt' :
6645+ case 'updatedAt' :
66456646 return this [ attr ] ;
6646- } else {
6647+ default :
66476648 return this . attributes [ attr ] ;
6648- }
66496649 }
66506650 } ,
66516651
@@ -13165,7 +13165,7 @@ module.exports = {
1316513165 * Each engineer has a duty to keep the code elegant
1316613166**/
1316713167
13168- module . exports = 'js1.3.2 ' ;
13168+ module . exports = 'js1.3.3 ' ;
1316913169
1317013170} , { } ] } , { } , [ 28 ] ) ( 28 )
1317113171} ) ;
Original file line number Diff line number Diff line change @@ -5590,14 +5590,16 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
55905590 get : function get ( attrName ) {
55915591 switch ( attrName ) {
55925592 case 'objectId' :
5593- // 兼容 objectId
5593+ case 'id' :
55945594 return this . id ;
5595+ case 'url' :
5596+ case 'name' :
5597+ case 'metaData' :
5598+ case 'createdAt' :
5599+ case 'updatedAt' :
5600+ return this . attributes [ attrName ] ;
55955601 default :
5596- if ( this . attributes [ attrName ] === undefined ) {
5597- return this . attributes . metaData [ attrName ] ;
5598- } else {
5599- return this . attributes [ attrName ] ;
5600- }
5602+ return this . attributes . metaData [ attrName ] ;
56015603 }
56025604 } ,
56035605
@@ -6590,15 +6592,13 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
65906592 get : function get ( attr ) {
65916593 switch ( attr ) {
65926594 case 'objectId' :
6593- // 兼容 objectId
6595+ case 'id' :
65946596 return this . id ;
6597+ case 'createdAt' :
6598+ case 'updatedAt' :
6599+ return this [ attr ] ;
65956600 default :
6596- // 兼容 createdAt、updatedAt
6597- if ( this . attributes [ attr ] === undefined ) {
6598- return this [ attr ] ;
6599- } else {
6600- return this . attributes [ attr ] ;
6601- }
6601+ return this . attributes [ attr ] ;
66026602 }
66036603 } ,
66046604
@@ -12962,6 +12962,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1296212962 * Each engineer has a duty to keep the code elegant
1296312963 **/
1296412964
12965- module . exports = 'js1.3.2 ' ;
12965+ module . exports = 'js1.3.3 ' ;
1296612966 } , { } ] } , { } , [ 28 ] ) ( 28 ) ;
1296712967} ) ;
Original file line number Diff line number Diff line change @@ -474,14 +474,16 @@ module.exports = function (AV) {
474474 get : function get ( attrName ) {
475475 switch ( attrName ) {
476476 case 'objectId' :
477- // 兼容 objectId
477+ case 'id' :
478478 return this . id ;
479+ case 'url' :
480+ case 'name' :
481+ case 'metaData' :
482+ case 'createdAt' :
483+ case 'updatedAt' :
484+ return this . attributes [ attrName ] ;
479485 default :
480- if ( this . attributes [ attrName ] === undefined ) {
481- return this . attributes . metaData [ attrName ] ;
482- } else {
483- return this . attributes [ attrName ] ;
484- }
486+ return this . attributes . metaData [ attrName ] ;
485487 }
486488 } ,
487489
Original file line number Diff line number Diff line change @@ -313,15 +313,13 @@ module.exports = function (AV) {
313313 get : function get ( attr ) {
314314 switch ( attr ) {
315315 case 'objectId' :
316- // 兼容 objectId
316+ case 'id' :
317317 return this . id ;
318+ case 'createdAt' :
319+ case 'updatedAt' :
320+ return this [ attr ] ;
318321 default :
319- // 兼容 createdAt、updatedAt
320- if ( this . attributes [ attr ] === undefined ) {
321- return this [ attr ] ;
322- } else {
323- return this . attributes [ attr ] ;
324- }
322+ return this . attributes [ attr ] ;
325323 }
326324 } ,
327325
Original file line number Diff line number Diff line change 55 * Each engineer has a duty to keep the code elegant
66**/
77
8- module . exports = 'js1.3.2 ' ;
8+ module . exports = 'js1.3.3 ' ;
Original file line number Diff line number Diff line change 11{
22 "name" : " leancloud-storage" ,
3- "version" : " 1.3.2 " ,
3+ "version" : " 1.3.3 " ,
44 "main" : " ./dist/node/index.js" ,
55 "description" : " LeanCloud JavaScript SDK." ,
66 "repository" : {
Original file line number Diff line number Diff line change 33 * Each engineer has a duty to keep the code elegant
44**/
55
6- module . exports = 'js1.3.2 ' ;
6+ module . exports = 'js1.3.3 ' ;
You can’t perform that action at this time.
0 commit comments