unpeek 4.0.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/README.md +21 -13
  2. package/README.tr.md +21 -13
  3. package/dist/adapters/esbuild.cjs +5 -5
  4. package/dist/adapters/esbuild.d.cts +1 -1
  5. package/dist/adapters/esbuild.d.ts +1 -1
  6. package/dist/adapters/esbuild.js +3 -3
  7. package/dist/adapters/next/adapter.cjs +6 -6
  8. package/dist/adapters/next/adapter.d.cts +1 -1
  9. package/dist/adapters/next/adapter.d.ts +1 -1
  10. package/dist/adapters/next/adapter.js +5 -5
  11. package/dist/adapters/next/index.cjs +6 -6
  12. package/dist/adapters/next/index.js +5 -5
  13. package/dist/adapters/rollup.cjs +5 -5
  14. package/dist/adapters/rollup.d.cts +1 -1
  15. package/dist/adapters/rollup.d.ts +1 -1
  16. package/dist/adapters/rollup.js +3 -3
  17. package/dist/adapters/rspack.cjs +5 -5
  18. package/dist/adapters/rspack.d.cts +1 -1
  19. package/dist/adapters/rspack.d.ts +1 -1
  20. package/dist/adapters/rspack.js +3 -3
  21. package/dist/adapters/vite.cjs +5 -5
  22. package/dist/adapters/vite.d.cts +1 -1
  23. package/dist/adapters/vite.d.ts +1 -1
  24. package/dist/adapters/vite.js +3 -3
  25. package/dist/adapters/webpack.cjs +5 -5
  26. package/dist/adapters/webpack.d.cts +1 -1
  27. package/dist/adapters/webpack.d.ts +1 -1
  28. package/dist/adapters/webpack.js +3 -3
  29. package/dist/browser.cjs +2 -2
  30. package/dist/browser.d.cts +7 -6
  31. package/dist/browser.d.ts +7 -6
  32. package/dist/browser.js +1 -1
  33. package/dist/{chunk-TYL32LUK.js → chunk-32GLSJAW.js} +91 -569
  34. package/dist/{chunk-W77DAC3H.js → chunk-6EWFL4LQ.js} +16 -0
  35. package/dist/{chunk-3GDHYBVH.cjs → chunk-AD6UFBPA.cjs} +96 -574
  36. package/dist/{chunk-XYN5NYSD.js → chunk-APQOBFRO.js} +21 -15
  37. package/dist/{chunk-LGTXAAZH.js → chunk-BL2UXZGD.js} +3155 -481
  38. package/dist/{chunk-X6EETCO6.cjs → chunk-BQ2O6HM5.cjs} +16 -0
  39. package/dist/{chunk-4G2HCME5.js → chunk-GCWXTWTN.js} +30 -13
  40. package/dist/{chunk-4SOS3LRV.js → chunk-K77WRITN.js} +6 -6
  41. package/dist/{chunk-7ZEVJ4OR.cjs → chunk-KIAYVIC5.cjs} +40 -34
  42. package/dist/{chunk-M46SFJE7.cjs → chunk-MSECP2P4.cjs} +3351 -677
  43. package/dist/{chunk-NNAAPDUS.cjs → chunk-SJK45WAU.cjs} +8 -8
  44. package/dist/{chunk-OTA75YI6.cjs → chunk-UUJLTW7O.cjs} +53 -36
  45. package/dist/cli/index.js +2808 -528
  46. package/dist/{config-Y6JwVGwX.d.cts → config-BFAZrfjQ.d.cts} +2 -0
  47. package/dist/{config-Y6JwVGwX.d.ts → config-BFAZrfjQ.d.ts} +2 -0
  48. package/dist/config.cjs +2 -2
  49. package/dist/config.d.cts +1 -1
  50. package/dist/config.d.ts +1 -1
  51. package/dist/config.js +1 -1
  52. package/dist/{index-COVHErnx.d.cts → index-Bo4S_VVM.d.cts} +1 -1
  53. package/dist/{index-0O1WSfVP.d.ts → index-CKdYVt_L.d.ts} +1 -1
  54. package/dist/index.cjs +171 -31
  55. package/dist/index.d.cts +6 -6
  56. package/dist/index.d.ts +6 -6
  57. package/dist/index.js +156 -16
  58. package/dist/plugins/unplugin.cjs +4 -4
  59. package/dist/plugins/unplugin.js +3 -3
  60. package/dist/{types-CMtZnV8C.d.ts → types-BDpFfokR.d.ts} +6 -3
  61. package/dist/{types-D93PuOOl.d.cts → types-WIoud53X.d.cts} +6 -3
  62. package/package.json +1 -1
package/dist/browser.cjs CHANGED
@@ -9,7 +9,7 @@ var _chunkURPPSTHZcjs = require('./chunk-URPPSTHZ.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkM46SFJE7cjs = require('./chunk-M46SFJE7.cjs');
12
+ var _chunkMSECP2P4cjs = require('./chunk-MSECP2P4.cjs');
13
13
 
14
14
 
15
15
 
@@ -25,4 +25,4 @@ var _chunkL6BOM5VScjs = require('./chunk-L6BOM5VS.cjs');
25
25
 
26
26
 
27
27
 
28
- exports.PRESETS = _chunkURPPSTHZcjs.PRESETS; exports.UnpeekError = _chunkL6BOM5VScjs.UnpeekError; exports.computeFnv1aHash = _chunkM46SFJE7cjs.computeFnv1aHash; exports.computeIntegrityHash = _chunkM46SFJE7cjs.computeIntegrityHash; exports.createDeterrentSnippet = _chunkM46SFJE7cjs.createDeterrentSnippet; exports.detectHotPaths = _chunkM46SFJE7cjs.detectHotPaths; exports.generateRuntimeShield = _chunkM46SFJE7cjs.generateRuntimeShield; exports.isUnpeekError = _chunkL6BOM5VScjs.isUnpeekError; exports.transformJavaScript = _chunkM46SFJE7cjs.transformJavaScript; exports.verifyCodeIntegrity = _chunkM46SFJE7cjs.verifyCodeIntegrity;
28
+ exports.PRESETS = _chunkURPPSTHZcjs.PRESETS; exports.UnpeekError = _chunkL6BOM5VScjs.UnpeekError; exports.computeFnv1aHash = _chunkMSECP2P4cjs.computeFnv1aHash; exports.computeIntegrityHash = _chunkMSECP2P4cjs.computeIntegrityHash; exports.createDeterrentSnippet = _chunkMSECP2P4cjs.createDeterrentSnippet; exports.detectHotPaths = _chunkMSECP2P4cjs.detectHotPaths; exports.generateRuntimeShield = _chunkMSECP2P4cjs.generateRuntimeShield; exports.isUnpeekError = _chunkL6BOM5VScjs.isUnpeekError; exports.transformJavaScript = _chunkMSECP2P4cjs.transformJavaScript; exports.verifyCodeIntegrity = _chunkMSECP2P4cjs.verifyCodeIntegrity;
@@ -1,7 +1,7 @@
1
- import { U as UnpeekConfig, S as ShieldConfig, a as ShieldPayload } from './config-Y6JwVGwX.cjs';
2
- export { B as BaseProtectionOptions, C as ConfigTarget, D as DeterrentMode, F as FilterConfig, H as HotPathConfig, M as ManglerConfig, N as NextConfigOptions, P as PRESETS, b as PatternInput, c as SemanticAnchorsConfig, d as ShieldOptionsConfig, e as SourcemapsConfig, f as UnpeekFramework, g as UnpeekPluginOptions, h as UnpeekProfile, V as VaultConfig, i as ViteConfigOptions } from './config-Y6JwVGwX.cjs';
3
- import { H as HotPathReport } from './index-COVHErnx.cjs';
4
- export { S as ScrubberOptions, T as TransformOptions, a as TransformResult, b as TransformSkippedReason, U as UnpeekError, c as UnpeekErrorCode, i as isUnpeekError, t as transformJavaScript } from './index-COVHErnx.cjs';
1
+ import { U as UnpeekConfig, S as ShieldConfig, a as ShieldPayload } from './config-BFAZrfjQ.cjs';
2
+ export { B as BaseProtectionOptions, C as ConfigTarget, D as DeterrentMode, F as FilterConfig, H as HotPathConfig, M as ManglerConfig, N as NextConfigOptions, P as PRESETS, b as PatternInput, c as SemanticAnchorsConfig, d as ShieldOptionsConfig, e as SourcemapsConfig, f as UnpeekFramework, g as UnpeekPluginOptions, h as UnpeekProfile, V as VaultConfig, i as ViteConfigOptions } from './config-BFAZrfjQ.cjs';
3
+ import { H as HotPathReport } from './index-Bo4S_VVM.cjs';
4
+ export { S as ScrubberOptions, T as TransformOptions, a as TransformResult, b as TransformSkippedReason, U as UnpeekError, c as UnpeekErrorCode, i as isUnpeekError, t as transformJavaScript } from './index-Bo4S_VVM.cjs';
5
5
 
6
6
  declare function computeFnv1aHash(input: string, seed?: number): number;
7
7
 
@@ -21,7 +21,7 @@ declare function computeIntegrityHash(source: string, seed?: number): number;
21
21
  declare function verifyCodeIntegrity(fnOrSource: ((...args: unknown[]) => unknown) | string, expectedHash: number, seed?: number, normalized?: boolean): boolean;
22
22
 
23
23
  /**
24
- * Generates a single-line, self-executing (IIFE), polymorphic, synchronous, SSR- & Worker-safe (<1.5 KB)
24
+ * Generates a single-line, self-executing (IIFE), polymorphic, synchronous, SSR- & Worker-safe (<2.3 KB)
25
25
  * anti-tamper deterrent snippet that calculates a normalized synchronous 32-bit FNV-1a hash of its own
26
26
  * Function.prototype.toString() representation, writes the 16-bit key component (expectedDelta) to
27
27
  * globalThis[windowKeySymbol], and records the v4 non-poisoning state tuple
@@ -33,7 +33,8 @@ declare function verifyCodeIntegrity(fnOrSource: ((...args: unknown[]) => unknow
33
33
  * and operates purely client-side and build-time synchronously within the expired US7757097B2
34
34
  * (Expired - Lifetime) public prior-art domain.
35
35
  *
36
- * When tampering is detected (webdriver when enabled, toString/Reflect/descriptor spoofing, or code alteration):
36
+ * When tampering is detected (webdriver or automation/instrumentation markers when enabled,
37
+ * toString/Reflect/descriptor spoofing, or code alteration):
37
38
  * globalThis.__unpeek_tampered is set to true, state status is pinned to 2, String.prototype._u is poisoned to 14,
38
39
  * globalThis[sym] is poisoned to expectedDelta ^ mask, and CustomEvent('unpeek:tamper') is dispatched.
39
40
  */
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { U as UnpeekConfig, S as ShieldConfig, a as ShieldPayload } from './config-Y6JwVGwX.js';
2
- export { B as BaseProtectionOptions, C as ConfigTarget, D as DeterrentMode, F as FilterConfig, H as HotPathConfig, M as ManglerConfig, N as NextConfigOptions, P as PRESETS, b as PatternInput, c as SemanticAnchorsConfig, d as ShieldOptionsConfig, e as SourcemapsConfig, f as UnpeekFramework, g as UnpeekPluginOptions, h as UnpeekProfile, V as VaultConfig, i as ViteConfigOptions } from './config-Y6JwVGwX.js';
3
- import { H as HotPathReport } from './index-0O1WSfVP.js';
4
- export { S as ScrubberOptions, T as TransformOptions, a as TransformResult, b as TransformSkippedReason, U as UnpeekError, c as UnpeekErrorCode, i as isUnpeekError, t as transformJavaScript } from './index-0O1WSfVP.js';
1
+ import { U as UnpeekConfig, S as ShieldConfig, a as ShieldPayload } from './config-BFAZrfjQ.js';
2
+ export { B as BaseProtectionOptions, C as ConfigTarget, D as DeterrentMode, F as FilterConfig, H as HotPathConfig, M as ManglerConfig, N as NextConfigOptions, P as PRESETS, b as PatternInput, c as SemanticAnchorsConfig, d as ShieldOptionsConfig, e as SourcemapsConfig, f as UnpeekFramework, g as UnpeekPluginOptions, h as UnpeekProfile, V as VaultConfig, i as ViteConfigOptions } from './config-BFAZrfjQ.js';
3
+ import { H as HotPathReport } from './index-CKdYVt_L.js';
4
+ export { S as ScrubberOptions, T as TransformOptions, a as TransformResult, b as TransformSkippedReason, U as UnpeekError, c as UnpeekErrorCode, i as isUnpeekError, t as transformJavaScript } from './index-CKdYVt_L.js';
5
5
 
6
6
  declare function computeFnv1aHash(input: string, seed?: number): number;
7
7
 
@@ -21,7 +21,7 @@ declare function computeIntegrityHash(source: string, seed?: number): number;
21
21
  declare function verifyCodeIntegrity(fnOrSource: ((...args: unknown[]) => unknown) | string, expectedHash: number, seed?: number, normalized?: boolean): boolean;
22
22
 
23
23
  /**
24
- * Generates a single-line, self-executing (IIFE), polymorphic, synchronous, SSR- & Worker-safe (<1.5 KB)
24
+ * Generates a single-line, self-executing (IIFE), polymorphic, synchronous, SSR- & Worker-safe (<2.3 KB)
25
25
  * anti-tamper deterrent snippet that calculates a normalized synchronous 32-bit FNV-1a hash of its own
26
26
  * Function.prototype.toString() representation, writes the 16-bit key component (expectedDelta) to
27
27
  * globalThis[windowKeySymbol], and records the v4 non-poisoning state tuple
@@ -33,7 +33,8 @@ declare function verifyCodeIntegrity(fnOrSource: ((...args: unknown[]) => unknow
33
33
  * and operates purely client-side and build-time synchronously within the expired US7757097B2
34
34
  * (Expired - Lifetime) public prior-art domain.
35
35
  *
36
- * When tampering is detected (webdriver when enabled, toString/Reflect/descriptor spoofing, or code alteration):
36
+ * When tampering is detected (webdriver or automation/instrumentation markers when enabled,
37
+ * toString/Reflect/descriptor spoofing, or code alteration):
37
38
  * globalThis.__unpeek_tampered is set to true, state status is pinned to 2, String.prototype._u is poisoned to 14,
38
39
  * globalThis[sym] is poisoned to expectedDelta ^ mask, and CustomEvent('unpeek:tamper') is dispatched.
39
40
  */
package/dist/browser.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  generateRuntimeShield,
10
10
  transformJavaScript,
11
11
  verifyCodeIntegrity
12
- } from "./chunk-LGTXAAZH.js";
12
+ } from "./chunk-BL2UXZGD.js";
13
13
  import {
14
14
  UnpeekError,
15
15
  isUnpeekError