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

add-dist-header

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-dist-header - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

2

dist/add-dist-header.d.ts

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

//! add-dist-header v1.1.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

@@ -3,0 +3,0 @@ export type Settings = {

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

//! add-dist-header v1.1.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.1.3 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

@@ -39,3 +39,3 @@ import { isBinary } from 'istextorbinary';

const invalidContent = isBinary(filename);
const input = fs.readFileSync(filename, 'utf-8');
const input = fs.readFileSync(filename, 'utf-8').trimStart();
const normalizeEol = /\r/g;

@@ -57,3 +57,4 @@ const normalizeEof = /\s*$(?!\n)/;

const distFolder = makeDir.sync(settings.dist);
const outputPath = slash(path.format({ dir: settings.dist, name: inputFile.name, ext: fileExt }));
const formatOptions = { dir: settings.dist, name: inputFile.name, ext: fileExt };
const outputPath = slash(path.format(formatOptions));
const isMinified = outputPath.includes('.min.') || out4.indexOf('\n') === out4.length - 1;

@@ -60,0 +61,0 @@ const spacerLines = isMinified || mlStyle ? '\n' : '\n\n';

{
"name": "add-dist-header",
"version": "1.1.2",
"version": "1.1.3",
"description": "Prepend a one-line banner comment (with license notice) to distribution files",

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

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