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.4.1 to 1.4.2

2

dist/add-dist-header.d.ts

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

//! add-dist-header v1.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.2 ~~ 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.4.1 ~~ https://github.com/center-key/add-dist-header ~~ MIT License
//! add-dist-header v1.4.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License

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

import log from 'fancy-log';
import makeDir from 'make-dir';
import path from 'path';

@@ -58,3 +57,3 @@ import slash from 'slash';

const fixedDigits = { minimumFractionDigits: 2, maximumFractionDigits: 2 };
const distFolder = makeDir.sync(settings.dist);
const distFolder = fs.mkdirSync(settings.dist, { recursive: true }) ?? settings.dist;
const formatOptions = { dir: settings.dist, name: inputFile.name, ext: fileExt };

@@ -61,0 +60,0 @@ const outputPath = slash(path.format(formatOptions));

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

@@ -89,3 +89,2 @@ "license": "MIT",

"istextorbinary": "~9.5",
"make-dir": "~4.0",
"slash": "~5.1"

@@ -96,4 +95,4 @@ },

"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.7",
"@typescript-eslint/parser": "~7.7",
"@typescript-eslint/eslint-plugin": "~7.8",
"@typescript-eslint/parser": "~7.8",
"assert-deep-strict-equal": "~1.2",

@@ -108,4 +107,4 @@ "copy-file-util": "~1.2",

"typescript": "~5.4",
"w3c-html-validator": "~1.7"
"w3c-html-validator": "~1.8"
}
}
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