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.
- package/README.md +21 -13
- package/README.tr.md +21 -13
- package/dist/adapters/esbuild.cjs +5 -5
- package/dist/adapters/esbuild.d.cts +1 -1
- package/dist/adapters/esbuild.d.ts +1 -1
- package/dist/adapters/esbuild.js +3 -3
- package/dist/adapters/next/adapter.cjs +6 -6
- package/dist/adapters/next/adapter.d.cts +1 -1
- package/dist/adapters/next/adapter.d.ts +1 -1
- package/dist/adapters/next/adapter.js +5 -5
- package/dist/adapters/next/index.cjs +6 -6
- package/dist/adapters/next/index.js +5 -5
- package/dist/adapters/rollup.cjs +5 -5
- package/dist/adapters/rollup.d.cts +1 -1
- package/dist/adapters/rollup.d.ts +1 -1
- package/dist/adapters/rollup.js +3 -3
- package/dist/adapters/rspack.cjs +5 -5
- package/dist/adapters/rspack.d.cts +1 -1
- package/dist/adapters/rspack.d.ts +1 -1
- package/dist/adapters/rspack.js +3 -3
- package/dist/adapters/vite.cjs +5 -5
- package/dist/adapters/vite.d.cts +1 -1
- package/dist/adapters/vite.d.ts +1 -1
- package/dist/adapters/vite.js +3 -3
- package/dist/adapters/webpack.cjs +5 -5
- package/dist/adapters/webpack.d.cts +1 -1
- package/dist/adapters/webpack.d.ts +1 -1
- package/dist/adapters/webpack.js +3 -3
- package/dist/browser.cjs +2 -2
- package/dist/browser.d.cts +7 -6
- package/dist/browser.d.ts +7 -6
- package/dist/browser.js +1 -1
- package/dist/{chunk-TYL32LUK.js → chunk-32GLSJAW.js} +91 -569
- package/dist/{chunk-W77DAC3H.js → chunk-6EWFL4LQ.js} +16 -0
- package/dist/{chunk-3GDHYBVH.cjs → chunk-AD6UFBPA.cjs} +96 -574
- package/dist/{chunk-XYN5NYSD.js → chunk-APQOBFRO.js} +21 -15
- package/dist/{chunk-LGTXAAZH.js → chunk-BL2UXZGD.js} +3155 -481
- package/dist/{chunk-X6EETCO6.cjs → chunk-BQ2O6HM5.cjs} +16 -0
- package/dist/{chunk-4G2HCME5.js → chunk-GCWXTWTN.js} +30 -13
- package/dist/{chunk-4SOS3LRV.js → chunk-K77WRITN.js} +6 -6
- package/dist/{chunk-7ZEVJ4OR.cjs → chunk-KIAYVIC5.cjs} +40 -34
- package/dist/{chunk-M46SFJE7.cjs → chunk-MSECP2P4.cjs} +3351 -677
- package/dist/{chunk-NNAAPDUS.cjs → chunk-SJK45WAU.cjs} +8 -8
- package/dist/{chunk-OTA75YI6.cjs → chunk-UUJLTW7O.cjs} +53 -36
- package/dist/cli/index.js +2808 -528
- package/dist/{config-Y6JwVGwX.d.cts → config-BFAZrfjQ.d.cts} +2 -0
- package/dist/{config-Y6JwVGwX.d.ts → config-BFAZrfjQ.d.ts} +2 -0
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-COVHErnx.d.cts → index-Bo4S_VVM.d.cts} +1 -1
- package/dist/{index-0O1WSfVP.d.ts → index-CKdYVt_L.d.ts} +1 -1
- package/dist/index.cjs +171 -31
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +156 -16
- package/dist/plugins/unplugin.cjs +4 -4
- package/dist/plugins/unplugin.js +3 -3
- package/dist/{types-CMtZnV8C.d.ts → types-BDpFfokR.d.ts} +6 -3
- package/dist/{types-D93PuOOl.d.cts → types-WIoud53X.d.cts} +6 -3
- 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
|
|
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 =
|
|
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;
|
package/dist/browser.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as UnpeekConfig, S as ShieldConfig, a as ShieldPayload } from './config-
|
|
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-
|
|
3
|
-
import { H as HotPathReport } from './index-
|
|
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-
|
|
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 (<
|
|
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
|
|
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-
|
|
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-
|
|
3
|
-
import { H as HotPathReport } from './index-
|
|
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-
|
|
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 (<
|
|
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
|
|
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
|
*/
|