@medusajs/medusa 2.8.2 → 2.8.3-snapshot-20250516134500
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.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrate-product-shipping-profile.d.ts","sourceRoot":"","sources":["../../src/migration-scripts/migrate-product-shipping-profile.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"migrate-product-shipping-profile.d.ts","sourceRoot":"","sources":["../../src/migration-scripts/migrate-product-shipping-profile.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAmEpD,wBAA8B,+BAA+B,CAAC,EAC5D,SAAS,GACV,EAAE,QAAQ,iBAoBV"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.default = assignProductsToShippingProfile;
|
4
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
5
|
+
const modules_sdk_1 = require("@medusajs/framework/modules-sdk");
|
5
6
|
const utils_1 = require("@medusajs/framework/utils");
|
6
7
|
const workflows_sdk_1 = require("@medusajs/framework/workflows-sdk");
|
7
8
|
const workflows_sdk_2 = require("@medusajs/framework/workflows-sdk");
|
@@ -40,6 +41,10 @@ const assignProductsToShippingProfileWorkflow = (0, workflows_sdk_2.createWorkfl
|
|
40
41
|
return new workflows_sdk_1.WorkflowResponse(void 0);
|
41
42
|
});
|
42
43
|
async function assignProductsToShippingProfile({ container, }) {
|
44
|
+
if (!modules_sdk_1.MedusaModule.isInstalled(utils_1.Modules.FULFILLMENT) ||
|
45
|
+
!modules_sdk_1.MedusaModule.isInstalled(utils_1.Modules.PRODUCT)) {
|
46
|
+
return;
|
47
|
+
}
|
43
48
|
const logger = container.resolve(utils_1.ContainerRegistrationKeys.LOGGER);
|
44
49
|
logger.info("Assigning products to shipping profile");
|
45
50
|
await assignProductsToShippingProfileWorkflow(container)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"migrate-product-shipping-profile.js","sourceRoot":"","sources":["../../src/migration-scripts/migrate-product-shipping-profile.ts"],"names":[],"mappings":";;
|
1
|
+
{"version":3,"file":"migrate-product-shipping-profile.js","sourceRoot":"","sources":["../../src/migration-scripts/migrate-product-shipping-profile.ts"],"names":[],"mappings":";;AAyEA,kDAsBC;AA/FD,qDAI6B;AAC7B,iEAA8D;AAE9D,qDAA8E;AAC9E,qEAI0C;AAC1C,qEAAkE;AAElE,MAAM,uCAAuC,GAAG,IAAA,8BAAc,EAC5D,qCAAqC,EACrC,GAAG,EAAE;IACH,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,IAAA,8BAAiB,EAAC;QACnD,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;KACvB,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,CAAC,CAAA;IAE5C,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,IAAA,8BAAiB,EAAC;QAC3C,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,CAAC,IAAI,CAAC;KACf,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAA;IAEnC,MAAM,iBAAiB,GAAG,IAAA,yBAAS,EACjC,EAAE,gBAAgB,EAAE,EACpB,CAAC,EAAE,gBAAgB,EAAE,EAAE,EAAE,CACvB,gBAAgB,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAC3B,EAAE,CAAC,IAAI,CAAC,iBAAiB,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAChD,EAAE,EAAE,IAAI,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,CAAA;IAED,MAAM,wBAAwB,GAAG,IAAA,oBAAI,EACnC,yBAAyB,EACzB;QACE,iBAAiB;KAClB,EACD,CAAC,EAAE,iBAAiB,EA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,SAAS,CAAC;SACrD,GAAG,EAAE;SACL,IAAI,CAAC,GAAG,EAAE;QACT,MAAM,CAAC,IAAI,CAAC,uCAAuC,CAAC,CAAA;IACtD,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE;QACX,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;AACN,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/medusa",
|
3
|
-
"version": "2.8.
|
3
|
+
"version": "2.8.3-snapshot-20250516134500",
|
4
4
|
"description": "Building blocks for digital commerce",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"exports": {
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
-
"@medusajs/framework": "2.8.
|
47
|
+
"@medusajs/framework": "2.8.3-snapshot-20250516134500",
|
48
48
|
"@opentelemetry/instrumentation-pg": "^0.52.0",
|
49
49
|
"@opentelemetry/resources": "^2.0.0",
|
50
50
|
"@opentelemetry/sdk-node": "^0.200.0",
|
@@ -65,49 +65,49 @@
|
|
65
65
|
"dependencies": {
|
66
66
|
"@inquirer/checkbox": "^2.3.11",
|
67
67
|
"@inquirer/input": "^2.2.9",
|
68
|
-
"@medusajs/admin-bundler": "2.8.
|
69
|
-
"@medusajs/api-key": "2.8.
|
70
|
-
"@medusajs/auth": "2.8.
|
71
|
-
"@medusajs/auth-emailpass": "2.8.
|
72
|
-
"@medusajs/auth-github": "2.8.
|
73
|
-
"@medusajs/auth-google": "2.8.
|
74
|
-
"@medusajs/cache-inmemory": "2.8.
|
75
|
-
"@medusajs/cache-redis": "2.8.
|
76
|
-
"@medusajs/cart": "2.8.
|
77
|
-
"@medusajs/core-flows": "2.8.
|
78
|
-
"@medusajs/currency": "2.8.
|
79
|
-
"@medusajs/customer": "2.8.
|
80
|
-
"@medusajs/event-bus-local": "2.8.
|
81
|
-
"@medusajs/event-bus-redis": "2.8.
|
82
|
-
"@medusajs/file": "2.8.
|
83
|
-
"@medusajs/file-local": "2.8.
|
84
|
-
"@medusajs/file-s3": "2.8.
|
85
|
-
"@medusajs/fulfillment": "2.8.
|
86
|
-
"@medusajs/fulfillment-manual": "2.8.
|
87
|
-
"@medusajs/index": "2.8.
|
88
|
-
"@medusajs/inventory": "2.8.
|
89
|
-
"@medusajs/link-modules": "2.8.
|
90
|
-
"@medusajs/locking": "2.8.
|
91
|
-
"@medusajs/locking-postgres": "2.8.
|
92
|
-
"@medusajs/locking-redis": "2.8.
|
93
|
-
"@medusajs/notification": "2.8.
|
94
|
-
"@medusajs/notification-local": "2.8.
|
95
|
-
"@medusajs/notification-sendgrid": "2.8.
|
96
|
-
"@medusajs/order": "2.8.
|
97
|
-
"@medusajs/payment": "2.8.
|
98
|
-
"@medusajs/payment-stripe": "2.8.
|
99
|
-
"@medusajs/pricing": "2.8.
|
100
|
-
"@medusajs/product": "2.8.
|
101
|
-
"@medusajs/promotion": "2.8.
|
102
|
-
"@medusajs/region": "2.8.
|
103
|
-
"@medusajs/sales-channel": "2.8.
|
104
|
-
"@medusajs/stock-location": "2.8.
|
105
|
-
"@medusajs/store": "2.8.
|
106
|
-
"@medusajs/tax": "2.8.
|
107
|
-
"@medusajs/telemetry": "2.8.
|
108
|
-
"@medusajs/user": "2.8.
|
109
|
-
"@medusajs/workflow-engine-inmemory": "2.8.
|
110
|
-
"@medusajs/workflow-engine-redis": "2.8.
|
68
|
+
"@medusajs/admin-bundler": "2.8.3-snapshot-20250516134500",
|
69
|
+
"@medusajs/api-key": "2.8.3-snapshot-20250516134500",
|
70
|
+
"@medusajs/auth": "2.8.3-snapshot-20250516134500",
|
71
|
+
"@medusajs/auth-emailpass": "2.8.3-snapshot-20250516134500",
|
72
|
+
"@medusajs/auth-github": "2.8.3-snapshot-20250516134500",
|
73
|
+
"@medusajs/auth-google": "2.8.3-snapshot-20250516134500",
|
74
|
+
"@medusajs/cache-inmemory": "2.8.3-snapshot-20250516134500",
|
75
|
+
"@medusajs/cache-redis": "2.8.3-snapshot-20250516134500",
|
76
|
+
"@medusajs/cart": "2.8.3-snapshot-20250516134500",
|
77
|
+
"@medusajs/core-flows": "2.8.3-snapshot-20250516134500",
|
78
|
+
"@medusajs/currency": "2.8.3-snapshot-20250516134500",
|
79
|
+
"@medusajs/customer": "2.8.3-snapshot-20250516134500",
|
80
|
+
"@medusajs/event-bus-local": "2.8.3-snapshot-20250516134500",
|
81
|
+
"@medusajs/event-bus-redis": "2.8.3-snapshot-20250516134500",
|
82
|
+
"@medusajs/file": "2.8.3-snapshot-20250516134500",
|
83
|
+
"@medusajs/file-local": "2.8.3-snapshot-20250516134500",
|
84
|
+
"@medusajs/file-s3": "2.8.3-snapshot-20250516134500",
|
85
|
+
"@medusajs/fulfillment": "2.8.3-snapshot-20250516134500",
|
86
|
+
"@medusajs/fulfillment-manual": "2.8.3-snapshot-20250516134500",
|
87
|
+
"@medusajs/index": "2.8.3-snapshot-20250516134500",
|
88
|
+
"@medusajs/inventory": "2.8.3-snapshot-20250516134500",
|
89
|
+
"@medusajs/link-modules": "2.8.3-snapshot-20250516134500",
|
90
|
+
"@medusajs/locking": "2.8.3-snapshot-20250516134500",
|
91
|
+
"@medusajs/locking-postgres": "2.8.3-snapshot-20250516134500",
|
92
|
+
"@medusajs/locking-redis": "2.8.3-snapshot-20250516134500",
|
93
|
+
"@medusajs/notification": "2.8.3-snapshot-20250516134500",
|
94
|
+
"@medusajs/notification-local": "2.8.3-snapshot-20250516134500",
|
95
|
+
"@medusajs/notification-sendgrid": "2.8.3-snapshot-20250516134500",
|
96
|
+
"@medusajs/order": "2.8.3-snapshot-20250516134500",
|
97
|
+
"@medusajs/payment": "2.8.3-snapshot-20250516134500",
|
98
|
+
"@medusajs/payment-stripe": "2.8.3-snapshot-20250516134500",
|
99
|
+
"@medusajs/pricing": "2.8.3-snapshot-20250516134500",
|
100
|
+
"@medusajs/product": "2.8.3-snapshot-20250516134500",
|
101
|
+
"@medusajs/promotion": "2.8.3-snapshot-20250516134500",
|
102
|
+
"@medusajs/region": "2.8.3-snapshot-20250516134500",
|
103
|
+
"@medusajs/sales-channel": "2.8.3-snapshot-20250516134500",
|
104
|
+
"@medusajs/stock-location": "2.8.3-snapshot-20250516134500",
|
105
|
+
"@medusajs/store": "2.8.3-snapshot-20250516134500",
|
106
|
+
"@medusajs/tax": "2.8.3-snapshot-20250516134500",
|
107
|
+
"@medusajs/telemetry": "2.8.3-snapshot-20250516134500",
|
108
|
+
"@medusajs/user": "2.8.3-snapshot-20250516134500",
|
109
|
+
"@medusajs/workflow-engine-inmemory": "2.8.3-snapshot-20250516134500",
|
110
|
+
"@medusajs/workflow-engine-redis": "2.8.3-snapshot-20250516134500",
|
111
111
|
"@opentelemetry/api": "^1.9.0",
|
112
112
|
"boxen": "^5.0.1",
|
113
113
|
"chalk": "^4.0.0",
|
@@ -126,7 +126,7 @@
|
|
126
126
|
"zod": "3.22.4"
|
127
127
|
},
|
128
128
|
"peerDependencies": {
|
129
|
-
"@medusajs/framework": "2.8.
|
129
|
+
"@medusajs/framework": "2.8.3-snapshot-20250516134500",
|
130
130
|
"@mikro-orm/core": "6.4.3",
|
131
131
|
"@mikro-orm/knex": "6.4.3",
|
132
132
|
"@mikro-orm/migrations": "6.4.3",
|