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

@inversifyjs/core

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inversifyjs/core - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

lib/cjs/binding/calculations/stringifyBinding.d.ts

11

CHANGELOG.md
# @inversifyjs/core
## 1.3.5
### Patch Changes
- 2cbb782: Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland.
- Updated dependencies [2cbb782]
- Updated dependencies [da1a1c4]
- Updated dependencies [da1a1c4]
- @inversifyjs/reflect-metadata-utils@0.2.4
- @inversifyjs/common@1.4.0
## 1.3.4

@@ -4,0 +15,0 @@

6

lib/cjs/error/models/InversifyCoreErrorKind.d.ts
export declare enum InversifyCoreErrorKind {
missingInjectionDecorator = 0,
unknown = 1
injectionDecoratorConflict = 0,
missingInjectionDecorator = 1,
planning = 2,
unknown = 3
}
//# sourceMappingURL=InversifyCoreErrorKind.d.ts.map

@@ -6,5 +6,7 @@ "use strict";

(function (InversifyCoreErrorKind) {
InversifyCoreErrorKind[InversifyCoreErrorKind["missingInjectionDecorator"] = 0] = "missingInjectionDecorator";
InversifyCoreErrorKind[InversifyCoreErrorKind["unknown"] = 1] = "unknown";
InversifyCoreErrorKind[InversifyCoreErrorKind["injectionDecoratorConflict"] = 0] = "injectionDecoratorConflict";
InversifyCoreErrorKind[InversifyCoreErrorKind["missingInjectionDecorator"] = 1] = "missingInjectionDecorator";
InversifyCoreErrorKind[InversifyCoreErrorKind["planning"] = 2] = "planning";
InversifyCoreErrorKind[InversifyCoreErrorKind["unknown"] = 3] = "unknown";
})(InversifyCoreErrorKind || (exports.InversifyCoreErrorKind = InversifyCoreErrorKind = {}));
//# sourceMappingURL=InversifyCoreErrorKind.js.map

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

import { ManagedClassElementMetadata } from '../models/ManagedClassElementMetadata';
import { MaybeClassElementMetadata } from '../models/MaybeClassElementMetadata';
export declare function injectBase(updateMetadata: (classMetadata: MaybeClassElementMetadata | undefined) => ManagedClassElementMetadata): ParameterDecorator & PropertyDecorator;
export declare function injectBase(updateMetadata: (metadata: MaybeClassElementMetadata | undefined) => MaybeClassElementMetadata): ParameterDecorator & PropertyDecorator;
//# sourceMappingURL=injectBase.d.ts.map
export interface ClassMetadataLifecycle {
postConstructMethodName: string | undefined;
preDestroyMethodName: string | undefined;
postConstructMethodName: string | symbol | undefined;
preDestroyMethodName: string | symbol | undefined;
}
//# sourceMappingURL=ClassMetadataLifecycle.d.ts.map

@@ -1,2 +0,1 @@

import { LazyServiceIdentifier, ServiceIdentifier } from '@inversifyjs/common';
import { BaseClassElementMetadata } from './BaseClassElementMetadata';

@@ -9,7 +8,6 @@ import { MaybeClassElementMetadataKind } from './MaybeClassElementMetadataKind';

name: MetadataName | undefined;
optional: boolean | undefined;
optional: boolean;
tags: Map<MetadataTag, unknown>;
targetName: MetadataTargetName | undefined;
value: ServiceIdentifier | LazyServiceIdentifier | undefined;
}
//# sourceMappingURL=MaybeManagedClassElementMetadata.d.ts.map

@@ -1,23 +0,122 @@

import { getTargets } from './legacyTarget/calculations/getTargets';
import { LegacyTarget } from './legacyTarget/models/LegacyTarget';
import { LegacyTargetImpl } from './legacyTarget/models/LegacyTargetImpl';
import { LegacyTargetType } from './legacyTarget/models/LegacyTargetType';
import { getClassElementMetadataFromLegacyMetadata } from './metadata/calculations/getClassElementMetadataFromLegacyMetadata';
import { getClassMetadata } from './metadata/calculations/getClassMetadata';
import { getClassMetadataFromMetadataReader } from './metadata/calculations/getClassMetadataFromMetadataReader';
import { ClassElementMetadata } from './metadata/models/ClassElementMetadata';
import { ClassElementMetadataKind } from './metadata/models/ClassElementMetadataKind';
import { ClassMetadata } from './metadata/models/ClassMetadata';
import { ClassMetadataLifecycle } from './metadata/models/ClassMetadataLifecycle';
import { LegacyMetadata } from './metadata/models/LegacyMetadata';
import { LegacyMetadataMap } from './metadata/models/LegacyMetadataMap';
import { LegacyMetadataReader } from './metadata/models/LegacyMetadataReader';
import { ManagedClassElementMetadata } from './metadata/models/ManagedClassElementMetadata';
import { MetadataName } from './metadata/models/MetadataName';
import { MetadataTag } from './metadata/models/MetadataTag';
import { MetadataTargetName } from './metadata/models/MetadataTargetName';
import { UnmanagedClassElementMetadata } from './metadata/models/UnmanagedClassElementMetadata';
import { LegacyQueryableString } from './string/models/LegacyQueryableString';
export type { ClassElementMetadata, ClassMetadata, ClassMetadataLifecycle, LegacyMetadata, LegacyMetadataMap, LegacyMetadataReader, LegacyQueryableString, LegacyTarget, LegacyTargetType, ManagedClassElementMetadata, MetadataName, MetadataTag, MetadataTargetName, UnmanagedClassElementMetadata, };
export { ClassElementMetadataKind, getClassElementMetadataFromLegacyMetadata, getClassMetadata, getClassMetadataFromMetadataReader, getTargets, LegacyTargetImpl, };
//# sourceMappingURL=index.d.ts.map
import { ServiceIdentifier, Newable, LazyServiceIdentifier } from '@inversifyjs/common';
interface LegacyMetadata<TValue = unknown> {
key: string | number | symbol;
value: TValue;
}
interface LegacyMetadataMap {
[propertyNameOrArgumentIndex: string | symbol]: LegacyMetadata[];
}
interface LegacyConstructorMetadata {
compilerGeneratedMetadata: NewableFunction[] | undefined;
userGeneratedMetadata: LegacyMetadataMap;
}
interface LegacyMetadataReader {
getConstructorMetadata(constructorFunc: NewableFunction): LegacyConstructorMetadata;
getPropertiesMetadata(constructorFunc: NewableFunction): LegacyMetadataMap;
}
type MetadataName = number | string | symbol;
type MetadataTag = number | string | symbol;
interface LegacyQueryableString {
startsWith(searchString: string): boolean;
endsWith(searchString: string): boolean;
contains(searchString: string): boolean;
equals(compareString: string): boolean;
value(): string;
}
type LegacyTargetType = 'ConstructorArgument' | 'ClassProperty' | 'Variable';
interface LegacyTarget {
id: number;
serviceIdentifier: ServiceIdentifier;
type: LegacyTargetType;
name: LegacyQueryableString;
identifier: string | symbol;
metadata: LegacyMetadata[];
getNamedTag(): LegacyMetadata<MetadataName> | null;
getCustomTags(): LegacyMetadata[] | null;
hasTag(key: MetadataTag): boolean;
isArray(): boolean;
matchesArray(name: ServiceIdentifier): boolean;
isNamed(): boolean;
isTagged(): boolean;
isOptional(): boolean;
matchesNamedTag(name: MetadataName): boolean;
matchesTag(key: MetadataTag): (value: unknown) => boolean;
}
declare const getTargets: (metadataReader?: LegacyMetadataReader) => (type: Newable) => LegacyTarget[];
interface BaseClassElementMetadata<TKind> {
kind: TKind;
}
declare enum ClassElementMetadataKind {
multipleInjection = 0,
singleInjection = 1,
unmanaged = 2
}
type MetadataTargetName = string;
interface ManagedClassElementMetadata extends BaseClassElementMetadata<ClassElementMetadataKind.singleInjection | ClassElementMetadataKind.multipleInjection> {
name: MetadataName | undefined;
optional: boolean;
tags: Map<MetadataTag, unknown>;
targetName: MetadataTargetName | undefined;
value: ServiceIdentifier | LazyServiceIdentifier;
}
declare class LegacyTargetImpl implements LegacyTarget {
#private;
constructor(identifier: string | symbol, metadata: ManagedClassElementMetadata, type: LegacyTargetType);
get id(): number;
/**
* If this is a class property target, this is the name of the property to be injected
*/
get identifier(): string | symbol;
get metadata(): LegacyMetadata[];
get name(): LegacyQueryableString;
get type(): LegacyTargetType;
get serviceIdentifier(): ServiceIdentifier;
getCustomTags(): LegacyMetadata[] | null;
getNamedTag(): LegacyMetadata<MetadataName> | null;
hasTag(key: MetadataTag): boolean;
isArray(): boolean;
isNamed(): boolean;
isOptional(): boolean;
isTagged(): boolean;
matchesArray(name: ServiceIdentifier): boolean;
matchesNamedTag(name: MetadataName): boolean;
matchesTag(key: MetadataTag): (value: unknown) => boolean;
}
type UnmanagedClassElementMetadata = BaseClassElementMetadata<ClassElementMetadataKind.unmanaged>;
type ClassElementMetadata = ManagedClassElementMetadata | UnmanagedClassElementMetadata;
declare function getClassElementMetadataFromLegacyMetadata(metadataList: LegacyMetadata[]): ClassElementMetadata;
interface ClassMetadataLifecycle {
postConstructMethodName: string | symbol | undefined;
preDestroyMethodName: string | symbol | undefined;
}
interface ClassMetadata {
constructorArguments: ClassElementMetadata[];
lifecycle: ClassMetadataLifecycle;
properties: Map<string | symbol, ClassElementMetadata>;
}
declare function getClassMetadata(type: Newable): ClassMetadata;
declare function getClassMetadataFromMetadataReader(type: Newable, metadataReader: LegacyMetadataReader): ClassMetadata;
export { type ClassElementMetadata, ClassElementMetadataKind, type ClassMetadata, type ClassMetadataLifecycle, type LegacyMetadata, type LegacyMetadataMap, type LegacyMetadataReader, type LegacyQueryableString, type LegacyTarget, LegacyTargetImpl, type LegacyTargetType, type ManagedClassElementMetadata, type MetadataName, type MetadataTag, type MetadataTargetName, type UnmanagedClassElementMetadata, getClassElementMetadataFromLegacyMetadata, getClassMetadata, getClassMetadataFromMetadataReader, getTargets };

@@ -8,7 +8,7 @@ {

"dependencies": {
"@inversifyjs/common": "1.3.3",
"@inversifyjs/reflect-metadata-utils": "0.2.3"
"@inversifyjs/common": "1.4.0",
"@inversifyjs/reflect-metadata-utils": "0.2.4"
},
"devDependencies": {
"@eslint/js": "9.14.0",
"@eslint/js": "9.15.0",
"@jest/globals": "29.7.0",

@@ -18,15 +18,16 @@ "@stryker-mutator/core": "8.6.0",

"@stryker-mutator/typescript-checker": "8.6.0",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "8.14.0",
"@typescript-eslint/parser": "8.14.0",
"eslint": "9.14.0",
"@types/node": "22.10.1",
"@typescript-eslint/eslint-plugin": "8.16.0",
"@typescript-eslint/parser": "8.16.0",
"eslint": "9.15.0",
"jest": "29.7.0",
"prettier": "3.3.3",
"prettier": "3.4.1",
"reflect-metadata": "0.2.2",
"rimraf": "6.0.1",
"rollup": "4.27.4",
"ts-loader": "9.5.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.6.3",
"webpack": "5.96.1",
"webpack-cli": "5.1.4"
"tslib": "2.8.1",
"typescript": "5.7.2"
},

@@ -66,7 +67,7 @@ "homepage": "https://inversify.io",

"sideEffects": false,
"version": "1.3.4",
"version": "1.3.5",
"scripts": {
"build": "pnpm run build:cjs && pnpm run build:esm",
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
"build:esm": "webpack && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:esm": "rollup -c ./rollup.config.mjs && pnpm exec foundation-ts-package-esm ./lib/esm",
"build:clean": "rimraf lib",

@@ -73,0 +74,0 @@ "format": "prettier --write ./src/**/*.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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