isdata-customer-sdk 0.1.37 → 0.1.39
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/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +15 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -22255,6 +22255,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22255
22255
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
22256
22256
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
22257
22257
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
22258
|
+
hasListener: function() { return /* reexport */ hasListener; },
|
|
22258
22259
|
initEventCenter: function() { return /* reexport */ initEventCenter; },
|
|
22259
22260
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
22260
22261
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
@@ -22340,6 +22341,20 @@ const fireEvent = (eventName, eventData) => {
|
|
|
22340
22341
|
eventBus.fireEvent(eventName, eventData);
|
|
22341
22342
|
}
|
|
22342
22343
|
};
|
|
22344
|
+
|
|
22345
|
+
/**
|
|
22346
|
+
* 检查是否有事件监听器
|
|
22347
|
+
* @param {*} eventName
|
|
22348
|
+
* @returns
|
|
22349
|
+
*/
|
|
22350
|
+
const hasListener = eventName => {
|
|
22351
|
+
let eventBus = window.rjEventCenter;
|
|
22352
|
+
if (eventBus && eventBus.hasListener) {
|
|
22353
|
+
return eventBus.hasListener(eventName);
|
|
22354
|
+
} else {
|
|
22355
|
+
return false;
|
|
22356
|
+
}
|
|
22357
|
+
};
|
|
22343
22358
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
22344
22359
|
var es_array_push = __webpack_require__(4114);
|
|
22345
22360
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.constructor.js
|