contentful
Advanced tools
Comparing version 3.2.1 to 3.3.0
@@ -123,2 +123,3 @@ 'use strict'; | ||
* @param {string} id | ||
* @param {Object=} query - Object with search parameters. In this method it's only useful for `locale`. | ||
* @return {Promise<Entities.Entry>} Promise for an Entry | ||
@@ -130,3 +131,5 @@ * @example | ||
function getEntry(id) { | ||
return http.get('entries/' + id).then(function (response) { | ||
var query = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
return http.get('entries/' + id, (0, _createRequestConfig2.default)({ query: query })).then(function (response) { | ||
return (0, _entry.wrapEntry)(response.data); | ||
@@ -159,2 +162,3 @@ }, errorHandler); | ||
* @param {string} id | ||
* @param {Object=} query - Object with search parameters. In this method it's only useful for `locale`. | ||
* @return {Promise<Entities.Asset>} Promise for an Asset | ||
@@ -166,3 +170,5 @@ * @example | ||
function getAsset(id) { | ||
return http.get('assets/' + id).then(function (response) { | ||
var query = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
return http.get('assets/' + id, (0, _createRequestConfig2.default)({ query: query })).then(function (response) { | ||
return (0, _asset.wrapAsset)(response.data); | ||
@@ -169,0 +175,0 @@ }, errorHandler); |
@@ -17,2 +17,6 @@ 'use strict'; | ||
var _qs = require('qs'); | ||
var _qs2 = _interopRequireDefault(_qs); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -62,4 +66,5 @@ | ||
headers: headers, | ||
agent: agent | ||
agent: agent, | ||
paramsSerializer: _qs2.default.stringify | ||
}); | ||
} |
@@ -53,3 +53,4 @@ { | ||
"json-stringify-safe": "^5.0.1", | ||
"lodash": "^4.2.0" | ||
"lodash": "^4.2.0", | ||
"qs": "^6.1.0" | ||
}, | ||
@@ -96,3 +97,3 @@ "devDependencies": { | ||
}, | ||
"version": "3.2.1" | ||
"version": "3.3.0" | ||
} |
@@ -1,1 +0,1 @@ | ||
module.exports = '3.2.1' | ||
module.exports = '3.3.0' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
818601
21104
5
+ Addedqs@^6.1.0
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.1.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.1(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)