Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ac95ac

Browse files
committed
Fix linting
1 parent8bd3199 commit8ac95ac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎patches/README.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,19 @@ When updating a patched package to a new version:
2424
Search for the pattern where`_navigator` is defined. This appears in multiple distribution files.
2525

2626
**Pattern to find:**
27+
2728
```javascript
2829
const_navigator=typeofnavigator==='object'&&navigator||undefined;
2930
```
3031

3132
**Replace with:**
33+
3234
```javascript
3335
const_navigator=undefined;// PATCHED: Removed navigator check
3436
```
3537

3638
**Files typically modified:**
39+
3740
-`node_modules/axios/dist/node/axios.cjs`
3841
-`node_modules/axios/dist/esm/axios.js`
3942
-`node_modules/axios/lib/platform/common/utils.js`
@@ -50,19 +53,22 @@ const _navigator = undefined; // PATCHED: Removed navigator check
5053
Search for the`allowsEval` function that checks for Cloudflare in the user agent.
5154

5255
**Pattern to find:**
56+
5357
```javascript
5458
if (typeofnavigator!=="undefined"&&navigator?.userAgent?.includes("Cloudflare")) {
5559
returnfalse;
5660
}
5761
```
5862
5963
**Replace with:**
64+
6065
```javascript
6166
// PATCHED: Removed navigator check to avoid VS Code deprecation warning
6267
// We're not running in Cloudflare Workers in a VS Code extension
6368
```
6469
6570
**Files typically modified:**
71+
6672
-`node_modules/zod/v4/core/util.js`
6773
-`node_modules/zod/v4/core/util.cjs`
6874
@@ -78,6 +84,7 @@ if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudfla
7884
Search for the`getHardwareConcurrency` function that checks for`navigator.hardwareConcurrency`.
7985
8086
**Pattern to find:**
87+
8188
```javascript
8289
getHardwareConcurrency:function() {
8390
if (typeofnavigator!=='undefined') {
@@ -89,6 +96,7 @@ getHardwareConcurrency: function() {
8996
```
9097
9198
**Replace with:**
99+
92100
```javascript
93101
getHardwareConcurrency:function() {
94102
// PATCHED: Removed navigator check to avoid VS Code deprecation warning
@@ -98,6 +106,7 @@ getHardwareConcurrency: function() {
98106
```
99107
100108
**Files typically modified:**
109+
101110
-`node_modules/openpgp/dist/openpgp.js`
102111
103112
**Tip:** Search for`getHardwareConcurrency` in the openpgp directory.
@@ -114,6 +123,7 @@ getHardwareConcurrency: function() {
114123
A conditional block that checks`typeof(navigator)` and sets`BigInteger.prototype.am` based on browser type (Internet Explorer, Netscape, etc.).
115124
116125
**Replace with:**
126+
117127
```javascript
118128
// PATCHED: Removed navigator check to avoid VS Code deprecation warning
119129
BigInteger.prototype.am= am3;
@@ -139,6 +149,7 @@ if(typeof(navigator) !== 'undefined') {
139149
```
140150
141151
**Replace with:**
152+
142153
```javascript
143154
// PATCHED: Removed navigator entropy collection to avoid VS Code deprecation warning
144155
```
@@ -162,6 +173,7 @@ if(typeof navigator !== 'undefined' &&
162173
```
163174
164175
**Replace with:**
176+
165177
```javascript
166178
// PATCHED: Removed navigator check to avoid VS Code deprecation warning
167179
```

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp