@patrickdk77/script-defuse 0.0.0-stage → 0.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/package.json CHANGED
@@ -1,6 +1,86 @@
1
1
  {
2
2
  "name": "@patrickdk77/script-defuse",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Inspect document scripts: PDF form scripts in JavaScript and FormCalc, from AcroForm and XFA forms, and the VBA modules of Office documents. Keeps a form script only when every call and property it uses formats, checks or calculates form fields, and a macro only when it calls nothing that reaches outside its document. Reports external access, dynamic code and obfuscation. Includes a script plugin for pdf-defuse and office-defuse.",
5
+ "license": "MIT",
6
+ "author": "patrickdk77",
7
+ "main": "./dist/index.js",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.ts",
10
+ "sideEffects": false,
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.mjs",
15
+ "require": "./dist/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "README.md",
22
+ "LICENSE"
23
+ ],
24
+ "engines": {
25
+ "node": ">=18.0.0"
26
+ },
27
+ "scripts": {
28
+ "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true});require('fs').rmSync('build-test',{recursive:true,force:true})\"",
29
+ "build": "tsc -p tsconfig.json && node scripts/write-esm-wrapper.js",
30
+ "build:test": "tsc -p tsconfig.test.json",
31
+ "lint": "biome check .",
32
+ "format": "biome format --write .",
33
+ "test": "npm run lint && npm run build && npm run build:test && mocha --timeout 120000 \"build-test/test/**/*.test.js\"",
34
+ "prepare": "husky || true",
35
+ "prepublishOnly": "npm run clean && npm test"
36
+ },
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "git+https://github.com/patrickdk77/script-defuse.git"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/patrickdk77/script-defuse/issues"
43
+ },
44
+ "homepage": "https://github.com/patrickdk77/script-defuse",
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "keywords": [
49
+ "javascript",
50
+ "js",
51
+ "pdf",
52
+ "acroform",
53
+ "acrobat",
54
+ "form",
55
+ "script",
56
+ "obfuscation",
57
+ "eval",
58
+ "sanitize",
59
+ "sanitizer",
60
+ "scrub",
61
+ "disarm",
62
+ "defuse",
63
+ "cdr",
64
+ "security",
65
+ "inspect",
66
+ "scanner",
67
+ "detect"
68
+ ],
69
+ "dependencies": {
70
+ "acorn": "^8.19.0"
71
+ },
72
+ "devDependencies": {
73
+ "@biomejs/biome": "^2.5.15",
74
+ "@types/chai": "^5.2.3",
75
+ "@types/mocha": "^10.0.10",
76
+ "@types/node": "^18.19.130",
77
+ "chai": "^6.3.0",
78
+ "husky": "^9.1.7",
79
+ "lint-staged": "^17.6.0",
80
+ "mocha": "^12.0.3",
81
+ "typescript": "^7.0.2"
82
+ },
83
+ "lint-staged": {
84
+ "*.{ts,js,mjs,cjs,json,jsonc}": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
85
+ }
86
+ }