innetjs 2.3.1 → 2.3.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/bin/innet CHANGED
@@ -191,6 +191,7 @@ const execAsync = node_util.promisify(exec);
191
191
  const copyFiles = node_util.promisify(fs__default["default"].copy);
192
192
  updateDotenv();
193
193
  const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
194
+ const REG_RPT_ERROR_FILE = /(src[^:]+):(\d+):(\d+)/;
194
195
  const REG_TJSX = /\.[tj]sx?$/;
195
196
  const REG_EXT = /\.([^.]+)$/;
196
197
  const scriptExtensions = ['ts', 'js', 'tsx', 'jsx'];
@@ -438,7 +439,7 @@ class InnetJS {
438
439
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
439
440
  const [, file, line, column] = e.error.message
440
441
  .replace(REG_CLEAR_TEXT, '')
441
- .match(/^(src[^:]+):(\d+):(\d+)/) || [];
442
+ .match(REG_RPT_ERROR_FILE) || [];
442
443
  logger__default["default"].end('Bundling', e.error.message);
443
444
  if (file) {
444
445
  console.log(`ERROR in ${file}:${line}:${column}`);
@@ -768,7 +769,7 @@ class InnetJS {
768
769
  }
769
770
 
770
771
  (function () {
771
- const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
772
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.3.2"};
772
773
  if (typeof process === 'undefined') {
773
774
  globalThis.process = { env: env };
774
775
  } else if (process.env) {
package/index.js CHANGED
@@ -73,7 +73,7 @@ var typescript__default = /*#__PURE__*/_interopDefaultLegacy(typescript);
73
73
  var tmp__default = /*#__PURE__*/_interopDefaultLegacy(tmp);
74
74
 
75
75
  ;(function () {
76
- const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
76
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.3.2"};
77
77
  if (typeof process === 'undefined') {
78
78
  globalThis.process = { env: env };
79
79
  } else if (process.env) {
@@ -90,6 +90,7 @@ const execAsync = node_util.promisify(exec);
90
90
  const copyFiles = node_util.promisify(fs__default["default"].copy);
91
91
  updateDotenv.updateDotenv();
92
92
  const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
93
+ const REG_RPT_ERROR_FILE = /(src[^:]+):(\d+):(\d+)/;
93
94
  const REG_TJSX = /\.[tj]sx?$/;
94
95
  const REG_EXT = /\.([^.]+)$/;
95
96
  const scriptExtensions = ['ts', 'js', 'tsx', 'jsx'];
@@ -337,7 +338,7 @@ class InnetJS {
337
338
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
338
339
  const [, file, line, column] = e.error.message
339
340
  .replace(REG_CLEAR_TEXT, '')
340
- .match(/^(src[^:]+):(\d+):(\d+)/) || [];
341
+ .match(REG_RPT_ERROR_FILE) || [];
341
342
  logger__default["default"].end('Bundling', e.error.message);
342
343
  if (file) {
343
344
  console.log(`ERROR in ${file}:${line}:${column}`);
package/index.mjs CHANGED
@@ -38,7 +38,7 @@ import { reporter, convertIndexFile, getFile } from './helpers.mjs';
38
38
  import { updateDotenv } from './updateDotenv.mjs';
39
39
 
40
40
  ;(function () {
41
- const env = {"__INNETJS__PACKAGE_VERSION":"2.3.1"};
41
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.3.2"};
42
42
  if (typeof process === 'undefined') {
43
43
  globalThis.process = { env: env };
44
44
  } else if (process.env) {
@@ -55,6 +55,7 @@ const execAsync = promisify(exec);
55
55
  const copyFiles = promisify(fs.copy);
56
56
  updateDotenv();
57
57
  const REG_CLEAR_TEXT = /[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g;
58
+ const REG_RPT_ERROR_FILE = /(src[^:]+):(\d+):(\d+)/;
58
59
  const REG_TJSX = /\.[tj]sx?$/;
59
60
  const REG_EXT = /\.([^.]+)$/;
60
61
  const scriptExtensions = ['ts', 'js', 'tsx', 'jsx'];
@@ -302,7 +303,7 @@ class InnetJS {
302
303
  else if (e.error.code === 'PLUGIN_ERROR' && ['rpt2', 'commonjs'].includes(e.error.plugin)) {
303
304
  const [, file, line, column] = e.error.message
304
305
  .replace(REG_CLEAR_TEXT, '')
305
- .match(/^(src[^:]+):(\d+):(\d+)/) || [];
306
+ .match(REG_RPT_ERROR_FILE) || [];
306
307
  logger.end('Bundling', e.error.message);
307
308
  if (file) {
308
309
  console.log(`ERROR in ${file}:${line}:${column}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",