New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mythix-orm

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mythix-orm - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

4

lib/connection/connection-base.d.ts

@@ -84,4 +84,4 @@ import { EventEmitter } from 'events';

public toQueryEngine(queryEngineLike: any): QueryEngine | undefined;
public registerModel<T = ModelClass>(Model: T): T;
public registerModels(models: Models | Array<ModelClass>): Models | undefined;
public registerModel<T = ModelClass>(Model: T, options?: GenericObject): T;
public registerModels(models: Models | Array<ModelClass>, options?: GenericObject): Models | undefined;
public getContextValue(key: any, defaultValue?: any): any;

@@ -88,0 +88,0 @@ public setContextValue(key: any, value: any): any;

@@ -239,4 +239,4 @@ 'use strict';

registerModel(_Model) {
let Model = _Model.bindConnection(this);
registerModel(_Model, options) {
let Model = _Model.bindConnection(this, options);

@@ -248,3 +248,3 @@ this._models[Model.getModelName()] = Model;

registerModels(models) {
registerModels(models, options) {
if (!models)

@@ -259,3 +259,3 @@ return;

this.registerModel(Model);
this.registerModel(Model, options);
}

@@ -336,4 +336,4 @@

async createContext(callback, _connection, thisArg) {
let context = this.buildConnectionContext(_connection);
let connection = _connection || this;
let context = this.buildConnectionContext(connection);

@@ -340,0 +340,0 @@ return await Utils.runInContext(context, async () => {

@@ -0,3 +1,4 @@

export declare function getContextStore(): any;
export declare function getContextValue(key: any, defaultValue: any): any;
export declare function setContextValue(key: any, value: any): void;
export declare function runInContext(context: any, callback: Function): Promise<any>;

@@ -15,2 +15,6 @@ 'use strict';

function getContextStore() {
return globalAsyncStore.getStore();
}
function getContextValue(key, defaultValue) {

@@ -56,2 +60,3 @@ let store = globalAsyncStore.getStore();

runInContext,
getContextStore,
};

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

const {
getContextStore,
getContextValue,

@@ -75,2 +76,3 @@ setContextValue,

// AsyncStore
getContextStore,
getContextValue,

@@ -77,0 +79,0 @@ setContextValue,

{
"name": "mythix-orm",
"version": "1.8.0",
"version": "1.8.1",
"description": "ORM for Mythix framework",

@@ -5,0 +5,0 @@ "main": "lib/index",

Sorry, the diff of this file is too big to display

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