Skip to content

Commit dcf99cc

Browse files
Bump open from 7.4.2 to 8.4.0 (#465)
* Bump open from 7.4.2 to 8.4.0 Bumps [open](https://github.com/sindresorhus/open) from 7.4.2 to 8.4.0. - [Release notes](https://github.com/sindresorhus/open/releases) - [Commits](sindresorhus/open@v7.4.2...v8.4.0) --- updated-dependencies: - dependency-name: open dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * [INTERNAL] Fix serve tests Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Florian Vogt <[email protected]>
1 parent 62a8b84 commit dcf99cc

File tree

4 files changed

+19
-55
lines changed

4 files changed

+19
-55
lines changed

lib/cli/commands/serve.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ serve.handler = async function(argv) {
160160
browserUrl += relPath;
161161
}
162162
const {default: open} = await import("open");
163-
open(browserUrl, {url: true});
163+
open(browserUrl);
164164
}
165165
};
166166

npm-shrinkwrap.json

Lines changed: 15 additions & 45 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
@@ -125,7 +125,7 @@
125125
"data-with-position": "^0.5.0",
126126
"import-local": "^3.1.0",
127127
"js-yaml": "^4.1.0",
128-
"open": "^7.4.2",
128+
"open": "^8.4.0",
129129
"pretty-hrtime": "^1.0.3",
130130
"semver": "^7.3.8",
131131
"update-notifier": "^6.0.2",

test/lib/cli/commands/serve.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,7 @@ URL: http://localhost:8080
235235

236236
t.is(open.callCount, 1);
237237
t.deepEqual(open.getCall(0).args, [
238-
"http://localhost:8080/index.html",
239-
{
240-
url: true
241-
}
238+
"http://localhost:8080/index.html"
242239
]);
243240
});
244241

@@ -277,10 +274,7 @@ URL: http://localhost:8080
277274

278275
t.is(open.callCount, 1);
279276
t.deepEqual(open.getCall(0).args, [
280-
"http://localhost:8080",
281-
{
282-
url: true
283-
}
277+
"http://localhost:8080"
284278
]);
285279
});
286280

0 commit comments

Comments
 (0)