innetjs 2.1.0 → 2.1.1

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/bin/innet CHANGED
@@ -196,6 +196,7 @@ const readline = require('readline');
196
196
  const execAsync = util.promisify(exec);
197
197
  const copyFiles = util.promisify(fs__default["default"].copy);
198
198
  require('dotenv').config();
199
+ const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
199
200
  function normalizeEnv(value) {
200
201
  if (value) {
201
202
  return value.replace(/\${([a-zA-Z0-9]+)}/g, (placeholder, placeholderId) => { var _a; return (_a = process.env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
@@ -383,7 +384,7 @@ class InnetJS {
383
384
  compilerOptions: {
384
385
  sourceMap: true
385
386
  }
386
- }
387
+ },
387
388
  }),
388
389
  jsx__default["default"](),
389
390
  ],
@@ -447,7 +448,9 @@ class InnetJS {
447
448
  console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
448
449
  }
449
450
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
450
- const [, file, line, column] = e.error.message.match(/^[^(]+(src[^(]+)\((\d+),(\d+)\)/) || [];
451
+ const [, file, line, column] = e.error.message
452
+ .replace(REG_CLEAR_TEXT, '')
453
+ .match(/^(src[^:]+):(\d+):(\d+)/) || [];
451
454
  logger__default["default"].end('Bundling', e.error.message);
452
455
  if (file) {
453
456
  console.log(`ERROR in ${file}:${line}:${column}`);
@@ -619,7 +622,7 @@ class InnetJS {
619
622
  }
620
623
  }
621
624
 
622
- var version = "2.1.0";
625
+ var version = "2.1.1";
623
626
 
624
627
  require('dotenv').config();
625
628
  const innetJS = new InnetJS();
package/index.es6.js CHANGED
@@ -165,6 +165,7 @@ const readline = require('readline');
165
165
  const execAsync = promisify(exec);
166
166
  const copyFiles = promisify(fs.copy);
167
167
  require('dotenv').config();
168
+ const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
168
169
  function normalizeEnv(value) {
169
170
  if (value) {
170
171
  return value.replace(/\${([a-zA-Z0-9]+)}/g, (placeholder, placeholderId) => { var _a; return (_a = process.env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
@@ -352,7 +353,7 @@ class InnetJS {
352
353
  compilerOptions: {
353
354
  sourceMap: true
354
355
  }
355
- }
356
+ },
356
357
  }),
357
358
  jsx(),
358
359
  ],
@@ -416,7 +417,9 @@ class InnetJS {
416
417
  console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
417
418
  }
418
419
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
419
- const [, file, line, column] = e.error.message.match(/^[^(]+(src[^(]+)\((\d+),(\d+)\)/) || [];
420
+ const [, file, line, column] = e.error.message
421
+ .replace(REG_CLEAR_TEXT, '')
422
+ .match(/^(src[^:]+):(\d+):(\d+)/) || [];
420
423
  logger.end('Bundling', e.error.message);
421
424
  if (file) {
422
425
  console.log(`ERROR in ${file}:${line}:${column}`);
package/index.js CHANGED
@@ -194,6 +194,7 @@ const readline = require('readline');
194
194
  const execAsync = util.promisify(exec);
195
195
  const copyFiles = util.promisify(fs__default["default"].copy);
196
196
  require('dotenv').config();
197
+ const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
197
198
  function normalizeEnv(value) {
198
199
  if (value) {
199
200
  return value.replace(/\${([a-zA-Z0-9]+)}/g, (placeholder, placeholderId) => { var _a; return (_a = process.env[placeholderId]) !== null && _a !== void 0 ? _a : placeholder; });
@@ -381,7 +382,7 @@ class InnetJS {
381
382
  compilerOptions: {
382
383
  sourceMap: true
383
384
  }
384
- }
385
+ },
385
386
  }),
386
387
  jsx__default["default"](),
387
388
  ],
@@ -445,7 +446,9 @@ class InnetJS {
445
446
  console.log(`ERROR in ${file}:${line + 1}:${column + 1}`);
446
447
  }
447
448
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
448
- const [, file, line, column] = e.error.message.match(/^[^(]+(src[^(]+)\((\d+),(\d+)\)/) || [];
449
+ const [, file, line, column] = e.error.message
450
+ .replace(REG_CLEAR_TEXT, '')
451
+ .match(/^(src[^:]+):(\d+):(\d+)/) || [];
449
452
  logger__default["default"].end('Bundling', e.error.message);
450
453
  if (file) {
451
454
  console.log(`ERROR in ${file}:${line}:${column}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",
@@ -59,7 +59,7 @@
59
59
  "rollup-plugin-string": "^3.0.0",
60
60
  "rollup-plugin-styles": "^4.0.0",
61
61
  "rollup-plugin-terser": "^7.0.2",
62
- "rollup-plugin-typescript2": "^0.34.1",
62
+ "rollup-plugin-typescript2": "^0.33.0",
63
63
  "tmp": "^0.2.1",
64
64
  "typescript": "^4.8.4",
65
65
  "unzipper": "^0.10.11"