Skip to content

Commit c8c366d

Browse files
add js file extension to imports (#109)
1 parent 5135f8e commit c8c366d

18 files changed

+52
-51
lines changed

src/AzureAppConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { Disposable } from "./common/disposable";
4+
import { Disposable } from "./common/disposable.js";
55

66
export type AzureAppConfiguration = {
77
/**

src/AzureAppConfigurationImpl.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
import { AppConfigurationClient, ConfigurationSetting, ConfigurationSettingId, GetConfigurationSettingOptions, GetConfigurationSettingResponse, ListConfigurationSettingsOptions, featureFlagPrefix, isFeatureFlag } from "@azure/app-configuration";
55
import { isRestError } from "@azure/core-rest-pipeline";
6-
import { AzureAppConfiguration, ConfigurationObjectConstructionOptions } from "./AzureAppConfiguration";
7-
import { AzureAppConfigurationOptions } from "./AzureAppConfigurationOptions";
8-
import { IKeyValueAdapter } from "./IKeyValueAdapter";
9-
import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter";
10-
import { DEFAULT_REFRESH_INTERVAL_IN_MS, MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions";
11-
import { Disposable } from "./common/disposable";
12-
import { FEATURE_FLAGS_KEY_NAME, FEATURE_MANAGEMENT_KEY_NAME } from "./featureManagement/constants";
13-
import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter";
14-
import { RefreshTimer } from "./refresh/RefreshTimer";
15-
import { getConfigurationSettingWithTrace, listConfigurationSettingsWithTrace, requestTracingEnabled } from "./requestTracing/utils";
16-
import { KeyFilter, LabelFilter, SettingSelector } from "./types";
6+
import { AzureAppConfiguration, ConfigurationObjectConstructionOptions } from "./AzureAppConfiguration.js";
7+
import { AzureAppConfigurationOptions } from "./AzureAppConfigurationOptions.js";
8+
import { IKeyValueAdapter } from "./IKeyValueAdapter.js";
9+
import { JsonKeyValueAdapter } from "./JsonKeyValueAdapter.js";
10+
import { DEFAULT_REFRESH_INTERVAL_IN_MS, MIN_REFRESH_INTERVAL_IN_MS } from "./RefreshOptions.js";
11+
import { Disposable } from "./common/disposable.js";
12+
import { FEATURE_FLAGS_KEY_NAME, FEATURE_MANAGEMENT_KEY_NAME } from "./featureManagement/constants.js";
13+
import { AzureKeyVaultKeyValueAdapter } from "./keyvault/AzureKeyVaultKeyValueAdapter.js";
14+
import { RefreshTimer } from "./refresh/RefreshTimer.js";
15+
import { getConfigurationSettingWithTrace, listConfigurationSettingsWithTrace, requestTracingEnabled } from "./requestTracing/utils.js";
16+
import { KeyFilter, LabelFilter, SettingSelector } from "./types.js";
1717

1818
type PagedSettingSelector = SettingSelector & {
1919
/**

src/AzureAppConfigurationOptions.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
// Licensed under the MIT license.
33

44
import { AppConfigurationClientOptions } from "@azure/app-configuration";
5-
import { KeyVaultOptions } from "./keyvault/KeyVaultOptions";
6-
import { RefreshOptions } from "./RefreshOptions";
7-
import { SettingSelector } from "./types";
8-
import { FeatureFlagOptions } from "./featureManagement/FeatureFlagOptions";
5+
import { KeyVaultOptions } from "./keyvault/KeyVaultOptions.js";
6+
import { RefreshOptions } from "./RefreshOptions.js";
7+
import { SettingSelector } from "./types.js";
8+
import { FeatureFlagOptions } from "./featureManagement/FeatureFlagOptions.js";
99

1010
export const MaxRetries = 2;
1111
export const MaxRetryDelayInMs = 60000;
@@ -47,4 +47,4 @@ export interface AzureAppConfigurationOptions {
4747
* Specifies options used to configure feature flags.
4848
*/
4949
featureFlagOptions?: FeatureFlagOptions;
50-
}
50+
}

src/JsonKeyValueAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT license.
33

44
import { ConfigurationSetting, featureFlagContentType, secretReferenceContentType } from "@azure/app-configuration";
5-
import { IKeyValueAdapter } from "./IKeyValueAdapter";
5+
import { IKeyValueAdapter } from "./IKeyValueAdapter.js";
66

77
export class JsonKeyValueAdapter implements IKeyValueAdapter {
88
static readonly #ExcludedJsonContentTypes: string[] = [

src/RefreshOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { WatchedSetting } from "./WatchedSetting";
4+
import { WatchedSetting } from "./WatchedSetting.js";
55

66
export const DEFAULT_REFRESH_INTERVAL_IN_MS = 30 * 1000;
77
export const MIN_REFRESH_INTERVAL_IN_MS = 1 * 1000;

src/featureManagement/FeatureFlagOptions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { FeatureFlagRefreshOptions } from "../RefreshOptions";
5-
import { SettingSelector } from "../types";
4+
import { FeatureFlagRefreshOptions } from "../RefreshOptions.js";
5+
import { SettingSelector } from "../types.js";
66

77
/**
88
* Options used to configure feature flags.
@@ -27,4 +27,4 @@ export interface FeatureFlagOptions {
2727
* Specifies how feature flag refresh is configured. All selected feature flags will be watched for changes.
2828
*/
2929
refresh?: FeatureFlagRefreshOptions;
30-
}
30+
}

src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export { AzureAppConfiguration } from "./AzureAppConfiguration";
5-
export { Disposable } from "./common/disposable";
6-
export { load } from "./load";
7-
export { KeyFilter, LabelFilter } from "./types";
4+
export { AzureAppConfiguration } from "./AzureAppConfiguration.js";
5+
export { Disposable } from "./common/disposable.js";
6+
export { load } from "./load.js";
7+
export { KeyFilter, LabelFilter } from "./types.js";
8+
export { VERSION } from "./version.js";

src/keyvault/AzureKeyVaultKeyValueAdapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Licensed under the MIT license.
33

44
import { ConfigurationSetting, isSecretReference, parseSecretReference } from "@azure/app-configuration";
5-
import { IKeyValueAdapter } from "../IKeyValueAdapter";
6-
import { KeyVaultOptions } from "./KeyVaultOptions";
5+
import { IKeyValueAdapter } from "../IKeyValueAdapter.js";
6+
import { KeyVaultOptions } from "./KeyVaultOptions.js";
77
import { SecretClient, parseKeyVaultSecretIdentifier } from "@azure/keyvault-secrets";
88

99
export class AzureKeyVaultKeyValueAdapter implements IKeyValueAdapter {
@@ -72,4 +72,4 @@ export class AzureKeyVaultKeyValueAdapter implements IKeyValueAdapter {
7272

7373
function getHost(url: string) {
7474
return new URL(url).host;
75-
}
75+
}

src/load.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
import { AppConfigurationClient, AppConfigurationClientOptions } from "@azure/app-configuration";
55
import { TokenCredential } from "@azure/identity";
6-
import { AzureAppConfiguration } from "./AzureAppConfiguration";
7-
import { AzureAppConfigurationImpl } from "./AzureAppConfigurationImpl";
8-
import { AzureAppConfigurationOptions, MaxRetries, MaxRetryDelayInMs } from "./AzureAppConfigurationOptions";
9-
import * as RequestTracing from "./requestTracing/constants";
6+
import { AzureAppConfiguration } from "./AzureAppConfiguration.js";
7+
import { AzureAppConfigurationImpl } from "./AzureAppConfigurationImpl.js";
8+
import { AzureAppConfigurationOptions, MaxRetries, MaxRetryDelayInMs } from "./AzureAppConfigurationOptions.js";
9+
import * as RequestTracing from "./requestTracing/constants.js";
1010

1111
const MIN_DELAY_FOR_UNHANDLED_ERROR: number = 5000; // 5 seconds
1212

src/requestTracing/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
import { VERSION } from "../version";
4+
import { VERSION } from "../version.js";
55

66
export const ENV_AZURE_APP_CONFIGURATION_TRACING_DISABLED = "AZURE_APP_CONFIGURATION_TRACING_DISABLED";
77

0 commit comments

Comments
 (0)