@open-mercato/sync-akeneo 0.11.1-develop.8417.1.36c73b01e6 → 0.11.1-develop.8418.1.8ddb502575
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,13 +1,22 @@
|
|
|
1
|
+
import { defineProcessDiRegistrar, registerProcessActivation } from "@open-mercato/shared/lib/di/process-registrar";
|
|
1
2
|
import { asValue } from "awilix";
|
|
2
3
|
import { registerDataSyncAdapter } from "@open-mercato/core/modules/data_sync/lib/adapter-registry";
|
|
3
4
|
import { akeneoHealthCheck } from "./lib/health.js";
|
|
4
5
|
import { akeneoDataSyncAdapter } from "./lib/adapter.js";
|
|
5
|
-
function
|
|
6
|
-
|
|
6
|
+
function registerWithActivation(container, activate) {
|
|
7
|
+
activate(() => {
|
|
8
|
+
registerDataSyncAdapter(akeneoDataSyncAdapter);
|
|
9
|
+
});
|
|
7
10
|
container.register({
|
|
8
11
|
akeneoHealthCheck: asValue(akeneoHealthCheck)
|
|
9
12
|
});
|
|
10
13
|
}
|
|
14
|
+
function register(container) {
|
|
15
|
+
registerWithActivation(container, (activate) => activate());
|
|
16
|
+
}
|
|
17
|
+
defineProcessDiRegistrar((container) => {
|
|
18
|
+
registerWithActivation(container, (activate) => registerProcessActivation(container, activate));
|
|
19
|
+
}, { legacy: register });
|
|
11
20
|
export {
|
|
12
21
|
register
|
|
13
22
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/modules/sync_akeneo/di.ts"],
|
|
4
|
-
"sourcesContent": ["import { asValue } from 'awilix'\nimport type { AppContainer } from '@open-mercato/shared/lib/di/container'\nimport { registerDataSyncAdapter } from '@open-mercato/core/modules/data_sync/lib/adapter-registry'\nimport { akeneoHealthCheck } from './lib/health'\nimport { akeneoDataSyncAdapter } from './lib/adapter'\n\
|
|
5
|
-
"mappings": "AAAA,SAAS,eAAe;AAExB,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,6BAA6B;
|
|
4
|
+
"sourcesContent": ["import { defineProcessDiRegistrar, registerProcessActivation } from '@open-mercato/shared/lib/di/process-registrar'\nimport { asValue } from 'awilix'\nimport type { AppContainer } from '@open-mercato/shared/lib/di/container'\nimport { registerDataSyncAdapter } from '@open-mercato/core/modules/data_sync/lib/adapter-registry'\nimport { akeneoHealthCheck } from './lib/health'\nimport { akeneoDataSyncAdapter } from './lib/adapter'\n\nfunction registerWithActivation(container: AppContainer, activate: (callback: () => void) => void) {\n activate(() => {\n registerDataSyncAdapter(akeneoDataSyncAdapter)\n })\n\n container.register({\n akeneoHealthCheck: asValue(akeneoHealthCheck),\n })\n}\n\nexport function register(container: AppContainer): void {\n registerWithActivation(container, (activate) => activate())\n}\n\ndefineProcessDiRegistrar((container: AppContainer) => {\n registerWithActivation(container, (activate) => registerProcessActivation(container, activate))\n}, { legacy: register })\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,0BAA0B,iCAAiC;AACpE,SAAS,eAAe;AAExB,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAClC,SAAS,6BAA6B;AAEtC,SAAS,uBAAuB,WAAyB,UAA0C;AACjG,WAAS,MAAM;AACb,4BAAwB,qBAAqB;AAAA,EAC/C,CAAC;AAED,YAAU,SAAS;AAAA,IACjB,mBAAmB,QAAQ,iBAAiB;AAAA,EAC9C,CAAC;AACH;AAEO,SAAS,SAAS,WAA+B;AACtD,yBAAuB,WAAW,CAAC,aAAa,SAAS,CAAC;AAC5D;AAEA,yBAAyB,CAAC,cAA4B;AACpD,yBAAuB,WAAW,CAAC,aAAa,0BAA0B,WAAW,QAAQ,CAAC;AAChG,GAAG,EAAE,QAAQ,SAAS,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-mercato/sync-akeneo",
|
|
3
|
-
"version": "0.11.1-develop.
|
|
3
|
+
"version": "0.11.1-develop.8418.1.8ddb502575",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -53,21 +53,21 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@open-mercato/core": "0.11.1-develop.
|
|
57
|
-
"@open-mercato/ui": "0.11.1-develop.
|
|
56
|
+
"@open-mercato/core": "0.11.1-develop.8418.1.8ddb502575",
|
|
57
|
+
"@open-mercato/ui": "0.11.1-develop.8418.1.8ddb502575",
|
|
58
58
|
"node-html-markdown": "^2.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@mikro-orm/postgresql": "^7.0.14",
|
|
62
|
-
"@open-mercato/ai-assistant": "0.11.1-develop.
|
|
63
|
-
"@open-mercato/shared": "0.11.1-develop.
|
|
62
|
+
"@open-mercato/ai-assistant": "0.11.1-develop.8418.1.8ddb502575",
|
|
63
|
+
"@open-mercato/shared": "0.11.1-develop.8418.1.8ddb502575",
|
|
64
64
|
"react": "^19.0.0",
|
|
65
65
|
"react-dom": "^19.0.0",
|
|
66
66
|
"react-is": ">=18.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@open-mercato/ai-assistant": "0.11.1-develop.
|
|
70
|
-
"@open-mercato/shared": "0.11.1-develop.
|
|
69
|
+
"@open-mercato/ai-assistant": "0.11.1-develop.8418.1.8ddb502575",
|
|
70
|
+
"@open-mercato/shared": "0.11.1-develop.8418.1.8ddb502575",
|
|
71
71
|
"@types/jest": "^30.0.0",
|
|
72
72
|
"@types/react": "^19.2.18",
|
|
73
73
|
"@types/react-dom": "^19.2.5",
|
|
@@ -1,13 +1,24 @@
|
|
|
1
|
+
import { defineProcessDiRegistrar, registerProcessActivation } from '@open-mercato/shared/lib/di/process-registrar'
|
|
1
2
|
import { asValue } from 'awilix'
|
|
2
3
|
import type { AppContainer } from '@open-mercato/shared/lib/di/container'
|
|
3
4
|
import { registerDataSyncAdapter } from '@open-mercato/core/modules/data_sync/lib/adapter-registry'
|
|
4
5
|
import { akeneoHealthCheck } from './lib/health'
|
|
5
6
|
import { akeneoDataSyncAdapter } from './lib/adapter'
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
function registerWithActivation(container: AppContainer, activate: (callback: () => void) => void) {
|
|
9
|
+
activate(() => {
|
|
10
|
+
registerDataSyncAdapter(akeneoDataSyncAdapter)
|
|
11
|
+
})
|
|
9
12
|
|
|
10
13
|
container.register({
|
|
11
14
|
akeneoHealthCheck: asValue(akeneoHealthCheck),
|
|
12
15
|
})
|
|
13
16
|
}
|
|
17
|
+
|
|
18
|
+
export function register(container: AppContainer): void {
|
|
19
|
+
registerWithActivation(container, (activate) => activate())
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
defineProcessDiRegistrar((container: AppContainer) => {
|
|
23
|
+
registerWithActivation(container, (activate) => registerProcessActivation(container, activate))
|
|
24
|
+
}, { legacy: register })
|