@squared-functions/types
Advanced tools
Comparing version 4.8.33 to 4.8.34
@@ -164,2 +164,24 @@ /// <reference path="./lib/type.d.ts" /> | ||
interface DB_TRANSACTION { | ||
ACTIVE: 1; | ||
PARTIAL: 2; | ||
COMMIT: 4; | ||
TERMINATE: 8; | ||
ABORT: 16; | ||
FAIL: 32; | ||
AUTH: 64; | ||
CACHE: 128; | ||
} | ||
const DB_TRANSACTION: { | ||
ACTIVE: 1; | ||
PARTIAL: 2; | ||
COMMIT: 4; | ||
TERMINATE: 8; | ||
ABORT: 16; | ||
FAIL: 32; | ||
AUTH: 64; | ||
CACHE: 128; | ||
}; | ||
interface WATCH_EVENT { | ||
@@ -166,0 +188,0 @@ MODIFIED: "modified"; |
13
index.js
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.errorMessage = exports.errorValue = exports.generateUUID = exports.decryptUTF8 = exports.encryptUTF8 = exports.cloneObject = exports.hasGlob = exports.escapePattern = exports.formatTime = exports.parseExpires = exports.parseTime = exports.isString = exports.isObject = exports.isPlainObject = exports.isArray = exports.setLogCurrent = exports.getLogCurrent = exports.existsFlag = exports.mainFlag = exports.processFlag = exports.modifiedFlag = exports.watchFlag = exports.usingFlag = exports.cloneFlag = exports.ignoreFlag = exports.hasBit = exports.createAbortError = exports.WATCH_EVENT = exports.DB_TYPE = exports.DOWNLOAD_TYPE = exports.ERR_CODE = exports.ASSET_FLAG = exports.FILE_TYPE = exports.STATUS_TYPE = exports.LOG_TYPE = void 0; | ||
exports.errorMessage = exports.errorValue = exports.generateUUID = exports.decryptUTF8 = exports.encryptUTF8 = exports.cloneObject = exports.hasGlob = exports.escapePattern = exports.formatTime = exports.parseExpires = exports.parseTime = exports.isString = exports.isObject = exports.isPlainObject = exports.isArray = exports.setLogCurrent = exports.getLogCurrent = exports.existsFlag = exports.mainFlag = exports.processFlag = exports.modifiedFlag = exports.watchFlag = exports.usingFlag = exports.cloneFlag = exports.ignoreFlag = exports.hasBit = exports.createAbortError = exports.WATCH_EVENT = exports.DB_TYPE = exports.DB_TRANSACTION = exports.DOWNLOAD_TYPE = exports.ERR_CODE = exports.ASSET_FLAG = exports.FILE_TYPE = exports.STATUS_TYPE = exports.LOG_TYPE = void 0; | ||
const crypto = require("crypto"); | ||
@@ -78,2 +78,13 @@ const uuid = require("uuid"); | ||
})(DOWNLOAD_TYPE = exports.DOWNLOAD_TYPE || (exports.DOWNLOAD_TYPE = {})); | ||
var DB_TRANSACTION; | ||
(function (DB_TRANSACTION) { | ||
DB_TRANSACTION[DB_TRANSACTION["ACTIVE"] = 1] = "ACTIVE"; | ||
DB_TRANSACTION[DB_TRANSACTION["PARTIAL"] = 2] = "PARTIAL"; | ||
DB_TRANSACTION[DB_TRANSACTION["COMMIT"] = 4] = "COMMIT"; | ||
DB_TRANSACTION[DB_TRANSACTION["TERMINATE"] = 8] = "TERMINATE"; | ||
DB_TRANSACTION[DB_TRANSACTION["ABORT"] = 16] = "ABORT"; | ||
DB_TRANSACTION[DB_TRANSACTION["FAIL"] = 32] = "FAIL"; | ||
DB_TRANSACTION[DB_TRANSACTION["AUTH"] = 64] = "AUTH"; | ||
DB_TRANSACTION[DB_TRANSACTION["CACHE"] = 128] = "CACHE"; | ||
})(DB_TRANSACTION = exports.DB_TRANSACTION || (exports.DB_TRANSACTION = {})); | ||
var DB_TYPE; | ||
@@ -80,0 +91,0 @@ (function (DB_TYPE) { |
@@ -35,3 +35,3 @@ import type { DataSource, DbDataSource } from './squared'; | ||
interface ExecuteAction<T = unknown> { | ||
export interface ExecuteAction<T = unknown> { | ||
params?: T; | ||
@@ -232,8 +232,8 @@ } | ||
export interface DbPoolConstructor<T extends DbDataSource = DbDataSource, U = unknown> { | ||
findKey<V extends IDbPool, W extends DbDataSource>(pools: ObjectMap<V>, uuidKey: unknown, poolKey: Undef<string>, ...items: W[]): Null<V>; | ||
validateKey<V extends IDbPool>(pools: ObjectMap<V>, username: string, uuidKey: unknown): [string, Null<V>]; | ||
checkTimeout<V extends IDbPool>(pools: ObjectMap<V>, value: number, limit?: number): Promise<number>; | ||
readonly prototype: IDbPool<T, U>; | ||
new(pool: U, poolKey: string, uuidKey?: string): IDbPool<T, U>; | ||
export interface DbPoolConstructor<T extends DbDataSource = DbDataSource, U = unknown, V = unknown> { | ||
findKey<W extends IDbPool, X extends DbDataSource>(pools: ObjectMap<W>, uuidKey: unknown, poolKey: Undef<string>, ...items: X[]): Null<W>; | ||
validateKey<W extends IDbPool>(pools: ObjectMap<W>, username: string, uuidKey: unknown): [string, Null<W>]; | ||
checkTimeout<W extends IDbPool>(pools: ObjectMap<W>, value: number, limit?: number): Promise<number>; | ||
readonly prototype: IDbPool<T, U, V>; | ||
new(pool: U, poolKey: string, uuidKey?: Null<AuthValue>): IDbPool<T, U, V>; | ||
} | ||
@@ -240,0 +240,0 @@ |
{ | ||
"name": "@squared-functions/types", | ||
"version": "4.8.33", | ||
"version": "4.8.34", | ||
"description": "Type definitions for squared-functions", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148310
3418