@verriflo/secure 1.0.2 → 1.0.4
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.
Potentially problematic release.
This version of @verriflo/secure might be problematic. Click here for more details.
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface VerrifloSecureConfig {
|
|
|
5
5
|
disableCutPaths?: string[];
|
|
6
6
|
disablePastePaths?: string[];
|
|
7
7
|
disableSelectPaths?: string[];
|
|
8
|
-
onDevToolOpen?: (type: any, next:
|
|
8
|
+
onDevToolOpen?: (type: any, next: Function) => void;
|
|
9
9
|
blockedUrl?: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
@@ -25,6 +25,10 @@ export declare const VerrifloSecure: {
|
|
|
25
25
|
* Runs the protection logic based on the configuration and current path.
|
|
26
26
|
*/
|
|
27
27
|
runProtection(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Intelligently redirects to the blocked URL.
|
|
30
|
+
*/
|
|
31
|
+
performRedirect(url: string | undefined): void;
|
|
28
32
|
/**
|
|
29
33
|
* Helper to attach event listeners for restrictions.
|
|
30
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verriflo/secure",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Enterprise-grade client-side security and DevTools restriction for web applications.",
|
|
5
5
|
"author": "Team Verriflo <support@verriflo.com> (https://verriflo.com)",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|