ampersand-sync
Advanced tools
Comparing version 0.3.0 to 1.0.0
@@ -65,5 +65,7 @@ var _ = require('underscore'); | ||
var ajaxSettings = _.extend(params, options); | ||
// Make the request, allowing the user to override any Ajax options. | ||
var xhr = options.xhr = $.ajax(_.extend(params, options)); | ||
model.trigger('request', model, xhr, options); | ||
var xhr = options.xhr = $.ajax(ajaxSettings); | ||
model.trigger('request', model, xhr, options, ajaxSettings); | ||
return xhr; | ||
@@ -70,0 +72,0 @@ }; |
{ | ||
"name": "ampersand-sync", | ||
"description": "Standalone, modern-browser-only version of Backbone.Sync as Common JS module.", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -14,3 +14,9 @@ "bugs": { | ||
"devDependencies": { | ||
"precommit-hook": "^0.3.10" | ||
"jshint": "~2.5.0", | ||
"precommit-hook": "~0.4.1", | ||
"run-browser": "~1.3.0", | ||
"tape": "~2.12.3", | ||
"tape-run": "~0.1.1", | ||
"ampersand-model": "~2.8.0", | ||
"ampersand-rest-collection": "~0.1.8" | ||
}, | ||
@@ -30,2 +36,6 @@ "homepage": "https://github.com/ampersandjs/ampersand-sync", | ||
}, | ||
"scripts": { | ||
"start": "run-browser test/*", | ||
"test": "browserify test/* | tape-run" | ||
}, | ||
"testling": { | ||
@@ -32,0 +42,0 @@ "files": "test/*.js", |
@@ -7,2 +7,6 @@ # ampersand-sync | ||
## browser support | ||
[![testling badge](https://ci.testling.com/AmpersandJS/ampersand-sync.png)](https://ci.testling.com/AmpersandJS/ampersand-sync) | ||
<!-- starthide --> | ||
@@ -18,2 +22,12 @@ Part of the [Ampersand.js toolkit](http://ampersandjs.com) for building clientside applications. | ||
## running the tests | ||
``` | ||
npm test | ||
``` | ||
Tests are written in [tape](https://github.com/substack/tape) and since they require a browser environment it gets run in a headless browser using phantomjs via [tape-run](https://github.com/juliangruber/tape-run). Make sure you have phantomjs installed for this to work. | ||
You can also run `npm start` then open a browser. | ||
<!-- starthide --> | ||
@@ -27,2 +41,3 @@ | ||
## license | ||
@@ -29,0 +44,0 @@ |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6137
7
86
0
45
7