comprodls-sdk 2.70.1 → 2.71.0-development
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/dist/comprodls-sdk.js +25 -2
- package/dist/comprodls-sdk.min.js +15 -15
- package/lib/comprodls.js +2 -0
- package/lib/config/index.js +20 -0
- package/lib/services/pushX/index.js +3 -2
- package/package.json +1 -1
package/dist/comprodls-sdk.js
CHANGED
|
@@ -84,6 +84,8 @@ function comproDLS(environment, realm, options) {
|
|
|
84
84
|
try {
|
|
85
85
|
config.DEFAULT_HOSTS = config.REALM_HOSTS[realm.toUpperCase()][environment.toUpperCase()];
|
|
86
86
|
if(!config.DEFAULT_HOSTS){ throw 'Invalid Environment'; }
|
|
87
|
+
|
|
88
|
+
config.PUBNUB_ORIGINS = config.PUBNUB_ORIGINS[realm.toUpperCase()][environment.toUpperCase()];
|
|
87
89
|
}
|
|
88
90
|
catch (e){
|
|
89
91
|
var realmObj = config.REALM_HOSTS[realm.toUpperCase()];
|
|
@@ -532,6 +534,26 @@ exports.RULES_API_URLS = {
|
|
|
532
534
|
updateRuleDisplay: '/org/{orgId}/context/{context}/rule_type/{ruleType}/rules/{ruleId}/update-rule-display',
|
|
533
535
|
getUserRule: '/org/{orgId}/context/{context}/rule_type/{ruleType}/users/{userId}/rules'
|
|
534
536
|
};
|
|
537
|
+
|
|
538
|
+
exports.PUBNUB_ORIGINS = {
|
|
539
|
+
ASGARD: {
|
|
540
|
+
THOR: {
|
|
541
|
+
CUSTOM: 'pushdlsthor.pubnubapi.com'
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
GLOBAL: {
|
|
545
|
+
PRODUCTION: {
|
|
546
|
+
},
|
|
547
|
+
PROD1: {}
|
|
548
|
+
},
|
|
549
|
+
CUP: {
|
|
550
|
+
QA: {},
|
|
551
|
+
REL: {},
|
|
552
|
+
HFX: {},
|
|
553
|
+
ALPHA: {},
|
|
554
|
+
PROD1: {}
|
|
555
|
+
}
|
|
556
|
+
};
|
|
535
557
|
|
|
536
558
|
},{}],3:[function(require,module,exports){
|
|
537
559
|
/*************************************************************************
|
|
@@ -12831,7 +12853,7 @@ function pushX() {
|
|
|
12831
12853
|
/*********************************
|
|
12832
12854
|
* Public Function definitions
|
|
12833
12855
|
**********************************/
|
|
12834
|
-
|
|
12856
|
+
|
|
12835
12857
|
function _connect(pubnubCW, options) {
|
|
12836
12858
|
var bpubnubV7 = true; // If pubnub v7 or higher in package.json, set it true
|
|
12837
12859
|
if (bpubnubV7 && !options.userid) {
|
|
@@ -12848,7 +12870,8 @@ function _connect(pubnubCW, options) {
|
|
|
12848
12870
|
'publishKey': options.publishKey,
|
|
12849
12871
|
'subscribeKey': options.subscribeKey,
|
|
12850
12872
|
'authKey': options.authKey,
|
|
12851
|
-
'ssl': true
|
|
12873
|
+
'ssl': true,
|
|
12874
|
+
'origin': this.config.PUBNUB_ORIGINS.CUSTOM
|
|
12852
12875
|
}
|
|
12853
12876
|
});
|
|
12854
12877
|
}
|