dependency-injection-cat
Advanced tools
Comparing version 0.0.19-beta to 0.0.20-beta
# Changelog | ||
## 1.1.0 | ||
- [Feature] EmbeddedBean feature implemented | ||
## 1.0.1 | ||
@@ -4,0 +8,0 @@ |
@@ -140,3 +140,3 @@ "use strict"; | ||
node: classElement, | ||
beanKind: 'expression', | ||
beanKind: 'embedded', | ||
beanSourceLocation: null, | ||
@@ -143,0 +143,0 @@ isPublic: false, |
@@ -5,3 +5,2 @@ "use strict"; | ||
var typescript_1 = require("typescript"); | ||
var lodash_1 = require("lodash"); | ||
var BeanRepository_1 = require("../../bean/BeanRepository"); | ||
@@ -11,4 +10,4 @@ function getBeanConfigObjectLiteral(contextDescriptor) { | ||
var contextBeans = (_a = BeanRepository_1.BeanRepository.contextIdToBeanDescriptorsMap.get(contextDescriptor.id)) !== null && _a !== void 0 ? _a : []; | ||
var uniqContextBeans = (0, lodash_1.uniqBy)(contextBeans, function (it) { return it.classMemberName; }); | ||
var objectLiteralMembers = uniqContextBeans.map(function (bean) { return (typescript_1.factory.createPropertyAssignment(typescript_1.factory.createComputedPropertyName(typescript_1.factory.createStringLiteral(bean.classMemberName)), typescript_1.factory.createObjectLiteralExpression([ | ||
var notNestedContextBeans = contextBeans.filter(function (it) { return it.nestedProperty === null; }); | ||
var objectLiteralMembers = notNestedContextBeans.map(function (bean) { return (typescript_1.factory.createPropertyAssignment(typescript_1.factory.createComputedPropertyName(typescript_1.factory.createStringLiteral(bean.classMemberName)), typescript_1.factory.createObjectLiteralExpression([ | ||
typescript_1.factory.createPropertyAssignment(typescript_1.factory.createIdentifier('scope'), typescript_1.factory.createStringLiteral(bean.scope)), | ||
@@ -15,0 +14,0 @@ bean.isPublic && typescript_1.factory.createPropertyAssignment(typescript_1.factory.createIdentifier('isPublic'), typescript_1.factory.createTrue()), |
{ | ||
"name": "dependency-injection-cat", | ||
"version": "0.0.19-beta", | ||
"version": "0.0.20-beta", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
340214
6258