@ikonintegration/ikapi 2.6.0-beta1 → 2.6.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/Database/DDB/IKDB.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import AWS from "aws-sdk";
|
|
2
|
+
import sha1 from 'sha1';
|
|
2
3
|
//
|
|
3
4
|
import Utils from "./../API/IKUtils";
|
|
4
5
|
//reusable client
|
|
@@ -32,7 +33,7 @@ export default class IKPublisher {
|
|
|
32
33
|
}
|
|
33
34
|
/* Private */
|
|
34
35
|
_connect() {
|
|
35
|
-
if ((!PUBLISHER_CONN && !PUBLISHER_CONN_HASH) || PUBLISHER_CONN_HASH != sha1(this.
|
|
36
|
+
if ((!PUBLISHER_CONN && !PUBLISHER_CONN_HASH) || PUBLISHER_CONN_HASH != sha1(this.region)) {
|
|
36
37
|
//Configure when sending!
|
|
37
38
|
let configObj = { region: this.region };
|
|
38
39
|
if (Utils.isOffline()) configObj = { ...configObj, accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY };
|