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

dependency-injection-cat

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-injection-cat - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

core/build-context/utils/getImportPathToExternalDirectory.js

4

CHANGELOG.md
# Changelog
## 0.2.7
- [Fix] Replace relative path to InternalCatContext and ContextPool
## 0.2.5 - 0.2.6

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

7

core/build-context/transformers/addNecessaryImports.js

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

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