@adguard/diff-builder
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -8,2 +8,8 @@ # Diff Builder Changelog | ||
## [1.0.9] - 2024-01-08 | ||
### Fixed | ||
- Use last available version of `jsdiff` to fix error with large patches. | ||
## [1.0.8] - 2023-12-29 | ||
@@ -10,0 +16,0 @@ |
@@ -0,1 +1,2 @@ | ||
/// <reference path="../../../types/diff.d.ts" /> | ||
import { TypesOfChanges } from '../common/types-of-change'; | ||
@@ -2,0 +3,0 @@ import { Resolution } from '../common/patch-name'; |
{ | ||
"name": "@adguard/diff-builder", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A tool for generating differential updates for filter lists.", | ||
@@ -56,3 +56,3 @@ "repository": { | ||
"crypto-js": "^4.2.0", | ||
"diff": "5.1.0" | ||
"diff": "git+https://github.com/kpdecker/jsdiff.git#c6498e3" | ||
}, | ||
@@ -59,0 +59,0 @@ "devDependencies": { |
@@ -0,5 +1,8 @@ | ||
/// <reference path="../../types/diff.d.ts" /> | ||
import path from 'path'; | ||
import fs from 'fs'; | ||
import * as Diff from 'diff'; | ||
// eslint-disable-next-line import/extensions | ||
import { structuredPatch } from 'diff/src/index.js'; | ||
@@ -111,3 +114,3 @@ import { CHECKSUM_TAG, DIFF_PATH_TAG } from '../common/constants'; | ||
export const createPatch = (oldFile: string, newFile: string): string => { | ||
const { hunks } = Diff.structuredPatch( | ||
const { hunks } = structuredPatch( | ||
'oldFile', | ||
@@ -114,0 +117,0 @@ 'newFile', |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
344367
6909
1
- Removeddiff@5.1.0(transitive)
Updateddiff@git+https://github.com/kpdecker/jsdiff.git#c6498e3