js-data-rethinkdb
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -0,1 +1,6 @@ | ||
##### 2.0.3 - 13 October 2015 | ||
###### Backwards compatible bug fixes | ||
- #13, #14 - Using `where` in a query without an operator breaks by @internalfx | ||
##### 2.0.2 - 09 September 2015 | ||
@@ -2,0 +7,0 @@ |
@@ -132,5 +132,3 @@ module.exports = | ||
if (!isObject(criteria)) { | ||
params.where[field] = { | ||
'==': criteria | ||
}; | ||
criteria = { '==': criteria }; | ||
} | ||
@@ -137,0 +135,0 @@ forOwn(criteria, function (v, op) { |
@@ -21,8 +21,2 @@ /* | ||
pkg: pkg, | ||
watch: { | ||
dist: { | ||
files: ['src/**/*.js'], | ||
tasks: ['build'] | ||
} | ||
}, | ||
coveralls: { | ||
@@ -89,5 +83,2 @@ options: { | ||
grunt.registerTask('n', ['mochaTest']); | ||
grunt.registerTask('test', ['build', 'n']); | ||
grunt.registerTask('build', [ | ||
@@ -97,4 +88,4 @@ 'standard', | ||
]); | ||
grunt.registerTask('go', ['build', 'watch:dist']); | ||
grunt.registerTask('test', ['build', 'mochaTest']); | ||
grunt.registerTask('default', ['build']); | ||
}; |
@@ -6,3 +6,2 @@ /*global assert:true */ | ||
var mocha = require('mocha'); | ||
var sinon = require('sinon'); | ||
var DSRethinkDBAdapter = require('./'); | ||
@@ -38,3 +37,2 @@ var JSData = require('js-data'); | ||
assert: assert, | ||
sinon: sinon, | ||
adapter: undefined | ||
@@ -41,0 +39,0 @@ }; |
{ | ||
"name": "js-data-rethinkdb", | ||
"description": "RethinkDB adapter for js-data.", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"homepage": "http://www.js-data.io/docs/dsrethinkdbadapter", | ||
@@ -31,10 +31,8 @@ "repository": { | ||
"devDependencies": { | ||
"babel-core": "5.8.23", | ||
"babel-eslint": "4.1.1", | ||
"babel-core": "5.8.25", | ||
"babel-eslint": "4.1.3", | ||
"babel-loader": "5.3.2", | ||
"bluebird": "2.10.0", | ||
"chai": "3.2.0", | ||
"bluebird": "2.10.2", | ||
"chai": "3.3.0", | ||
"grunt": "0.4.5", | ||
"grunt-contrib-watch": "0.6.1", | ||
"grunt-karma-coveralls": "2.5.4", | ||
"grunt-mocha-test": "0.12.7", | ||
@@ -45,7 +43,8 @@ "grunt-webpack": "1.0.11", | ||
"jshint-loader": "0.8.3", | ||
"sinon": "1.16.1", | ||
"standard": "5.2.2", | ||
"time-grunt": "1.2.1", | ||
"webpack-dev-server": "1.10.1" | ||
"standard": "5.3.1", | ||
"time-grunt": "1.2.1" | ||
}, | ||
"standard": { | ||
"parser": "babel-eslint" | ||
}, | ||
"scripts": { | ||
@@ -52,0 +51,0 @@ "test": "grunt test" |
@@ -17,10 +17,2 @@ <img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="64" height="64" /> | ||
__Status:__ | ||
[![Dependency Status](https://img.shields.io/gemnasium/js-data/js-data-rethinkdb.svg?style=flat-square)](https://gemnasium.com/js-data/js-data-rethinkdb) [![Codacity](https://img.shields.io/codacy/69206fcb0df6462ca559610af32fd1fb.svg?style=flat-square)](https://www.codacy.com/public/jasondobry/js-data-rethinkdb/dashboard) | ||
__Supported Platforms:__ | ||
[![node version](https://img.shields.io/badge/Node-0.10%2B-green.svg?style=flat-square)](https://github.com/js-data/js-data) | ||
### Quick Start | ||
@@ -27,0 +19,0 @@ `npm install --save js-data js-data-rethinkdb`. |
@@ -72,5 +72,3 @@ let rethinkdbdash = require('rethinkdbdash') | ||
if (!isObject(criteria)) { | ||
params.where[field] = { | ||
'==': criteria | ||
} | ||
criteria = {'==': criteria} | ||
} | ||
@@ -77,0 +75,0 @@ forOwn(criteria, function (v, op) { |
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
13
68935
1397
93