@venizia/ignis-inversion 0.2.0-22 → 0.2.0-23

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.
Files changed (51) hide show
  1. package/dist/esm/common/index.d.ts +4 -4
  2. package/dist/esm/common/index.js +4 -4
  3. package/dist/esm/common/utilities.d.ts +1 -1
  4. package/dist/esm/index.d.ts +2 -2
  5. package/dist/esm/index.js +4 -4
  6. package/dist/esm/modules/binding/binding.d.ts +5 -5
  7. package/dist/esm/modules/binding/binding.js +4 -4
  8. package/dist/esm/modules/binding/common/constants.d.ts +1 -1
  9. package/dist/esm/modules/binding/common/constants.js +1 -1
  10. package/dist/esm/modules/binding/common/index.d.ts +2 -2
  11. package/dist/esm/modules/binding/common/index.js +2 -2
  12. package/dist/esm/modules/binding/common/types.d.ts +3 -3
  13. package/dist/esm/modules/binding/index.d.ts +2 -2
  14. package/dist/esm/modules/binding/index.js +2 -2
  15. package/dist/esm/modules/container/abstract.d.ts +5 -5
  16. package/dist/esm/modules/container/abstract.js +1 -1
  17. package/dist/esm/modules/container/base.d.ts +4 -4
  18. package/dist/esm/modules/container/base.js +5 -5
  19. package/dist/esm/modules/container/common/index.d.ts +1 -1
  20. package/dist/esm/modules/container/common/index.js +1 -1
  21. package/dist/esm/modules/container/common/types.d.ts +3 -3
  22. package/dist/esm/modules/container/container.d.ts +2 -2
  23. package/dist/esm/modules/container/container.js +3 -3
  24. package/dist/esm/modules/container/index.d.ts +4 -4
  25. package/dist/esm/modules/container/index.js +4 -4
  26. package/dist/esm/modules/error/app-error.d.ts +1 -1
  27. package/dist/esm/modules/error/app-error.js +2 -2
  28. package/dist/esm/modules/error/common/index.d.ts +1 -1
  29. package/dist/esm/modules/error/common/index.js +1 -1
  30. package/dist/esm/modules/error/common/types.d.ts +1 -1
  31. package/dist/esm/modules/error/definition.d.ts +1 -1
  32. package/dist/esm/modules/error/index.d.ts +4 -4
  33. package/dist/esm/modules/error/index.js +4 -4
  34. package/dist/esm/modules/error/message-code.d.ts +2 -2
  35. package/dist/esm/modules/index.d.ts +5 -5
  36. package/dist/esm/modules/index.js +5 -5
  37. package/dist/esm/modules/metadata/common/index.d.ts +1 -1
  38. package/dist/esm/modules/metadata/common/index.js +1 -1
  39. package/dist/esm/modules/metadata/index.d.ts +2 -2
  40. package/dist/esm/modules/metadata/index.js +2 -2
  41. package/dist/esm/modules/metadata/injectors.d.ts +2 -2
  42. package/dist/esm/modules/metadata/injectors.js +2 -2
  43. package/dist/esm/modules/registry/common/index.d.ts +1 -1
  44. package/dist/esm/modules/registry/common/index.js +1 -1
  45. package/dist/esm/modules/registry/common/types.d.ts +1 -1
  46. package/dist/esm/modules/registry/index.d.ts +2 -2
  47. package/dist/esm/modules/registry/index.js +2 -2
  48. package/dist/esm/modules/registry/registry.d.ts +3 -3
  49. package/dist/esm/modules/registry/registry.js +3 -3
  50. package/dist/esm/package.json +6 -0
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- export * from './base-helper';
2
- export * from './logger';
3
- export * from './types';
4
- export * from './utilities';
1
+ export * from './base-helper.js';
2
+ export * from './logger.js';
3
+ export * from './types.js';
4
+ export * from './utilities.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './base-helper';
2
- export * from './logger';
3
- export * from './types';
4
- export * from './utilities';
1
+ export * from './base-helper.js';
2
+ export * from './logger.js';
3
+ export * from './types.js';
4
+ export * from './utilities.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { AnyType, TClass, TInjectTarget, TValueOrAsyncResolver, TValueOrResolver } from './types';
1
+ import type { AnyType, TClass, TInjectTarget, TValueOrAsyncResolver, TValueOrResolver } from './types.js';
2
2
  /**
3
3
  * True for a value carrying nothing: `null`/`undefined`, an empty string, array, `Map`, `Set`, or an
4
4
  * object with no own enumerable keys. A number, boolean or function is empty too - it holds no
@@ -1,4 +1,4 @@
1
1
  import 'reflect-metadata';
2
- export * from './common';
3
- export * from './modules';
2
+ export * from './common/index.js';
3
+ export * from './modules/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'reflect-metadata';
2
- import { getError } from './modules/error/app-error';
3
- import { MessageCode } from './modules/error/message-code';
4
- export * from './common';
5
- export * from './modules';
2
+ import { getError } from './modules/error/app-error.js';
3
+ import { MessageCode } from './modules/error/message-code.js';
4
+ export * from './common/index.js';
5
+ export * from './modules/index.js';
6
6
  // Lives in the package entry, the one module every consumer evaluates and the only one
7
7
  // declared in `sideEffects`: a bundler keeps it, so MessageCode throws ApplicationError in a
8
8
  // bundle too.
@@ -1,8 +1,8 @@
1
- import { BaseHelper } from '../../common/base-helper';
2
- import { TClass, TConstValue } from '../../common/types';
3
- import type { IContainer } from '../container/common/types';
4
- import { BindingValueTypes, TBindingScope } from './common/constants';
5
- import { IBinding, TBindingProvider, TBindingResolverValue } from './common/types';
1
+ import { BaseHelper } from '../../common/base-helper.js';
2
+ import { TClass, TConstValue } from '../../common/types.js';
3
+ import type { IContainer } from '../container/common/types.js';
4
+ import { BindingValueTypes, TBindingScope } from './common/constants.js';
5
+ import { IBinding, TBindingProvider, TBindingResolverValue } from './common/types.js';
6
6
  export declare class Binding<T = any> extends BaseHelper implements IBinding<T> {
7
7
  key: string;
8
8
  private bindScope;
@@ -1,7 +1,7 @@
1
- import { getError } from '../error';
2
- import { BaseHelper } from '../../common/base-helper';
3
- import { BindingScopes, BindingValueTypes } from './common/constants';
4
- import { isClassProvider } from './common/types';
1
+ import { getError } from '../error/index.js';
2
+ import { BaseHelper } from '../../common/base-helper.js';
3
+ import { BindingScopes, BindingValueTypes } from './common/constants.js';
4
+ import { isClassProvider } from './common/types.js';
5
5
  export class Binding extends BaseHelper {
6
6
  constructor(opts) {
7
7
  super({ scope: opts.key });
@@ -1,4 +1,4 @@
1
- import { TConstValue } from '../../../common/types';
1
+ import { TConstValue } from '../../../common/types.js';
2
2
  export declare class BindingScopes {
3
3
  static readonly SINGLETON = "singleton";
4
4
  static readonly TRANSIENT = "transient";
@@ -1,4 +1,4 @@
1
- import { getError } from '../../error';
1
+ import { getError } from '../../error/index.js';
2
2
  export class BindingScopes {
3
3
  static { this.SINGLETON = 'singleton'; }
4
4
  static { this.TRANSIENT = 'transient'; }
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './constants';
2
- export * from './types';
1
+ export * from './constants.js';
2
+ export * from './types.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import type { IContainer } from '../../container/common/types';
2
- import { TClass, TConstValue } from '../../../common/types';
3
- import type { BindingValueTypes, TBindingScope } from './constants';
1
+ import type { IContainer } from '../../container/common/types.js';
2
+ import { TClass, TConstValue } from '../../../common/types.js';
3
+ import type { BindingValueTypes, TBindingScope } from './constants.js';
4
4
  export interface IProvider<T> {
5
5
  value(container: IContainer): T;
6
6
  }
@@ -1,3 +1,3 @@
1
- export * from './binding';
2
- export * from './common';
1
+ export * from './binding.js';
2
+ export * from './common/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './binding';
2
- export * from './common';
1
+ export * from './binding.js';
2
+ export * from './common/index.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
- import { BaseHelper } from '../../common/base-helper';
2
- import type { TBindingKey, TClass, TNullable } from '../../common/types';
3
- import type { IBinding } from '../binding/common/types';
4
- import type { MetadataRegistry } from '../registry/registry';
5
- import type { IContainer } from './common/types';
1
+ import { BaseHelper } from '../../common/base-helper.js';
2
+ import type { TBindingKey, TClass, TNullable } from '../../common/types.js';
3
+ import type { IBinding } from '../binding/common/types.js';
4
+ import type { MetadataRegistry } from '../registry/registry.js';
5
+ import type { IContainer } from './common/types.js';
6
6
  /** Container CONTRACT as a class, typed against `IBinding` - implementations sharing no storage start here; ones that only vary resolution start at `BaseContainer`. */
7
7
  export declare abstract class AbstractContainer extends BaseHelper implements IContainer {
8
8
  constructor(opts?: {
@@ -1,4 +1,4 @@
1
- import { BaseHelper } from '../../common/base-helper';
1
+ import { BaseHelper } from '../../common/base-helper.js';
2
2
  /** Container CONTRACT as a class, typed against `IBinding` - implementations sharing no storage start here; ones that only vary resolution start at `BaseContainer`. */
3
3
  export class AbstractContainer extends BaseHelper {
4
4
  constructor(opts) {
@@ -1,6 +1,6 @@
1
- import { TBindingKey, TClass, TNullable } from '../../common/types';
2
- import { Binding } from '../binding/binding';
3
- import { AbstractContainer } from './abstract';
1
+ import { TBindingKey, TClass, TNullable } from '../../common/types.js';
2
+ import { Binding } from '../binding/binding.js';
3
+ import { AbstractContainer } from './abstract.js';
4
4
  /** Storage half of the container, keyed by normalized binding-key strings - resolution (`instantiate`) stays abstract, it is the part an implementation swaps. */
5
5
  export declare abstract class BaseContainer extends AbstractContainer {
6
6
  protected bindings: Map<string, Binding<any>>;
@@ -13,7 +13,7 @@ export declare abstract class BaseContainer extends AbstractContainer {
13
13
  constructor(opts?: {
14
14
  scope: string;
15
15
  });
16
- getMetadataRegistry(): import("..").MetadataRegistry;
16
+ getMetadataRegistry(): import("../index.js").MetadataRegistry;
17
17
  bind<T>(opts: {
18
18
  key: TBindingKey;
19
19
  }): Binding<T>;
@@ -1,8 +1,8 @@
1
- import { Binding } from '../binding/binding';
2
- import { BindingKeys } from '../binding/common/constants';
3
- import { getError } from '../error';
4
- import { metadataRegistry } from '../registry/registry';
5
- import { AbstractContainer } from './abstract';
1
+ import { Binding } from '../binding/binding.js';
2
+ import { BindingKeys } from '../binding/common/constants.js';
3
+ import { getError } from '../error/index.js';
4
+ import { metadataRegistry } from '../registry/registry.js';
5
+ import { AbstractContainer } from './abstract.js';
6
6
  /** Storage half of the container, keyed by normalized binding-key strings - resolution (`instantiate`) stays abstract, it is the part an implementation swaps. */
7
7
  export class BaseContainer extends AbstractContainer {
8
8
  constructor(opts) {
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import type { IBinding } from '../../binding/common/types';
2
- import type { TBindingKey, TClass, TNullable } from '../../../common/types';
3
- import type { MetadataRegistry } from '../../registry/registry';
1
+ import type { IBinding } from '../../binding/common/types.js';
2
+ import type { TBindingKey, TClass, TNullable } from '../../../common/types.js';
3
+ import type { MetadataRegistry } from '../../registry/registry.js';
4
4
  export interface IContainer {
5
5
  getMetadataRegistry(): MetadataRegistry;
6
6
  bind<T>(opts: {
@@ -1,5 +1,5 @@
1
- import { AnyType, TBindingKey, TClass, TInjectTarget } from '../../common/types';
2
- import { BaseContainer } from './base';
1
+ import { AnyType, TBindingKey, TClass, TInjectTarget } from '../../common/types.js';
2
+ import { BaseContainer } from './base.js';
3
3
  /** Default container: constructor + property injection driven by the decorator metadata registry. */
4
4
  export declare class Container extends BaseContainer {
5
5
  constructor(opts?: {
@@ -1,6 +1,6 @@
1
- import { getError } from '../error';
2
- import { resolveInjectTarget } from '../../common/utilities';
3
- import { BaseContainer } from './base';
1
+ import { getError } from '../error/index.js';
2
+ import { resolveInjectTarget } from '../../common/utilities.js';
3
+ import { BaseContainer } from './base.js';
4
4
  /** Default container: constructor + property injection driven by the decorator metadata registry. */
5
5
  export class Container extends BaseContainer {
6
6
  constructor(opts) {
@@ -1,5 +1,5 @@
1
- export * from './abstract';
2
- export * from './base';
3
- export * from './common';
4
- export * from './container';
1
+ export * from './abstract.js';
2
+ export * from './base.js';
3
+ export * from './common/index.js';
4
+ export * from './container.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './abstract';
2
- export * from './base';
3
- export * from './common';
4
- export * from './container';
1
+ export * from './abstract.js';
2
+ export * from './base.js';
3
+ export * from './common/index.js';
4
+ export * from './container.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { TError, TErrorLogLevel, TErrorNormalized, TResponsedError } from './common';
1
+ import type { TError, TErrorLogLevel, TErrorNormalized, TResponsedError } from './common/index.js';
2
2
  export declare class ApplicationError extends Error {
3
3
  statusCode: number;
4
4
  normalized: TErrorNormalized;
@@ -1,5 +1,5 @@
1
- import { omit } from '../../common/utilities';
2
- import { MessageCode } from './message-code';
1
+ import { omit } from '../../common/utilities.js';
2
+ import { MessageCode } from './message-code.js';
3
3
  /** Consumed keys. Everything else rides into `extra`. */
4
4
  const KNOWN_KEYS = [
5
5
  'error',
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { TErrorScope } from '../definition';
1
+ import type { TErrorScope } from '../definition.js';
2
2
  /** Declared here, not imported from helpers' `TLogLevel` (browser-safe); a helpers guard pins them equal. */
3
3
  export type TErrorLogLevel = 'error' | 'emerg' | 'warn' | 'info' | 'debug';
4
4
  /** Resolved message a client renders. All fields always present - no null-checks downstream. */
@@ -1,4 +1,4 @@
1
- import type { TConstValue } from '../../common/types';
1
+ import type { TConstValue } from '../../common/types.js';
2
2
  export declare class ErrorScopes {
3
3
  static readonly AUTH = "auth";
4
4
  static readonly VALIDATION = "validation";
@@ -1,5 +1,5 @@
1
- export * from './app-error';
2
- export * from './common';
3
- export * from './definition';
4
- export * from './message-code';
1
+ export * from './app-error.js';
2
+ export * from './common/index.js';
3
+ export * from './definition.js';
4
+ export * from './message-code.js';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- export * from './app-error';
2
- export * from './common';
3
- export * from './definition';
4
- export * from './message-code';
1
+ export * from './app-error.js';
2
+ export * from './common/index.js';
3
+ export * from './definition.js';
4
+ export * from './message-code.js';
5
5
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import type { TNullable } from '../../common/types';
2
- import type { TError } from './common';
1
+ import type { TNullable } from '../../common/types.js';
2
+ import type { TError } from './common/index.js';
3
3
  type TErrorFactory = (opts: TError) => Error;
4
4
  export declare class MessageCode {
5
5
  static readonly SEPARATOR = ".";
@@ -1,6 +1,6 @@
1
- export * from './binding';
2
- export * from './container';
3
- export * from './error';
4
- export * from './metadata';
5
- export * from './registry';
1
+ export * from './binding/index.js';
2
+ export * from './container/index.js';
3
+ export * from './error/index.js';
4
+ export * from './metadata/index.js';
5
+ export * from './registry/index.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- export * from './binding';
2
- export * from './container';
3
- export * from './error';
4
- export * from './metadata';
5
- export * from './registry';
1
+ export * from './binding/index.js';
2
+ export * from './container/index.js';
3
+ export * from './error/index.js';
4
+ export * from './metadata/index.js';
5
+ export * from './registry/index.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './constants';
1
+ export * from './constants.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './constants';
1
+ export * from './constants.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export * from './common';
2
- export * from './injectors';
1
+ export * from './common/index.js';
2
+ export * from './injectors.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './common';
2
- export * from './injectors';
1
+ export * from './common/index.js';
2
+ export * from './injectors.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
- import { TBindingKey, TInjectTarget } from '../../common/types';
2
- import { MetadataRegistry } from '../registry';
1
+ import { TBindingKey, TInjectTarget } from '../../common/types.js';
2
+ import { MetadataRegistry } from '../registry/index.js';
3
3
  /** Either a key, or the class bound under it - never both. The class may be named directly or through a function, which defers the reference past an import cycle. */
4
4
  export type TInjectOptions = {
5
5
  isOptional?: boolean;
@@ -1,5 +1,5 @@
1
- import { getError } from '../error';
2
- import { metadataRegistry } from '../registry';
1
+ import { getError } from '../error/index.js';
2
+ import { metadataRegistry } from '../registry/index.js';
3
3
  /** Marks a property or constructor parameter for dependency injection. */
4
4
  export const inject = (opts) => {
5
5
  const { key, target: injected } = opts;
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './types';
1
+ export * from './types.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import type { TBindingKey, TInjectTarget } from '../../../common/types';
1
+ import type { TBindingKey, TInjectTarget } from '../../../common/types.js';
2
2
  export interface IPropertyMetadata {
3
3
  bindingKey?: TBindingKey;
4
4
  /** Named by class, or by a function returning it; the key is read off the class at resolve time. */
@@ -1,3 +1,3 @@
1
- export * from './common';
2
- export * from './registry';
1
+ export * from './common/index.js';
2
+ export * from './registry.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './common';
2
- export * from './registry';
1
+ export * from './common/index.js';
2
+ export * from './registry.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- import { BaseHelper } from '../../common/base-helper';
2
- import { TBindingKey, TClass } from '../../common/types';
3
- import { IInjectMetadata, IPropertyMetadata } from './common/types';
1
+ import { BaseHelper } from '../../common/base-helper.js';
2
+ import { TBindingKey, TClass } from '../../common/types.js';
3
+ import { IInjectMetadata, IPropertyMetadata } from './common/types.js';
4
4
  /** Central metadata registry for storing and retrieving decorator metadata. */
5
5
  export declare class MetadataRegistry extends BaseHelper {
6
6
  constructor();
@@ -1,6 +1,6 @@
1
- import { BaseHelper } from '../../common/base-helper';
2
- import { Logger } from '../../common/logger';
3
- import { MetadataKeys } from '../metadata/common/constants';
1
+ import { BaseHelper } from '../../common/base-helper.js';
2
+ import { Logger } from '../../common/logger.js';
3
+ import { MetadataKeys } from '../metadata/common/constants.js';
4
4
  /** Central metadata registry for storing and retrieving decorator metadata. */
5
5
  export class MetadataRegistry extends BaseHelper {
6
6
  constructor() {
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": [
4
+ "./index.js"
5
+ ]
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venizia/ignis-inversion",
3
- "version": "0.2.0-22",
3
+ "version": "0.2.0-23",
4
4
  "description": "Lightweight, high-performance Dependency Injection and Inversion of Control container for TypeScript (~350 lines). Features decorator-based constructor and property injection, fluent Binding API, singleton/transient scoping, namespace auto-tagging, Provider pattern, tag-based discovery, and reflect-metadata integration. Inspired by LoopBack 4 and InversifyJS but simpler. Zero framework lock-in — works standalone or with Ignis.",
5
5
  "keywords": [
6
6
  "architecture",