dependency-injection-cat
Advanced tools
Comparing version 0.2.6 to 0.2.7
# Changelog | ||
## 0.2.7 | ||
- [Fix] Replace relative path to InternalCatContext and ContextPool | ||
## 0.2.5 - 0.2.6 | ||
@@ -4,0 +8,0 @@ |
@@ -50,3 +50,3 @@ "use strict"; | ||
var constants_1 = require("../constants"); | ||
var getRelativePathToExternalDirectoryFromSourceFile_1 = require("../utils/getRelativePathToExternalDirectoryFromSourceFile"); | ||
var getImportPathToExternalDirectory_1 = require("../utils/getImportPathToExternalDirectory"); | ||
var removeExtensionFromPath_1 = require("../../utils/removeExtensionFromPath"); | ||
@@ -58,5 +58,4 @@ exports.INTERNAL_CAT_CONTEXT_IMPORT = "INTERNAL_CAT_CONTEXT_IMPORT" + constants_1.PRIVATE_TOKEN; | ||
var sourceFileDirname = upath_1.default.dirname(sourceFile.fileName); | ||
var relativePathToEXTERNALDirectory = getRelativePathToExternalDirectoryFromSourceFile_1.getRelativePathToExternalDirectoryFromSourceFile(sourceFileDirname); | ||
var pathForInternalCatContext = upath_1.default.join(relativePathToEXTERNALDirectory, 'InternalCatContext'); | ||
var pathForContextPool = upath_1.default.join(relativePathToEXTERNALDirectory, 'ContextPool'); | ||
var pathForInternalCatContext = upath_1.default.join(getImportPathToExternalDirectory_1.getImportPathToExternalDirectory(), 'InternalCatContext'); | ||
var pathForContextPool = upath_1.default.join(getImportPathToExternalDirectory_1.getImportPathToExternalDirectory(), 'ContextPool'); | ||
var internalCatContextImport = typescript_1.factory.createImportDeclaration(undefined, undefined, typescript_1.factory.createImportClause(false, undefined, typescript_1.factory.createNamespaceImport(typescript_1.factory.createIdentifier(exports.INTERNAL_CAT_CONTEXT_IMPORT))), typescript_1.factory.createStringLiteral(pathForInternalCatContext)); | ||
@@ -63,0 +62,0 @@ 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)); |
{ | ||
"name": "dependency-injection-cat", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
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
238577
4475