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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  ;(function () {
4
- const env = {"__INNETJS__PACKAGE_VERSION":"2.4.2"};
4
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.4.3"};
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":"2.4.2"};
2
+ const env = {"__INNETJS__PACKAGE_VERSION":"2.4.3"};
3
3
  if (typeof process === 'undefined') {
4
4
  globalThis.process = { env: env };
5
5
  } else if (process.env) {
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, index));
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, index), 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 } } : {}))));
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.2"};
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, index));
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, index), 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 } } : {}))));
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, index));
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, index), 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 } } : {}))));
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "innetjs",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "CLI for innet boilerplate",
5
5
  "homepage": "https://github.com/d8corp/innetjs",
6
6
  "author": "Mikhail Lysikov <d8corp@mail.ru>",