Socket
Socket
Sign inDemoInstall

@simplysm/sd-orm-common

Package Overview
Dependencies
Maintainers
1
Versions
584
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplysm/sd-orm-common - npm Package Compare versions

Comparing version 11.1.25 to 11.1.26

1

dist/Queryable.d.ts

@@ -61,2 +61,3 @@ import { DbContext } from "./DbContext";

countAsync(): Promise<number>;
countAsync(fwd: (entity: TEntity<T>) => TEntityValue<any>): Promise<number>;
existsAsync(): Promise<boolean>;

@@ -63,0 +64,0 @@ bulkInsertAsync(records: TInsertObject<T>[]): Promise<void>;

6

dist/Queryable.js

@@ -786,3 +786,3 @@ import { FunctionUtil, NeverEntryError, ObjectUtil } from "@simplysm/sd-core-common";

}
async countAsync() {
async countAsync(fwd) {
if (this._def.distinct) {

@@ -793,3 +793,5 @@ throw new Error("distinct 이후엔 'countAsync'를 사용할 수 없습니다."

}
const queryable = this.select(() => ({ cnt: new QueryUnit(Number, "COUNT(*)") })); /*.lock();*/
const queryable = fwd
? this.select(() => ({ cnt: this.db.qh.count(fwd(this._entity)) }))
: this.select(() => ({ cnt: this.db.qh.count() }));
delete queryable._def.orderBy;

@@ -796,0 +798,0 @@ const item = await queryable.singleAsync();

{
"name": "@simplysm/sd-orm-common",
"version": "11.1.25",
"version": "11.1.26",
"description": "심플리즘 패키지 - ORM 모듈 (common)",

@@ -19,4 +19,4 @@ "author": "김석래",

"dependencies": {
"@simplysm/sd-core-common": "11.1.25"
"@simplysm/sd-core-common": "11.1.26"
}
}

Sorry, the diff of this file is not supported yet

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