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

ampersand-sync

Package Overview
Dependencies
Maintainers
1
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 0.3.0 to 1.0.0

test/index.js

6

ampersand-sync.js

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

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