@treatwell/moleculer-essentials 1.0.2-beta.2 → 1.0.2-beta.4

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.
@@ -323,12 +323,7 @@ const ValidationErrorSchema = {
323
323
  ]
324
324
  }
325
325
  };
326
- const GetOpenApiParamsSchema = {
327
- type: "object",
328
- additionalProperties: false,
329
- required: [],
330
- properties: { kind: { type: "string" } }
331
- };
326
+ const GetOpenApiParamsSchema = v4.z.object({ kind: v4.z.string().optional() });
332
327
 
333
328
  function createOpenAPIResponses(model, description = "") {
334
329
  const isZodType = model instanceof v4.z.ZodType;
@@ -321,12 +321,7 @@ const ValidationErrorSchema = {
321
321
  ]
322
322
  }
323
323
  };
324
- const GetOpenApiParamsSchema = {
325
- type: "object",
326
- additionalProperties: false,
327
- required: [],
328
- properties: { kind: { type: "string" } }
329
- };
324
+ const GetOpenApiParamsSchema = z$1.object({ kind: z$1.string().optional() });
330
325
 
331
326
  function createOpenAPIResponses(model, description = "") {
332
327
  const isZodType = model instanceof z$1.ZodType;
@@ -1,7 +1,8 @@
1
- import Moleculer__default, { RestSchema, ActionVisibility, Service, ActionCacheOptions, Context, TracingActionOptions, BulkheadOptions, BrokerCircuitBreakerOptions, RetryPolicyOptions, FallbackHandler, ActionHooks, Validators, ActionHandler, ActionSchema, ServiceEvent, ServiceDependency, ServiceHooks, GenericObject, ServiceBroker, Endpoint } from 'moleculer';
1
+ import Moleculer__default, { RestSchema, ActionVisibility, Service, ActionCacheOptions, Context, TracingActionOptions, BulkheadOptions, BrokerCircuitBreakerOptions, RetryPolicyOptions, FallbackHandler, ActionHooks, Validators, ActionHandler, ActionSchema, ServiceEvent, ServiceDependency, ServiceHooks, GenericObject, ServiceBroker, Endpoint, LoggerConfig } from 'moleculer';
2
2
  import { ObjectId } from 'bson';
3
3
  import { ZodType, z } from 'zod/v4';
4
4
  import { Options, ErrorObject } from 'ajv/dist/2019.js';
5
+ import { Logger } from 'pino';
5
6
 
6
7
  type UnionToIntersection$1<U> = (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never;
7
8
  type SomeJSONSchema = JSONSchemaType<Known, true>;
@@ -516,5 +517,17 @@ declare module 'moleculer' {
516
517
  }
517
518
  }
518
519
 
519
- export { ZodValidator as Z, AjvValidator as d, ContextFactory as i };
520
+ declare const createLogger: (bindings: Record<string, unknown>) => Logger;
521
+ declare function createLoggerConfig(): LoggerConfig;
522
+ declare const defaultLogger: Logger;
523
+ /**
524
+ * Augment pino to something closer to what Moleculer is using.
525
+ */
526
+ declare module 'pino' {
527
+ interface LogFn {
528
+ (msg: string, ...args: (Error | object)[]): void;
529
+ }
530
+ }
531
+
532
+ export { createLogger as Q, createLoggerConfig as U, defaultLogger as W, ZodValidator as Z, AjvValidator as d, ContextFactory as i };
520
533
  export type { Alias as A, SecuritySchemeObject as B, CustomActionSchema as C, Document as D, ExternalDocumentationObject as E, CallbackObject as F, ComponentsObject as G, HeaderObject as H, InfoObject as I, JSONSchemaType as J, TagObject as K, LicenseObject as L, MediaTypeObject as M, PathItemObject as N, OperationObject as O, PropertiesSchema as P, ReferenceObject as R, SomeJSONSchema as S, Transformer as T, ValidationSchema as V, CustomServiceSchema as a, SchemaObject as b, RequiredMembers as c, Transform as e, TransformLevel as f, TransformMap as g, TransformField as h, ContactObject as j, ServerVariableObject as k, ServerObject as l, PathsObject as m, ParameterObject as n, ParameterBaseObject as o, ExampleObject as p, EncodingObject as q, RequestBodyObject as r, LinkObject as s, ResponseObject as t, ResponsesObject as u, SecurityRequirementObject as v, HttpSecurityScheme as w, ApiKeySecurityScheme as x, OAuth2SecurityScheme as y, OpenIdSecurityScheme as z };
@@ -1,7 +1,8 @@
1
- import Moleculer__default, { RestSchema, ActionVisibility, Service, ActionCacheOptions, Context, TracingActionOptions, BulkheadOptions, BrokerCircuitBreakerOptions, RetryPolicyOptions, FallbackHandler, ActionHooks, Validators, ActionHandler, ActionSchema, ServiceEvent, ServiceDependency, ServiceHooks, GenericObject, ServiceBroker, Endpoint } from 'moleculer';
1
+ import Moleculer__default, { RestSchema, ActionVisibility, Service, ActionCacheOptions, Context, TracingActionOptions, BulkheadOptions, BrokerCircuitBreakerOptions, RetryPolicyOptions, FallbackHandler, ActionHooks, Validators, ActionHandler, ActionSchema, ServiceEvent, ServiceDependency, ServiceHooks, GenericObject, ServiceBroker, Endpoint, LoggerConfig } from 'moleculer';
2
2
  import { ObjectId } from 'bson';
3
3
  import { ZodType, z } from 'zod/v4';
4
4
  import { Options, ErrorObject } from 'ajv/dist/2019.js';
5
+ import { Logger } from 'pino';
5
6
 
6
7
  type UnionToIntersection$1<U> = (U extends any ? (_: U) => void : never) extends (_: infer I) => void ? I : never;
7
8
  type SomeJSONSchema = JSONSchemaType<Known, true>;
@@ -516,5 +517,17 @@ declare module 'moleculer' {
516
517
  }
517
518
  }
518
519
 
519
- export { ZodValidator as Z, AjvValidator as d, ContextFactory as i };
520
+ declare const createLogger: (bindings: Record<string, unknown>) => Logger;
521
+ declare function createLoggerConfig(): LoggerConfig;
522
+ declare const defaultLogger: Logger;
523
+ /**
524
+ * Augment pino to something closer to what Moleculer is using.
525
+ */
526
+ declare module 'pino' {
527
+ interface LogFn {
528
+ (msg: string, ...args: (Error | object)[]): void;
529
+ }
530
+ }
531
+
532
+ export { createLogger as Q, createLoggerConfig as U, defaultLogger as W, ZodValidator as Z, AjvValidator as d, ContextFactory as i };
520
533
  export type { Alias as A, SecuritySchemeObject as B, CustomActionSchema as C, Document as D, ExternalDocumentationObject as E, CallbackObject as F, ComponentsObject as G, HeaderObject as H, InfoObject as I, JSONSchemaType as J, TagObject as K, LicenseObject as L, MediaTypeObject as M, PathItemObject as N, OperationObject as O, PropertiesSchema as P, ReferenceObject as R, SomeJSONSchema as S, Transformer as T, ValidationSchema as V, CustomServiceSchema as a, SchemaObject as b, RequiredMembers as c, Transform as e, TransformLevel as f, TransformMap as g, TransformField as h, ContactObject as j, ServerVariableObject as k, ServerObject as l, PathsObject as m, ParameterObject as n, ParameterBaseObject as o, ExampleObject as p, EncodingObject as q, RequestBodyObject as r, LinkObject as s, ResponseObject as t, ResponsesObject as u, SecurityRequirementObject as v, HttpSecurityScheme as w, ApiKeySecurityScheme as x, OAuth2SecurityScheme as y, OpenIdSecurityScheme as z };
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CXpoxJ9R.cjs');
3
+ var index = require('./index-BUXfgQp5.cjs');
4
4
  var v4 = require('zod/v4');
5
5
  var _2019_js = require('ajv/dist/2019.js');
6
6
  var moleculer = require('moleculer');
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
- import { J as JSONSchemaType, S as SomeJSONSchema, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject } from './context-factory-BWO3xPWE.cjs';
2
- export { d as AjvValidator, x as ApiKeySecurityScheme, F as CallbackObject, G as ComponentsObject, j as ContactObject, i as ContextFactory, q as EncodingObject, p as ExampleObject, E as ExternalDocumentationObject, H as HeaderObject, w as HttpSecurityScheme, I as InfoObject, L as LicenseObject, s as LinkObject, M as MediaTypeObject, y as OAuth2SecurityScheme, z as OpenIdSecurityScheme, o as ParameterBaseObject, n as ParameterObject, N as PathItemObject, m as PathsObject, P as PropertiesSchema, r as RequestBodyObject, c as RequiredMembers, t as ResponseObject, u as ResponsesObject, v as SecurityRequirementObject, B as SecuritySchemeObject, l as ServerObject, k as ServerVariableObject, K as TagObject, e as Transform, h as TransformField, f as TransformLevel, g as TransformMap, T as Transformer, V as ValidationSchema, Z as ZodValidator } from './context-factory-BWO3xPWE.cjs';
1
+ import { J as JSONSchemaType, S as SomeJSONSchema, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject } from './index-IHCgtNKZ.cjs';
2
+ export { d as AjvValidator, x as ApiKeySecurityScheme, F as CallbackObject, G as ComponentsObject, j as ContactObject, i as ContextFactory, q as EncodingObject, p as ExampleObject, E as ExternalDocumentationObject, H as HeaderObject, w as HttpSecurityScheme, I as InfoObject, L as LicenseObject, s as LinkObject, M as MediaTypeObject, y as OAuth2SecurityScheme, z as OpenIdSecurityScheme, o as ParameterBaseObject, n as ParameterObject, N as PathItemObject, m as PathsObject, P as PropertiesSchema, r as RequestBodyObject, c as RequiredMembers, t as ResponseObject, u as ResponsesObject, v as SecurityRequirementObject, B as SecuritySchemeObject, l as ServerObject, k as ServerVariableObject, K as TagObject, e as Transform, h as TransformField, f as TransformLevel, g as TransformMap, T as Transformer, V as ValidationSchema, Z as ZodValidator, Q as createLogger, U as createLoggerConfig, W as defaultLogger } from './index-IHCgtNKZ.cjs';
3
3
  import { ObjectId } from 'bson';
4
4
  import { ZodType, z as z$1 } from 'zod';
5
5
  import { z } from 'zod/v4';
6
6
  import { Ajv2019 } from 'ajv/dist/2019.js';
7
7
  import * as Moleculer from 'moleculer';
8
- import { Context, ServiceSchema, ServiceSettingSchema, Service, ServiceBroker, BrokerOptions, Middleware, LoggerConfig, TracerExporters, LoggerInstance, Tracer, Span, MetricReporters, MetricRegistry, MetricReporterOptions } from 'moleculer';
9
- import { Logger } from 'pino';
8
+ import { Context, ServiceSchema, ServiceSettingSchema, Service, ServiceBroker, BrokerOptions, Middleware, TracerExporters, LoggerInstance, Tracer, Span, MetricReporters, MetricRegistry, MetricReporterOptions } from 'moleculer';
9
+ import 'pino';
10
10
 
11
11
  declare function omitFields<T extends Record<string, unknown>, F extends keyof T>(schema: JSONSchemaType<T>, fields: F[], refName?: string): JSONSchemaType<Omit<T, F>>;
12
12
  declare function pickFields<T extends Record<string, unknown>, F extends keyof T>(schema: JSONSchemaType<T>, fields: F[], refName?: string): JSONSchemaType<Pick<T, F>>;
@@ -254,10 +254,6 @@ type HealthCheckOptions = {
254
254
  */
255
255
  declare function HealthCheckMiddleware(_opts: Partial<HealthCheckOptions>): Middleware;
256
256
 
257
- declare const createLogger: (bindings: Record<string, unknown>) => Logger;
258
- declare function createLoggerConfig(): LoggerConfig;
259
- declare const defaultLogger: Logger;
260
-
261
257
  type NewrelicTraceExporterOptions = {
262
258
  logger?: LoggerInstance;
263
259
  safetyTags?: boolean;
@@ -369,5 +365,5 @@ declare class NewrelicMetricsReporter extends MetricReporters.Base {
369
365
  generateMetricsPayload(): unknown[];
370
366
  }
371
367
 
372
- export { AjvExtractor, Alias, COERCE_ARRAY_ATTRIBUTE, CustomActionSchema, CustomServiceSchema, DATE_TYPE, Document, EMPTY_OBJECT_SCHEMA, HealthCheckMiddleware, JSONSchemaType, NewrelicMetricsReporter, NewrelicTraceExporter, OBJECTID_TYPE, OpenAPIExtractor, OpenAPIMixin, OperationObject, RefExtractor, ReferenceObject, SCHEMA_REF_NAME, SchemaObject, ServiceFactory, SomeJSONSchema, addFieldsToSchema, composeSchemas, createLogger, createLoggerConfig, createOpenAPIResponses, createServiceBroker, defaultLogger, getMetadataFromService, isServiceSelected, omitFields, optionalExceptFields, optionalFields, pickFields, toPartialSchema, wrapMixin, wrapService, zodCoerceArray, zodDate, zodObjectId, zodToOpenAPISchema };
368
+ export { AjvExtractor, Alias, COERCE_ARRAY_ATTRIBUTE, CustomActionSchema, CustomServiceSchema, DATE_TYPE, Document, EMPTY_OBJECT_SCHEMA, HealthCheckMiddleware, JSONSchemaType, NewrelicMetricsReporter, NewrelicTraceExporter, OBJECTID_TYPE, OpenAPIExtractor, OpenAPIMixin, OperationObject, RefExtractor, ReferenceObject, SCHEMA_REF_NAME, SchemaObject, ServiceFactory, SomeJSONSchema, addFieldsToSchema, composeSchemas, createOpenAPIResponses, createServiceBroker, getMetadataFromService, isServiceSelected, omitFields, optionalExceptFields, optionalFields, pickFields, toPartialSchema, wrapMixin, wrapService, zodCoerceArray, zodDate, zodObjectId, zodToOpenAPISchema };
373
369
  export type { OpenAPIMixinOptions, OpenAPIResponses, Selector };
package/dist/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
- import { J as JSONSchemaType, S as SomeJSONSchema, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject } from './context-factory-BWO3xPWE.mjs';
2
- export { d as AjvValidator, x as ApiKeySecurityScheme, F as CallbackObject, G as ComponentsObject, j as ContactObject, i as ContextFactory, q as EncodingObject, p as ExampleObject, E as ExternalDocumentationObject, H as HeaderObject, w as HttpSecurityScheme, I as InfoObject, L as LicenseObject, s as LinkObject, M as MediaTypeObject, y as OAuth2SecurityScheme, z as OpenIdSecurityScheme, o as ParameterBaseObject, n as ParameterObject, N as PathItemObject, m as PathsObject, P as PropertiesSchema, r as RequestBodyObject, c as RequiredMembers, t as ResponseObject, u as ResponsesObject, v as SecurityRequirementObject, B as SecuritySchemeObject, l as ServerObject, k as ServerVariableObject, K as TagObject, e as Transform, h as TransformField, f as TransformLevel, g as TransformMap, T as Transformer, V as ValidationSchema, Z as ZodValidator } from './context-factory-BWO3xPWE.mjs';
1
+ import { J as JSONSchemaType, S as SomeJSONSchema, C as CustomActionSchema, A as Alias, a as CustomServiceSchema, D as Document, b as SchemaObject, O as OperationObject, R as ReferenceObject } from './index-IHCgtNKZ.mjs';
2
+ export { d as AjvValidator, x as ApiKeySecurityScheme, F as CallbackObject, G as ComponentsObject, j as ContactObject, i as ContextFactory, q as EncodingObject, p as ExampleObject, E as ExternalDocumentationObject, H as HeaderObject, w as HttpSecurityScheme, I as InfoObject, L as LicenseObject, s as LinkObject, M as MediaTypeObject, y as OAuth2SecurityScheme, z as OpenIdSecurityScheme, o as ParameterBaseObject, n as ParameterObject, N as PathItemObject, m as PathsObject, P as PropertiesSchema, r as RequestBodyObject, c as RequiredMembers, t as ResponseObject, u as ResponsesObject, v as SecurityRequirementObject, B as SecuritySchemeObject, l as ServerObject, k as ServerVariableObject, K as TagObject, e as Transform, h as TransformField, f as TransformLevel, g as TransformMap, T as Transformer, V as ValidationSchema, Z as ZodValidator, Q as createLogger, U as createLoggerConfig, W as defaultLogger } from './index-IHCgtNKZ.mjs';
3
3
  import { ObjectId } from 'bson';
4
4
  import { ZodType, z as z$1 } from 'zod';
5
5
  import { z } from 'zod/v4';
6
6
  import { Ajv2019 } from 'ajv/dist/2019.js';
7
7
  import * as Moleculer from 'moleculer';
8
- import { Context, ServiceSchema, ServiceSettingSchema, Service, ServiceBroker, BrokerOptions, Middleware, LoggerConfig, TracerExporters, LoggerInstance, Tracer, Span, MetricReporters, MetricRegistry, MetricReporterOptions } from 'moleculer';
9
- import { Logger } from 'pino';
8
+ import { Context, ServiceSchema, ServiceSettingSchema, Service, ServiceBroker, BrokerOptions, Middleware, TracerExporters, LoggerInstance, Tracer, Span, MetricReporters, MetricRegistry, MetricReporterOptions } from 'moleculer';
9
+ import 'pino';
10
10
 
11
11
  declare function omitFields<T extends Record<string, unknown>, F extends keyof T>(schema: JSONSchemaType<T>, fields: F[], refName?: string): JSONSchemaType<Omit<T, F>>;
12
12
  declare function pickFields<T extends Record<string, unknown>, F extends keyof T>(schema: JSONSchemaType<T>, fields: F[], refName?: string): JSONSchemaType<Pick<T, F>>;
@@ -254,10 +254,6 @@ type HealthCheckOptions = {
254
254
  */
255
255
  declare function HealthCheckMiddleware(_opts: Partial<HealthCheckOptions>): Middleware;
256
256
 
257
- declare const createLogger: (bindings: Record<string, unknown>) => Logger;
258
- declare function createLoggerConfig(): LoggerConfig;
259
- declare const defaultLogger: Logger;
260
-
261
257
  type NewrelicTraceExporterOptions = {
262
258
  logger?: LoggerInstance;
263
259
  safetyTags?: boolean;
@@ -369,5 +365,5 @@ declare class NewrelicMetricsReporter extends MetricReporters.Base {
369
365
  generateMetricsPayload(): unknown[];
370
366
  }
371
367
 
372
- export { AjvExtractor, Alias, COERCE_ARRAY_ATTRIBUTE, CustomActionSchema, CustomServiceSchema, DATE_TYPE, Document, EMPTY_OBJECT_SCHEMA, HealthCheckMiddleware, JSONSchemaType, NewrelicMetricsReporter, NewrelicTraceExporter, OBJECTID_TYPE, OpenAPIExtractor, OpenAPIMixin, OperationObject, RefExtractor, ReferenceObject, SCHEMA_REF_NAME, SchemaObject, ServiceFactory, SomeJSONSchema, addFieldsToSchema, composeSchemas, createLogger, createLoggerConfig, createOpenAPIResponses, createServiceBroker, defaultLogger, getMetadataFromService, isServiceSelected, omitFields, optionalExceptFields, optionalFields, pickFields, toPartialSchema, wrapMixin, wrapService, zodCoerceArray, zodDate, zodObjectId, zodToOpenAPISchema };
368
+ export { AjvExtractor, Alias, COERCE_ARRAY_ATTRIBUTE, CustomActionSchema, CustomServiceSchema, DATE_TYPE, Document, EMPTY_OBJECT_SCHEMA, HealthCheckMiddleware, JSONSchemaType, NewrelicMetricsReporter, NewrelicTraceExporter, OBJECTID_TYPE, OpenAPIExtractor, OpenAPIMixin, OperationObject, RefExtractor, ReferenceObject, SCHEMA_REF_NAME, SchemaObject, ServiceFactory, SomeJSONSchema, addFieldsToSchema, composeSchemas, createOpenAPIResponses, createServiceBroker, getMetadataFromService, isServiceSelected, omitFields, optionalExceptFields, optionalFields, pickFields, toPartialSchema, wrapMixin, wrapService, zodCoerceArray, zodDate, zodObjectId, zodToOpenAPISchema };
373
369
  export type { OpenAPIMixinOptions, OpenAPIResponses, Selector };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { S as SCHEMA_REF_NAME, 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-Lfmmf1DE.mjs';
2
- export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema, f as composeSchemas, j as createOpenAPIResponses, e as optionalExceptFields, d as optionalFields, p as pickFields, t as toPartialSchema, i as zodCoerceArray, g as zodDate, h as zodObjectId } from './index-Lfmmf1DE.mjs';
1
+ import { S as SCHEMA_REF_NAME, 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-BmVULkqf.mjs';
2
+ export { D as DATE_TYPE, E as EMPTY_OBJECT_SCHEMA, O as OBJECTID_TYPE, c as addFieldsToSchema, f as composeSchemas, j as createOpenAPIResponses, e as optionalExceptFields, d as optionalFields, p as pickFields, t as toPartialSchema, i as zodCoerceArray, g as zodDate, h as zodObjectId } from './index-BmVULkqf.mjs';
3
3
  import { ZodType, ZodObject, ZodOptional, z } from 'zod/v4';
4
4
  import { Ajv2019 } from 'ajv/dist/2019.js';
5
5
  import { Validators, Errors, Context, ServiceBroker, Service, TracerExporters, MetricReporters } from 'moleculer';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var v4 = require('zod/v4');
4
- var index = require('../index-CXpoxJ9R.cjs');
4
+ var index = require('../index-BUXfgQp5.cjs');
5
5
  var moleculer = require('moleculer');
6
6
  var lodashEs = require('lodash-es');
7
7
  var mongodb = require('mongodb');
@@ -1,10 +1,11 @@
1
1
  import { Document, WithoutId, InferIdType, ObjectId, Filter, WithId, OptionalId, FindOptions, CountDocumentsOptions, FindOneAndUpdateOptions, BulkWriteOptions, UpdateOptions, FindOneAndReplaceOptions, FindOneAndDeleteOptions, DeleteOptions, 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 { V as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
4
+ import { V as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../index-IHCgtNKZ.cjs';
5
5
  import { Readable } from 'stream';
6
6
  import 'bson';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  declare enum QueryOp {
10
11
  GT = "$gt",
@@ -1,10 +1,11 @@
1
1
  import { Document, WithoutId, InferIdType, ObjectId, Filter, WithId, OptionalId, FindOptions, CountDocumentsOptions, FindOneAndUpdateOptions, BulkWriteOptions, UpdateOptions, FindOneAndReplaceOptions, FindOneAndDeleteOptions, DeleteOptions, 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 { V as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
4
+ import { V as ValidationSchema, J as JSONSchemaType, C as CustomActionSchema, a as CustomServiceSchema } from '../index-IHCgtNKZ.mjs';
5
5
  import { Readable } from 'stream';
6
6
  import 'bson';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  declare enum QueryOp {
10
11
  GT = "$gt",
@@ -1,5 +1,5 @@
1
1
  import { ZodType, z, ZodObject } from 'zod/v4';
2
- import { o as omitFields, d as optionalFields, S as SCHEMA_REF_NAME, O as OBJECTID_TYPE, C as COERCE_ARRAY_ATTRIBUTE, h as zodObjectId, i as zodCoerceArray, j as createOpenAPIResponses } from '../index-Lfmmf1DE.mjs';
2
+ import { o as omitFields, d as optionalFields, S as SCHEMA_REF_NAME, O as OBJECTID_TYPE, C as COERCE_ARRAY_ATTRIBUTE, h as zodObjectId, i as zodCoerceArray, j as createOpenAPIResponses } from '../index-BmVULkqf.mjs';
3
3
  import { Errors } from 'moleculer';
4
4
  import { isMatch, isEqual, partition, omit, pick } from 'lodash-es';
5
5
  import { MongoClient } from 'mongodb';
@@ -1,9 +1,10 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.cjs';
2
2
  import { buildClient, NodeCachingMaterialsManager } from '@aws-crypto/client-node';
3
3
  import 'moleculer';
4
4
  import 'bson';
5
5
  import 'zod/v4';
6
6
  import 'ajv/dist/2019.js';
7
+ import 'pino';
7
8
 
8
9
  declare const kCmm: unique symbol;
9
10
  type EncryptorMixinSettings = {
@@ -1,9 +1,10 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.mjs';
2
2
  import { buildClient, NodeCachingMaterialsManager } from '@aws-crypto/client-node';
3
3
  import 'moleculer';
4
4
  import 'bson';
5
5
  import 'zod/v4';
6
6
  import 'ajv/dist/2019.js';
7
+ import 'pino';
7
8
 
8
9
  declare const kCmm: unique symbol;
9
10
  type EncryptorMixinSettings = {
@@ -1,8 +1,9 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.cjs';
2
2
  import 'moleculer';
3
3
  import 'bson';
4
4
  import 'zod/v4';
5
5
  import 'ajv/dist/2019.js';
6
+ import 'pino';
6
7
 
7
8
  type Wrapper<T> = {
8
9
  services: Set<unknown>;
@@ -1,8 +1,9 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.mjs';
2
2
  import 'moleculer';
3
3
  import 'bson';
4
4
  import 'zod/v4';
5
5
  import 'ajv/dist/2019.js';
6
+ import 'pino';
6
7
 
7
8
  type Wrapper<T> = {
8
9
  services: Set<unknown>;
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.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';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type JwtSignerMixinSettings = {
10
11
  signOptions: SignOptions;
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.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';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type JwtSignerMixinSettings = {
10
11
  signOptions: SignOptions;
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.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';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type QueueMixinOptions = {
10
11
  brokerURL: string | (<TService extends Service = Service>(svc: TService) => Promise<string>);
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.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';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type QueueMixinOptions = {
10
11
  brokerURL: string | (<TService extends Service = Service>(svc: TService) => Promise<string>);
@@ -1,9 +1,10 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.cjs';
2
2
  import { RedisOptions, Redis } from 'ioredis';
3
3
  import { Service } from 'moleculer';
4
4
  import 'bson';
5
5
  import 'zod/v4';
6
6
  import 'ajv/dist/2019.js';
7
+ import 'pino';
7
8
 
8
9
  type AllowedOptions = Omit<RedisOptions, 'lazyConnect'>;
9
10
  type RedisMixinOptions = {
@@ -1,9 +1,10 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.mjs';
2
2
  import { RedisOptions, Redis } from 'ioredis';
3
3
  import { Service } from 'moleculer';
4
4
  import 'bson';
5
5
  import 'zod/v4';
6
6
  import 'ajv/dist/2019.js';
7
+ import 'pino';
7
8
 
8
9
  type AllowedOptions = Omit<RedisOptions, 'lazyConnect'>;
9
10
  type RedisMixinOptions = {
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.cjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.cjs';
2
2
  import { Service } from 'moleculer';
3
3
  import { RedisOptions, Redis } from 'ioredis';
4
4
  import Redlock from 'redlock';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type AllowedOptions = Omit<RedisOptions, 'lazyConnect'>;
10
11
  type RedlockMixinOptions = {
@@ -1,10 +1,11 @@
1
- import { a as CustomServiceSchema } from '../context-factory-BWO3xPWE.mjs';
1
+ import { a as CustomServiceSchema } from '../index-IHCgtNKZ.mjs';
2
2
  import { Service } from 'moleculer';
3
3
  import { RedisOptions, Redis } from 'ioredis';
4
4
  import Redlock from 'redlock';
5
5
  import 'bson';
6
6
  import 'zod/v4';
7
7
  import 'ajv/dist/2019.js';
8
+ import 'pino';
8
9
 
9
10
  type AllowedOptions = Omit<RedisOptions, 'lazyConnect'>;
10
11
  type RedlockMixinOptions = {
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": "1.0.2-beta.2",
9
+ "version": "1.0.2-beta.4",
10
10
  "main": "./dist/index.cjs",
11
11
  "module": "./dist/index.mjs",
12
12
  "types": "./dist/index.d.cts",