@kontur.candy/generator 5.5.0-external-protocol.1 → 5.5.0-external-protocol.2
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/index.js +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60223,6 +60223,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60223
60223
|
|
|
60224
60224
|
|
|
60225
60225
|
const getRngSchemaFilename = (formSchemasDirPath, gfv) => {
|
|
60226
|
+
if (!Boolean(Number(gfv))) {
|
|
60227
|
+
return ".rng.xml";
|
|
60228
|
+
}
|
|
60226
60229
|
const maxSubversion = (0,fs__WEBPACK_IMPORTED_MODULE_0__.readdirSync)(formSchemasDirPath).map(fileName => fileName.includes(".rng.xml") && !fileName.includes("схема.rng.xml")).filter(i => i === true).length - 1;
|
|
60227
60230
|
if (maxSubversion === undefined || !(0,fs__WEBPACK_IMPORTED_MODULE_0__.existsSync)(path__WEBPACK_IMPORTED_MODULE_1___default().join(formSchemasDirPath, `${gfv}.${maxSubversion}.rng.xml`))) {
|
|
60228
60231
|
return ".rng.xml";
|