@azure/core-auth
Advanced tools
Comparing version 1.1.3-dev.20200507.1 to 1.1.3-dev.20200520.1
@@ -7,3 +7,3 @@ // Copyright (c) Microsoft Corporation. | ||
*/ | ||
export class AzureKeyCredential { | ||
var AzureKeyCredential = /** @class */ (function () { | ||
/** | ||
@@ -15,3 +15,3 @@ * Create an instance of an AzureKeyCredential for use | ||
*/ | ||
constructor(key) { | ||
function AzureKeyCredential(key) { | ||
if (!key) { | ||
@@ -22,9 +22,13 @@ throw new Error("key must be a non-empty string"); | ||
} | ||
Object.defineProperty(AzureKeyCredential.prototype, "key", { | ||
/** | ||
* The value of the key to be used in authentication | ||
*/ | ||
get: function () { | ||
return this._key; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
* The value of the key to be used in authentication | ||
*/ | ||
get key() { | ||
return this._key; | ||
} | ||
/** | ||
* Change the value of the key. | ||
@@ -37,6 +41,8 @@ * | ||
*/ | ||
update(newKey) { | ||
AzureKeyCredential.prototype.update = function (newKey) { | ||
this._key = newKey; | ||
} | ||
} | ||
}; | ||
return AzureKeyCredential; | ||
}()); | ||
export { AzureKeyCredential }; | ||
//# sourceMappingURL=azureKeyCredential.js.map |
@@ -11,3 +11,3 @@ 'use strict'; | ||
*/ | ||
class AzureKeyCredential { | ||
var AzureKeyCredential = /** @class */ (function () { | ||
/** | ||
@@ -19,3 +19,3 @@ * Create an instance of an AzureKeyCredential for use | ||
*/ | ||
constructor(key) { | ||
function AzureKeyCredential(key) { | ||
if (!key) { | ||
@@ -26,9 +26,13 @@ throw new Error("key must be a non-empty string"); | ||
} | ||
Object.defineProperty(AzureKeyCredential.prototype, "key", { | ||
/** | ||
* The value of the key to be used in authentication | ||
*/ | ||
get: function () { | ||
return this._key; | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
* The value of the key to be used in authentication | ||
*/ | ||
get key() { | ||
return this._key; | ||
} | ||
/** | ||
* Change the value of the key. | ||
@@ -41,6 +45,7 @@ * | ||
*/ | ||
update(newKey) { | ||
AzureKeyCredential.prototype.update = function (newKey) { | ||
this._key = newKey; | ||
} | ||
} | ||
}; | ||
return AzureKeyCredential; | ||
}()); | ||
@@ -47,0 +52,0 @@ // Copyright (c) Microsoft Corporation. |
{ | ||
"name": "@azure/core-auth", | ||
"version": "1.1.3-dev.20200507.1", | ||
"version": "1.1.3-dev.20200520.1", | ||
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", | ||
@@ -5,0 +5,0 @@ "sdk-type": "client", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27331
321