@fxjs/orm
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -705,2 +705,6 @@ /// <reference types="fibjs" /> | ||
interface Plugin { | ||
(connection: FibORM, proto: any, opts: any, cb: Function): any | ||
} | ||
/* | ||
@@ -707,0 +711,0 @@ * Classes |
v1.6.1 / 2018-11-17 | ||
v1.6.2 / 2018-11-17 | ||
================== | ||
@@ -7,2 +7,8 @@ | ||
v1.6.1 / 2018-11-17 | ||
=================== | ||
* Release v1.6.1 | ||
* typo fix. | ||
v1.6.0 / 2018-11-17 | ||
@@ -9,0 +15,0 @@ =================== |
@@ -13,3 +13,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const Utilities = require("./Utilities"); | ||
exports.enforce = require("@fibjs/enforce"); | ||
exports.Enforces = require("@fibjs/enforce"); | ||
exports.Settings = require("./Settings"); | ||
@@ -19,3 +19,4 @@ exports.singleton = require("./Singleton"); | ||
exports.validators = require("./Validators"); | ||
const SettingsInstance = exports.settings = new exports.Settings.Container(exports.Settings.defaults()); | ||
const SettingsInstance = new exports.Settings.Container(exports.Settings.defaults()); | ||
exports.settings = SettingsInstance; | ||
exports.Property = require("./Property"); | ||
@@ -27,6 +28,6 @@ exports.ErrorCodes = ORMError.codes; | ||
} | ||
exports.express = function () { | ||
return require("./Express").apply(this, arguments); | ||
}; | ||
exports.use = function (connection, proto, opts, cb) { | ||
// exports.express = function () { | ||
// return require("./Express").apply(this, arguments); | ||
// }; | ||
function use(connection, proto, opts, cb) { | ||
if (DriverAliases[proto]) { | ||
@@ -51,4 +52,6 @@ proto = DriverAliases[proto]; | ||
} | ||
}; | ||
exports.connect = function (opts, cb) { | ||
} | ||
exports.use = use; | ||
; | ||
function connect(opts, cb) { | ||
if (arguments.length === 0 || !opts) { | ||
@@ -129,7 +132,9 @@ return ORM_Error(new ORMError("CONNECTION_URL_EMPTY", 'PARAM_MISMATCH'), cb); | ||
return db; | ||
}; | ||
} | ||
exports.connect = connect; | ||
; | ||
exports.addAdapter = adapters.add; | ||
function ORM(driver_name, driver, settings) { | ||
this.validators = exports.validators; | ||
this.enforce = exports.enforce; | ||
this.enforce = exports.Enforces; | ||
this.settings = settings; | ||
@@ -136,0 +141,0 @@ this.driver_name = driver_name; |
{ | ||
"name": "@fxjs/orm", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Object Relational Mapping for fibjs", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
262861
42
6552