js-data-adapter
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -0,1 +1,5 @@ | ||
##### 0.8.5 - 01 July 2017 | ||
- Upgrade build process | ||
##### 0.8.4 - 01 July 2017 | ||
@@ -2,0 +6,0 @@ |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('js-data')) : | ||
typeof define === 'function' && define.amd ? define('js-data-adapter', ['exports', 'js-data'], factory) : | ||
(factory((global.Adapter = global.Adapter || {}),global.JSData)); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('js-data')) : | ||
typeof define === 'function' && define.amd ? define('js-data-adapter', ['exports', 'js-data'], factory) : | ||
(factory((global.Adapter = global.Adapter || {}),global.JSData)); | ||
}(this, (function (exports,jsData) { 'use strict'; | ||
@@ -22,26 +22,6 @@ | ||
var get = function get(object, property, receiver) { | ||
if (object === null) object = Function.prototype; | ||
var desc = Object.getOwnPropertyDescriptor(object, property); | ||
if (desc === undefined) { | ||
var parent = Object.getPrototypeOf(object); | ||
if (parent === null) { | ||
return undefined; | ||
} else { | ||
return get(parent, property, receiver); | ||
} | ||
} else if ("value" in desc) { | ||
return desc.value; | ||
} else { | ||
var getter = desc.get; | ||
if (getter === undefined) { | ||
return undefined; | ||
} | ||
return getter.call(receiver); | ||
} | ||
}; | ||
@@ -63,25 +43,2 @@ | ||
var set = function set(object, property, value, receiver) { | ||
var desc = Object.getOwnPropertyDescriptor(object, property); | ||
if (desc === undefined) { | ||
var parent = Object.getPrototypeOf(object); | ||
if (parent !== null) { | ||
set(parent, property, value, receiver); | ||
} | ||
} else if ("value" in desc && desc.writable) { | ||
desc.value = value; | ||
} else { | ||
var setter = desc.set; | ||
if (setter !== undefined) { | ||
setter.call(receiver, value); | ||
} | ||
} | ||
return value; | ||
}; | ||
var slicedToArray = function () { | ||
@@ -88,0 +45,0 @@ function sliceIterator(arr, i) { |
{ | ||
"name": "js-data-adapter", | ||
"description": "Base adapter class that all other js-data adapters extend.", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"homepage": "https://github.com/js-data/js-data-adapter", | ||
@@ -44,18 +44,6 @@ "repository": { | ||
}, | ||
"babel": { | ||
"presets": [ | ||
[ | ||
"es2015" | ||
], | ||
"stage-0" | ||
], | ||
"plugins": [ | ||
"syntax-async-functions", | ||
"transform-regenerator" | ||
] | ||
}, | ||
"scripts": { | ||
"lint": "repo-tools lint \"**/*.js\"", | ||
"bundle_adapter": "rollup -c rollup.config.js -f umd -o dist/js-data-adapter.js -m dist/js-data-adapter.js.map src/index.js", | ||
"bundle_tests": "rollup -c rollup-tests.config.js -f umd -o dist/js-data-adapter-tests.js -m dist/js-data-adapter-tests.js.map test/index.js", | ||
"lint": "standard lint '**/*.js'", | ||
"bundle_adapter": "rollup src/index.js -c -o dist/js-data-adapter.js -m dist/js-data-adapter.js.map -f umd", | ||
"bundle_tests": "rollup test/index.js -c rollup-tests.config.js -o dist/js-data-adapter-tests.js -m dist/js-data-adapter-tests.js.map -f umd", | ||
"bundle": "npm run bundle_adapter && npm run bundle_tests", | ||
@@ -75,11 +63,21 @@ "watch": "watch \"npm run bundle\" src/", | ||
"js-data": "^3.0.0-rc.9", | ||
"mocha": "^3.1.2", | ||
"mocha": "^3.4.2", | ||
"sinon": "^2.3.6" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "6.25.0", | ||
"babel-eslint": "7.2.3", | ||
"babel-plugin-external-helpers": "6.22.0", | ||
"babel-plugin-syntax-async-functions": "6.13.0", | ||
"babel-plugin-transform-es2015-modules-umd": "6.24.1", | ||
"babel-plugin-transform-regenerator": "6.24.1", | ||
"babel-polyfill": "6.23.0", | ||
"babel-preset-es2015": "6.24.1", | ||
"babel-preset-stage-0": "6.24.1", | ||
"js-data-repo-tools": "1.0.0" | ||
"js-data-repo-tools": "1.0.0", | ||
"nyc": "11.0.3", | ||
"rollup": "0.43.0", | ||
"rollup-plugin-babel": "2.7.1", | ||
"standard": "10.0.2" | ||
} | ||
} |
@@ -12,3 +12,3 @@ /* global assert:true */ | ||
sinon.stub(adapter, 'afterCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'afterCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'afterCreate should have received options') | ||
@@ -40,3 +40,3 @@ assert.equal(opts.op, 'afterCreate', 'opts.op') | ||
sinon.stub(adapter, 'afterCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'afterCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'afterCreate should have received options') | ||
@@ -68,3 +68,3 @@ assert.equal(opts.op, 'afterCreate', 'opts.op') | ||
sinon.stub(adapter, 'afterCreate', function (mapper, props, opts, record) { | ||
sinon.stub(adapter, 'afterCreate').callsFake(function (mapper, props, opts, record) { | ||
assert.isDefined(opts, 'afterCreate should have received options') | ||
@@ -97,3 +97,3 @@ assert.equal(opts.op, 'afterCreate', 'opts.op') | ||
sinon.stub(adapter, 'afterCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'afterCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'afterCreate should have received options') | ||
@@ -125,3 +125,3 @@ assert.equal(opts.op, 'afterCreate', 'opts.op') | ||
sinon.stub(adapter, 'afterCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'afterCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'afterCreate should have received options') | ||
@@ -128,0 +128,0 @@ assert.equal(opts.op, 'afterCreate', 'opts.op') |
@@ -12,3 +12,3 @@ /* global assert:true */ | ||
sinon.stub(adapter, 'afterUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'afterUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'afterUpdate should have received options') | ||
@@ -51,3 +51,3 @@ assert.equal(opts.op, 'afterUpdate', 'opts.op') | ||
sinon.stub(adapter, 'afterUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'afterUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'afterUpdate should have received options') | ||
@@ -93,3 +93,3 @@ assert.equal(opts.op, 'afterUpdate', 'opts.op') | ||
sinon.stub(adapter, 'afterUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'afterUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'afterUpdate should have received options') | ||
@@ -132,3 +132,3 @@ assert.equal(opts.op, 'afterUpdate', 'opts.op') | ||
sinon.stub(adapter, 'afterUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'afterUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'afterUpdate should have received options') | ||
@@ -172,3 +172,3 @@ assert.equal(opts.op, 'afterUpdate', 'opts.op') | ||
sinon.stub(adapter, 'afterUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'afterUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'afterUpdate should have received options') | ||
@@ -175,0 +175,0 @@ assert.equal(opts.op, 'afterUpdate', 'opts.op') |
@@ -12,3 +12,3 @@ /* global assert:true */ | ||
sinon.stub(adapter, 'beforeCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'beforeCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'beforeCreate should have received options') | ||
@@ -39,3 +39,3 @@ assert.equal(opts.op, 'beforeCreate', 'opts.op') | ||
sinon.stub(adapter, 'beforeCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'beforeCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'beforeCreate should have received options') | ||
@@ -67,3 +67,3 @@ assert.equal(opts.op, 'beforeCreate', 'opts.op') | ||
sinon.stub(adapter, 'beforeCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'beforeCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'beforeCreate should have received options') | ||
@@ -95,3 +95,3 @@ assert.equal(opts.op, 'beforeCreate', 'opts.op') | ||
sinon.stub(adapter, 'beforeCreate', function (mapper, props, opts) { | ||
sinon.stub(adapter, 'beforeCreate').callsFake(function (mapper, props, opts) { | ||
assert.isDefined(opts, 'beforeCreate should have received options') | ||
@@ -98,0 +98,0 @@ assert.equal(opts.op, 'beforeCreate', 'opts.op') |
@@ -12,3 +12,3 @@ /* global assert:true */ | ||
sinon.stub(adapter, 'beforeUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'beforeUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'beforeUpdate should have received options') | ||
@@ -47,3 +47,3 @@ assert.equal(opts.op, 'beforeUpdate', 'opts.op') | ||
sinon.stub(adapter, 'beforeUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'beforeUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'beforeUpdate should have received options') | ||
@@ -83,3 +83,3 @@ assert.equal(opts.op, 'beforeUpdate', 'opts.op') | ||
sinon.stub(adapter, 'beforeUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'beforeUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'beforeUpdate should have received options') | ||
@@ -119,3 +119,3 @@ assert.equal(opts.op, 'beforeUpdate', 'opts.op') | ||
sinon.stub(adapter, 'beforeUpdate', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, 'beforeUpdate').callsFake(function (mapper, id, props, opts) { | ||
assert.isDefined(opts, 'beforeUpdate should have received options') | ||
@@ -122,0 +122,0 @@ assert.equal(opts.op, 'beforeUpdate', 'opts.op') |
@@ -78,3 +78,3 @@ /* global assert:true */ | ||
sinon.stub(adapter, '_update', function (mapper, id, props, opts) { | ||
sinon.stub(adapter, '_update').callsFake(function (mapper, id, props, opts) { | ||
assert.deepEqual(props.posts, [ | ||
@@ -81,0 +81,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
717193
14
9128
Updatedmocha@^3.4.2