Socket
Socket
Sign inDemoInstall

add-dist-header

Package Overview
Dependencies
38
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc