innetjs 2.4.2 → 2.4.3
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 +13 -3
- package/index.js +12 -2
- package/index.mjs +12 -2
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -297,6 +297,11 @@ class InnetJS {
|
|
|
297
297
|
}),
|
|
298
298
|
jsx__default["default"](),
|
|
299
299
|
],
|
|
300
|
+
onwarn(warning, warn) {
|
|
301
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
302
|
+
return;
|
|
303
|
+
warn(warning);
|
|
304
|
+
},
|
|
300
305
|
};
|
|
301
306
|
this.withLint(options, true);
|
|
302
307
|
const outputOptions = {
|
|
@@ -348,7 +353,7 @@ class InnetJS {
|
|
|
348
353
|
yield copyFiles(this.publicFolder, this.buildFolder);
|
|
349
354
|
const data = yield fs.promises.readFile(this.publicIndexFile);
|
|
350
355
|
const pkg = yield this.getPackage();
|
|
351
|
-
yield fs.promises.writeFile(this.buildIndexFile, yield convertIndexFile(data, pkg.version, this.baseUrl,
|
|
356
|
+
yield fs.promises.writeFile(this.buildIndexFile, yield convertIndexFile(data, pkg.version, this.baseUrl, path__default["default"].parse(input[0]).name));
|
|
352
357
|
}
|
|
353
358
|
}));
|
|
354
359
|
if (pkg) {
|
|
@@ -395,6 +400,11 @@ class InnetJS {
|
|
|
395
400
|
}),
|
|
396
401
|
jsx__default["default"](),
|
|
397
402
|
],
|
|
403
|
+
onwarn(warning, warn) {
|
|
404
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
405
|
+
return;
|
|
406
|
+
warn(warning);
|
|
407
|
+
},
|
|
398
408
|
};
|
|
399
409
|
this.withLint(options);
|
|
400
410
|
if (node) {
|
|
@@ -436,7 +446,7 @@ class InnetJS {
|
|
|
436
446
|
}), string({
|
|
437
447
|
include: '**/*.*',
|
|
438
448
|
exclude: stringExcludeDom,
|
|
439
|
-
}), this.createClient(key, cert, pkg,
|
|
449
|
+
}), this.createClient(key, cert, pkg, path__default["default"].parse(input[0]).name), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
|
|
440
450
|
}
|
|
441
451
|
this.withEnv(options, true);
|
|
442
452
|
const watcher = rollup__default["default"].watch(options);
|
|
@@ -791,7 +801,7 @@ class InnetJS {
|
|
|
791
801
|
}
|
|
792
802
|
|
|
793
803
|
(function () {
|
|
794
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.
|
|
804
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.4.3"};
|
|
795
805
|
if (typeof process === 'undefined') {
|
|
796
806
|
globalThis.process = { env: env };
|
|
797
807
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -187,6 +187,11 @@ class InnetJS {
|
|
|
187
187
|
}),
|
|
188
188
|
jsx__default["default"](),
|
|
189
189
|
],
|
|
190
|
+
onwarn(warning, warn) {
|
|
191
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
192
|
+
return;
|
|
193
|
+
warn(warning);
|
|
194
|
+
},
|
|
190
195
|
};
|
|
191
196
|
this.withLint(options, true);
|
|
192
197
|
const outputOptions = {
|
|
@@ -238,7 +243,7 @@ class InnetJS {
|
|
|
238
243
|
yield copyFiles(this.publicFolder, this.buildFolder);
|
|
239
244
|
const data = yield fs.promises.readFile(this.publicIndexFile);
|
|
240
245
|
const pkg = yield this.getPackage();
|
|
241
|
-
yield fs.promises.writeFile(this.buildIndexFile, yield helpers.convertIndexFile(data, pkg.version, this.baseUrl,
|
|
246
|
+
yield fs.promises.writeFile(this.buildIndexFile, yield helpers.convertIndexFile(data, pkg.version, this.baseUrl, path__default["default"].parse(input[0]).name));
|
|
242
247
|
}
|
|
243
248
|
}));
|
|
244
249
|
if (pkg) {
|
|
@@ -285,6 +290,11 @@ class InnetJS {
|
|
|
285
290
|
}),
|
|
286
291
|
jsx__default["default"](),
|
|
287
292
|
],
|
|
293
|
+
onwarn(warning, warn) {
|
|
294
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
295
|
+
return;
|
|
296
|
+
warn(warning);
|
|
297
|
+
},
|
|
288
298
|
};
|
|
289
299
|
this.withLint(options);
|
|
290
300
|
if (node) {
|
|
@@ -326,7 +336,7 @@ class InnetJS {
|
|
|
326
336
|
}), string({
|
|
327
337
|
include: '**/*.*',
|
|
328
338
|
exclude: constants.stringExcludeDom,
|
|
329
|
-
}), this.createClient(key, cert, pkg,
|
|
339
|
+
}), this.createClient(key, cert, pkg, path__default["default"].parse(input[0]).name), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
|
|
330
340
|
}
|
|
331
341
|
this.withEnv(options, true);
|
|
332
342
|
const watcher = rollup__default["default"].watch(options);
|
package/index.mjs
CHANGED
|
@@ -152,6 +152,11 @@ class InnetJS {
|
|
|
152
152
|
}),
|
|
153
153
|
jsx(),
|
|
154
154
|
],
|
|
155
|
+
onwarn(warning, warn) {
|
|
156
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
157
|
+
return;
|
|
158
|
+
warn(warning);
|
|
159
|
+
},
|
|
155
160
|
};
|
|
156
161
|
this.withLint(options, true);
|
|
157
162
|
const outputOptions = {
|
|
@@ -203,7 +208,7 @@ class InnetJS {
|
|
|
203
208
|
yield copyFiles(this.publicFolder, this.buildFolder);
|
|
204
209
|
const data = yield promises.readFile(this.publicIndexFile);
|
|
205
210
|
const pkg = yield this.getPackage();
|
|
206
|
-
yield promises.writeFile(this.buildIndexFile, yield convertIndexFile(data, pkg.version, this.baseUrl,
|
|
211
|
+
yield promises.writeFile(this.buildIndexFile, yield convertIndexFile(data, pkg.version, this.baseUrl, path.parse(input[0]).name));
|
|
207
212
|
}
|
|
208
213
|
}));
|
|
209
214
|
if (pkg) {
|
|
@@ -250,6 +255,11 @@ class InnetJS {
|
|
|
250
255
|
}),
|
|
251
256
|
jsx(),
|
|
252
257
|
],
|
|
258
|
+
onwarn(warning, warn) {
|
|
259
|
+
if (warning.code === 'THIS_IS_UNDEFINED' || warning.code === 'SOURCEMAP_ERROR')
|
|
260
|
+
return;
|
|
261
|
+
warn(warning);
|
|
262
|
+
},
|
|
253
263
|
};
|
|
254
264
|
this.withLint(options);
|
|
255
265
|
if (node) {
|
|
@@ -291,7 +301,7 @@ class InnetJS {
|
|
|
291
301
|
}), string({
|
|
292
302
|
include: '**/*.*',
|
|
293
303
|
exclude: stringExcludeDom,
|
|
294
|
-
}), this.createClient(key, cert, pkg,
|
|
304
|
+
}), this.createClient(key, cert, pkg, path.parse(input[0]).name), livereload(Object.assign({ exts: ['html', 'css', 'js', 'png', 'svg', 'webp', 'gif', 'jpg', 'json'], watch: [this.devBuildFolder, this.publicFolder], verbose: false }, (key && cert ? { https: { key, cert } } : {}))));
|
|
295
305
|
}
|
|
296
306
|
this.withEnv(options, true);
|
|
297
307
|
const watcher = rollup.watch(options);
|