@medusajs/link-modules 0.2.12-snapshot-20240529103348 → 0.2.12-snapshot-20240529144621
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/initialize/index.js +3 -4
- package/dist/utils/index.js +2 -2
- package/package.json +4 -4
package/dist/initialize/index.js
CHANGED
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.revertMigrations = exports.runMigrations = exports.initialize = void 0;
|
27
27
|
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
28
|
-
const types_1 = require("@medusajs/types");
|
29
28
|
const utils_1 = require("@medusajs/utils");
|
30
29
|
const linkDefinitions = __importStar(require("../definitions"));
|
31
30
|
const migration_1 = require("../migration");
|
@@ -90,10 +89,10 @@ const initialize = async (options, modulesDefinition, injectedDependencies) => {
|
|
90
89
|
label: serviceKey,
|
91
90
|
dependencies: [modules_sdk_1.ModuleRegistrationName.EVENT_BUS],
|
92
91
|
defaultModuleDeclaration: {
|
93
|
-
scope:
|
92
|
+
scope: modules_sdk_1.MODULE_SCOPE.INTERNAL,
|
94
93
|
resources: injectedDependencies?.[utils_1.ContainerRegistrationKeys.PG_CONNECTION]
|
95
|
-
?
|
96
|
-
:
|
94
|
+
? modules_sdk_1.MODULE_RESOURCE_TYPE.SHARED
|
95
|
+
: modules_sdk_1.MODULE_RESOURCE_TYPE.ISOLATED,
|
97
96
|
},
|
98
97
|
};
|
99
98
|
const loaded = await modules_sdk_1.MedusaModule.bootstrapLink({
|
package/dist/utils/index.js
CHANGED
@@ -15,12 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
exports.doNotForceTransaction = exports.shouldForceTransaction = void 0;
|
18
|
-
const
|
18
|
+
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
19
19
|
__exportStar(require("./compose-link-name"), exports);
|
20
20
|
__exportStar(require("./generate-entity"), exports);
|
21
21
|
__exportStar(require("./generate-schema"), exports);
|
22
22
|
function shouldForceTransaction(target) {
|
23
|
-
return target.moduleDeclaration?.resources ===
|
23
|
+
return target.moduleDeclaration?.resources === modules_sdk_1.MODULE_RESOURCE_TYPE.ISOLATED;
|
24
24
|
}
|
25
25
|
exports.shouldForceTransaction = shouldForceTransaction;
|
26
26
|
function doNotForceTransaction() {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/link-modules",
|
3
|
-
"version": "0.2.12-snapshot-
|
3
|
+
"version": "0.2.12-snapshot-20240529144621",
|
4
4
|
"description": "Medusa Default Link Modules Package and Definitions",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -29,6 +29,7 @@
|
|
29
29
|
"test:integration": "jest --passWithNoTests"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
+
"@medusajs/types": "1.12.0-snapshot-20240529144621",
|
32
33
|
"cross-env": "^5.2.1",
|
33
34
|
"jest": "^29.6.3",
|
34
35
|
"pg-god": "^1.0.12",
|
@@ -39,9 +40,8 @@
|
|
39
40
|
"typescript": "^5.1.6"
|
40
41
|
},
|
41
42
|
"dependencies": {
|
42
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
43
|
-
"@medusajs/
|
44
|
-
"@medusajs/utils": "1.12.0-snapshot-20240529103348",
|
43
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240529144621",
|
44
|
+
"@medusajs/utils": "1.12.0-snapshot-20240529144621",
|
45
45
|
"@mikro-orm/core": "5.9.7",
|
46
46
|
"@mikro-orm/postgresql": "5.9.7",
|
47
47
|
"awilix": "^8.0.0"
|