New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adguard/diff-builder

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adguard/diff-builder - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

6

CHANGELOG.md

@@ -8,2 +8,8 @@ # Diff Builder Changelog

## [1.0.6] - 2023-12-26
### Fixed
- Handle user agent headers in the filter content.
## [1.0.5] - 2023-12-25

@@ -10,0 +16,0 @@

2

package.json
{
"name": "@adguard/diff-builder",
"version": "1.0.5",
"version": "1.0.6",
"description": "A tool for generating differential updates for filter lists.",

@@ -5,0 +5,0 @@ "repository": {

@@ -288,2 +288,8 @@ import path from 'path';

let userAgent: string | undefined;
// User agent tag.
if (newFileSplitted[0].startsWith('![') || newFileSplitted[0].startsWith('[')) {
userAgent = newFileSplitted.shift();
}
// Remove tags 'Diff-Path' and 'Checksum' from new filterContent.

@@ -295,2 +301,6 @@ newFileSplitted = removeTag(DIFF_PATH_TAG, removeTag(CHECKSUM_TAG, newFileSplitted));

if (userAgent !== undefined) {
newFileSplitted.unshift(userAgent);
}
// If filter had checksum, calculate and insert a new checksum tag at the start of the filter

@@ -300,3 +310,9 @@ if (hasChecksum(filterContent)) {

const checksumTag = createTag(CHECKSUM_TAG, updatedChecksum);
newFileSplitted.unshift(checksumTag);
if (userAgent !== undefined) {
// Insert Checksum after the userAgent header.
newFileSplitted.splice(1, 0, checksumTag);
} else {
newFileSplitted.unshift(checksumTag);
}
}

@@ -303,0 +319,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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