Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

dependency-injection-cat

Package Overview
Dependencies
34
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.19-beta to 0.0.20-beta

4

CHANGELOG.md
# Changelog
## 1.1.0
- [Feature] EmbeddedBean feature implemented
## 1.0.1

@@ -4,0 +8,0 @@

2

core/bean/registerEmbeddedBeans.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc