🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@deboxsoft/module-core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/module-core - npm Package Compare versions

Comparing version

to
3.2.2

import nconf from 'nconf';
import { v as ConfigService } from './ConfigService-BWTZALHL.js';
import 'zod';
import { B as ConfigService } from './ConfigService-BUNzN-ep.js';

@@ -5,0 +4,0 @@ interface ConfigOptions {

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

import { A as AppConfig } from './ConfigService-BWTZALHL.js';
export { k as AlternativeType, s as CONFIG_KEY, u as Callback, C as Config, v as ConfigService, q as DataResponse, D as DataResult, o as Filter, m as FilterCondition, F as FilterOperators, I as ID, p as IdParams, J as Join, N as NestedPaths, e as PageCursorInfo, b as PageCursorParams, i as PageCursorParamsOutput, f as PageDefaultInfo, c as PageDefaultParams, j as PageDefaultParamsOutput, d as PageInfo, a as PageParams, h as Pagination, g as PaginationOptions, P as PaginationType, l as PropertyType, R as RegExpOrString, n as RootFilterOperators, r as ServerApiConfig, S as ServiceBase, x as getConfig, w as getConfigService, t as transformDefaultPageInfo } from './ConfigService-BWTZALHL.js';
import { A as AppConfig } from './ConfigService-BUNzN-ep.js';
export { i as AlternativeType, y as CONFIG_KEY, z as Callback, C as Config, B as ConfigService, l as DataResponse, k as DataResult, D as Dictionary, g as Filter, f as FilterCondition, e as FilterOperators, F as FlatOrderBy, I as ID, j as IdParams, J as Join, N as NestedPaths, O as OrderBy, c as OrderByKeys, b as OrderByKeysFlat, d as OrderByMap, a as OrderByNumeric, s as PageCursorInfo, p as PageCursorParams, r as PageDefaultInfo, o as PageDefaultParams, q as PageInfoBase, v as PageOptions, t as PageOptionsCursor, u as PageOptionsDefault, w as PageResult, n as PageType, x as Pagination, P as PropertyType, h as RegExpOrString, R as RootFilterOperators, m as ServerApiConfig, S as ServiceBase, G as getConfig, E as getConfigService } from './ConfigService-BUNzN-ep.js';
export { camelCase, capitalCase, constantCase, dotCase, kebabCase, noCase, pascalCase, pathCase, sentenceCase, snakeCase, trainCase } from 'change-case';

@@ -4,0 +4,0 @@ export { Base64 as base64 } from 'js-base64';

import { Container } from './chunk-AIO34D2G.js';
export { CONFIG_KEY, Container, ContainerDIClass, DbxDataError, DbxError, getConfig, getConfigService } from './chunk-AIO34D2G.js';
import * as _zod from 'zod';
import { z, ZodFirstPartyTypeKind } from 'zod';
export { z } from 'zod';
export { camelCase, capitalCase, constantCase, dotCase, kebabCase, noCase, pascalCase, pathCase, sentenceCase, snakeCase, trainCase } from 'change-case';

@@ -20,61 +17,8 @@ export { Base64 as base64 } from 'js-base64';

export { merge as deepMerge } from 'ts-deepmerge';
import * as _zod from 'zod';
import { z, ZodFirstPartyTypeKind } from 'zod';
export { z } from 'zod';
export { fromZodError, fromZodIssue, errorMap as zodErrorMap, isValidationError as zodIsValidationError, isValidationErrorLike as zodIsValidationErrorLike, toValidationError as zodToValidationError } from 'zod-validation-error';
export { default as mustache } from 'mustache';
var PaginationType = z.enum(["cursor", "page"]).default("page");
var PageParams = z.object({
size: z.number().default(30)
});
var PageCursorParams = PageParams.extend({
first: z.number().optional(),
after: z.any().optional(),
last: z.any().optional(),
before: z.any().optional(),
hint: z.union([z.string(), z.record(z.string())]).optional()
});
var PageDefaultParams = PageParams.extend({
page: z.number().default(1)
});
var PageInfo = z.object({
total: z.number().optional()
});
var PageCursorInfo = PageInfo.extend({
startCursor: z.string().optional(),
hasNextPage: z.boolean().optional(),
endCursor: z.string().optional(),
hasPreviousPage: z.boolean().optional(),
type: z.literal("cursor")
});
var PageDefaultInfo = PageInfo.extend({
total: z.number(),
size: z.number(),
page: z.number(),
pageCount: z.number(),
type: z.literal("page")
});
var PaginationOptions = z.object({
type: PaginationType.optional(),
params: z.union([PageDefaultParams, PageCursorParams]).optional(),
sortField: z.string().optional(),
sortAsc: z.boolean().optional(),
sort: z.record(z.string(), z.union([z.literal(1), z.literal(-1)])).optional(),
filter: z.any().optional()
});
var Pagination = z.object({
data: z.array(z.any()),
pageInfo: z.union([PageDefaultInfo, PageCursorInfo, PageInfo])
});
var transformDefaultPageInfo = PageDefaultParams.extend({
total: z.number()
}).transform(({ size, page, total }) => {
const pageCount = Math.ceil(total / size);
return {
total,
size,
page,
pageCount,
type: "page"
};
});
// src/logger/index.ts

@@ -740,2 +684,18 @@ var Logger = class {

export { DateSchema, IdNumberSchema, IdSchema, LOGGER_KEY, LetterIncrement, Logger, PageCursorInfo, PageCursorParams, PageDefaultInfo, PageDefaultParams, PageInfo, PageParams, Pagination, PaginationOptions, PaginationType, RangeDateSchema, TimeStampSchema, clamp, cloneDeep, compact, createLoggerConsole, dayTimeZone, debounce, enumInfo, escapeRegExp, getLogger, getRangeDate, isAnyZodType, isEmpty, isNil, isObject, isPlainObject, isString, isStringAndNotBlank, isStringBlank, isUndefined, isZodType, kindOf, makeSchemaResponse, mapValues, memoize, objectEquals, omit, omitBy, pickBy, pull, throttle, transformDefaultPageInfo, urlJoin, zod };
// src/types/query.ts
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
OrderBy2["ASC"] = "ASC";
OrderBy2["ASC_NULLS_LAST"] = "ASC NULLS LAST";
OrderBy2["ASC_NULLS_FIRST"] = "ASC NULLS FIRST";
OrderBy2["DESC"] = "DESC";
OrderBy2["DESC_NULLS_LAST"] = "DESC NULLS LAST";
OrderBy2["DESC_NULLS_FIRST"] = "DESC NULLS FIRST";
return OrderBy2;
})(OrderBy || {});
var OrderByNumeric = /* @__PURE__ */ ((OrderByNumeric2) => {
OrderByNumeric2[OrderByNumeric2["ASC"] = 1] = "ASC";
OrderByNumeric2[OrderByNumeric2["DESC"] = 2] = "DESC";
return OrderByNumeric2;
})(OrderByNumeric || {});
export { DateSchema, IdNumberSchema, IdSchema, LOGGER_KEY, LetterIncrement, Logger, OrderBy, OrderByNumeric, RangeDateSchema, TimeStampSchema, clamp, cloneDeep, compact, createLoggerConsole, dayTimeZone, debounce, enumInfo, escapeRegExp, getLogger, getRangeDate, isAnyZodType, isEmpty, isNil, isObject, isPlainObject, isString, isStringAndNotBlank, isStringBlank, isUndefined, isZodType, kindOf, makeSchemaResponse, mapValues, memoize, objectEquals, omit, omitBy, pickBy, pull, throttle, urlJoin, zod };
{
"name": "@deboxsoft/module-core",
"version": "3.2.1",
"version": "3.2.2",
"license": "SEE LICENSE IN LICENSE",

@@ -5,0 +5,0 @@ "maintainers": [