@wessberg/di-compiler
Advanced tools
Comparing version 1.0.44 to 1.0.45
@@ -0,1 +1,10 @@ | ||
<a name="1.0.45"></a> | ||
## 1.0.45 (2017-08-28) | ||
* 1.0.45 ([d48376a](https://github.com/wessberg/di-compiler/commit/d48376a)) | ||
* Bumped version ([edbf7aa](https://github.com/wessberg/di-compiler/commit/edbf7aa)) | ||
* Qualified call expressions ([298768c](https://github.com/wessberg/di-compiler/commit/298768c)) | ||
<a name="1.0.44"></a> | ||
@@ -2,0 +11,0 @@ ## 1.0.44 (2017-08-28) |
import { isFormattedIdentifier, isFormattedPropertyAccessExpression } from "@wessberg/type"; | ||
import { diConfig } from "../DIConfig/DIConfig"; | ||
/** | ||
@@ -16,3 +17,3 @@ * Finds all expressions in the given statements related to the DIContainer. | ||
find({ host, identifiers, filepath }) { | ||
const expressions = host.getCallExpressionsForFile(filepath); | ||
const expressions = host.findMatchingCallExpressionsForFile(filepath, diConfig.exportName); | ||
return expressions.filter(exp => { | ||
@@ -19,0 +20,0 @@ // We only support call expressions for now |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "@wessberg/type"], factory); | ||
define(["require", "exports", "@wessberg/type", "../DIConfig/DIConfig"], factory); | ||
} | ||
@@ -14,2 +14,3 @@ })(function (require, exports) { | ||
const type_1 = require("@wessberg/type"); | ||
const DIConfig_1 = require("../DIConfig/DIConfig"); | ||
/** | ||
@@ -29,3 +30,3 @@ * Finds all expressions in the given statements related to the DIContainer. | ||
find({ host, identifiers, filepath }) { | ||
const expressions = host.getCallExpressionsForFile(filepath); | ||
const expressions = host.findMatchingCallExpressionsForFile(filepath, DIConfig_1.diConfig.exportName); | ||
return expressions.filter(exp => { | ||
@@ -32,0 +33,0 @@ // We only support call expressions for now |
{ | ||
"name": "@wessberg/di-compiler", | ||
"version": "1.0.44", | ||
"version": "1.0.45", | ||
"description": "The compiler for https://www.npmjs.com/package/@wessberg/di", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116437
1507