@fanboynz/network-scanner 1.0.53 → 1.0.55
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,57 +1,24 @@
|
|
|
1
1
|
name: Publish to NPM
|
|
2
|
-
|
|
3
2
|
on:
|
|
4
3
|
push:
|
|
5
|
-
branches: [ main, master ]
|
|
4
|
+
branches: [ main, master ]
|
|
5
|
+
paths-ignore:
|
|
6
|
+
- 'README.md'
|
|
7
|
+
- 'docs/**'
|
|
8
|
+
- '.gitignore'
|
|
6
9
|
|
|
7
10
|
jobs:
|
|
8
|
-
|
|
11
|
+
publish:
|
|
9
12
|
runs-on: ubuntu-latest
|
|
10
|
-
outputs:
|
|
11
|
-
version-changed: ${{ steps.check.outputs.changed }}
|
|
12
|
-
version: ${{ steps.check.outputs.version }}
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v4
|
|
15
15
|
with:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- name: Check if version changed
|
|
19
|
-
id: check
|
|
20
|
-
run: |
|
|
21
|
-
# Get current version from package.json
|
|
22
|
-
CURRENT_VERSION=$(node -p "require('./package.json').version")
|
|
23
|
-
echo "Current version: $CURRENT_VERSION"
|
|
16
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
24
17
|
|
|
25
|
-
# Get previous version from the last commit
|
|
26
|
-
git checkout HEAD~1 -- package.json 2>/dev/null || echo "No previous package.json found"
|
|
27
|
-
PREVIOUS_VERSION=$(node -p "require('./package.json').version" 2>/dev/null || echo "0.0.0")
|
|
28
|
-
echo "Previous version: $PREVIOUS_VERSION"
|
|
29
|
-
|
|
30
|
-
# Restore current package.json
|
|
31
|
-
git checkout HEAD -- package.json
|
|
32
|
-
|
|
33
|
-
# Check if version changed
|
|
34
|
-
if [ "$CURRENT_VERSION" != "$PREVIOUS_VERSION" ]; then
|
|
35
|
-
echo "Version changed from $PREVIOUS_VERSION to $CURRENT_VERSION"
|
|
36
|
-
echo "changed=true" >> $GITHUB_OUTPUT
|
|
37
|
-
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
38
|
-
else
|
|
39
|
-
echo "Version unchanged"
|
|
40
|
-
echo "changed=false" >> $GITHUB_OUTPUT
|
|
41
|
-
echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
|
|
42
|
-
fi
|
|
43
|
-
|
|
44
|
-
publish:
|
|
45
|
-
needs: check-version
|
|
46
|
-
if: needs.check-version.outputs.version-changed == 'true'
|
|
47
|
-
runs-on: ubuntu-latest
|
|
48
|
-
steps:
|
|
49
|
-
- uses: actions/checkout@v4
|
|
50
|
-
|
|
51
18
|
- name: Setup Node.js
|
|
52
19
|
uses: actions/setup-node@v4
|
|
53
20
|
with:
|
|
54
|
-
node-version: '18'
|
|
21
|
+
node-version: '18'
|
|
55
22
|
registry-url: 'https://registry.npmjs.org'
|
|
56
23
|
|
|
57
24
|
- name: Install dependencies
|
|
@@ -60,12 +27,16 @@ jobs:
|
|
|
60
27
|
- name: Run linting
|
|
61
28
|
run: npm run lint
|
|
62
29
|
|
|
63
|
-
- name:
|
|
64
|
-
run:
|
|
65
|
-
|
|
66
|
-
|
|
30
|
+
- name: Configure git
|
|
31
|
+
run: |
|
|
32
|
+
git config --global user.name "github-actions[bot]"
|
|
33
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
67
34
|
|
|
68
|
-
- name:
|
|
69
|
-
run:
|
|
35
|
+
- name: Version bump and publish
|
|
36
|
+
run: |
|
|
37
|
+
npm version patch
|
|
38
|
+
npm publish
|
|
39
|
+
git push --follow-tags
|
|
70
40
|
env:
|
|
71
41
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
42
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fanboynz/network-scanner",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "A Puppeteer-based network scanner for analyzing web traffic, generating adblock filter rules, and identifying third-party requests. Features include fingerprint spoofing, Cloudflare bypass, content analysis with curl/grep, and multiple output formats.",
|
|
5
5
|
"main": "nwss.js",
|
|
6
6
|
"scripts": {
|