@goodtools/wiregasm 1.9.0 → 2.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.
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/wiregasm.wasm
3
- size: 68721707 bytes
4
- sha256: f1a0b2f1e17bd13316f45b9f0fe51517491b4d70c8166ffd79d4663780b1ebec
3
+ size: 73356314 bytes
4
+ sha256: 1f97c61b58dd20d405e14dcd8da3acac18fa2e899998aba013d1ebc222ac2cb9
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodtools/wiregasm",
3
- "version": "1.9.0",
3
+ "version": "2.0.0",
4
4
  "description": "Packet Analyzer powered by Wireshark compiled for WebAssembly",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",
@@ -8,15 +8,18 @@
8
8
  "module": "dist/module.js",
9
9
  "scripts": {
10
10
  "dev": "parcel watch",
11
- "build:emscripten": "docker run -it --rm -v $(pwd):/src okhalid/wiregasm-builder:latest ./build-lib.sh",
12
- "build:emscripten-local": "./build-lib.sh",
11
+ "build:emscripten": "make docker",
12
+ "build:emscripten-local": "make -j\"$(nproc)\"",
13
13
  "build": "parcel build && npm run copy-assets",
14
14
  "copy-assets": "cp built/bin/wiregasm.* dist/",
15
- "lint": "eslint src/ --fix",
16
15
  "test": "jest --coverage",
17
- "fix:prettier": "prettier \"src/**/*.ts\" --write",
18
- "lint:cpp": "docker run --rm -v $(pwd):/work -w /work xianpengshen/clang-tools:17 bash scripts/lint-cpp.sh",
19
- "fix:cpp": "docker run --rm -v $(pwd):/work -w /work xianpengshen/clang-tools:17 bash scripts/fix-cpp.sh"
16
+ "lint": "biome ci . && npm run lint:cpp && npm run lint:spdx",
17
+ "lint:cpp": "git ls-files 'lib/wiregasm/*.cpp' 'lib/wiregasm/*.h' | xargs clang-format --dry-run --Werror",
18
+ "fix": "biome check --write . && git ls-files 'lib/wiregasm/*.cpp' 'lib/wiregasm/*.h' | xargs clang-format -i",
19
+ "size-check": "node scripts/size-check.mjs",
20
+ "dep-versions": "node scripts/dep-versions.mjs",
21
+ "test:e2e": "node e2e/pack.mjs && node e2e/node.mjs && playwright test -c e2e/playwright.config.mjs",
22
+ "lint:spdx": "git ls-files 'src/*.ts' 'lib/wiregasm/*.cpp' 'lib/wiregasm/*.h' 'lib/wiregasm/*.js' 'lib/wiregasm/meson.build' 'scripts/*.mjs' 'e2e/*.mjs' 'e2e/*.js' | xargs grep -L 'SPDX-License-Identifier: GPL-2.0-or-later' | awk '{print \"missing SPDX header: \" $0; bad=1} END {exit bad}'"
20
23
  },
21
24
  "keywords": [
22
25
  "pcap",
@@ -30,23 +33,19 @@
30
33
  "type": "git",
31
34
  "url": "git+https://github.com/good-tools/wiregasm.git"
32
35
  },
33
- "license": "GPLV2",
36
+ "license": "GPL-2.0-or-later",
34
37
  "devDependencies": {
38
+ "@biomejs/biome": "2.5.15",
35
39
  "@parcel/packager-ts": "^2.8.2",
36
40
  "@parcel/transformer-typescript-types": "^2.8.2",
37
- "@semantic-release/git": "^10.0.1",
41
+ "@playwright/test": "1.63.0",
38
42
  "@types/jest": "^29.2.5",
39
- "@types/node": "^18.11.18",
43
+ "@types/node": "^22.19.11",
40
44
  "@types/pako": "^2.0.0",
41
- "@typescript-eslint/eslint-plugin": "^5.48.1",
42
- "@typescript-eslint/parser": "^5.48.1",
43
- "eslint": "^8.31.0",
44
- "eslint-config-prettier": "^8.6.0",
45
- "eslint-plugin-prettier": "^4.2.1",
45
+ "@wasm-fmt/clang-format": "23.1.1",
46
46
  "jest": "^29.3.1",
47
47
  "pako": "^2.1.0",
48
48
  "parcel": "^2.8.2",
49
- "prettier": "^2.8.2",
50
49
  "ts-jest": "^29.0.3"
51
50
  },
52
51
  "jest": {
@@ -61,5 +60,8 @@
61
60
  "publishConfig": {
62
61
  "access": "public",
63
62
  "registry": "https://registry.npmjs.org/"
63
+ },
64
+ "engines": {
65
+ "node": ">=22"
64
66
  }
65
67
  }