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

@travetto/di

Package Overview
Dependencies
Maintainers
1
Versions
313
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/di - npm Package Compare versions

Comparing version 0.0.30 to 0.0.31

2

package.json

@@ -33,3 +33,3 @@ {

},
"version": "0.0.30"
"version": "0.0.31"
}
import * as ts from 'typescript';
import { TransformUtil, Import, State } from '@travetto/compiler';
import { TransformUtil, State } from '@travetto/compiler';
import { ConfigLoader } from '@travetto/config';

@@ -111,3 +111,2 @@

} else {
let original = undefined;
const callExpr = (injectable && injectable.expression as any as ts.CallExpression);

@@ -121,3 +120,2 @@ let injectConfig = undefined;

if (args[0] && ts.isIdentifier(args[0])) {
original = args[0];
injectConfig = args[1] as any;

@@ -143,2 +141,10 @@ }

ret.parent = node.parent;
for (const el of ret.members) {
if (!el.parent) {
el.parent = node;
}
}
return ret;

@@ -175,4 +181,2 @@ }

if (foundDec) { // Constructor
const declTemp = (node.decorators || []).slice(0);
let injectArgs: object[] = [];

@@ -218,3 +222,3 @@ let original: any;

node = ts.createMethod(
const ret = ts.createMethod(
decls!.filter(x => x !== foundDec).concat([

@@ -239,3 +243,5 @@ ts.createDecorator(

return node;
ret.parent = node.parent;
return ret;
} else {

@@ -242,0 +248,0 @@ return node;

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