File tree Expand file tree Collapse file tree 4 files changed +6
-16
lines changed
Expand file tree Collapse file tree 4 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " contentstack" ,
3- "version" : " 3.3 .0" ,
3+ "version" : " 3.4 .0" ,
44 "description" : " Contentstack Javascript SDK" ,
55 "homepage" : " https://www.contentstack.com/" ,
66 "author" : {
Original file line number Diff line number Diff line change @@ -34,17 +34,6 @@ export default class Assets {
3434 return this ;
3535 }
3636
37- /**
38- * @method Query
39- * @description Query instance to provide support for all search queries.
40- * @example Assets().Query()
41- * @returns {Query }
42- */
43- Query ( ) {
44- let query = new Query ( ) ;
45- return Utils . merge ( query , this ) ;
46- }
47-
4837 /**
4938 * @method toJSON
5039 * @description This method is used to convert the result in to plain javascript object.
Original file line number Diff line number Diff line change @@ -90,11 +90,11 @@ const _extend = {
9090 * @ignore
9191 */
9292export default class Query extends Entry {
93+
9394 constructor ( ) {
9495 super ( ) ;
9596 this . _query = this . _query || { } ;
9697 this . _query [ 'query' ] = this . _query [ 'query' ] || { } ;
97-
9898 /**
9999 * @method lessThan
100100 * @description This method provides only the entries with values less than the specified value for a field.
Original file line number Diff line number Diff line change @@ -209,16 +209,17 @@ export default class Stack {
209209 * @method Assets
210210 * @description Set the Asset Uid which you want to retrive the Asset.
211211 * @param {String } uid - asset_uid
212- * @example Stack.Assets('blt1234567890abcef')
212+ * @example Stack.Assets('blt1234567890abcef').fetch
213213 * @returns {Assets }
214214 */
215215 Assets ( uid ) {
216- let asset = new Assets ( ) ;
217216 this . type = 'asset' ;
218217 if ( uid && typeof uid === "string" ) {
218+ let asset = new Assets ( ) ;
219219 asset . asset_uid = uid ;
220+ return Utils . merge ( asset , this ) ;
220221 }
221- return Utils . merge ( asset , this ) ;
222+ return this ;
222223 }
223224
224225 /**
You can’t perform that action at this time.
0 commit comments