@azure/app-configuration-importer-file-source 1.0.0-preview
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-configuration-importer-file-source.test.log +20 -0
- package/dist/app-configuration-importer-file-source.api.md +30 -0
- package/dist/index.js +20844 -0
- package/dist/index.js.map +1 -0
- package/package.json +66 -0
- package/types/azure-app-configuration-importer-file-source.d.ts +45 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Invoking: cross-env TS_NODE_PROJECT="tsconfig.test.json" mocha -r ts-node/register 'tests/**/*.ts'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
File configuration source test
|
|
5
|
+
✔ Throw argument error when set unexpected option when the profile is kvset
|
|
6
|
+
✔ Throw argument error if format is not json when the profile is kvset
|
|
7
|
+
✔ Throw argument error if depth is set but separator is not
|
|
8
|
+
✔ Throw argument error if separator is not valid
|
|
9
|
+
✔ Throw error if file is not UTF8 encode
|
|
10
|
+
✔ Throw error if file is not valid json file
|
|
11
|
+
✔ Throw error if file is not valid yaml file
|
|
12
|
+
✔ Throw error if file content is not valid object
|
|
13
|
+
✔ Throw error if format is not json when the contentType is json
|
|
14
|
+
✔ Throw error if file path is empty or whitespace
|
|
15
|
+
✔ Ignore comments in json file
|
|
16
|
+
✔ Handle null value present in json file
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
12 passing (13ms)
|
|
20
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
## API Report File for "@azure/app-configuration-importer-file-source"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import { ConfigurationFormat } from '@azure/app-configuration-importer';
|
|
8
|
+
import { ConfigurationProfile } from '@azure/app-configuration-importer';
|
|
9
|
+
import { FeatureFlagValue } from '@azure/app-configuration';
|
|
10
|
+
import { SecretReferenceValue } from '@azure/app-configuration';
|
|
11
|
+
import { SetConfigurationSettingParam } from '@azure/app-configuration';
|
|
12
|
+
import { StringConfigurationSettingsSource } from '@azure/app-configuration-importer';
|
|
13
|
+
|
|
14
|
+
// @public
|
|
15
|
+
export class FileConfigurationSettingsSource extends StringConfigurationSettingsSource {
|
|
16
|
+
constructor(fileOptions: FileConfigurationSyncOptions);
|
|
17
|
+
// (undocumented)
|
|
18
|
+
GetConfigurationSettings(): Promise<SetConfigurationSettingParam<string | FeatureFlagValue | SecretReferenceValue>[]>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Warning: (ae-forgotten-export) The symbol "SourceOptions" needs to be exported by the entry point index.d.ts
|
|
22
|
+
//
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
export type FileConfigurationSyncOptions = SourceOptions & {
|
|
25
|
+
filePath: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// (No @packageDocumentation comment for this package)
|
|
29
|
+
|
|
30
|
+
```
|