Skip to content

Commit 642b871

Browse files
author
Abhishek Bindra
committed
refactor(fingerprint): import from ip-protection instead of duplicating
Remove axe-core's own fingerprint.js copy. Import computeFingerprintHash directly from ip-protection/utils/fingerprint via relative path. esbuild resolves the cross-package import at bundle time. Single source of truth for fingerprint logic.
1 parent daaeca9 commit 642b871

4 files changed

Lines changed: 1 addition & 404 deletions

File tree

lib/core/utils/dq-element.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import cache from '../base/cache';
77
import memoize from './memoize';
88
import getNodeAttributes from './get-node-attributes';
99
import VirtualNode from '../../core/base/virtual-node/virtual-node';
10-
import computeFingerprintHash from './fingerprint';
10+
import { computeFingerprintHash } from '../../../../ip-protection/utils/fingerprint';
1111

1212
const CACHE_KEY = 'DqElm.RunOptions';
1313

lib/core/utils/fingerprint.js

Lines changed: 0 additions & 282 deletions
This file was deleted.

lib/core/utils/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ export { default as queue } from './queue';
8585
export { default as respondable } from './respondable';
8686
export { default as ruleShouldRun } from './rule-should-run';
8787
export { default as filterHtmlAttrs } from './filter-html-attrs';
88-
export { default as computeFingerprintHash } from './fingerprint';
8988
export { default as select } from './select';
9089
export { default as sendCommandToFrame } from './send-command-to-frame';
9190
export { default as serializeError } from './serialize-error';

0 commit comments

Comments
 (0)