ampersand-sync
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -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); |
{ | ||
"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": [ |
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
14136