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

k7

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

k7 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/index.js

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

exports.register = function (server, options, next) {
exports.register = (server, options, next) => {
const k7 = new K7(server, options);

@@ -10,0 +10,0 @@

@@ -19,3 +19,2 @@ 'use strict';

options = options || {};
Hoek.assert(this instanceof internals.K7, 'K7 must be instantiated using new');

@@ -47,9 +46,9 @@ Hoek.assert(server, 'server required to create k7');

Hoek.assert(typeof Adapter === 'function', adapterName + ' must be a constructor function');
Hoek.assert(typeof Adapter === 'function', `${adapterName} must be a constructor function`);
this.adapter = new Adapter(this.settings);
Hoek.assert(typeof this.adapter.load === 'function', adapterName + ' must be a load function');
Hoek.assert(typeof this.adapter.load === 'function', `${adapterName} must be a load function`);
this.database = this.adapter.load();
};
{
"name": "k7",
"version": "1.0.1",
"version": "1.0.2",
"description": "Connect your database with Hapijs made easy",

@@ -28,4 +28,3 @@ "main": "index.js",

"glob": "7.0.x",
"hoek": "3.0.x",
"snyk": "^1.11.3"
"hoek": "3.0.x"
},

@@ -32,0 +31,0 @@ "peerDependencies": {

@@ -57,3 +57,3 @@ ![k7 Logo](images/k7.png)

* **connectionOptions**: Is a common option, where you will specify the options passed for the connector.
* **models**: Is a comoon option, where you will specify how we can find your models. **Default**: `models/*.js` In this option you can pass a String or an Array of files or glob patterns like: `**/model.js`
* **models**: Is a common option, where you will specify how we can find your models. **Default**: `models/*.js` In this option you can pass a String or an Array of files or glob patterns like: `**/model.js`

@@ -60,0 +60,0 @@ ## Where my Models?

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

register: require('../index'),
options: options
options
};

@@ -57,3 +57,3 @@

register: require('../index'),
options: options
options
};

@@ -81,3 +81,3 @@

register: require('../index'),
options: options
options
};

@@ -84,0 +84,0 @@

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