Socket
Socket
Sign inDemoInstall

objection

Package Overview
Dependencies
Maintainers
2
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objection - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

1

lib/model/NotFoundError.js

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

this.type = 'NotFound';
this.name = this.constructor.name;

@@ -9,0 +10,0 @@ this.data = data;

@@ -77,2 +77,4 @@ 'use strict';

]);
delete this.model[key];
} else {

@@ -79,0 +81,0 @@ convertedJson[key] = val;

4

lib/queryBuilder/QueryBuilderBase.js

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

withRaw(...args) {
return this.addOperation(new KnexOperation('withRaw'), args);
}
withWrapped(...args) {

@@ -461,0 +457,0 @@ return this.addOperation(new KnexOperation('withWrapped'), args);

{
"name": "objection",
"version": "2.0.1",
"version": "2.0.2",
"description": "An SQL-friendly ORM for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/objection.js",

@@ -495,7 +495,2 @@ /// <reference types="node" />

interface WithRawMethod<QB extends AnyQueryBuilder> {
(alias: string, sql: string, ...bindings: any[]): QB;
(alias: string, sql: string, bindings: any[]): QB;
}
interface JoinRelatedOptions {

@@ -988,3 +983,2 @@ alias?: string | boolean;

with: WithMethod<this>;
withRaw: WithRawMethod<this>;
withWrapped: WithMethod<this>;

@@ -1510,2 +1504,10 @@

export class NotFoundError extends Error {
constructor(data?: any);
statusCode: number;
data?: any;
type: 'NotFound';
}
export interface TableMetadata {

@@ -1535,2 +1537,6 @@ columns: Array<string>;

interface FromJsonMethod {
<M extends Model>(this: ModelClass<M>, json: object, opt?: ModelOptions): M;
}
interface FromDatabaseJsonMethod {
<M extends Model>(this: ModelClass<M>, json: object): M;

@@ -1592,3 +1598,3 @@ }

static fromJson: FromJsonMethod;
static fromDatabaseJson: FromJsonMethod;
static fromDatabaseJson: FromDatabaseJsonMethod;

@@ -1595,0 +1601,0 @@ static createValidator(): Validator;

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