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

babel-plugin-universal-import

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.0.2 to 4.0.0-alpha.0

12

index.js

@@ -37,3 +37,3 @@ 'use-strict'

if (importArgNode.quasis) {
let quasis = importArgNode.quasis.slice(0)
const quasis = importArgNode.quasis.slice(0)
const baseDir = trimChunkNameBaseDir(quasis[0].value.cooked)

@@ -44,4 +44,2 @@ quasis[0] = Object.assign({}, quasis[0], {

quasis = quasis.map((quasi, i) => (i > 0 ? prepareQuasi(quasi) : quasi))
return Object.assign({}, importArgNode, {

@@ -56,10 +54,2 @@ quasis

function prepareQuasi(quasi) {
const newPath = prepareChunkNamePath(quasi.value.cooked)
return Object.assign({}, quasi, {
value: { raw: newPath, cooked: newPath }
})
}
function getMagicCommentChunkName(importArgNode) {

@@ -66,0 +56,0 @@ const { quasis, expressions } = importArgNode

12

package.json
{
"name": "babel-plugin-universal-import",
"version": "3.0.2",
"version": "4.0.0-alpha.0",
"description": "Babel plugin to transform import() into its Universal counterpart",

@@ -16,3 +16,3 @@ "main": "index.js",

"contributors": [
"Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/zackljackson)"
"Zack Jackson <zackary.l.jackson@gmail.com> (https://github.com/ScriptedAlchemy)"
],

@@ -28,2 +28,10 @@ "license": "MIT",

},
"keywords": [
"babel",
"universal",
"react",
"universal import",
"redux-first-router",
"ruc"
],
"devDependencies": {

@@ -30,0 +38,0 @@ "@babel/cli": "^7.0.0",

Sorry, the diff of this file is not supported yet

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