mirror of
https://github.com/bourquep/mysa-js-sdk.git
synced 2026-02-04 01:31:05 +00:00
Merge branch 'main' into 180-rapid-succession-of-aws_error_mqtt_unexpected_hangup-errors
This commit is contained in:
1803
package-lock.json
generated
1803
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -50,9 +50,9 @@
|
|||||||
"brace-expansion": "^2.0.2"
|
"brace-expansion": "^2.0.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-iot": "3.920.0",
|
"@aws-sdk/client-iot": "3.936.0",
|
||||||
"@aws-sdk/credential-providers": "3.927.0",
|
"@aws-sdk/credential-providers": "3.940.0",
|
||||||
"amazon-cognito-identity-js": "6.3.15",
|
"amazon-cognito-identity-js": "6.3.16",
|
||||||
"aws-iot-device-sdk-v2": "1.23.1",
|
"aws-iot-device-sdk-v2": "1.23.1",
|
||||||
"dayjs": "1.11.19",
|
"dayjs": "1.11.19",
|
||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
@@ -68,8 +68,8 @@
|
|||||||
"eslint": "9.39.1",
|
"eslint": "9.39.1",
|
||||||
"eslint-plugin-jsdoc": "61.4.1",
|
"eslint-plugin-jsdoc": "61.4.1",
|
||||||
"eslint-plugin-tsdoc": "0.5.0",
|
"eslint-plugin-tsdoc": "0.5.0",
|
||||||
"pino": "9.13.0",
|
"pino": "10.1.0",
|
||||||
"pino-pretty": "13.0.0",
|
"pino-pretty": "13.1.2",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"prettier-plugin-jsdoc": "1.5.0",
|
"prettier-plugin-jsdoc": "1.5.0",
|
||||||
"prettier-plugin-organize-imports": "4.3.0",
|
"prettier-plugin-organize-imports": "4.3.0",
|
||||||
|
|||||||
@@ -719,6 +719,10 @@ export class MysaApiClient {
|
|||||||
});
|
});
|
||||||
const credentials = await credentialsProvider();
|
const credentials = await credentialsProvider();
|
||||||
|
|
||||||
|
if (!credentials.expiration) {
|
||||||
|
throw new Error('MQTT credentials do not have an expiration time.');
|
||||||
|
}
|
||||||
|
|
||||||
this._mqttCredentialsExpiration = dayjs(credentials.expiration);
|
this._mqttCredentialsExpiration = dayjs(credentials.expiration);
|
||||||
|
|
||||||
this._logger.debug(`MQTT credentials expiration: ${this._mqttCredentialsExpiration.format()}`);
|
this._logger.debug(`MQTT credentials expiration: ${this._mqttCredentialsExpiration.format()}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user