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

vite-plugin-banner

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-banner - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

dist/main.d.ts

@@ -1,3 +0,2 @@

import type { Plugin } from 'vite';
declare const banner: (comment: string) => Plugin | unknown;
declare const banner: (comment: string) => any;
export default banner;
/**
* name: vite-plugin-banner
* version: v0.1.2
* version: v0.1.3
* author: chengpeiquan

@@ -5,0 +5,0 @@ */'use strict';

/**
* name: vite-plugin-banner
* version: v0.1.2
* version: v0.1.3
* author: chengpeiquan

@@ -5,0 +5,0 @@ */"use strict";var e=require("fs"),n=require("path");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=t(e);

{
"name": "vite-plugin-banner",
"version": "0.1.2",
"version": "0.1.3",
"description": "A banner plugin for Vite. Adds a banner to the top of each generated chunk.",

@@ -5,0 +5,0 @@ "main": "dist/vite-plugin-banner.min.js",

import fs from 'fs'
import { resolve } from 'path'
import type { Plugin, ResolvedConfig } from 'vite'
import type { ResolvedConfig } from 'vite'
import checkComment from './checkComment'

@@ -19,3 +19,3 @@

*/
const banner = (comment: string): Plugin | unknown => {
const banner = (comment: string): any => {
// 校验传入的注释内容合法性

@@ -33,3 +33,3 @@ const error: string = checkComment(comment);

},
async writeBundle (options: unknown, bundle: unknown) {
async writeBundle (options: any, bundle: any) {
for ( const file of Object.entries(bundle) ) {

@@ -36,0 +36,0 @@ // 获取文件路径

Sorry, the diff of this file is not supported yet

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