Comparing version 0.0.5 to 0.0.6
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
114
0
7
63034
14
19
1717