brave-real-browser 1.5.99 → 1.5.100
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/.github/workflows/publish.yml +90 -35
- package/package.json +5 -4
|
@@ -39,9 +39,18 @@ jobs:
|
|
|
39
39
|
node-version: '18'
|
|
40
40
|
registry-url: 'https://registry.npmjs.org'
|
|
41
41
|
|
|
42
|
-
- name:
|
|
43
|
-
run:
|
|
44
|
-
|
|
42
|
+
- name: Update Dependencies to Latest
|
|
43
|
+
run: |
|
|
44
|
+
echo "📦 Updating all dependencies to latest versions..."
|
|
45
|
+
|
|
46
|
+
# Install latest versions of all dependencies
|
|
47
|
+
npm install brave-real-launcher@latest brave-real-puppeteer-core@latest ghost-cursor@latest puppeteer-extra@latest tree-kill@latest xvfb@latest
|
|
48
|
+
|
|
49
|
+
echo "✅ All dependencies updated to latest versions"
|
|
50
|
+
echo ""
|
|
51
|
+
echo "📋 Installed versions:"
|
|
52
|
+
npm list --depth=0
|
|
53
|
+
|
|
45
54
|
- name: Run Tests
|
|
46
55
|
run: |
|
|
47
56
|
echo "⚠️ Skipping tests due to brave-real-launcher module issues"
|
|
@@ -62,14 +71,30 @@ jobs:
|
|
|
62
71
|
npm version patch --no-git-tag-version
|
|
63
72
|
NEW_VERSION=$(node -p "require('./package.json').version")
|
|
64
73
|
|
|
65
|
-
|
|
66
|
-
echo "
|
|
74
|
+
# Use GITHUB_OUTPUT instead of deprecated set-output
|
|
75
|
+
echo "old_version=$OLD_VERSION" >> "$GITHUB_OUTPUT"
|
|
76
|
+
echo "new_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
|
67
77
|
|
|
68
|
-
|
|
78
|
+
# Check if dependencies were updated
|
|
79
|
+
if git diff --quiet package.json package-lock.json; then
|
|
80
|
+
echo "📌 No dependency updates needed"
|
|
81
|
+
COMMIT_MSG="Auto increment v$OLD_VERSION -> v$NEW_VERSION [skip ci]"
|
|
82
|
+
else
|
|
83
|
+
echo "📦 Dependencies updated, including in commit"
|
|
84
|
+
COMMIT_MSG="Auto increment v$OLD_VERSION -> v$NEW_VERSION with latest dependencies [skip ci]"
|
|
85
|
+
fi
|
|
69
86
|
|
|
70
87
|
git add package.json package-lock.json
|
|
71
|
-
git commit -m "
|
|
72
|
-
|
|
88
|
+
git commit -m "$COMMIT_MSG"
|
|
89
|
+
|
|
90
|
+
# Check if tag already exists
|
|
91
|
+
if git rev-parse "v$NEW_VERSION" >/dev/null 2>&1; then
|
|
92
|
+
echo "⚠️ Tag v$NEW_VERSION already exists, skipping tag creation"
|
|
93
|
+
echo "skip_release=true" >> "$GITHUB_OUTPUT"
|
|
94
|
+
else
|
|
95
|
+
git tag "v$NEW_VERSION"
|
|
96
|
+
echo "skip_release=false" >> "$GITHUB_OUTPUT"
|
|
97
|
+
fi
|
|
73
98
|
|
|
74
99
|
- name: Push Changes
|
|
75
100
|
run: |
|
|
@@ -78,42 +103,72 @@ jobs:
|
|
|
78
103
|
env:
|
|
79
104
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
80
105
|
|
|
106
|
+
- name: Check if Version Already Published
|
|
107
|
+
id: npm_check
|
|
108
|
+
run: |
|
|
109
|
+
PACKAGE_VERSION="${{ steps.version.outputs.new_version }}"
|
|
110
|
+
|
|
111
|
+
if npm view "brave-real-browser@$PACKAGE_VERSION" version 2>/dev/null; then
|
|
112
|
+
echo "⚠️ Version $PACKAGE_VERSION already published on npm, skipping"
|
|
113
|
+
echo "skip_publish=true" >> "$GITHUB_OUTPUT"
|
|
114
|
+
else
|
|
115
|
+
echo "✅ Version $PACKAGE_VERSION not found on npm, proceeding"
|
|
116
|
+
echo "skip_publish=false" >> "$GITHUB_OUTPUT"
|
|
117
|
+
fi
|
|
118
|
+
|
|
81
119
|
- name: Publish to NPM
|
|
82
120
|
if: |
|
|
83
|
-
|
|
84
|
-
(
|
|
121
|
+
steps.npm_check.outputs.skip_publish != 'true' &&
|
|
122
|
+
(
|
|
123
|
+
github.event_name == 'push' ||
|
|
124
|
+
(github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true')
|
|
125
|
+
)
|
|
85
126
|
run: npm publish --access public
|
|
86
127
|
env:
|
|
87
128
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
88
129
|
|
|
89
130
|
- name: Create Release
|
|
90
|
-
if: success()
|
|
91
|
-
|
|
131
|
+
if: success() && steps.version.outputs.skip_release != 'true'
|
|
132
|
+
run: |
|
|
133
|
+
TAG_NAME="v${{ steps.version.outputs.new_version }}"
|
|
134
|
+
NEW_VERSION="${{ steps.version.outputs.new_version }}"
|
|
135
|
+
OLD_VERSION="${{ steps.version.outputs.old_version }}"
|
|
136
|
+
|
|
137
|
+
# Check if release already exists
|
|
138
|
+
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
|
|
139
|
+
echo "⚠️ Release $TAG_NAME already exists, skipping"
|
|
140
|
+
exit 0
|
|
141
|
+
fi
|
|
142
|
+
|
|
143
|
+
# Create release body
|
|
144
|
+
cat > release_body.md << EOF
|
|
145
|
+
## Version $NEW_VERSION
|
|
146
|
+
|
|
147
|
+
Auto-incremented from $OLD_VERSION to $NEW_VERSION
|
|
148
|
+
|
|
149
|
+
### Installation
|
|
150
|
+
\`\`\`bash
|
|
151
|
+
npm install brave-real-browser@$NEW_VERSION
|
|
152
|
+
\`\`\`
|
|
153
|
+
|
|
154
|
+
### Usage
|
|
155
|
+
\`\`\`javascript
|
|
156
|
+
const { connect } = require('brave-real-browser');
|
|
157
|
+
const { browser, page } = await connect({
|
|
158
|
+
headless: false,
|
|
159
|
+
turnstile: true
|
|
160
|
+
});
|
|
161
|
+
\`\`\`
|
|
162
|
+
EOF
|
|
163
|
+
|
|
164
|
+
# Create GitHub release using gh CLI
|
|
165
|
+
gh release create "$TAG_NAME" \
|
|
166
|
+
--title "v$NEW_VERSION" \
|
|
167
|
+
--notes-file release_body.md
|
|
168
|
+
|
|
169
|
+
echo "✅ Created GitHub release $TAG_NAME"
|
|
92
170
|
env:
|
|
93
171
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
94
|
-
with:
|
|
95
|
-
tag_name: v${{ steps.version.outputs.new_version }}
|
|
96
|
-
release_name: v${{ steps.version.outputs.new_version }}
|
|
97
|
-
body: |
|
|
98
|
-
## Version ${{ steps.version.outputs.new_version }}
|
|
99
|
-
|
|
100
|
-
Auto-incremented from ${{ steps.version.outputs.old_version }} to ${{ steps.version.outputs.new_version }}
|
|
101
|
-
|
|
102
|
-
### Installation
|
|
103
|
-
```bash
|
|
104
|
-
npm install brave-real-browser@${{ steps.version.outputs.new_version }}
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
### Usage
|
|
108
|
-
```javascript
|
|
109
|
-
const { connect } = require('brave-real-browser');
|
|
110
|
-
const { browser, page } = await connect({
|
|
111
|
-
headless: false,
|
|
112
|
-
turnstile: true
|
|
113
|
-
});
|
|
114
|
-
```
|
|
115
|
-
draft: false
|
|
116
|
-
prerelease: false
|
|
117
172
|
|
|
118
173
|
- name: Summary
|
|
119
174
|
if: always()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brave-real-browser",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.100",
|
|
4
4
|
"description": "This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/esm/index.mjs",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"typings": "typings.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"esm_test": "node ./test/esm/test.js",
|
|
17
|
-
"cjs_test": "node ./test/cjs/test.js"
|
|
17
|
+
"cjs_test": "node ./test/cjs/test.js",
|
|
18
|
+
"update-deps": "npm install brave-real-launcher@latest brave-real-puppeteer-core@latest ghost-cursor@latest puppeteer-extra@latest tree-kill@latest xvfb@latest && npm list --depth=0"
|
|
18
19
|
},
|
|
19
20
|
"keywords": [
|
|
20
21
|
"cf-bypass",
|
|
@@ -38,8 +39,8 @@
|
|
|
38
39
|
"author": "zfc-software",
|
|
39
40
|
"license": "ISC",
|
|
40
41
|
"dependencies": {
|
|
41
|
-
"brave-real-launcher": "
|
|
42
|
-
"brave-real-puppeteer-core": "
|
|
42
|
+
"brave-real-launcher": "^1.2.15",
|
|
43
|
+
"brave-real-puppeteer-core": "^24.23.0-patch.1",
|
|
43
44
|
"ghost-cursor": "^1.4.1",
|
|
44
45
|
"puppeteer-extra": "^3.3.6",
|
|
45
46
|
"tree-kill": "^1.2.2",
|