@medusajs/event-bus-local 1.8.0-rc.3 → 1.8.0
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 +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/initialize/index.d.ts +2 -0
- package/dist/initialize/index.js +20 -0
- package/dist/initialize/index.js.map +1 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export declare const service: typeof LocalEventBus;
|
|
|
4
4
|
export declare const loaders: (({ logger }: import("@medusajs/modules-sdk").LoaderOptions<Record<string, unknown>>) => Promise<void>)[];
|
|
5
5
|
declare const moduleDefinition: ModuleExports;
|
|
6
6
|
export default moduleDefinition;
|
|
7
|
+
export * from "./initialize";
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -13,4 +27,5 @@ const moduleDefinition = {
|
|
|
13
27
|
loaders: exports.loaders,
|
|
14
28
|
};
|
|
15
29
|
exports.default = moduleDefinition;
|
|
30
|
+
__exportStar(require("./initialize"), exports);
|
|
16
31
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,wDAA8B;AAC9B,iFAAsD;AAEzC,QAAA,OAAO,GAAG,yBAAa,CAAA;AACvB,QAAA,OAAO,GAAG,CAAC,iBAAM,CAAC,CAAA;AAE/B,MAAM,gBAAgB,GAAkB;IACtC,OAAO,EAAP,eAAO;IACP,OAAO,EAAP,eAAO;CACR,CAAA;AAED,kBAAe,gBAAgB,CAAA;AAC/B,+CAA4B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.initialize = void 0;
|
|
13
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
14
|
+
const initialize = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
15
|
+
const serviceKey = modules_sdk_1.Modules.EVENT_BUS;
|
|
16
|
+
const loaded = yield modules_sdk_1.MedusaModule.bootstrap(serviceKey, "@medusajs/event-bus-local");
|
|
17
|
+
return loaded[serviceKey];
|
|
18
|
+
});
|
|
19
|
+
exports.initialize = initialize;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAA6D;AAGtD,MAAM,UAAU,GAAG,GAAoC,EAAE;IAC9D,MAAM,UAAU,GAAG,qBAAO,CAAC,SAAS,CAAA;IACpC,MAAM,MAAM,GAAG,MAAM,0BAAY,CAAC,SAAS,CACzC,UAAU,EACV,2BAA2B,CAC5B,CAAA;IAED,OAAO,MAAM,CAAC,UAAU,CAAqB,CAAA;AAC/C,CAAC,CAAA,CAAA;AARY,QAAA,UAAU,cAQtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/event-bus-local",
|
|
3
|
-
"version": "1.8.0
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Local Event Bus Module for Medusa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "Medusa",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@medusajs/types": "
|
|
20
|
+
"@medusajs/types": "1.8.0",
|
|
21
21
|
"cross-env": "^5.2.1",
|
|
22
22
|
"jest": "^25.5.2",
|
|
23
23
|
"ts-jest": "^25.5.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"test:unit": "jest --passWithNoTests"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@medusajs/modules-sdk": "
|
|
35
|
-
"@medusajs/utils": "
|
|
34
|
+
"@medusajs/modules-sdk": "1.8.0",
|
|
35
|
+
"@medusajs/utils": "1.8.0"
|
|
36
36
|
}
|
|
37
37
|
}
|