@medusajs/link-modules 0.2.0 → 0.2.1-next-20231018164223
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.
|
@@ -22,6 +22,8 @@ exports.ProductVariantPriceSet = {
|
|
|
22
22
|
relationships: [
|
|
23
23
|
{
|
|
24
24
|
serviceName: modules_sdk_1.Modules.PRODUCT,
|
|
25
|
+
// TODO: Remove this when product module is the default product service
|
|
26
|
+
isInternalService: true,
|
|
25
27
|
primaryKey: "id",
|
|
26
28
|
foreignKey: "variant_id",
|
|
27
29
|
alias: "variant",
|
package/dist/initialize/index.js
CHANGED
|
@@ -107,10 +107,7 @@ async function runMigrations({ options, logger, }, modulesDefinition) {
|
|
|
107
107
|
const [primary, foreign] = definition.relationships ?? [];
|
|
108
108
|
const serviceKey = (0, utils_1.lowerCaseFirst)(definition.serviceName ??
|
|
109
109
|
(0, utils_2.composeLinkName)(primary.serviceName, primary.foreignKey, foreign.serviceName, foreign.foreignKey));
|
|
110
|
-
if (
|
|
111
|
-
continue;
|
|
112
|
-
}
|
|
113
|
-
else if (allLinks.has(serviceKey)) {
|
|
110
|
+
if (allLinks.has(serviceKey)) {
|
|
114
111
|
throw new Error(`Link module ${serviceKey} already exists.`);
|
|
115
112
|
}
|
|
116
113
|
allLinks.add(serviceKey);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/link-modules",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-next-20231018164223",
|
|
4
4
|
"description": "Medusa Default Link Modules Package and Definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"typescript": "^5.1.6"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@medusajs/modules-sdk": "
|
|
40
|
-
"@medusajs/types": "
|
|
41
|
-
"@medusajs/utils": "
|
|
39
|
+
"@medusajs/modules-sdk": "1.12.1-next-20231018164223",
|
|
40
|
+
"@medusajs/types": "1.11.4-next-20231018164223",
|
|
41
|
+
"@medusajs/utils": "1.10.4-next-20231018164223",
|
|
42
42
|
"@mikro-orm/core": "5.7.12",
|
|
43
43
|
"@mikro-orm/postgresql": "5.7.12",
|
|
44
44
|
"awilix": "^8.0.0"
|