@itwin/service-authorization
Advanced tools
Comparing version 0.7.0 to 0.8.0
# Change Log - @itwin/service-authorization | ||
This log was last generated on Tue, 03 Jan 2023 21:06:26 GMT and should not be manually modified. | ||
This log was last generated on Tue, 14 Mar 2023 20:05:10 GMT and should not be manually modified. | ||
## 0.8.0 | ||
Tue, 14 Mar 2023 20:05:10 GMT | ||
### Minor changes | ||
- Drop support for Node 12, Node 14 and Node 16. | ||
## 0.7.0 | ||
@@ -6,0 +13,0 @@ Tue, 03 Jan 2023 21:06:26 GMT |
@@ -25,3 +25,2 @@ "use strict"; | ||
constructor(_config = {}) { | ||
var _a; | ||
this._config = _config; | ||
@@ -31,3 +30,3 @@ this.url = "https://ims.bentley.com"; | ||
let prefix = process.env.IMJS_URL_PREFIX; | ||
const authority = new URL((_a = this._config.issuerUrl) !== null && _a !== void 0 ? _a : this.url); | ||
const authority = new URL(this._config.issuerUrl ?? this.url); | ||
if (prefix && !this._config.issuerUrl) { | ||
@@ -34,0 +33,0 @@ prefix = prefix === "dev-" ? "qa-" : prefix; |
@@ -25,3 +25,2 @@ "use strict"; | ||
constructor(serviceConfiguration) { | ||
var _a; | ||
this._accessToken = ""; | ||
@@ -35,3 +34,3 @@ this.url = "https://ims.bentley.com"; | ||
let prefix = process.env.IMJS_URL_PREFIX; | ||
const authority = new URL((_a = this._configuration.authority) !== null && _a !== void 0 ? _a : this.url); | ||
const authority = new URL(this._configuration.authority ?? this.url); | ||
if (prefix && !this._configuration.authority) { | ||
@@ -38,0 +37,0 @@ prefix = prefix === "dev-" ? "qa-" : prefix; |
# MIT License | ||
Copyright © 2017-2021 Bentley Systems, Incorporated. All rights reserved. | ||
Copyright © 2022-2023 Bentley Systems, Incorporated. All rights reserved. | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
{ | ||
"name": "@itwin/service-authorization", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Service authorization client for iTwin platform", | ||
@@ -80,3 +80,4 @@ "main": "lib/cjs/index.js", | ||
"rebuild": "npm run clean && npm run build" | ||
} | ||
}, | ||
"readme": "# @itwin/service-authorization\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\n## Description\r\n\r\nThe __@itwin/service-authorization__ package contains a service based client for authorization with the iTwin platform.\r\n\r\n## Documentation\r\n\r\nFor information about the service authorization workflow please visit the [Authorization Overview Page](https://developer.bentley.com/apis/overview/authorization/#authorizingservicemachinetomachine).\r\n" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
56185
465