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

@deboxsoft/module-core

Package Overview
Dependencies
Maintainers
1
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deboxsoft/module-core - npm Package Compare versions

Comparing version 2.5.36 to 2.5.37

171

libs/index.d.ts

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

import * as _deboxsoft_zod from '@deboxsoft/zod';
import { z, ZodType } from '@deboxsoft/zod';
export { z } from '@deboxsoft/zod';
import { z, ZodType } from 'zod';
export * from 'zod';
export * from 'change-case';

@@ -151,9 +150,9 @@ export { Base64 as base64 } from 'js-base64';

declare const IdSchema: _deboxsoft_zod.ZodString;
declare const DateSchema: z.ZodTransformer<_deboxsoft_zod.ZodDate, Date, Date>;
declare const TimeStampSchema: z.ZodTransformer<_deboxsoft_zod.ZodNumber, number, number>;
declare const IdSchema: z.ZodString;
declare const DateSchema: z.ZodEffects<z.ZodDate, Date, Date>;
declare const TimeStampSchema: z.ZodEffects<z.ZodNumber, number, number>;
declare const RangeDateSchema: ZodType<RangeDate>;
declare const IdParams: _deboxsoft_zod.ZodObject<{
id: _deboxsoft_zod.ZodString;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const IdParams: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;

@@ -164,5 +163,5 @@ }, {

declare type IdParams = z.TypeOf<typeof IdParams>;
declare const BooleanResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodBoolean;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const BooleanResponse: z.ZodObject<{
data: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
data: boolean;

@@ -173,5 +172,5 @@ }, {

declare type BooleanResponse = z.TypeOf<typeof BooleanResponse>;
declare const StringResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodString;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const StringResponse: z.ZodObject<{
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;

@@ -182,5 +181,5 @@ }, {

declare type StringResponse = z.TypeOf<typeof StringResponse>;
declare const NumberResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodNumber;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const NumberResponse: z.ZodObject<{
data: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
data: number;

@@ -191,5 +190,5 @@ }, {

declare type NumberResponse = z.TypeOf<typeof NumberResponse>;
declare const CreateResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodString;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const CreateResponse: z.ZodObject<{
data: z.ZodString;
}, "strip", z.ZodTypeAny, {
data: string;

@@ -200,5 +199,5 @@ }, {

declare type CreateResponse = z.TypeOf<typeof CreateResponse>;
declare const ImportResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodArray<_deboxsoft_zod.ZodString, "many">;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const ImportResponse: z.ZodObject<{
data: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
data: string[];

@@ -209,5 +208,5 @@ }, {

declare type ImportResponse = z.TypeOf<typeof ImportResponse>;
declare const UpdateResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodBoolean;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const UpdateResponse: z.ZodObject<{
data: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
data: boolean;

@@ -218,5 +217,5 @@ }, {

declare type UpdateResponse = z.TypeOf<typeof UpdateResponse>;
declare const RemoveResponse: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodBoolean;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const RemoveResponse: z.ZodObject<{
data: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
data: boolean;

@@ -228,17 +227,17 @@ }, {

declare const PaginationOptions: _deboxsoft_zod.ZodObject<{
type: _deboxsoft_zod.ZodDefault<_deboxsoft_zod.ZodEnum<["cursor", "default"]>>;
limit: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodDefault<_deboxsoft_zod.ZodNumber>>;
page: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodDefault<_deboxsoft_zod.ZodNumber>>;
sortField: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodString>;
sortAsc: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodDefault<_deboxsoft_zod.ZodBoolean>>;
sort: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodRecord<_deboxsoft_zod.ZodString, _deboxsoft_zod.ZodUnion<[_deboxsoft_zod.ZodLiteral<1>, _deboxsoft_zod.ZodLiteral<-1>]>>>;
filter: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
cursor: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodObject<{
previous: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
before: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
next: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
after: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
hint: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodUnion<[_deboxsoft_zod.ZodString, _deboxsoft_zod.ZodRecord<_deboxsoft_zod.ZodString, _deboxsoft_zod.ZodString>]>>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const PaginationOptions: z.ZodObject<{
type: z.ZodDefault<z.ZodEnum<["cursor", "default"]>>;
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
sortField: z.ZodOptional<z.ZodString>;
sortAsc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>>>;
filter: z.ZodOptional<z.ZodAny>;
cursor: z.ZodOptional<z.ZodObject<{
previous: z.ZodOptional<z.ZodAny>;
before: z.ZodOptional<z.ZodAny>;
next: z.ZodOptional<z.ZodAny>;
after: z.ZodOptional<z.ZodAny>;
hint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
}, "strip", z.ZodTypeAny, {
previous?: any;

@@ -256,3 +255,3 @@ before?: any;

}>>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
}, "strip", z.ZodTypeAny, {
sort?: Record<string, 1 | -1> | undefined;

@@ -291,13 +290,13 @@ filter?: any;

};
declare const Pagination: _deboxsoft_zod.ZodObject<{
data: _deboxsoft_zod.ZodArray<_deboxsoft_zod.ZodAny, "many">;
pageInfo: _deboxsoft_zod.ZodObject<{
total: _deboxsoft_zod.ZodNullable<_deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodNumber>>;
page: _deboxsoft_zod.ZodNullable<_deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodNumber>>;
cursor: _deboxsoft_zod.ZodNullable<_deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodObject<{
next: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodString>;
hasNext: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodBoolean>;
previous: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodString>;
hasPrevious: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodBoolean>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const Pagination: z.ZodObject<{
data: z.ZodArray<z.ZodAny, "many">;
pageInfo: z.ZodObject<{
total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
page: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
cursor: z.ZodNullable<z.ZodOptional<z.ZodObject<{
next: z.ZodOptional<z.ZodString>;
hasNext: z.ZodOptional<z.ZodBoolean>;
previous: z.ZodOptional<z.ZodString>;
hasPrevious: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
previous?: string | undefined;

@@ -313,3 +312,3 @@ next?: string | undefined;

}>>>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
}, "strip", z.ZodTypeAny, {
cursor?: {

@@ -333,3 +332,3 @@ previous?: string | undefined;

}>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
}, "strip", z.ZodTypeAny, {
data: any[];

@@ -362,8 +361,8 @@ pageInfo: {

};
declare const PageCursorInfo: _deboxsoft_zod.ZodObject<{
next: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodString>;
hasNext: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodBoolean>;
previous: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodString>;
hasPrevious: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodBoolean>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const PageCursorInfo: z.ZodObject<{
next: z.ZodOptional<z.ZodString>;
hasNext: z.ZodOptional<z.ZodBoolean>;
previous: z.ZodOptional<z.ZodString>;
hasPrevious: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
previous?: string | undefined;

@@ -380,9 +379,9 @@ next?: string | undefined;

declare type PageCursorInfo = z.TypeOf<typeof PageCursorInfo>;
declare const PageCursorParams: _deboxsoft_zod.ZodObject<{
previous: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
before: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
next: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
after: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodAny>;
hint: _deboxsoft_zod.ZodOptional<_deboxsoft_zod.ZodUnion<[_deboxsoft_zod.ZodString, _deboxsoft_zod.ZodRecord<_deboxsoft_zod.ZodString, _deboxsoft_zod.ZodString>]>>;
}, "strip", _deboxsoft_zod.ZodTypeAny, {
declare const PageCursorParams: z.ZodObject<{
previous: z.ZodOptional<z.ZodAny>;
before: z.ZodOptional<z.ZodAny>;
next: z.ZodOptional<z.ZodAny>;
after: z.ZodOptional<z.ZodAny>;
hint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>]>>;
}, "strip", z.ZodTypeAny, {
previous?: any;

@@ -538,28 +537,2 @@ before?: any;

declare const WS_PROTOCOLS = "ws-protocols";
declare const WS_PROTOCOLS_MESSAGES: {
WS_CONNECTION_INIT: string;
WS_CONNECTION_ACK: string;
WS_CONNECTION_ERROR: string;
WS_CONNECTION_KEEP_ALIVE: string;
WS_CONNECTION_TERMINATE: string;
WS_START: string;
WS_DATA: string;
WS_ERROR: string;
WS_COMPLETE: string;
WS_STOP: string;
};
declare const getProtocolName: (name: string) => {
WS_CONNECTION_INIT: string;
WS_CONNECTION_ACK: string;
WS_CONNECTION_ERROR: string;
WS_CONNECTION_KEEP_ALIVE: string;
WS_CONNECTION_TERMINATE: string;
WS_START: string;
WS_DATA: string;
WS_ERROR: string;
WS_COMPLETE: string;
WS_STOP: string;
};
declare type ModuleConfig = {

@@ -574,2 +547,2 @@ errors: {

export { BooleanResponse, CONFIG_KEY, Config, Container, CreateResponse, DateSchema, DbxError, DbxErrorOptions, IdParams, IdSchema, ImportResponse, LOGGER_KEY, Logger, ModuleConfig, NotificationType, NumberResponse, PageCursorInfo, PageCursorParams, Pagination, PaginationOptions, RangeDate, RangeDateSchema, RemoveResponse, StringResponse, TimeStampSchema, UpdateResponse, WS_PROTOCOLS, WS_PROTOCOLS_MESSAGES, clamp, cloneDeep, createLoggerConsole, dayTimeZone, debounce, getAppConfig, getConfig, getLogger, getProtocolName, getRangeDate, isEmpty, isObject, isPlainObject, isString, isStringAndNotBlank, isStringBlank, kindOf, omit, pickBy, pull, throttle };
export { BooleanResponse, CONFIG_KEY, Config, Container, CreateResponse, DateSchema, DbxError, DbxErrorOptions, IdParams, IdSchema, ImportResponse, LOGGER_KEY, Logger, ModuleConfig, NotificationType, NumberResponse, PageCursorInfo, PageCursorParams, Pagination, PaginationOptions, RangeDate, RangeDateSchema, RemoveResponse, StringResponse, TimeStampSchema, UpdateResponse, clamp, cloneDeep, createLoggerConsole, dayTimeZone, debounce, getAppConfig, getConfig, getLogger, getRangeDate, isEmpty, isObject, isPlainObject, isString, isStringAndNotBlank, isStringBlank, kindOf, omit, pickBy, pull, throttle };

@@ -41,4 +41,2 @@ var __defProp = Object.defineProperty;

UpdateResponse: () => UpdateResponse,
WS_PROTOCOLS: () => WS_PROTOCOLS,
WS_PROTOCOLS_MESSAGES: () => WS_PROTOCOLS_MESSAGES,
base64: () => Base64,

@@ -53,3 +51,2 @@ clamp: () => clamp,

getLogger: () => getLogger,
getProtocolName: () => getProtocolName,
getRangeDate: () => getRangeDate,

@@ -68,4 +65,3 @@ isEmpty: () => isEmpty,

pull: () => pull,
throttle: () => throttle,
z: () => z2
throttle: () => throttle
});

@@ -97,4 +93,21 @@

// src/zod/index.ts
var zod_exports = {};
__export(zod_exports, {
BooleanResponse: () => BooleanResponse,
CreateResponse: () => CreateResponse,
DateSchema: () => DateSchema,
IdParams: () => IdParams,
IdSchema: () => IdSchema,
ImportResponse: () => ImportResponse,
NumberResponse: () => NumberResponse,
RangeDateSchema: () => RangeDateSchema,
RemoveResponse: () => RemoveResponse,
StringResponse: () => StringResponse,
TimeStampSchema: () => TimeStampSchema,
UpdateResponse: () => UpdateResponse
});
// src/zod/schema.ts
import { z } from "@deboxsoft/zod";
import { z } from "zod";
var IdSchema = z.string().min(1);

@@ -137,34 +150,35 @@ var DateSchema = z.preprocess((_) => {

// src/zod/index.ts
import { z as z2 } from "@deboxsoft/zod";
__reExport(zod_exports, zod_star);
import * as zod_star from "zod";
// src/pagination/models.ts
var PaginationType = z2.enum(["cursor", "default"]).default("default");
var PageCursorParams = z2.object({
previous: z2.any().optional(),
before: z2.any().optional(),
next: z2.any().optional(),
after: z2.any().optional(),
hint: z2.union([z2.string(), z2.record(z2.string())]).optional()
var PaginationType = zod_exports.z.enum(["cursor", "default"]).default("default");
var PageCursorParams = zod_exports.z.object({
previous: zod_exports.z.any().optional(),
before: zod_exports.z.any().optional(),
next: zod_exports.z.any().optional(),
after: zod_exports.z.any().optional(),
hint: zod_exports.z.union([zod_exports.z.string(), zod_exports.z.record(zod_exports.z.string())]).optional()
});
var PageCursorInfo = z2.object({
next: z2.string().optional(),
hasNext: z2.boolean().optional(),
previous: z2.string().optional(),
hasPrevious: z2.boolean().optional()
var PageCursorInfo = zod_exports.z.object({
next: zod_exports.z.string().optional(),
hasNext: zod_exports.z.boolean().optional(),
previous: zod_exports.z.string().optional(),
hasPrevious: zod_exports.z.boolean().optional()
});
var PaginationOptions = z2.object({
var PaginationOptions = zod_exports.z.object({
type: PaginationType,
limit: z2.number().default(30).optional(),
page: z2.number().default(1).optional(),
sortField: z2.string().optional(),
sortAsc: z2.boolean().default(true).optional(),
sort: z2.record(z2.string(), z2.union([z2.literal(1), z2.literal(-1)])).optional(),
filter: z2.any().optional(),
limit: zod_exports.z.number().default(30).optional(),
page: zod_exports.z.number().default(1).optional(),
sortField: zod_exports.z.string().optional(),
sortAsc: zod_exports.z.boolean().default(true).optional(),
sort: zod_exports.z.record(zod_exports.z.string(), zod_exports.z.union([zod_exports.z.literal(1), zod_exports.z.literal(-1)])).optional(),
filter: zod_exports.z.any().optional(),
cursor: PageCursorParams.optional()
});
var Pagination = z2.object({
data: z2.array(z2.any()),
pageInfo: z2.object({
total: z2.number().nullish(),
page: z2.number().nullish(),
var Pagination = zod_exports.z.object({
data: zod_exports.z.array(zod_exports.z.any()),
pageInfo: zod_exports.z.object({
total: zod_exports.z.number().nullish(),
page: zod_exports.z.number().nullish(),
cursor: PageCursorInfo.nullish()

@@ -703,25 +717,3 @@ })

__reExport(src_exports, utils_exports);
// src/network/protocols.ts
var WS_PROTOCOLS = "ws-protocols";
var WS_PROTOCOLS_MESSAGES = {
WS_CONNECTION_INIT: "connection_init",
WS_CONNECTION_ACK: "connection_ack",
WS_CONNECTION_ERROR: "connection_error",
WS_CONNECTION_KEEP_ALIVE: "ka",
WS_CONNECTION_TERMINATE: "connection_terminate",
WS_START: "start",
WS_DATA: "data",
WS_ERROR: "error",
WS_COMPLETE: "complete",
WS_STOP: "stop"
};
var getProtocolName = (name) => {
if (name === WS_PROTOCOLS) {
return WS_PROTOCOLS_MESSAGES;
}
throw new Error("protocols not founded");
};
// src/index.ts
__reExport(src_exports, zod_exports);
import { default as default2, pMapSkip } from "p-map";

@@ -748,4 +740,2 @@ export {

UpdateResponse,
WS_PROTOCOLS,
WS_PROTOCOLS_MESSAGES,
Base64 as base64,

@@ -760,3 +750,2 @@ clamp,

getLogger,
getProtocolName,
getRangeDate,

@@ -775,4 +764,3 @@ isEmpty,

pull,
throttle,
z2 as z
throttle
};
{
"name": "@deboxsoft/module-core",
"version": "2.5.36",
"version": "2.5.37",
"license": "SEE LICENSE IN LICENSE",

@@ -39,3 +39,3 @@ "maintainers": [

"dependencies": {
"@deboxsoft/zod": "^3.17.4",
"zod": "^3.17.10",
"dayjs": "^1.11.4",

@@ -42,0 +42,0 @@ "p-map": "^5.5.0",

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