Skip to content

Commit 7f950a4

Browse files
committed
Fully qualify import paths
1 parent 01c872a commit 7f950a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+481
-443
lines changed

dist/oidc-client.js

Lines changed: 182 additions & 163 deletions
Large diffs are not rendered by default.

dist/oidc-client.min.js

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

index.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './src/Log';
5-
import { OidcClient } from './src/OidcClient';
6-
import { OidcClientSettings } from './src/OidcClientSettings';
7-
import { WebStorageStateStore } from './src/WebStorageStateStore';
8-
import { InMemoryWebStorage } from './src/InMemoryWebStorage';
9-
import { UserManager } from './src/UserManager';
10-
import { AccessTokenEvents } from './src/AccessTokenEvents';
11-
import { MetadataService } from './src/MetadataService';
12-
import { CordovaPopupNavigator } from './src/CordovaPopupNavigator';
13-
import { CordovaIFrameNavigator } from './src/CordovaIFrameNavigator';
14-
import { CheckSessionIFrame } from './src/CheckSessionIFrame';
15-
import { TokenRevocationClient } from './src/TokenRevocationClient';
16-
import { SessionMonitor } from './src/SessionMonitor';
17-
import { Global } from './src/Global';
18-
import { User } from './src/User';
4+
import { Log } from './src/Log.js';
5+
import { OidcClient } from './src/OidcClient.js';
6+
import { OidcClientSettings } from './src/OidcClientSettings.js';
7+
import { WebStorageStateStore } from './src/WebStorageStateStore.js';
8+
import { InMemoryWebStorage } from './src/InMemoryWebStorage.js';
9+
import { UserManager } from './src/UserManager.js';
10+
import { AccessTokenEvents } from './src/AccessTokenEvents.js';
11+
import { MetadataService } from './src/MetadataService.js';
12+
import { CordovaPopupNavigator } from './src/CordovaPopupNavigator.js';
13+
import { CordovaIFrameNavigator } from './src/CordovaIFrameNavigator.js';
14+
import { CheckSessionIFrame } from './src/CheckSessionIFrame.js';
15+
import { TokenRevocationClient } from './src/TokenRevocationClient.js';
16+
import { SessionMonitor } from './src/SessionMonitor.js';
17+
import { Global } from './src/Global.js';
18+
import { User } from './src/User.js';
1919

2020
export default {
2121
Log,
@@ -33,4 +33,4 @@ export default {
3333
SessionMonitor,
3434
Global,
3535
User
36-
};
36+
};

lib/oidc-client.js

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

lib/oidc-client.min.js

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

src/AccessTokenEvents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { Timer } from './Timer';
4+
import { Log } from './Log.js';
5+
import { Timer } from './Timer.js';
66

77
const DefaultAccessTokenExpiringNotificationTime = 60; // seconds
88

src/CheckSessionIFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
const DefaultInterval = 2000;
77

src/CordovaIFrameNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { CordovaPopupWindow } from './CordovaPopupWindow';
4+
import { CordovaPopupWindow } from './CordovaPopupWindow.js';
55

66
export class CordovaIFrameNavigator {
77

src/CordovaPopupNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { CordovaPopupWindow } from './CordovaPopupWindow';
4+
import { CordovaPopupWindow } from './CordovaPopupWindow.js';
55

66
export class CordovaPopupNavigator {
77

src/CordovaPopupWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
const DefaultPopupFeatures = 'location=no,toolbar=no,zoom=no';
77
const DefaultPopupTarget = "_blank";

src/ErrorResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
export class ErrorResponse extends Error {
77
constructor({error, error_description, error_uri, state}={}

src/Event.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
export class Event {
77

src/IFrameNavigator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { IFrameWindow } from './IFrameWindow';
4+
import { Log } from './Log.js';
5+
import { IFrameWindow } from './IFrameWindow.js';
66

77
export class IFrameNavigator {
88

src/IFrameWindow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
const DefaultTimeout = 10000;
77

src/InMemoryWebStorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
export class InMemoryWebStorage{
77
constructor(){

src/JoseUtil.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { jws, KEYUTIL as KeyUtil, X509, crypto, hextob64u, b64tohex } from '../jsrsasign/dist/jsrsasign.js';
55
//import { jws, KEYUTIL as KeyUtil, X509, crypto, hextob64u, b64tohex } from 'jsrsasign';
6-
import { Log } from './Log';
6+
import { Log } from './Log.js';
77

88
const AllowedSigningAlgs = ['RS256', 'RS384', 'RS512', 'PS256', 'PS384', 'PS512', 'ES256', 'ES384', 'ES512'];
99

src/JsonService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { Global } from './Global';
4+
import { Log } from './Log.js';
5+
import { Global } from './Global.js';
66

77
export class JsonService {
88
constructor(additionalContentTypes = null, XMLHttpRequestCtor = Global.XMLHttpRequest) {

src/MetadataService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { JsonService } from './JsonService';
4+
import { Log } from './Log.js';
5+
import { JsonService } from './JsonService.js';
66

77
const OidcMetadataUrlPath = '.well-known/openid-configuration';
88

src/OidcClient.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { OidcClientSettings } from './OidcClientSettings';
6-
import { ErrorResponse } from './ErrorResponse';
7-
import { SigninRequest } from './SigninRequest';
8-
import { SigninResponse } from './SigninResponse';
9-
import { SignoutRequest } from './SignoutRequest';
10-
import { SignoutResponse } from './SignoutResponse';
11-
import { SigninState } from './SigninState';
12-
import { State } from './State';
4+
import { Log } from './Log.js';
5+
import { OidcClientSettings } from './OidcClientSettings.js';
6+
import { ErrorResponse } from './ErrorResponse.js';
7+
import { SigninRequest } from './SigninRequest.js';
8+
import { SigninResponse } from './SigninResponse.js';
9+
import { SignoutRequest } from './SignoutRequest.js';
10+
import { SignoutResponse } from './SignoutResponse.js';
11+
import { SigninState } from './SigninState.js';
12+
import { State } from './State.js';
1313

1414
export class OidcClient {
1515
constructor(settings = {}) {

src/OidcClientSettings.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { WebStorageStateStore } from './WebStorageStateStore';
6-
import { ResponseValidator } from './ResponseValidator';
7-
import { MetadataService } from './MetadataService';
4+
import { Log } from './Log.js';
5+
import { WebStorageStateStore } from './WebStorageStateStore.js';
6+
import { ResponseValidator } from './ResponseValidator.js';
7+
import { MetadataService } from './MetadataService.js';
88

99
const OidcMetadataUrlPath = '.well-known/openid-configuration';
1010

src/PopupNavigator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { PopupWindow } from './PopupWindow';
4+
import { Log } from './Log.js';
5+
import { PopupWindow } from './PopupWindow.js';
66

77
export class PopupNavigator {
88

src/PopupWindow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { UrlUtility } from './UrlUtility';
4+
import { Log } from './Log.js';
5+
import { UrlUtility } from './UrlUtility.js';
66

77
const CheckForPopupClosedInterval = 500;
88
const DefaultPopupFeatures = 'location=no,toolbar=no,width=500,height=500,left=100,top=100;';

src/RedirectNavigator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
export class RedirectNavigator {
77

src/ResponseValidator.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { MetadataService } from './MetadataService';
6-
import { UserInfoService } from './UserInfoService';
7-
import { TokenClient } from './TokenClient';
8-
import { ErrorResponse } from './ErrorResponse';
9-
import { JoseUtil } from './JoseUtil';
4+
import { Log } from './Log.js';
5+
import { MetadataService } from './MetadataService.js';
6+
import { UserInfoService } from './UserInfoService.js';
7+
import { TokenClient } from './TokenClient.js';
8+
import { ErrorResponse } from './ErrorResponse.js';
9+
import { JoseUtil } from './JoseUtil.js';
1010

1111
const ProtocolClaims = ["nonce", "at_hash", "iat", "nbf", "exp", "aud", "iss", "c_hash"];
1212

src/SessionMonitor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { CheckSessionIFrame } from './CheckSessionIFrame';
4+
import { Log } from './Log.js';
5+
import { CheckSessionIFrame } from './CheckSessionIFrame.js';
66

77
export class SessionMonitor {
88

src/SigninRequest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { UrlUtility } from './UrlUtility';
6-
import { SigninState } from './SigninState';
4+
import { Log } from './Log.js';
5+
import { UrlUtility } from './UrlUtility.js';
6+
import { SigninState } from './SigninState.js';
77

88
export class SigninRequest {
99
constructor({

src/SigninResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { UrlUtility } from './UrlUtility';
4+
import { UrlUtility } from './UrlUtility.js';
55

66
const OidcScope = "openid";
77

src/SigninState.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { State } from './State';
6-
import { JoseUtil } from './JoseUtil';
7-
import random from './random';
4+
import { Log } from './Log.js';
5+
import { State } from './State.js';
6+
import { JoseUtil } from './JoseUtil.js';
7+
import random from './random.js';
88

99
export class SigninState extends State {
1010
constructor({nonce, authority, client_id, redirect_uri, code_verifier} = {}) {

src/SignoutRequest.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { UrlUtility } from './UrlUtility';
6-
import { State } from './State';
4+
import { Log } from './Log.js';
5+
import { UrlUtility } from './UrlUtility.js';
6+
import { State } from './State.js';
77

88
export class SignoutRequest {
99
constructor({url, id_token_hint, post_logout_redirect_uri, data}) {

src/SignoutResponse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { UrlUtility } from './UrlUtility';
4+
import { UrlUtility } from './UrlUtility.js';
55

66
export class SignoutResponse {
77
constructor(url) {

src/SilentRenewService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
4+
import { Log } from './Log.js';
55

66
export class SilentRenewService {
77

src/State.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import random from './random';
4+
import { Log } from './Log.js';
5+
import random from './random.js';
66

77
export class State {
88
constructor({id, data, created} = {}) {

src/Timer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { Global } from './Global';
6-
import { Event } from './Event';
4+
import { Log } from './Log.js';
5+
import { Global } from './Global.js';
6+
import { Event } from './Event.js';
77

88
const TimerDuration = 5; // seconds
99

src/TokenClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { JsonService } from './JsonService';
5-
import { MetadataService } from './MetadataService';
6-
import { Log } from './Log';
4+
import { JsonService } from './JsonService.js';
5+
import { MetadataService } from './MetadataService.js';
6+
import { Log } from './Log.js';
77

88
export class TokenClient {
99
constructor(settings, JsonServiceCtor = JsonService, MetadataServiceCtor = MetadataService) {

src/TokenRevocationClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { MetadataService } from './MetadataService';
6-
import { Global } from './Global';
4+
import { Log } from './Log.js';
5+
import { MetadataService } from './MetadataService.js';
6+
import { Global } from './Global.js';
77

88
const AccessTokenTypeHint = "access_token";
99
const RefreshTokenTypeHint = "refresh_token";

src/UrlUtility.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
33

4-
import { Log } from './Log';
5-
import { Global } from './Global';
4+
import { Log } from './Log.js';
5+
import { Global } from './Global.js';
66

77
export class UrlUtility {
88
static addQueryParam(url, name, value) {

0 commit comments

Comments
 (0)