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.
- package/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +6 -3
- package/index.js +5 -2
- package/index.mjs +5 -2
- package/package.json +1 -1
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
|
|
393
|
-
|
|
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.
|
|
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
|
|
321
|
-
|
|
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
|
|
284
|
-
|
|
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;
|