Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/console-app/configObject.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as dotenv from "dotenv";
dotenv.config()
dotenv.config();

/**
* This example demonstrates how to construct a configuration object from settings loaded from Azure App Configuration.
Expand Down
4 changes: 2 additions & 2 deletions examples/console-app/helloworld.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as dotenv from "dotenv";
dotenv.config()
dotenv.config();

/**
* This example retrives all settings with key following pattern "app.settings.*", i.e. starting with "app.settings.".
Expand All @@ -23,4 +23,4 @@ const settings = await load(connectionString, {
});
const message = settings.get("message");

console.log(`Message from Azure App Configuration: ${message}`);
console.log(`Message from Azure App Configuration: ${message}`);
4 changes: 2 additions & 2 deletions examples/console-app/helloworld_aad.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as dotenv from "dotenv";
dotenv.config()
dotenv.config();

/**
* This example retrives all settings with key following pattern "app.settings.*", i.e. starting with "app.settings.".
Expand All @@ -28,4 +28,4 @@ const settings = await load(endpoint, credential, {
});
const message = settings.get("message");

console.log(`Message from Azure App Configuration: ${message}`);
console.log(`Message from Azure App Configuration: ${message}`);
2 changes: 1 addition & 1 deletion examples/console-app/refresh.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const settings = await load(connectionString, {
}
});

console.log("Using Azure portal or CLI, update the `app.settings.message` value, and then update the `app.settings.sentinel` value in your App Configuration store.")
console.log("Using Azure portal or CLI, update the `app.settings.message` value, and then update the `app.settings.sentinel` value in your App Configuration store.");

// eslint-disable-next-line no-constant-condition
while (true) {
Expand Down
4 changes: 2 additions & 2 deletions examples/console-app/secretReference.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as dotenv from "dotenv";
dotenv.config()
dotenv.config();

/**
* Before you run it, please add a Key Vault reference with key "app.secret" in your App Configuration store.
Expand All @@ -28,4 +28,4 @@ const settings = await load(endpoint, credential, {
const secretKey = "app.secret";
const value = settings.get(secretKey);

console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`);
console.log(`Get the secret from keyvault key: ${secretKey}, value: ${value}`);
2 changes: 1 addition & 1 deletion examples/web-app/httpserver.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as dotenv from "dotenv";
dotenv.config()
dotenv.config();

import { load } from "@azure/app-configuration-provider";
import { DefaultAzureCredential } from "@azure/identity";
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"build-test": "tsc -p ./tsconfig.test.json",
"clean": "rimraf dist dist-esm out types",
"dev": "rollup --config --watch",
"lint": "eslint src/ test/",
"fix-lint": "eslint src/ test/ --fix",
"lint": "eslint src/ test/ examples/ --ext .js,.ts,.mjs,.cjs",
"fix-lint": "eslint src/ test/ examples/ --fix --ext .js,.ts,.mjs,.cjs",
"test": "mocha out/test/*.test.{js,cjs,mjs} --parallel"
},
"repository": {
Expand Down