@plentymarkets/shop-core 1.13.5 → 1.13.7
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/module.json +1 -1
- package/dist/module.mjs +5 -1
- package/package.json +2 -2
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addImports } from '@nuxt/kit';
|
|
2
2
|
import { ofetch } from 'ofetch';
|
|
3
|
-
import { writeFile } from 'fs/promises';
|
|
3
|
+
import { mkdir, writeFile } from 'fs/promises';
|
|
4
4
|
import { join } from 'path';
|
|
5
|
+
import { existsSync } from 'fs';
|
|
5
6
|
|
|
6
7
|
const fetchAllTranslations = async (url, configId, securityToken) => {
|
|
7
8
|
return await ofetch(
|
|
@@ -35,6 +36,9 @@ const module$1 = defineNuxtModule({
|
|
|
35
36
|
};
|
|
36
37
|
const overridesDir = resolver.resolve("./runtime/lang/overrides");
|
|
37
38
|
const allLocalesForOverride = [];
|
|
39
|
+
if (!existsSync(overridesDir)) {
|
|
40
|
+
await mkdir(overridesDir, { recursive: true });
|
|
41
|
+
}
|
|
38
42
|
if (_options.apiEndpoint && _options.configId && _options.securityToken) {
|
|
39
43
|
try {
|
|
40
44
|
const { data } = await fetchAllTranslations(_options.apiEndpoint, _options.configId, _options.securityToken);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plentymarkets/shop-core",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.7",
|
|
4
4
|
"description": "Core module for PlentyONE Shop",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:types": "vue-tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@plentymarkets/shop-api": "^0.
|
|
48
|
+
"@plentymarkets/shop-api": "^0.145.0",
|
|
49
49
|
"@vue-storefront/sdk": "^3.4.1",
|
|
50
50
|
"cookie": "^1.0.2",
|
|
51
51
|
"js-sha256": "^0.11.0",
|