mirror of
https://github.com/tvytlx/ai-agent-deep-dive.git
synced 2026-04-09 10:34:48 +08:00
Add extracted source directory and README navigation
This commit is contained in:
14
extracted-source/node_modules/@azure/identity/dist/esm/util/subscriptionUtils.js
generated
vendored
Normal file
14
extracted-source/node_modules/@azure/identity/dist/esm/util/subscriptionUtils.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT License.
|
||||
import { formatError } from "./logging.js";
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export function checkSubscription(logger, subscription) {
|
||||
if (!subscription.match(/^[0-9a-zA-Z-._ ]+$/)) {
|
||||
const error = new Error("Invalid subscription provided. You can locate your subscription by following the instructions listed here: https://learn.microsoft.com/azure/azure-portal/get-subscription-tenant-id.");
|
||||
logger.info(formatError("", error));
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=subscriptionUtils.js.map
|
||||
Reference in New Issue
Block a user