eventservice 1.4.2 → 1.4.3

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.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import EventService from "./src/EventService";
2
- export default EventService;
1
+ import EventService from "./src/EventService";
2
+ export default EventService;
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var EventService_1 = __importDefault(require("./src/EventService"));
7
- exports.default = EventService_1.default;
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var EventService_1 = __importDefault(require("./src/EventService"));
7
+ exports.default = EventService_1.default;
8
8
  //# sourceMappingURL=index.js.map
@@ -1,31 +1,31 @@
1
- export declare var environment: {
2
- isDev: boolean;
3
- isProd: boolean;
4
- };
5
- export default class EventService {
6
- /**
7
- * Subscribe to event
8
- * @param eventName The name of event
9
- * @param callback The function callback that will be invoked when event will be fired
10
- * @param key The optional param. The key of subscription. Used to identify the subscription for method `off`
11
- */
12
- static on<T>(eventName: string, callback: (eventData?: any, prevSubscriptionResult?: any) => Promise<T>, key?: string): void;
13
- /**
14
- * Unsubscribe from event
15
- * @param eventName The name of event
16
- * @param key The key that identify subscription. Use certain key that has been given in method `on`
17
- */
18
- static off(eventName: string, key?: string | null): void;
19
- /**
20
- * Fire event.
21
- * Also this method will wait for subscriber callback.
22
- * @param eventName The name of event
23
- * @param eventData The data that will be passed to subscriber's callback method
24
- */
25
- static fire<T>(eventName: string, eventData?: any): Promise<T>;
26
- static clear(): void;
27
- private static subscriptions;
28
- private static fireExecute;
29
- private static log;
30
- private constructor();
31
- }
1
+ export declare var environment: {
2
+ isDev: boolean;
3
+ isProd: boolean;
4
+ };
5
+ export default class EventService {
6
+ /**
7
+ * Subscribe to event
8
+ * @param eventName The name of event
9
+ * @param callback The function callback that will be invoked when event will be fired
10
+ * @param key The optional param. The key of subscription. Used to identify the subscription for method `off`
11
+ */
12
+ static on<T>(eventName: string, callback: (eventData?: any, prevSubscriptionResult?: any) => Promise<T>, key?: string): void;
13
+ /**
14
+ * Unsubscribe from event
15
+ * @param eventName The name of event
16
+ * @param key The key that identify subscription. Use certain key that has been given in method `on`
17
+ */
18
+ static off(eventName: string, key?: string | null): void;
19
+ /**
20
+ * Fire event.
21
+ * Also this method will wait for subscriber callback.
22
+ * @param eventName The name of event
23
+ * @param eventData The data that will be passed to subscriber's callback method
24
+ */
25
+ static fire<T>(eventName: string, eventData?: any): Promise<T>;
26
+ static clear(): void;
27
+ private static subscriptions;
28
+ private static fireExecute;
29
+ private static log;
30
+ private constructor();
31
+ }
@@ -1,122 +1,122 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var lodash_clone_1 = __importDefault(require("lodash.clone"));
43
- var lodash_pull_1 = __importDefault(require("lodash.pull"));
44
- var EventService = /** @class */ (function () {
45
- function EventService() {
46
- }
47
- /**
48
- * Subscribe to event
49
- * @param eventName The name of event
50
- * @param callback The function callback that will be invoked when event will be fired
51
- * @param key The optional param. The key of subscription. Used to identify the subscription for method `off`
52
- */
53
- EventService.on = function (eventName, callback, key) {
54
- if (key === void 0) { key = null; }
55
- if (!EventService.subscriptions[eventName])
56
- EventService.subscriptions[eventName] = [];
57
- EventService.subscriptions[eventName].push({
58
- key: key,
59
- action: callback
60
- });
61
- };
62
- /**
63
- * Unsubscribe from event
64
- * @param eventName The name of event
65
- * @param key The key that identify subscription. Use certain key that has been given in method `on`
66
- */
67
- EventService.off = function (eventName, key) {
68
- if (key === void 0) { key = null; }
69
- EventService.log("EventService.off(\"" + eventName + "\", \"" + key + "\")");
70
- if (!EventService.subscriptions[eventName])
71
- return;
72
- EventService.subscriptions[eventName] = EventService.subscriptions[eventName].filter(function (x) { return x.key !== key; });
73
- EventService.log("EventService.subscription[\"" + eventName + "\"]", EventService.subscriptions[eventName]);
74
- };
75
- /**
76
- * Fire event.
77
- * Also this method will wait for subscriber callback.
78
- * @param eventName The name of event
79
- * @param eventData The data that will be passed to subscriber's callback method
80
- */
81
- EventService.fire = function (eventName, eventData) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- return __generator(this, function (_a) {
84
- EventService.log("Event '" + eventName + "' has been executed: " + (EventService.subscriptions[eventName] ? EventService.subscriptions[eventName].length : 0), eventData);
85
- if (!EventService.subscriptions[eventName])
86
- return [2 /*return*/, undefined];
87
- return [2 /*return*/, EventService.fireExecute(lodash_clone_1.default(EventService.subscriptions[eventName]), eventData)];
88
- });
89
- });
90
- };
91
- EventService.clear = function () {
92
- EventService.subscriptions = {};
93
- };
94
- EventService.fireExecute = function (subscriptions, eventData) {
95
- return __awaiter(this, void 0, void 0, function () {
96
- var subscription, actionResult;
97
- return __generator(this, function (_a) {
98
- switch (_a.label) {
99
- case 0:
100
- subscription = subscriptions[0];
101
- if (!subscription)
102
- return [2 /*return*/, undefined];
103
- return [4 /*yield*/, subscription.action(eventData)];
104
- case 1:
105
- actionResult = _a.sent();
106
- if (subscriptions.length <= 1)
107
- return [2 /*return*/, actionResult];
108
- return [2 /*return*/, EventService.fireExecute(lodash_pull_1.default(subscriptions, subscription), actionResult === undefined ? eventData : actionResult)];
109
- }
110
- });
111
- });
112
- };
113
- EventService.log = function (message, data) {
114
- if (console && console.EventServiceDebug) {
115
- console.log(message, data);
116
- }
117
- };
118
- EventService.subscriptions = {};
119
- return EventService;
120
- }());
121
- exports.default = EventService;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ var lodash_clone_1 = __importDefault(require("lodash.clone"));
43
+ var lodash_pull_1 = __importDefault(require("lodash.pull"));
44
+ var EventService = /** @class */ (function () {
45
+ function EventService() {
46
+ }
47
+ /**
48
+ * Subscribe to event
49
+ * @param eventName The name of event
50
+ * @param callback The function callback that will be invoked when event will be fired
51
+ * @param key The optional param. The key of subscription. Used to identify the subscription for method `off`
52
+ */
53
+ EventService.on = function (eventName, callback, key) {
54
+ if (key === void 0) { key = null; }
55
+ if (!EventService.subscriptions[eventName])
56
+ EventService.subscriptions[eventName] = [];
57
+ EventService.subscriptions[eventName].push({
58
+ key: key,
59
+ action: callback
60
+ });
61
+ };
62
+ /**
63
+ * Unsubscribe from event
64
+ * @param eventName The name of event
65
+ * @param key The key that identify subscription. Use certain key that has been given in method `on`
66
+ */
67
+ EventService.off = function (eventName, key) {
68
+ if (key === void 0) { key = null; }
69
+ EventService.log("EventService.off(\"".concat(eventName, "\", \"").concat(key, "\")"));
70
+ if (!EventService.subscriptions[eventName])
71
+ return;
72
+ EventService.subscriptions[eventName] = EventService.subscriptions[eventName].filter(function (x) { return x.key !== key; });
73
+ EventService.log("EventService.subscription[\"".concat(eventName, "\"]"), EventService.subscriptions[eventName]);
74
+ };
75
+ /**
76
+ * Fire event.
77
+ * Also this method will wait for subscriber callback.
78
+ * @param eventName The name of event
79
+ * @param eventData The data that will be passed to subscriber's callback method
80
+ */
81
+ EventService.fire = function (eventName, eventData) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ return __generator(this, function (_a) {
84
+ EventService.log("Event '".concat(eventName, "' has been executed: ").concat(EventService.subscriptions[eventName] ? EventService.subscriptions[eventName].length : 0), eventData);
85
+ if (!EventService.subscriptions[eventName])
86
+ return [2 /*return*/, undefined];
87
+ return [2 /*return*/, EventService.fireExecute((0, lodash_clone_1.default)(EventService.subscriptions[eventName]), eventData)];
88
+ });
89
+ });
90
+ };
91
+ EventService.clear = function () {
92
+ EventService.subscriptions = {};
93
+ };
94
+ EventService.fireExecute = function (subscriptions, eventData) {
95
+ return __awaiter(this, void 0, void 0, function () {
96
+ var subscription, actionResult;
97
+ return __generator(this, function (_a) {
98
+ switch (_a.label) {
99
+ case 0:
100
+ subscription = subscriptions[0];
101
+ if (!subscription)
102
+ return [2 /*return*/, undefined];
103
+ return [4 /*yield*/, subscription.action(eventData)];
104
+ case 1:
105
+ actionResult = _a.sent();
106
+ if (subscriptions.length <= 1)
107
+ return [2 /*return*/, actionResult];
108
+ return [2 /*return*/, EventService.fireExecute((0, lodash_pull_1.default)(subscriptions, subscription), actionResult === undefined ? eventData : actionResult)];
109
+ }
110
+ });
111
+ });
112
+ };
113
+ EventService.log = function (message, data) {
114
+ if (console && console.EventServiceDebug) {
115
+ console.log(message, data);
116
+ }
117
+ };
118
+ EventService.subscriptions = {};
119
+ return EventService;
120
+ }());
121
+ exports.default = EventService;
122
122
  //# sourceMappingURL=EventService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventService.js","sourceRoot":"","sources":["../../src/EventService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAiC;AACjC,4DAA+B;AAO/B;IAoEI;IAAwB,CAAC;IAlEzB;;;;;OAKG;IACW,eAAE,GAAhB,UAAoB,SAAiB,EAAE,QAAuE,EAAE,GAAkB;QAAlB,oBAAA,EAAA,UAAkB;QAC9H,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC;YAAE,YAAY,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAA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AC;wBACtC,IAAI,CAAC,YAAY;4BAAE,sBAAO,SAAS,EAAC;wBAEZ,qBAAM,YAAY,CAAC,MAAM,CAAC,SAAS,CAAC,EAAA;;wBAAtD,YAAY,GAAM,SAAoC;wBAC5D,IAAI,aAAa,CAAC,MAAM,IAAI,CAAC;4BAAE,sBAAO,YAAY,EAAC;wBACnD,sBAAO,YAAY,CAAC,WAAW,CAAI,IAAA,qBAAI,EAAC,aAAa,EAAE,YAAY,CAAC,EAAE,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,EAAC;;;;KAChI;IAEc,gBAAG,GAAlB,UAAoC,OAAiB,EAAE,IAAY;QAC/D,IAAI,OAAO,IAAK,OAAe,CAAC,iBAAiB,EAAE;YAC/C,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SAC9B;IACL,CAAC;IAtBc,0BAAa,GAKxB,EAAE,CAAC;IAoBX,mBAAC;CAAA,AArED,IAqEC;kBArEoB,YAAY"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eventservice",
3
3
  "description": "The Promise-based simple event bus service",
4
- "version": "1.4.2",
4
+ "version": "1.4.3",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
@@ -10,7 +10,7 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "publishConfig": {
13
- "registry": "http://registry.npmjs.org"
13
+ "registry": "https://registry.npmjs.org"
14
14
  },
15
15
  "author": "Alexey Ripenko <alexey@ripenko.ru>",
16
16
  "license": "MIT",
@@ -23,12 +23,11 @@
23
23
  "lodash.pull": "4.1.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/lodash.clone": "4.5.6",
27
- "@types/lodash.pull": "4.1.6",
28
- "@types/jest": "24.0.25",
29
- "tslint": "5.20.1",
30
- "typescript": "3.7.4",
31
- "jest": "24.9.0",
32
- "ts-jest": "24.2.0"
26
+ "@types/lodash.clone": "4.5.7",
27
+ "@types/lodash.pull": "4.1.7",
28
+ "@types/jest": "29.5.1",
29
+ "typescript": "5.0.4",
30
+ "jest": "29.5.0",
31
+ "ts-jest": "29.1.0"
33
32
  }
34
33
  }
package/tslint.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "defaultSeverity": "error",
3
- "extends": [
4
- "tslint:recommended"
5
- ],
6
- "jsRules": {},
7
- "rules": {
8
- "curly": [true, "ignore-same-line"],
9
- "object-literal-shorthand": [true, "never"],
10
- "trailing-comma": false,
11
- "object-literal-sort-keys": false,
12
- "max-line-length": false,
13
- "no-console": false,
14
- "arrow-parens": false
15
- },
16
- "rulesDirectory": []
17
- }