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

kmore

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kmore - npm Package Compare versions

Comparing version 33.0.2 to 33.1.0

2

dist/lib/kmore.d.ts

@@ -43,3 +43,3 @@ import type { DbDict } from 'kmore-types';

readonly config: KnexConfig;
readonly dict: DbDict<D>;
readonly dict: unknown extends D ? undefined : DbDict<D>;
readonly dbId: string;

@@ -46,0 +46,0 @@ readonly dbh: Knex;

@@ -65,4 +65,12 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

this.config = config;
assert(options.dict, 'options.dict must be defined');
this.dict = options.dict;
// assert(options.dict, 'options.dict must be defined')
if (options.dict) {
// @ts-expect-error
this.dict = options.dict;
}
else {
console.info('Kmore:constructor() options.dict empty');
// @ts-expect-error
this.dict = void 0;
}
/**

@@ -69,0 +77,0 @@ * Table identifier case convertion,

{
"name": "kmore",
"author": "waiting",
"version": "33.0.2",
"version": "33.1.0",
"description": "A SQL query builder based on knex with powerful TypeScript type support",

@@ -78,3 +78,3 @@ "keywords": [

},
"gitHead": "cf293384772e30faa6ed8d93279e5e4ea992dda5"
"gitHead": "33d6b5fd1a6547af2f21bd70a1f32398422833f5"
}

@@ -75,3 +75,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

public readonly config: KnexConfig
public readonly dict: DbDict<D>
public readonly dict: unknown extends D ? undefined : DbDict<D>
public readonly dbId: string

@@ -84,6 +84,3 @@ public readonly dbh: Knex

constructor(
options: KmoreFactoryOpts<D, Context>,
) {
constructor(options: KmoreFactoryOpts<D, Context>) {
const dbId = options.dbId ? options.dbId : Date.now().toString()

@@ -100,4 +97,12 @@ this.dbId = dbId

assert(options.dict, 'options.dict must be defined')
this.dict = options.dict
// assert(options.dict, 'options.dict must be defined')
if (options.dict) {
// @ts-expect-error
this.dict = options.dict
}
else {
console.info('Kmore:constructor() options.dict empty')
// @ts-expect-error
this.dict = void 0
}

@@ -255,6 +260,3 @@ /**

export function KmoreFactory<D, Ctx = unknown>(
options: KmoreFactoryOpts<D, Ctx>,
): Kmore<D, Ctx> {
export function KmoreFactory<D, Ctx = unknown>(options: KmoreFactoryOpts<D, Ctx>): Kmore<D, Ctx> {
const km = new Kmore<D, Ctx>(options)

@@ -264,6 +266,3 @@ return km

export function createDbh(
knexConfig: KnexConfig,
): Knex {
export function createDbh(knexConfig: KnexConfig): Knex {
const inst = _knex(knexConfig)

@@ -270,0 +269,0 @@ return inst

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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