New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-tiny-import

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-tiny-import - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

5

lib/plugins/tiny-import.js

@@ -94,3 +94,3 @@ /**

...finalResult,
moduleName: nps.posix.join('.', nps.relative(resolveFromFile, finalResult.moduleName)),
moduleName: './' + nps.posix.relative(nps.posix.dirname(resolveFromFile), finalResult.moduleName),
}

@@ -245,2 +245,5 @@ }

ExportNamedDeclaration(path, state) {
if (!path.node || !path.node.source) {
return;
}
if (!match(state.opts.test, path.node.source.value) || state.opts.moduleMapper == null) return;

@@ -247,0 +250,0 @@ var map = {};

2

package.json
{
"name": "babel-plugin-tiny-import",
"version": "1.0.2",
"version": "1.0.3",
"description": "split import from wrap package",

@@ -5,0 +5,0 @@ "private": false,

@@ -44,2 +44,3 @@ # babel-plugin-tiny-import

basename: false, // true | false | string
resolvePackageAsAbsolute, // boolean | https://www.npmjs.com/package/resolve options, false by default
},

@@ -75,2 +76,2 @@ }

let supported = require('lib/total/support');
```
```
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