@jsenv/lighthouse-impact 4.0.1 → 4.0.3

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/README.md CHANGED
@@ -112,7 +112,7 @@ _.github/workflows/lighthouse_impact.yml_
112
112
 
113
113
  name: lighthouse impact
114
114
 
115
- on: pull_request_target
115
+ on: pull_request
116
116
 
117
117
  jobs:
118
118
  lighthouse_impact:
@@ -120,11 +120,11 @@ jobs:
120
120
  name: lighthouse impact
121
121
  steps:
122
122
  - name: Setup git
123
- uses: actions/checkout@v2
123
+ uses: actions/checkout@v3
124
124
  - name: Setup node
125
- uses: actions/setup-node@v2
125
+ uses: actions/setup-node@v3
126
126
  with:
127
- node-version: "16.13.0"
127
+ node-version: "18.3.0"
128
128
  - name: Install node modules
129
129
  run: npm install
130
130
  - name: Report lighthouse impact
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/lighthouse-impact",
3
- "version": "4.0.1",
3
+ "version": "4.0.3",
4
4
  "description": "Package description",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -37,9 +37,9 @@
37
37
  "dependencies": {
38
38
  "@jsenv/abort": "4.2.4",
39
39
  "@jsenv/dynamic-import-worker": "1.1.0",
40
- "@jsenv/filesystem": "4.1.6",
40
+ "@jsenv/filesystem": "4.1.9",
41
41
  "@jsenv/github-pull-request-impact": "1.7.1",
42
- "@jsenv/log": "3.3.1",
42
+ "@jsenv/log": "3.3.3",
43
43
  "lighthouse": "9.6.8"
44
44
  }
45
45
  }
@@ -24,7 +24,7 @@ export const reportLighthouseImpactInGithubPullRequest = async ({
24
24
  skipGistWarning = false,
25
25
  }) => {
26
26
  rootDirectoryUrl = assertAndNormalizeDirectoryUrl(rootDirectoryUrl)
27
- if (lighthouseReportUrl === "string") {
27
+ if (typeof lighthouseReportUrl === "string") {
28
28
  lighthouseReportUrl = new URL(lighthouseReportUrl, rootDirectoryUrl).href
29
29
  } else if (lighthouseReportUrl instanceof URL) {
30
30
  } else {