contentful
Advanced tools
Comparing version 3.1.1 to 3.2.0
@@ -25,2 +25,10 @@ 'use strict'; | ||
var _stringifySafe = require('./mixins/stringify-safe'); | ||
var _stringifySafe2 = _interopRequireDefault(_stringifySafe); | ||
var _toPlainObject = require('./mixins/to-plain-object'); | ||
var _toPlainObject2 = _interopRequireDefault(_toPlainObject); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -36,2 +44,4 @@ | ||
* @prop {string} nextSyncToken - Token to be sent to the next sync call | ||
* @prop {function(): Object} toPlainObject() - Returns this Sync collection as a plain JS object | ||
* @prop {function(?function=, space=): Object} stringifySafe(replacer,space) - Stringifies the Sync collection, accounting for circular references. Circular references will be replaced with just a Link object, with a <code>circular</code> property set to <code>true</code>. See <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify">MDN</a> and <a href="https://www.npmjs.com/package/json-stringify-safe">json-stringify-safe</a> for more details on the arguments this method can take. | ||
*/ | ||
@@ -90,3 +100,3 @@ | ||
mappedResponseItems.nextSyncToken = response.nextSyncToken; | ||
return (0, _freeze2.default)(mappedResponseItems); | ||
return (0, _freeze2.default)((0, _stringifySafe2.default)((0, _toPlainObject2.default)(mappedResponseItems))); | ||
}, function (error) { | ||
@@ -93,0 +103,0 @@ throw error.data; |
@@ -95,3 +95,3 @@ { | ||
}, | ||
"version": "3.1.1" | ||
} | ||
"version": "3.2.0" | ||
} |
@@ -53,2 +53,3 @@ # contentful.js | ||
``` | ||
**It is not recommended to use the above URL for production.** | ||
@@ -61,2 +62,4 @@ Using `contentful@latest` will always get you the latest version, but you can also specify a specific version number: | ||
Check the [releases](https://github.com/contentful/contentful.js/releases) page to know which versions are available. | ||
## Authentication | ||
@@ -63,0 +66,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = '3.1.1' | ||
module.exports = '3.2.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
803537
20850
106