@commercetools-frontend/application-config 22.24.0 → 22.25.0
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.
|
@@ -112,11 +112,19 @@ let MissingOrInvalidConfigError = /*#__PURE__*/function (_Error) {
|
|
|
112
112
|
return _createClass(MissingOrInvalidConfigError);
|
|
113
113
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
114
114
|
|
|
115
|
+
function doesFileExist(path) {
|
|
116
|
+
try {
|
|
117
|
+
fs__default["default"].accessSync(path);
|
|
118
|
+
return true;
|
|
119
|
+
} catch (error) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
115
123
|
// Helper function to find the package root path from the current location,
|
|
116
124
|
// for instance in respect to both source files and dist files.
|
|
117
125
|
const findPackageRootPath = dir => {
|
|
118
126
|
const packageJsonPath = path__default["default"].join(dir, 'package.json');
|
|
119
|
-
if (
|
|
127
|
+
if (doesFileExist(packageJsonPath)) {
|
|
120
128
|
return dir;
|
|
121
129
|
}
|
|
122
130
|
const parentDir = path__default["default"].join(dir, '..');
|
|
@@ -112,11 +112,19 @@ let MissingOrInvalidConfigError = /*#__PURE__*/function (_Error) {
|
|
|
112
112
|
return _createClass(MissingOrInvalidConfigError);
|
|
113
113
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
114
114
|
|
|
115
|
+
function doesFileExist(path) {
|
|
116
|
+
try {
|
|
117
|
+
fs__default["default"].accessSync(path);
|
|
118
|
+
return true;
|
|
119
|
+
} catch (error) {
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
115
123
|
// Helper function to find the package root path from the current location,
|
|
116
124
|
// for instance in respect to both source files and dist files.
|
|
117
125
|
const findPackageRootPath = dir => {
|
|
118
126
|
const packageJsonPath = path__default["default"].join(dir, 'package.json');
|
|
119
|
-
if (
|
|
127
|
+
if (doesFileExist(packageJsonPath)) {
|
|
120
128
|
return dir;
|
|
121
129
|
}
|
|
122
130
|
const parentDir = path__default["default"].join(dir, '..');
|
|
@@ -80,11 +80,19 @@ let MissingOrInvalidConfigError = /*#__PURE__*/function (_Error) {
|
|
|
80
80
|
return _createClass(MissingOrInvalidConfigError);
|
|
81
81
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
82
82
|
|
|
83
|
+
function doesFileExist(path) {
|
|
84
|
+
try {
|
|
85
|
+
fs.accessSync(path);
|
|
86
|
+
return true;
|
|
87
|
+
} catch (error) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
83
91
|
// Helper function to find the package root path from the current location,
|
|
84
92
|
// for instance in respect to both source files and dist files.
|
|
85
93
|
const findPackageRootPath = dir => {
|
|
86
94
|
const packageJsonPath = path.join(dir, 'package.json');
|
|
87
|
-
if (
|
|
95
|
+
if (doesFileExist(packageJsonPath)) {
|
|
88
96
|
return dir;
|
|
89
97
|
}
|
|
90
98
|
const parentDir = path.join(dir, '..');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/application-config",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.25.0",
|
|
4
4
|
"description": "Configuration utilities for building Custom Applications",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@babel/register": "^7.22.15",
|
|
46
46
|
"@babel/runtime": "^7.22.15",
|
|
47
47
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
48
|
-
"@commercetools-frontend/babel-preset-mc-app": "22.
|
|
49
|
-
"@commercetools-frontend/constants": "22.
|
|
48
|
+
"@commercetools-frontend/babel-preset-mc-app": "22.25.0",
|
|
49
|
+
"@commercetools-frontend/constants": "22.25.0",
|
|
50
50
|
"@types/dompurify": "^2.4.0",
|
|
51
51
|
"@types/lodash": "^4.14.198",
|
|
52
52
|
"@types/react": "^17.0.56",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@types/jsdom": "^21.1.2",
|
|
63
63
|
"json-schema-to-typescript": "13.1.2",
|
|
64
64
|
"shelljs": "0.8.5",
|
|
65
|
-
"@commercetools-frontend/assets": "22.
|
|
65
|
+
"@commercetools-frontend/assets": "22.25.0"
|
|
66
66
|
},
|
|
67
67
|
"engines": {
|
|
68
68
|
"node": "16.x || >=18.0.0"
|