azure-iot-security-symmetric-key
Advanced tools
Comparing version 1.7.12 to 1.7.13
@@ -5,9 +5,10 @@ // Copyright (c) Microsoft. All rights reserved. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var azure_iot_common_1 = require("azure-iot-common"); | ||
var azure_iot_common_2 = require("azure-iot-common"); | ||
exports.SymmetricKeySecurityClient = void 0; | ||
const azure_iot_common_1 = require("azure-iot-common"); | ||
const azure_iot_common_2 = require("azure-iot-common"); | ||
/** | ||
* @private | ||
*/ | ||
var SymmetricKeySecurityClient = /** @class */ (function () { | ||
function SymmetricKeySecurityClient(registrationId, symmetricKey) { | ||
class SymmetricKeySecurityClient { | ||
constructor(registrationId, symmetricKey) { | ||
this._registrationId = registrationId; | ||
@@ -23,8 +24,7 @@ this._symmetricKey = symmetricKey; | ||
*/ | ||
SymmetricKeySecurityClient.prototype.getRegistrationId = function (callback) { | ||
var _this = this; | ||
return azure_iot_common_1.callbackToPromise(function (_callback) { | ||
_callback(null, _this._registrationId); | ||
getRegistrationId(callback) { | ||
return (0, azure_iot_common_1.callbackToPromise)((_callback) => { | ||
_callback(null, this._registrationId); | ||
}, callback); | ||
}; | ||
} | ||
/** | ||
@@ -39,5 +39,4 @@ * @method module:azure-iot-security-symmetric-key.SymmetricKeySecurityClient#createSharedAccessSignature | ||
*/ | ||
SymmetricKeySecurityClient.prototype.createSharedAccessSignature = function (idScope, callback) { | ||
var _this = this; | ||
return azure_iot_common_1.callbackToPromise(function (_callback) { | ||
createSharedAccessSignature(idScope, callback) { | ||
return (0, azure_iot_common_1.callbackToPromise)((_callback) => { | ||
/*Codes_SRS_NODE_SYMMETRIC_KEY_SECURITY_CLIENT_06_005: [Will throw `ReferenceError` if `idScope` parameter is falsy. ] */ | ||
@@ -51,8 +50,7 @@ if (!idScope) { | ||
} | ||
_callback(null, azure_iot_common_1.SharedAccessSignature.create(idScope + '/registrations/' + _this._registrationId, 'registration', _this._symmetricKey, azure_iot_common_1.anHourFromNow())); | ||
_callback(null, azure_iot_common_1.SharedAccessSignature.create(idScope + '/registrations/' + this._registrationId, 'registration', this._symmetricKey, (0, azure_iot_common_1.anHourFromNow)())); | ||
}, callback); | ||
}; | ||
return SymmetricKeySecurityClient; | ||
}()); | ||
} | ||
} | ||
exports.SymmetricKeySecurityClient = SymmetricKeySecurityClient; | ||
//# sourceMappingURL=symmetric_key.js.map |
{ | ||
"name": "azure-iot-security-symmetric-key", | ||
"version": "1.7.12", | ||
"version": "1.7.13", | ||
"description": "Azure IoT Symmetric Key Security Client", | ||
@@ -10,10 +10,10 @@ "author": "Microsoft Corporation", | ||
"dependencies": { | ||
"azure-iot-common": "1.12.13", | ||
"azure-iot-common": "1.12.14", | ||
"debug": "^4.3.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.6.1", | ||
"@types/node": "^16.10.2", | ||
"chai": "^4.3.3", | ||
"jshint": "^2.12.0", | ||
"mocha": "^9.1.2", | ||
"jshint": "^2.13.4", | ||
"mocha": "^9.2.1", | ||
"nyc": "^15.0.0", | ||
@@ -24,3 +24,3 @@ "sinon": "^11.1.2", | ||
"tslint": "^6.1.3", | ||
"typescript": "3.7.5" | ||
"typescript": "4.4.4" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
{ | ||
"compilerOptions": { | ||
"outDir": "./dist", | ||
"target":"es5", | ||
"target":"es2017", | ||
"module": "commonjs", | ||
"sourceMap": true, | ||
@@ -14,2 +15,2 @@ "declaration": true, | ||
] | ||
} | ||
} |
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
9398
+ Addedazure-iot-common@1.12.14(transitive)
- Removedazure-iot-common@1.12.13(transitive)
Updatedazure-iot-common@1.12.14