Skip to content

Commit 521e594

Browse files
Updating open package from 8.3.0 to 10.1.0 (#287)
Co-authored-by: Ben Polinsky <78756012+ben-polinsky@users.noreply.github.com>
1 parent 28b1a54 commit 521e594

File tree

4 files changed

+347
-287
lines changed

4 files changed

+347
-287
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Updating open package from 8.3.0 to 10.1.0",
4+
"packageName": "@itwin/node-cli-authorization",
5+
"email": "vilius.albrechtas@bentley.com",
6+
"dependentChangeType": "patch"
7+
}

packages/node-cli/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,23 @@
3030
"dependencies": {
3131
"@openid/appauth": "^1.3.1",
3232
"node-persist": "^3.1.3",
33-
"open": "^8.3.0",
33+
"open": "^10.1.0",
3434
"username": "^7.0.0"
3535
},
3636
"devDependencies": {
3737
"@itwin/build-tools": "rc",
3838
"@itwin/core-bentley": "rc",
3939
"@itwin/core-common": "rc",
4040
"@itwin/eslint-plugin": "^4.0.2",
41-
"@types/chai-as-promised": "^7.1.1",
4241
"@types/chai": "^4.2.22",
42+
"@types/chai-as-promised": "^7.1.1",
4343
"@types/mocha": "^8.2.3",
44+
"@types/node": "^18.11.5",
4445
"@types/node-persist": "^3.1.3",
4546
"@types/node": "^20.14.8",
4647
"@types/sinon": "^10.0.16",
47-
"chai-as-promised": "^7.1.1",
4848
"chai": "^4.2.2",
49+
"chai-as-promised": "^7.1.1",
4950
"cpx2": "^5.0.0",
5051
"eslint": "^8.56.0",
5152
"mocha": "^10.2.0",

packages/node-cli/src/Client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import { readFileSync } from "fs";
1212
import * as path from "path";
1313
import * as Http from "http";
14-
import * as open from "open";
1514
import { assert, BeEvent, BentleyError, Logger } from "@itwin/core-bentley";
1615
import {
1716
AuthorizationError, AuthorizationNotifier, AuthorizationRequest, AuthorizationRequestHandler, AuthorizationResponse,
@@ -443,7 +442,8 @@ class NodeCliAuthorizationRequestHandler extends AuthorizationRequestHandler {
443442

444443
// Compose the request and invoke in the browser
445444
const authUrl = this.buildRequestUrl(serviceConfiguration, authRequest);
446-
await open(authUrl);
445+
const open = await import("open");
446+
await open.default(authUrl);
447447
}
448448

449449
/**

0 commit comments

Comments
 (0)