New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

redink

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redink - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

dist/database.js

18

dist/index.js

@@ -8,23 +8,23 @@ 'use strict';

var _db = require('./db');
var _dbSingleton = require('./dbSingleton');
var create = exports.create = function create(type, data) {
return (0, _db.db)().instance().create;
return (0, _dbSingleton.db)().instance().create;
}; /* eslint-disable no-unused-vars */
var update = exports.update = function update(type, id, data) {
return (0, _db.db)().instance().update;
return (0, _dbSingleton.db)().instance().update;
};
var archive = exports.archive = function archive(type, id) {
return (0, _db.db)().instance().delete;
return (0, _dbSingleton.db)().instance().delete;
};
var find = exports.find = function find(type) {
var filter = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
return (0, _db.db)().instance().find;
return (0, _dbSingleton.db)().instance().find;
};
var fetch = exports.fetch = function fetch(type, id) {
return (0, _db.db)().instance().fetch;
return (0, _dbSingleton.db)().instance().fetch;
};
var fetchRelated = exports.fetchRelated = function fetchRelated(type, id) {
return (0, _db.db)().instance().fetchRelated;
return (0, _dbSingleton.db)().instance().fetchRelated;
};

@@ -41,3 +41,3 @@

return new Promise(function (resolve, reject) {
(0, _db.db)(schemas, host, name).start().then(resolve).catch(reject);
(0, _dbSingleton.db)(schemas, host, name).start().then(resolve).catch(reject);
});

@@ -47,3 +47,3 @@ },

return new Promise(function (resolve, reject) {
(0, _db.db)().stop().then(resolve(true)).catch(reject);
(0, _dbSingleton.db)().stop().then(resolve(true)).catch(reject);
});

@@ -50,0 +50,0 @@ }

{
"name": "redink",
"version": "0.0.5",
"version": "0.0.6",
"description": "RethinkDB ORM",
"main": "dist/index.js",
"scripts": {
"build": "npm run clean && mkdirp dist && babel src --out-dir dist --source-maps inline",
"build:prod": "npm run clean && mkdirp dist && babel src --out-dir dist",
"clean": "rimraf dist coverage .nyc_output",
"cover": "npm run clean && nyc ava && nyc report --reporter=html && open -a \"Google Chrome\" coverage/index.html",
"test": "npm run test:lint && npm run test:src",
"test:lint": "eslint src test",
"test:src": "nyc ava && nyc report --reporter=lcov",
"prepublish": "npm run build:prod"
"build": "better-npm-run build",
"build:prod": "better-npm-run build:prod",
"clean": "better-npm-run clean",
"cover": "better-npm-run cover",
"test": "better-npm-run test",
"test:lint": "better-npm-run test:lint",
"test:src": "better-npm-run test:src",
"prepublish": "better-npm-run prepublish"
},
"betterScripts": {
"build": {
"command": "npm run clean && mkdirp dist && babel src --out-dir dist --source-maps inline"
},
"build:prod": {
"command": "npm run clean && mkdirp dist && babel src --out-dir dist"
},
"clean": {
"command": "rimraf dist coverage .nyc_output"
},
"cover": {
"command": "npm run clean && nyc ava && nyc report --reporter=html && open -a \"Google Chrome\" coverage/index.html"
},
"test": {
"command": "npm run test:lint && npm run test:src"
},
"test:lint": {
"command": "eslint src test"
},
"test:src": {
"command": "nyc ava && nyc report --reporter=lcov"
},
"prepublish": {
"command": "npm run build:prod"
}
},
"repository": {

@@ -41,2 +67,3 @@ "type": "git",

"babel-preset-stage-0": "^6.5.0",
"better-npm-run": "0.0.9",
"eslint": "^3.0.1",

@@ -43,0 +70,0 @@ "eslint-config-airbnb": "^9.0.1",

# Redink
RethinkDB ORM
[![CircleCI](https://circleci.com/gh/endfire/redink.svg?style=svg)](https://circleci.com/gh/endfire/redink)
[![codecov](https://codecov.io/gh/endfire/redink/branch/master/graph/badge.svg)](https://codecov.io/gh/endfire/redink)
![dink]

@@ -5,0 +8,0 @@ [dink]: http://www.dvd.net.au/movies/s/05627-2.jpg

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