Edit D:\xinhaisoft\crisis_new\api\node_modules\@azure\core-auth\dist-esm\src\azureSASCredential.js
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { isObjectWithProperties } from "./typeguards"; /** * A static-signature-based credential that supports updating * the underlying signature value. */ var AzureSASCredential = /** @class */ (function () { /** * Create an instance of an AzureSASCredential for use * with a service client. * * @param signature - The initial value of the shared access signature to use in authentication */ function AzureSASCredential(signature) { if (!signature) { throw new Error("shared access signature must be a non-empty string"); } this._signature = signature; } Object.defineProperty(AzureSASCredential.prototype, "signature", { /** * The value of the shared access signature to be used in authentication */ get: function () { return this._signature; }, enumerable: false, configurable: true }); /** * Change the value of the signature. * * Updates will take effect upon the next request after * updating the signature value. * * @param newSignature - The new shared access signature value to be used */ AzureSASCredential.prototype.update = function (newSignature) { if (!newSignature) { throw new Error("shared access signature must be a non-empty string"); } this._signature = newSignature; }; return AzureSASCredential; }()); export { AzureSASCredential }; /** * Tests an object to determine whether it implements SASCredential. * * @param credential - The assumed SASCredential to be tested. */ export function isSASCredential(credential) { return (isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string"); } //# sourceMappingURL=azureSASCredential.js.map
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de