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

ampersand-sync

Package Overview
Dependencies
Maintainers
7
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 4.0.3 to 5.0.0

16

core.js
/*$AMPERSAND_VERSION*/
var result = require('lodash.result');
var defaults = require('lodash.defaults');
var includes = require('lodash.includes');
var assign = require('lodash.assign');
var result = require('lodash/result');
var defaults = require('lodash/defaults');
var includes = require('lodash/includes');
var assign = require('lodash/assign');
var qs = require('qs');

@@ -27,3 +27,3 @@ var mediaType = require('media-type');

return function (method, model, optionsInput) {
//Copy the options object. It's using assign instead of clonedeep as an optimization.
//Copy the options object. It's using assign instead of clonedeep as an optimization.
//The only object we could expect in options is headers, which is safely transfered below.

@@ -44,4 +44,4 @@ var options = assign({},optionsInput);

var params = {type: type};
var ajaxConfig = (result(model, 'ajaxConfig') || {});

@@ -113,3 +113,3 @@ var key;

params.xhrFields = ajaxConfig.xhrFields;
}
}

@@ -116,0 +116,0 @@ // Turn a jQuery.ajax formatted request into xhr compatible

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

@@ -20,8 +20,5 @@ "files": [

"ampersand-version": "^1.0.0",
"lodash.assign": "^3.0.0",
"lodash.defaults": "^3.1.0",
"lodash.includes": "^3.1.0",
"lodash.result": "^3.0.0",
"lodash": "^4.11.1",
"media-type": "0.3.0",
"qs": "^4.0.0",
"qs": "^6.1.0",
"request": "^2.55.0",

@@ -31,10 +28,11 @@ "xhr": "^2.0.5"

"devDependencies": {
"ampersand-model": "^5.0.3",
"ampersand-rest-collection": "^4.0.0",
"ampersand-model": "^7.0.0",
"ampersand-rest-collection": "^5.0.0",
"concat-stream": "^1.4.8",
"jshint": "^2.5.3",
"phantomjs": "^2.1.7",
"precommit-hook": "^3.0.0",
"run-browser": "^2.0.2",
"tap-spec": "^4.0.2",
"tape": "^4.0.0"
"sinon": "^1.17.2",
"tape": "^4.0.0",
"zuul": "^3.9.0"
},

@@ -56,23 +54,8 @@ "homepage": "https://github.com/ampersandjs/ampersand-sync",

"scripts": {
"start": "run-browser test/index.js",
"test": "run-browser test/index.js -b | tap-spec && node test/index.js",
"start": "zuul --local -- test/index.js",
"test": "zuul --phantom -- test/index.js",
"test-ci": "zuul -- test/index.js",
"lint": "jshint .",
"validate": "npm ls"
},
"testling": {
"files": "test/*.js",
"browsers": [
"ie/8..latest",
"firefox/17..latest",
"firefox/nightly",
"chrome/22..latest",
"chrome/canary",
"opera/12..latest",
"opera/next",
"safari/5.1..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2..latest"
]
},
"pre-commit": [

@@ -79,0 +62,0 @@ "lint",

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