Socket
Socket
Sign inDemoInstall

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.0 to 1.4.1

2

dist/add-dist-header.d.ts

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

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

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

const out3 = mlStyle && doctype ? out2.replace(doctype, '') : out2;
const versionPattern = /{{pkg[.]version}}/g;
const versionPattern = /{{(pkg|package)[.]version}}/g;
const out4 = settings.setVersion ? out3.replace(versionPattern, pkg.version) : out3;

@@ -51,0 +51,0 @@ const info = pkg.homepage ?? pkg.docs ?? pkg.repository;

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

@@ -94,16 +94,16 @@ "license": "MIT",

"@types/fancy-log": "~2.0",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~6.21",
"@typescript-eslint/parser": "~6.21",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
"@types/node": "~20.12",
"@typescript-eslint/eslint-plugin": "~7.7",
"@typescript-eslint/parser": "~7.7",
"assert-deep-strict-equal": "~1.2",
"copy-file-util": "~1.2",
"copy-folder-util": "~1.1",
"eslint": "~8.56",
"eslint": "8.57.0",
"jshint": "~2.13",
"mocha": "~10.2",
"mocha": "~10.4",
"rimraf": "~5.0",
"run-scripts-util": "~1.2",
"typescript": "~5.3",
"w3c-html-validator": "~1.6"
"typescript": "~5.4",
"w3c-html-validator": "~1.7"
}
}

@@ -8,3 +8,3 @@ # Add Dist Header

[![npm](https://img.shields.io/npm/v/add-dist-header.svg)](https://www.npmjs.com/package/add-dist-header)
[![Build](https://github.com/center-key/add-dist-header/workflows/build/badge.svg)](https://github.com/center-key/add-dist-header/actions/workflows/run-spec-on-push.yaml)
[![Build](https://github.com/center-key/add-dist-header/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/center-key/add-dist-header/actions/workflows/run-spec-on-push.yaml)

@@ -86,3 +86,3 @@ **add-dist-header** uses the `name`, `homepage`, and `license` from your project's **package.json**

| `--keep-first` | Do not delete the original first line comment. | N/A | N/A |
| `--no-version` | Do not substitute occurrences of `{{pkg.version}}`<br>with the **package.json** version number. | N/A | N/A |
| `--no-version` | Do not substitute occurrences of `{{package.version}}`<br>with the **package.json** version number. | N/A | N/A |
| `--note` | Place to add a comment only for humans. | **string** | N/A |

@@ -94,3 +94,3 @@ | `--quiet` | Suppress informational messages. | N/A | N/A |

In addition to prepending the header comment, **add-dist-header** also replaces all occurrences of
`{{pkg.version}}` in each file with the version number found in **package.json**.
`{{package.version}}` in each file with the version number found in **package.json**.
This enables inserting the current package version number into your distribution files.

@@ -97,0 +97,0 @@

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