@verriflo/secure 1.0.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.
Potentially problematic release.
This version of @verriflo/secure might be problematic. Click here for more details.
- package/LICENSE +24 -0
- package/README.md +66 -0
- package/dist/index.esm.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/index.d.ts +37 -0
- package/package.json +44 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface VerrifloSecureConfig {
|
|
2
|
+
licenseKey: string;
|
|
3
|
+
disablePaths?: string[];
|
|
4
|
+
disableCopyPaths?: string[];
|
|
5
|
+
disableCutPaths?: string[];
|
|
6
|
+
disablePastePaths?: string[];
|
|
7
|
+
disableSelectPaths?: string[];
|
|
8
|
+
onDevToolOpen?: (type: any, next: () => void) => void;
|
|
9
|
+
blockedUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Verriflo Secure - Premium protection wrapper with granular control.
|
|
13
|
+
*/
|
|
14
|
+
export declare const VerrifloSecure: {
|
|
15
|
+
privateConfig: VerrifloSecureConfig | null;
|
|
16
|
+
/**
|
|
17
|
+
* Matches current path against a list of patterns.
|
|
18
|
+
*/
|
|
19
|
+
isPathMatched(patterns: string[] | undefined): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Initializes the security wrapper.
|
|
22
|
+
*/
|
|
23
|
+
init(config: VerrifloSecureConfig): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Runs the protection logic based on the configuration and current path.
|
|
26
|
+
*/
|
|
27
|
+
runProtection(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Helper to attach event listeners for restrictions.
|
|
30
|
+
*/
|
|
31
|
+
setupRestriction(event: string, paths: string[] | undefined): void;
|
|
32
|
+
/**
|
|
33
|
+
* Gracefully crashes the execution.
|
|
34
|
+
*/
|
|
35
|
+
crash(): never;
|
|
36
|
+
};
|
|
37
|
+
export default VerrifloSecure;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@verriflo/secure",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Enterprise-grade client-side security and DevTools restriction for web applications.",
|
|
5
|
+
"author": "Team Verriflo <support@verriflo.com> (https://verriflo.com)",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
+
"homepage": "https://verriflo.com/secure",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://verriflo.com/support"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"security",
|
|
13
|
+
"devtools",
|
|
14
|
+
"anti-debug",
|
|
15
|
+
"obfuscation",
|
|
16
|
+
"protection",
|
|
17
|
+
"enterprise",
|
|
18
|
+
"tamper-resistant",
|
|
19
|
+
"copy-protection"
|
|
20
|
+
],
|
|
21
|
+
"main": "./dist/index.js",
|
|
22
|
+
"module": "./dist/index.esm.js",
|
|
23
|
+
"types": "./dist/types/index.d.ts",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/types/index.d.ts",
|
|
27
|
+
"import": "./dist/index.esm.js",
|
|
28
|
+
"require": "./dist/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"README.md"
|
|
35
|
+
],
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18.0.0"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {}
|
|
44
|
+
}
|