azot 0.4.1 → 0.4.3
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/package.json +8 -7
- package/scripts/postinstall.js +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azot",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Research & pentesting toolkit for Google's Widevine DRM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"dist/lib.js",
|
|
10
10
|
"dist/lib.d.ts",
|
|
11
11
|
"dist/cli.js",
|
|
12
|
-
"dist/cli.d.ts"
|
|
12
|
+
"dist/cli.d.ts",
|
|
13
|
+
"scripts/postinstall.js"
|
|
13
14
|
],
|
|
14
15
|
"bin": {
|
|
15
16
|
"azot": "dist/cli.js"
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
"zip": "wxt zip",
|
|
25
26
|
"zip:firefox": "wxt zip -b firefox",
|
|
26
27
|
"compile": "tsc --noEmit",
|
|
27
|
-
"postinstall": "node
|
|
28
|
+
"postinstall": "node scripts/postinstall.js",
|
|
28
29
|
"test": "vitest"
|
|
29
30
|
},
|
|
30
31
|
"repository": {
|
|
@@ -58,12 +59,12 @@
|
|
|
58
59
|
"exports": {
|
|
59
60
|
".": {
|
|
60
61
|
"require": {
|
|
61
|
-
"types": "./dist/lib
|
|
62
|
-
"default": "./dist/lib
|
|
62
|
+
"types": "./dist/lib.d.cts",
|
|
63
|
+
"default": "./dist/lib.cjs"
|
|
63
64
|
},
|
|
64
65
|
"import": {
|
|
65
|
-
"types": "./dist/lib
|
|
66
|
-
"default": "./dist/lib
|
|
66
|
+
"types": "./dist/lib.d.ts",
|
|
67
|
+
"default": "./dist/lib.js"
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { existsSync } from 'fs';
|
|
2
|
+
import { execSync } from 'child_process';
|
|
3
|
+
|
|
4
|
+
// Check if .git directory exists (we're in development)
|
|
5
|
+
if (existsSync('.git')) {
|
|
6
|
+
try {
|
|
7
|
+
// Run wxt prepare and pipe its output to the console
|
|
8
|
+
execSync('wxt prepare', { stdio: 'inherit' });
|
|
9
|
+
} catch (error) {
|
|
10
|
+
// Exit with the same code if the command failed
|
|
11
|
+
process.exit(error.status);
|
|
12
|
+
}
|
|
13
|
+
}
|