Socket
Socket
Sign inDemoInstall

vite-plugin-utils

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-utils - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

2

function/index.js

@@ -75,2 +75,3 @@ import path from 'node:path';

for (const key of Object.keys(ast)) {
// @ts-ignore
await (typeof ast[key] === 'object' && walk(ast[key], visitors, ancestors));

@@ -93,2 +94,3 @@ }

for (const key of Object.keys(ast)) {
// @ts-ignore
typeof ast[key] === 'object' && walkSync(ast[key], visitors, ancestors);

@@ -95,0 +97,0 @@ }

4

function/index.ts

@@ -14,3 +14,3 @@ import path from 'node:path'

export class MagicString {
private overwrites: { loc: [number, number]; content: string }[]
private overwrites!: { loc: [number, number]; content: string }[]
private starts = ''

@@ -90,2 +90,3 @@ private ends = ''

for (const key of Object.keys(ast)) {
// @ts-ignore
await (typeof ast[key] === 'object' && walk(ast[key], visitors, ancestors))

@@ -114,2 +115,3 @@ }

for (const key of Object.keys(ast)) {
// @ts-ignore
typeof ast[key] === 'object' && walkSync(ast[key], visitors, ancestors)

@@ -116,0 +118,0 @@ }

{
"name": "vite-plugin-utils",
"description": "A collection of opinionated Vite plugin utils",
"version": "0.3.5",
"version": "0.3.6",
"type": "module",

@@ -6,0 +6,0 @@ "main": "",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc