dependency-injection-cat
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -86,3 +84,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
CompilationContext_1.CompilationContext.reportErrorWithMultipleNodes({ | ||
nodes: __spreadArrays([type], missingBeans), | ||
nodes: __spreadArray([type], missingBeans), | ||
message: "Some beans is not registered in Context \"" + contextDescriptor.name + "\": [ " + missingBeansText + " ]", | ||
@@ -89,0 +87,0 @@ }); |
@@ -21,8 +21,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -39,3 +37,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
return function () { return function (sourceFile) { | ||
return typescript_1.default.factory.updateSourceFile(sourceFile, __spreadArrays(sourceFile.statements, createBeanConfigMapForContextPool(contextDescriptor), [ | ||
return typescript_1.default.factory.updateSourceFile(sourceFile, __spreadArray(__spreadArray(__spreadArray([], sourceFile.statements), createBeanConfigMapForContextPool(contextDescriptor)), [ | ||
createContextNamePool(contextDescriptor), | ||
@@ -53,3 +51,3 @@ ])); | ||
}); | ||
return __spreadArrays([ | ||
return __spreadArray([ | ||
beanConfigDeclaration | ||
@@ -56,0 +54,0 @@ ], mapFilling); |
@@ -21,8 +21,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -48,3 +46,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
var contextPoolImport = typescript_1.factory.createImportDeclaration(undefined, undefined, typescript_1.factory.createImportClause(false, undefined, typescript_1.factory.createNamespaceImport(typescript_1.factory.createIdentifier(exports.CONTEXT_POOL_IMPORT))), typescript_1.factory.createStringLiteral(pathForContextPool)); | ||
return typescript_1.default.factory.updateSourceFile(sourceFile, __spreadArrays([ | ||
return typescript_1.default.factory.updateSourceFile(sourceFile, __spreadArray([ | ||
realCatContextImport, | ||
@@ -51,0 +49,0 @@ contextPoolImport |
@@ -21,8 +21,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -64,3 +62,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
}); | ||
return typescript_1.factory.updateBlock(nodeBody, __spreadArrays(dependenciesStatements, nodeBody.statements)); | ||
return typescript_1.factory.updateBlock(nodeBody, __spreadArray(__spreadArray([], dependenciesStatements), nodeBody.statements)); | ||
} |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -53,3 +51,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
CompilationContext_1.CompilationContext.reportErrorWithMultipleNodes({ | ||
nodes: __spreadArrays([ | ||
nodes: __spreadArray([ | ||
dependencyDescriptor.node | ||
@@ -56,0 +54,0 @@ ], beanCandidates.map(function (it) { return it.node; })), |
"use strict"; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -22,3 +20,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
this.graph.setNodes(__spreadArrays([ | ||
this.graph.setNodes(__spreadArray([ | ||
node.id | ||
@@ -25,0 +23,0 @@ ], edges.map(function (it) { return it.id; }))); |
@@ -21,8 +21,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -50,5 +48,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
: newSourceFile.statements; | ||
return typescript_1.factory.updateSourceFile(sourceFile, __spreadArrays(importsToAdd, filteredStatements), sourceFile.isDeclarationFile, sourceFile.referencedFiles, undefined, sourceFile.hasNoDefaultLib, undefined); | ||
return typescript_1.factory.updateSourceFile(sourceFile, __spreadArray(__spreadArray([], importsToAdd), filteredStatements), sourceFile.isDeclarationFile, sourceFile.referencedFiles, undefined, sourceFile.hasNoDefaultLib, undefined); | ||
}; | ||
}; }; | ||
exports.getTransformerFactory = getTransformerFactory; |
@@ -21,8 +21,6 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -88,3 +86,3 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||
var resolvedPath = PathResolverCache_1.PathResolverCache.getAbsolutePathWithExtension(sourceFile.fileName, modulePath); | ||
var newNameToFind = __spreadArrays([ | ||
var newNameToFind = __spreadArray([ | ||
originalNameFromNamedImport | ||
@@ -124,3 +122,3 @@ ], splittedNameToFind.slice(1)).join('.'); | ||
if (statement !== undefined) { | ||
var joinedLocalName = __spreadArrays([ | ||
var joinedLocalName = __spreadArray([ | ||
originalLocalName_1 | ||
@@ -164,3 +162,3 @@ ], splittedNameToFind.slice(1)).join('.'); | ||
var externalExportNameToFind = externalExportSpecifier.propertyName | ||
? __spreadArrays([ | ||
? __spreadArray([ | ||
externalExportSpecifier.propertyName.getText() | ||
@@ -167,0 +165,0 @@ ], splittedNameToFind.slice(1)).join('.') |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
@@ -10,2 +10,4 @@ "use strict"; | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -12,0 +14,0 @@ function __() { this.constructor = d; } |
{ | ||
"name": "dependency-injection-cat", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"main": "index.js", | ||
@@ -9,2 +9,11 @@ "types": "index.d.ts", | ||
"private": false, | ||
"keywords": [ | ||
"ioc", | ||
"inversion of control", | ||
"di", | ||
"dependency injection", | ||
"typescript", | ||
"babel", | ||
"webpack" | ||
], | ||
"repository": { | ||
@@ -11,0 +20,0 @@ "url": "https://github.com/artem1458/dependency-injection-cat" |
# Dependency Injection Cat | ||
------ | ||
DI Cat is a truly clean DI-container, which allows you not to pollute your business logic with decorators from DI/IOC libraries! | ||
----- | ||
![npm](https://img.shields.io/npm/v/dependency-injection-cat?style=flat) | ||
----- | ||
## Example | ||
@@ -8,0 +12,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
187522
498
0