@izara_project/izara-core-library-sns 1.0.2 → 1.0.4
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 +2 -2
- package/src/SnsSharedLib.js +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@izara_project/izara-core-library-sns",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Connecting with AWS SNS Resource",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"testEnvironment": "node"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@izara_project/izara-core-library-service-schemas": "^1.0.
|
|
23
|
+
"@izara_project/izara-core-library-service-schemas": "^1.0.49"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/src/SnsSharedLib.js
CHANGED
|
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
17
17
|
|
|
18
18
|
'use strict';
|
|
19
19
|
|
|
20
|
-
const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
|
|
20
|
+
// const { getServiceNameWithCache } = require('@izara_project/izara-core-library-service-schemas/src/ServiceConfig')
|
|
21
21
|
/**
|
|
22
22
|
* Generate sns topic name
|
|
23
23
|
* @param {Object} _izContext
|
|
@@ -31,9 +31,9 @@ module.exports.snsTopicName = async (_izContext, topicName, serviceTag = null) =
|
|
|
31
31
|
// return serviceName + process.env.iz_stage + topicName
|
|
32
32
|
|
|
33
33
|
if (!serviceTag) { // for owner service
|
|
34
|
-
return process.env.
|
|
34
|
+
return process.env.iz_serviceTag + process.env.iz_stage + topicName;
|
|
35
35
|
} else { // create table name for external service
|
|
36
|
-
return
|
|
36
|
+
return serviceTag + process.env.iz_stage + topicName;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|