@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.
Files changed (2) hide show
  1. package/dist/index.js +3 -0
  2. 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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kontur.candy/generator",
3
- "version": "5.5.0-external-protocol.1",
3
+ "version": "5.5.0-external-protocol.2",
4
4
  "description": "Candy forms generator",
5
5
  "author": "SKBKontur Candy Team",
6
6
  "private": false,