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

js-data-rethinkdb

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-data-rethinkdb - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

##### 3.0.0-alpha.2 - 26 February 2016
###### Backwards compatible bug fixes
- Fixed edge case with returnDeletedIds
##### 3.0.0-alpha.1 - 26 February 2016

@@ -2,0 +7,0 @@

6

dist/js-data-rethinkdb.js

@@ -582,3 +582,3 @@ 'use strict';

var deleted = 0;
if (cursor && cursor.deleted) {
if (cursor && cursor.deleted && returnDeletedIds) {
deleted = cursor.deleted;

@@ -590,6 +590,6 @@ }

// Allow for re-assignment from lifecycle hook
id = isUndefined(_id) && returnDeletedIds ? id : _id;
id = isUndefined(_id) && deleted ? id : _id;
var result = {};
fillIn(result, cursor);
result.data = deleted ? id : undefined;
result.data = id;
return self.getRaw(opts) ? result : result.data;

@@ -596,0 +596,0 @@ });

{
"name": "js-data-rethinkdb",
"description": "RethinkDB adapter for js-data.",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"homepage": "https://github.com/js-data/js-data-rethinkdb",

@@ -62,6 +62,6 @@ "repository": {

"codacy-coverage": "1.1.3",
"coveralls": "2.11.6",
"coveralls": "2.11.8",
"ink-docstrap": "1.1.2",
"istanbul": "0.4.2",
"js-data-adapter-tests": "^2.0.0-alpha.6",
"js-data-adapter-tests": "^2.0.0-alpha.7",
"jsdoc": "3.4.0",

@@ -68,0 +68,0 @@ "mocha": "2.4.5",

@@ -31,7 +31,7 @@ <img src="https://raw.githubusercontent.com/js-data/js-data/master/js-data.png" alt="js-data logo" title="js-data" align="right" width="96" height="96" />

```js
var JSData = require('js-data');
var RethinkDBAdapter = require('js-data-rethinkdb');
import {Container} from 'js-data'
import RethinkDBAdapter from 'js-data-rethinkdb'
var store = new JSData.DS();
var adapter = new RethinkDBAdapter();
const store = new Container()
const adapter = new RethinkDBAdapter()

@@ -41,5 +41,3 @@ // "store" will now use the RethinkDB adapter for all async operations

var User = store.defineResource({
name: 'user'
});
store.defineMapper('user');
```

@@ -46,0 +44,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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