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

@fxjs/orm

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fxjs/orm - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

4

@types/index.d.ts

@@ -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 @@ ===================

25

lib/orm/entry/ORM.js

@@ -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",

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