Socket
Socket
Sign inDemoInstall

ampersand-sync

Package Overview
Dependencies
Maintainers
4
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 3.0.1 to 3.0.2

2

ampersand-sync.js

@@ -90,2 +90,4 @@ /*$AMPERSAND_VERSION*/

params.xhrFields = ajaxConfig.xhrFields;
} else {
params.beforeSend = ajaxConfig.beforeSend;
}

@@ -92,0 +94,0 @@

2

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

@@ -6,0 +6,0 @@ "browserify": {

@@ -219,1 +219,19 @@ var test = require('tape');

});
test('Call user provided beforeSend function from model\'s ajaxConfig when no custom xhrFields are passed', function (t) {
t.plan(1);
var Me = Model.extend({
url: '/hi',
ajaxConfig: {
beforeSend: function (xhr) {
t.pass();
}
}
});
var m = new Me();
var xhr = sync('create', m);
t.end();
});
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