@turbasen/db-mongo
Advanced tools
Comparing version 1.0.0 to 1.1.0
10
index.js
@@ -19,3 +19,11 @@ 'use strict'; | ||
['turer', 'steder', 'områder', 'bilder', 'grupper'].forEach((type) => { | ||
[ | ||
'arrangementer', | ||
'bilder', | ||
'grupper', | ||
'lister', | ||
'områder', | ||
'steder', | ||
'turer', | ||
].forEach((type) => { | ||
this[type] = database.collection(type); | ||
@@ -22,0 +30,0 @@ }); |
{ | ||
"name": "@turbasen/db-mongo", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Internal mongoDB wrapper for Nasjonal Turbase API", | ||
@@ -42,5 +42,5 @@ "main": "index.js", | ||
"codacy-coverage": "^1.1.3", | ||
"eslint": "^2.13.1", | ||
"eslint-config-airbnb-base": "^3.0.1", | ||
"eslint-plugin-import": "^1.10.0", | ||
"eslint": "^3.1.1", | ||
"eslint-config-airbnb-base": "^4.0.2", | ||
"eslint-plugin-import": "^1.11.0", | ||
"greenkeeper-postpublish": "^1.0.0", | ||
@@ -47,0 +47,0 @@ "istanbul": "^0.4.4", |
@@ -27,6 +27,8 @@ # @turbasen/db-mongo | ||
Connects automatically using `MONGO_URI`, or `MONGO_PORT_27017_TCP_ADDR` + | ||
`MONGO_PORT_27017_TCP_PORT` environment variables, or default to `mongo` + | ||
`27017`. | ||
Connects automatically to mongoDB using the following configurations: | ||
* `MONGO_URI` | ||
* `MONGO_PORT_27017_TCP_ADDR` and `MONGO_PORT_27017_TCP_PORT` | ||
* Defaults to `mongo` and `27017` | ||
```js | ||
@@ -40,2 +42,2 @@ const mongo = require('mongo'); | ||
## [MIT lisenced](https://github.com/Turbasen/Auth/blob/master/LICENSE) | ||
## [MIT lisenced](https://github.com/Turbasen/db-mongo/blob/master/LICENSE) |
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
5395
37
42