@goodtools/wiregasm 1.9.1 → 2.0.1

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: 68722652 bytes
4
- sha256: dd05bc9d0a3c8d49794b758000ae0a7e27093c2c7587a0b7b77aee3216f76f2d
3
+ size: 73646481 bytes
4
+ sha256: 9a7e4af8ac7b97d58d34aa967d7c9a42e597cef70894a56f43115e5fc0f65bd4
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodtools/wiregasm",
3
- "version": "1.9.1",
3
+ "version": "2.0.1",
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,26 +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",
38
- "@semantic-release/github": "^12.0.6",
39
- "@semantic-release/npm": "^13.1.4",
41
+ "@playwright/test": "1.63.0",
40
42
  "@types/jest": "^29.2.5",
41
43
  "@types/node": "^22.19.11",
42
44
  "@types/pako": "^2.0.0",
43
- "@typescript-eslint/eslint-plugin": "^5.48.1",
44
- "@typescript-eslint/parser": "^5.48.1",
45
- "eslint": "^8.31.0",
46
- "eslint-config-prettier": "^8.6.0",
47
- "eslint-plugin-prettier": "^4.2.1",
45
+ "@wasm-fmt/clang-format": "23.1.1",
48
46
  "jest": "^29.3.1",
49
47
  "pako": "^2.1.0",
50
48
  "parcel": "^2.8.2",
51
- "prettier": "^2.8.2",
52
- "semantic-release": "^25.0.3",
53
49
  "ts-jest": "^29.0.3"
54
50
  },
55
51
  "jest": {
@@ -64,5 +60,8 @@
64
60
  "publishConfig": {
65
61
  "access": "public",
66
62
  "registry": "https://registry.npmjs.org/"
63
+ },
64
+ "engines": {
65
+ "node": ">=22"
67
66
  }
68
67
  }