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

vite-plugin-iso-import

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

vite-plugin-iso-import - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

6

index.js
import MagicString from 'magic-string'
import { init, parse } from 'es-module-lexer'
const clientRE = /(?:\?|&)client(&|$)/
const serverRE = /(?:\?|&)server(&|$)/
const clientRE = /(\?|&)client(&|$)/
const serverRE = /(\?|&)server(&|$)/

@@ -36,3 +36,3 @@ /**

// "?foo&client&bar" => "?foo&bar"
s().overwrite(i.s + m.index, i.s + m.index + m[0].length, m[1])
s().overwrite(i.s + m.index, i.s + m.index + m[0].length, m[2] ? m[1] : '')
} else if ((m = i.n.match(ripRE))) {

@@ -39,0 +39,0 @@ s().overwrite(i.ss, i.se, '')

{
"name": "vite-plugin-iso-import",
"description": "Import modules isomorphically",
"version": "0.0.1",
"version": "0.0.2",
"author": "Bjorn Lu",

@@ -6,0 +6,0 @@ "license": "MIT",

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