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

eslint-plugin-disallow-cross-domain-imports

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disallow-cross-domain-imports - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

lib/rules/disallow-cross-domain-imports.js

@@ -43,3 +43,4 @@ /**

ImportDeclaration(node) {
const filePath = context.getPhysicalFilename()
// const filePath = context.getPhysicalFilename()
const filePath = 'test'
const importPath = node.source.value

@@ -46,0 +47,0 @@ // context.options

{
"name": "eslint-plugin-disallow-cross-domain-imports",
"version": "1.0.1",
"version": "1.0.2",
"description": "Eslint rule to disallow cross-importing of modules matching a defined list of paths unless with a 'domain'",

@@ -5,0 +5,0 @@ "main": "./lib/rules/disallow-cross-domain-imports.js",

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