Skip to content

Commit 1090286

Browse files
authored
Refine Writer detection to avoid collision with Protobuf.js (#183)
1 parent 15e3a1c commit 1090286

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/fugu-apis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ const patterns = {
767767
chromeStatusID: 5193953788559360,
768768
},
769769
'Writer': {
770-
regEx: /\bWriter\.create\s*\(/g,
770+
regEx: /\bawait Writer\.create\s*\(/g,
771771
where: 'JavaScript',
772772
supported: (async () => 'Writer' in self)(),
773773
featureDetection: `(async () => 'Writer' in self)()`,

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"homepage": "https://github.com/HTTPArchive/custom-metrics#readme",
2222
"devDependencies": {
23-
"fugu-api-data": "^1.25.0",
23+
"fugu-api-data": "^1.25.1",
2424
"jest": "^29.7.0",
2525
"webpagetest": "github:HTTPArchive/WebPageTest.api-nodejs"
2626
},

0 commit comments

Comments
 (0)