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

ampersand-sync

Package Overview
Dependencies
Maintainers
8
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-sync - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

5

core.js

@@ -44,4 +44,3 @@ /*$AMPERSAND_VERSION*/

var ajaxConfig = (result(model, 'ajaxConfig') || {});
var ajaxConfig = result(model, 'ajaxConfig', {});
var key;

@@ -134,3 +133,3 @@ // Combine generated headers with user's headers.

var parseJson = accept.isValid() && accept.type === 'application' && (accept.subtype === 'json' || accept.suffix === 'json');
if (typeof body === 'string' && (!params.headers.accept || parseJson)) {
if (typeof body === 'string' && body !== '' && (!params.headers.accept || parseJson)) {
try {

@@ -137,0 +136,0 @@ body = JSON.parse(body);

2

package.json
{
"name": "ampersand-sync",
"description": "Provides sync behavior for updating data from ampersand models and collections to the server.",
"version": "5.0.0",
"version": "5.0.1",
"author": "Henrik Joreteg <henrik@andyet.net>",

@@ -6,0 +6,0 @@ "files": [

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