innetjs 3.1.0 → 3.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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"3.1.0"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.1.1"};
5
5
  if (typeof process === 'undefined') {
6
6
  globalThis.process = { env: env };
7
7
  } else if (process.env) {
@@ -1,5 +1,5 @@
1
1
  ;(function () {
2
- const env = {"__INNETJS__PACKAGE_VERSION":"3.1.0"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.1.1"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
package/bin/innet CHANGED
@@ -389,8 +389,11 @@ class InnetJS {
389
389
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
390
390
  return;
391
391
  if (warning.plugin === 'typescript') {
392
- const { loc: { line, column, file }, frame, message } = warning;
393
- console.log(`ERROR in ${file}:${line}:${column}`);
392
+ const { loc, frame, message } = warning;
393
+ if (loc) {
394
+ const { line, column, file } = loc;
395
+ console.log(`ERROR in ${file}:${line}:${column}`);
396
+ }
394
397
  console.log(message);
395
398
  console.log(frame);
396
399
  return;
@@ -819,7 +822,7 @@ class InnetJS {
819
822
  }
820
823
 
821
824
  (function () {
822
- const env = {"__INNETJS__PACKAGE_VERSION":"3.1.0"};
825
+ const env = {"__INNETJS__PACKAGE_VERSION":"3.1.1"};
823
826
  if (typeof process === 'undefined') {
824
827
  globalThis.process = { env: env };
825
828
  } else if (process.env) {
package/index.js CHANGED
@@ -317,8 +317,11 @@ class InnetJS {
317
317
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
318
318
  return;
319
319
  if (warning.plugin === 'typescript') {
320
- const { loc: { line, column, file }, frame, message } = warning;
321
- console.log(`ERROR in ${file}:${line}:${column}`);
320
+ const { loc, frame, message } = warning;
321
+ if (loc) {
322
+ const { line, column, file } = loc;
323
+ console.log(`ERROR in ${file}:${line}:${column}`);
324
+ }
322
325
  console.log(message);
323
326
  console.log(frame);
324
327
  return;
package/index.mjs CHANGED
@@ -280,8 +280,11 @@ class InnetJS {
280
280
  if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
281
281
  return;
282
282
  if (warning.plugin === 'typescript') {
283
- const { loc: { line, column, file }, frame, message } = warning;
284
- console.log(`ERROR in ${file}:${line}:${column}`);
283
+ const { loc, frame, message } = warning;
284
+ if (loc) {
285
+ const { line, column, file } = loc;
286
+ console.log(`ERROR in ${file}:${line}:${column}`);
287
+ }
285
288
  console.log(message);
286
289
  console.log(frame);
287
290
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "3.1.0",
3
+ "version": "3.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>",