ampersand-sync
Advanced tools
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", |
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
6
14126
9
+ Addedlodash@^4.11.1
+ Addedcall-bind@1.0.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
- Removedlodash.assign@^3.0.0
- Removedlodash.defaults@^3.1.0
- Removedlodash.includes@^3.1.0
- Removedlodash.result@^3.0.0
- Removedlodash._baseassign@3.2.0(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._baseget@3.7.2(transitive)
- Removedlodash._baseindexof@3.1.0(transitive)
- Removedlodash._baseslice@3.0.3(transitive)
- Removedlodash._basevalues@3.0.0(transitive)
- Removedlodash._bindcallback@3.0.1(transitive)
- Removedlodash._createassigner@3.1.1(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash._topath@3.8.1(transitive)
- Removedlodash.assign@3.2.0(transitive)
- Removedlodash.defaults@3.1.2(transitive)
- Removedlodash.includes@3.1.3(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.isfunction@3.0.9(transitive)
- Removedlodash.isstring@3.0.1(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedlodash.restparam@3.6.1(transitive)
- Removedlodash.result@3.1.2(transitive)
- Removedqs@4.0.0(transitive)
Updatedqs@^6.1.0