@treatwell/moleculer-essentials 2.0.0-beta.2 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-B6AujuxZ.mjs → index-DNiA_V_T.mjs} +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/logger/pino-pretty-transport.cjs +2 -2
- package/dist/mixins/database.mixin.cjs +1 -1
- package/dist/mixins/database.mixin.d.cts +2 -2
- package/dist/mixins/database.mixin.d.mts +2 -2
- package/dist/mixins/database.mixin.mjs +2 -2
- package/dist/mixins/encryptor.mixin.d.cts +1 -1
- package/dist/mixins/encryptor.mixin.d.mts +1 -1
- package/dist/mixins/global-store.mixin.d.cts +1 -1
- package/dist/mixins/global-store.mixin.d.mts +1 -1
- package/dist/mixins/jwt.mixin.d.cts +1 -1
- package/dist/mixins/jwt.mixin.d.mts +1 -1
- package/dist/mixins/queue.mixin.d.cts +1 -1
- package/dist/mixins/queue.mixin.d.mts +1 -1
- package/dist/mixins/redis.mixin.d.cts +1 -1
- package/dist/mixins/redis.mixin.d.mts +1 -1
- package/dist/mixins/redlock.mixin.d.cts +1 -1
- package/dist/mixins/redlock.mixin.d.mts +1 -1
- package/dist/{types-BEknQmfU.d.cts → types-CSx6iC1f.d.cts} +2 -2
- package/dist/{types-BEknQmfU.d.mts → types-CSx6iC1f.d.mts} +2 -2
- package/package.json +23 -23
|
@@ -354,4 +354,4 @@ function createOpenAPIResponses(model, description = "") {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export { COERCE_ARRAY_ATTRIBUTE as C, DATE_TYPE as D, EMPTY_OBJECT_SCHEMA as E, FileTooBigSchema as F, GetOpenApiParamsSchema as G, OBJECTID_TYPE as O, SCHEMA_REF_NAME as S, UnauthorizedErrorSchema as U, ValidationErrorSchema as V, FileNotExistSchema as a, ServerErrorSchema as b, addFieldsToSchema as c,
|
|
357
|
+
export { COERCE_ARRAY_ATTRIBUTE as C, DATE_TYPE as D, EMPTY_OBJECT_SCHEMA as E, FileTooBigSchema as F, GetOpenApiParamsSchema as G, OBJECTID_TYPE as O, SCHEMA_REF_NAME as S, UnauthorizedErrorSchema as U, ValidationErrorSchema as V, FileNotExistSchema as a, ServerErrorSchema as b, addFieldsToSchema as c, composeSchemas as d, createOpenAPIResponses as e, optionalExceptFields as f, optionalFields as g, zodCoerceArray as h, isZodSchema as i, zodDate as j, zodObjectId as k, omitFields as o, pickFields as p, toPartialSchema as t, zodToOpenAPISchema as z };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-CSx6iC1f.cjs';
|
|
2
|
+
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, P as ParameterBaseObject, s as ParameterObject, t as PathItemObject, u as PathsObject, v as PropertiesSchema, w as RequestBodyObject, x as RequiredMembers, y as ResponseObject, z as ResponsesObject, B as SecurityRequirementObject, F as SecuritySchemeObject, G as ServerObject, K as ServerVariableObject, T as TagObject, N as Transform, Q as TransformField, U as TransformLevel, V as TransformMap, W as Transformer, X as ValidationSchema, Z as ZodValidator } from './types-CSx6iC1f.cjs';
|
|
3
3
|
import { ObjectId } from 'bson';
|
|
4
4
|
import { z, ZodType } from 'zod/v4';
|
|
5
5
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { S as SomeJSONSchema, J as JSONSchemaType, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject, c as CreateLoggerOptions, M as MoleculerLoggerConfigOptions } from './types-CSx6iC1f.mjs';
|
|
2
|
+
export { d as AjvValidator, e as ApiKeySecurityScheme, f as CallbackObject, g as ComponentsObject, h as ContactObject, i as ContextFactory, E as EncodingObject, j as ExampleObject, k as ExternalDocumentationObject, H as HeaderObject, l as HttpSecurityScheme, I as InfoObject, m as InternalCallbackServiceThis, n as InternalObjectServiceThis, L as LicenseObject, o as LinkObject, p as MediaTypeObject, q as OAuth2SecurityScheme, r as OpenIdSecurityScheme, P as ParameterBaseObject, s as ParameterObject, t as PathItemObject, u as PathsObject, v as PropertiesSchema, w as RequestBodyObject, x as RequiredMembers, y as ResponseObject, z as ResponsesObject, B as SecurityRequirementObject, F as SecuritySchemeObject, G as ServerObject, K as ServerVariableObject, T as TagObject, N as Transform, Q as TransformField, U as TransformLevel, V as TransformMap, W as Transformer, X as ValidationSchema, Z as ZodValidator } from './types-CSx6iC1f.mjs';
|
|
3
3
|
import { ObjectId } from 'bson';
|
|
4
4
|
import { z, ZodType } from 'zod/v4';
|
|
5
5
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SCHEMA_REF_NAME, i as isZodSchema, z as zodToOpenAPISchema, o as omitFields, G as GetOpenApiParamsSchema, V as ValidationErrorSchema, F as FileTooBigSchema, a as FileNotExistSchema, U as UnauthorizedErrorSchema, b as ServerErrorSchema, C as COERCE_ARRAY_ATTRIBUTE } from './index-
|
|
2
|
-
export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema,
|
|
1
|
+
import { S as SCHEMA_REF_NAME, i as isZodSchema, z as zodToOpenAPISchema, o as omitFields, G as GetOpenApiParamsSchema, V as ValidationErrorSchema, F as FileTooBigSchema, a as FileNotExistSchema, U as UnauthorizedErrorSchema, b as ServerErrorSchema, C as COERCE_ARRAY_ATTRIBUTE } from './index-DNiA_V_T.mjs';
|
|
2
|
+
export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema, d as composeSchemas, e as createOpenAPIResponses, f as optionalExceptFields, g as optionalFields, p as pickFields, t as toPartialSchema, h as zodCoerceArray, j as zodDate, k as zodObjectId } from './index-DNiA_V_T.mjs';
|
|
3
3
|
import { Ajv2019 } from 'ajv/dist/2019.js';
|
|
4
4
|
import { Validators, Errors, Context, ServiceBroker, Service, TracerExporters, MetricReporters } from 'moleculer';
|
|
5
5
|
import addFormats from 'ajv-formats';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var require$$0 = require('pino-pretty');
|
|
4
4
|
|
|
5
|
-
function getDefaultExportFromCjs
|
|
6
|
-
|
|
5
|
+
function getDefaultExportFromCjs(x) {
|
|
6
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
var pinoPrettyTransport$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Document, WithoutId, InferIdType,
|
|
1
|
+
import { Document, ObjectId, WithoutId, InferIdType, Filter, OptionalId, WithId, CountDocumentsOptions, DeleteOptions, FindOneAndDeleteOptions, FindOptions, BulkWriteOptions, FindOneAndUpdateOptions, UpdateOptions, FindOneAndReplaceOptions, CollationOptions, CreateCollectionOptions, MongoClient, CollectionOptions, Collection, UpdateFilter, FindCursor, UpdateResult } from 'mongodb';
|
|
2
2
|
import { ActionVisibility, BaseValidator, Errors, Context } from 'moleculer';
|
|
3
3
|
import { ZodType, ZodObject } from 'zod/v4';
|
|
4
|
-
import {
|
|
4
|
+
import { X as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../types-CSx6iC1f.cjs';
|
|
5
5
|
import { Readable } from 'stream';
|
|
6
6
|
import 'bson';
|
|
7
7
|
import 'ajv/dist/2019.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Document, WithoutId, InferIdType,
|
|
1
|
+
import { Document, ObjectId, WithoutId, InferIdType, Filter, OptionalId, WithId, CountDocumentsOptions, DeleteOptions, FindOneAndDeleteOptions, FindOptions, BulkWriteOptions, FindOneAndUpdateOptions, UpdateOptions, FindOneAndReplaceOptions, CollationOptions, CreateCollectionOptions, MongoClient, CollectionOptions, Collection, UpdateFilter, FindCursor, UpdateResult } from 'mongodb';
|
|
2
2
|
import { ActionVisibility, BaseValidator, Errors, Context } from 'moleculer';
|
|
3
3
|
import { ZodType, ZodObject } from 'zod/v4';
|
|
4
|
-
import {
|
|
4
|
+
import { X as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../types-CSx6iC1f.mjs';
|
|
5
5
|
import { Readable } from 'stream';
|
|
6
6
|
import 'bson';
|
|
7
7
|
import 'ajv/dist/2019.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as optionalFields, o as omitFields, S as SCHEMA_REF_NAME, O as OBJECTID_TYPE, C as COERCE_ARRAY_ATTRIBUTE, i as isZodSchema, k as zodObjectId, h as zodCoerceArray, e as createOpenAPIResponses } from '../index-DNiA_V_T.mjs';
|
|
2
2
|
import { Errors } from 'moleculer';
|
|
3
3
|
import { isEqual as isEqual$1 } from 'es-toolkit';
|
|
4
4
|
import { z } from 'zod/v4';
|
|
@@ -308,7 +308,7 @@ function parseStringifiedQuery(sQuery) {
|
|
|
308
308
|
if (!sQuery) {
|
|
309
309
|
return {};
|
|
310
310
|
}
|
|
311
|
-
let query
|
|
311
|
+
let query;
|
|
312
312
|
try {
|
|
313
313
|
query = JSON.parse(sQuery || "{}");
|
|
314
314
|
} catch {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomServiceSchema } from '../types-
|
|
1
|
+
import { a as CustomServiceSchema } from '../types-CSx6iC1f.cjs';
|
|
2
2
|
import { SignOptions, PrivateKey, VerifyOptions, JwtHeader, SigningKeyCallback } from 'jsonwebtoken';
|
|
3
3
|
import { Options, JwksClient } from 'jwks-rsa';
|
|
4
4
|
import { Context } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomServiceSchema } from '../types-
|
|
1
|
+
import { a as CustomServiceSchema } from '../types-CSx6iC1f.mjs';
|
|
2
2
|
import { SignOptions, PrivateKey, VerifyOptions, JwtHeader, SigningKeyCallback } from 'jsonwebtoken';
|
|
3
3
|
import { Options, JwksClient } from 'jwks-rsa';
|
|
4
4
|
import { Context } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomServiceSchema } from '../types-
|
|
1
|
+
import { a as CustomServiceSchema } from '../types-CSx6iC1f.cjs';
|
|
2
2
|
import { Redis } from 'ioredis';
|
|
3
3
|
import { QueueOptions, Queue, JobsOptions, Job, QueueEventsOptions, QueueEvents, QueueBaseOptions, FlowProducer, RepeatOptions, WorkerOptions, Worker } from 'bullmq';
|
|
4
4
|
import { Service } from 'moleculer';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CustomServiceSchema } from '../types-
|
|
1
|
+
import { a as CustomServiceSchema } from '../types-CSx6iC1f.mjs';
|
|
2
2
|
import { Redis } from 'ioredis';
|
|
3
3
|
import { QueueOptions, Queue, JobsOptions, Job, QueueEventsOptions, QueueEvents, QueueBaseOptions, FlowProducer, RepeatOptions, WorkerOptions, Worker } from 'bullmq';
|
|
4
4
|
import { Service } from 'moleculer';
|
|
@@ -566,5 +566,5 @@ declare module 'pino' {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
export { ZodValidator as Z, AjvValidator as
|
|
570
|
-
export type { Alias as A,
|
|
569
|
+
export { ZodValidator as Z, AjvValidator as d, ContextFactory as i };
|
|
570
|
+
export type { Alias as A, SecurityRequirementObject as B, CustomActionSchema as C, Document as D, EncodingObject as E, SecuritySchemeObject as F, ServerObject as G, HeaderObject as H, InfoObject as I, JSONSchemaType as J, ServerVariableObject as K, LicenseObject as L, MoleculerLoggerConfigOptions as M, Transform as N, OperationObject as O, ParameterBaseObject as P, TransformField as Q, ReferenceObject as R, SomeJSONSchema as S, TagObject as T, TransformLevel as U, TransformMap as V, Transformer as W, ValidationSchema as X, CustomServiceSchema as a, SchemaObject as b, CreateLoggerOptions as c, ApiKeySecurityScheme as e, CallbackObject as f, ComponentsObject as g, ContactObject as h, ExampleObject as j, ExternalDocumentationObject as k, HttpSecurityScheme as l, CallbackServiceThis as m, ObjectServiceThis as n, LinkObject as o, MediaTypeObject as p, OAuth2SecurityScheme as q, OpenIdSecurityScheme as r, ParameterObject as s, PathItemObject as t, PathsObject as u, PropertiesSchema as v, RequestBodyObject as w, RequiredMembers as x, ResponseObject as y, ResponsesObject as z };
|
|
@@ -566,5 +566,5 @@ declare module 'pino' {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
export { ZodValidator as Z, AjvValidator as
|
|
570
|
-
export type { Alias as A,
|
|
569
|
+
export { ZodValidator as Z, AjvValidator as d, ContextFactory as i };
|
|
570
|
+
export type { Alias as A, SecurityRequirementObject as B, CustomActionSchema as C, Document as D, EncodingObject as E, SecuritySchemeObject as F, ServerObject as G, HeaderObject as H, InfoObject as I, JSONSchemaType as J, ServerVariableObject as K, LicenseObject as L, MoleculerLoggerConfigOptions as M, Transform as N, OperationObject as O, ParameterBaseObject as P, TransformField as Q, ReferenceObject as R, SomeJSONSchema as S, TagObject as T, TransformLevel as U, TransformMap as V, Transformer as W, ValidationSchema as X, CustomServiceSchema as a, SchemaObject as b, CreateLoggerOptions as c, ApiKeySecurityScheme as e, CallbackObject as f, ComponentsObject as g, ContactObject as h, ExampleObject as j, ExternalDocumentationObject as k, HttpSecurityScheme as l, CallbackServiceThis as m, ObjectServiceThis as n, LinkObject as o, MediaTypeObject as p, OAuth2SecurityScheme as q, OpenIdSecurityScheme as r, ParameterObject as s, PathItemObject as t, PathsObject as u, PropertiesSchema as v, RequestBodyObject as w, RequiredMembers as x, ResponseObject as y, ResponsesObject as z };
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/treatwell/moleculer-essentials"
|
|
8
8
|
},
|
|
9
|
-
"version": "2.0.0-beta.
|
|
9
|
+
"version": "2.0.0-beta.3",
|
|
10
10
|
"main": "./dist/index.cjs",
|
|
11
11
|
"module": "./dist/index.mjs",
|
|
12
12
|
"types": "./dist/index.d.cts",
|
|
@@ -106,10 +106,10 @@
|
|
|
106
106
|
"ajv": "^8.12.0",
|
|
107
107
|
"ajv-formats": "^2.1.1",
|
|
108
108
|
"ajv-keywords": "^5.1.0",
|
|
109
|
-
"bson": "^6.
|
|
110
|
-
"date-fns": "^
|
|
111
|
-
"es-toolkit": "^1.
|
|
112
|
-
"pino": "^10.1
|
|
109
|
+
"bson": "^6.10.4",
|
|
110
|
+
"date-fns": "^4.1.0",
|
|
111
|
+
"es-toolkit": "^1.45.1",
|
|
112
|
+
"pino": "^10.3.1",
|
|
113
113
|
"pino-pretty": "^13.1.3"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"jsonwebtoken": "^9.0.2",
|
|
120
120
|
"jwks-rsa": "^3.0.1",
|
|
121
121
|
"moleculer": "^0.14.33",
|
|
122
|
-
"mongodb": "^6.15.0",
|
|
122
|
+
"mongodb": "^6.15.0 || ^7.1.0",
|
|
123
123
|
"redlock": "^4.2.0",
|
|
124
124
|
"zod": "^3.25.0 || ^4.0.0"
|
|
125
125
|
},
|
|
@@ -147,34 +147,34 @@
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
|
-
"@aws-crypto/client-node": "^4.2.
|
|
151
|
-
"@eslint/js": "^
|
|
152
|
-
"@treatwell/eslint-plugin-moleculer": "^1.1.
|
|
150
|
+
"@aws-crypto/client-node": "^4.2.2",
|
|
151
|
+
"@eslint/js": "^10.0.1",
|
|
152
|
+
"@treatwell/eslint-plugin-moleculer": "^1.1.3",
|
|
153
153
|
"@tsconfig/node-lts": "^24.0.0",
|
|
154
154
|
"@types/jsonwebtoken": "^9.0.10",
|
|
155
|
-
"@types/node": "^24.
|
|
155
|
+
"@types/node": "^24.12.0",
|
|
156
156
|
"@types/redlock": "^4.0.8",
|
|
157
|
-
"bullmq": "^5.
|
|
158
|
-
"eslint": "^
|
|
157
|
+
"bullmq": "^5.71.1",
|
|
158
|
+
"eslint": "^10.1.0",
|
|
159
159
|
"eslint-config-prettier": "^10.1.8",
|
|
160
160
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
161
161
|
"eslint-plugin-import": "^2.32.0",
|
|
162
|
-
"eslint-plugin-prettier": "^5.5.
|
|
163
|
-
"ioredis": "^5.
|
|
162
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
163
|
+
"ioredis": "^5.10.1",
|
|
164
164
|
"jiti": "^2.6.1",
|
|
165
165
|
"jsonwebtoken": "^9.0.3",
|
|
166
|
-
"jwks-rsa": "^
|
|
166
|
+
"jwks-rsa": "^4.0.1",
|
|
167
167
|
"moleculer": "^0.14.35",
|
|
168
|
-
"mongodb": "^
|
|
168
|
+
"mongodb": "^7.1.1",
|
|
169
169
|
"mongodb-memory-server": "^11.0.1",
|
|
170
|
-
"pkgroll": "2.
|
|
171
|
-
"prettier": "^3.
|
|
170
|
+
"pkgroll": "2.27.0",
|
|
171
|
+
"prettier": "^3.8.1",
|
|
172
172
|
"redlock": "^4.2.0",
|
|
173
|
-
"semantic-release": "^25.0.
|
|
173
|
+
"semantic-release": "^25.0.3",
|
|
174
174
|
"typescript": "~5.9.3",
|
|
175
|
-
"typescript-eslint": "^8.
|
|
176
|
-
"vitest": "^4.
|
|
177
|
-
"zod": "^4.
|
|
175
|
+
"typescript-eslint": "^8.57.2",
|
|
176
|
+
"vitest": "^4.1.2",
|
|
177
|
+
"zod": "^4.3.6"
|
|
178
178
|
},
|
|
179
179
|
"files": [
|
|
180
180
|
"dist"
|
|
@@ -182,5 +182,5 @@
|
|
|
182
182
|
"publishConfig": {
|
|
183
183
|
"access": "public"
|
|
184
184
|
},
|
|
185
|
-
"packageManager": "yarn@4.
|
|
185
|
+
"packageManager": "yarn@4.13.0"
|
|
186
186
|
}
|