Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contentful

Package Overview
Dependencies
Maintainers
5
Versions
452
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contentful - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

12

dist/sync.js

@@ -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;

4

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc