@fails-components/webtransport 1.3.0 → 1.3.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/eslint.config.js CHANGED
@@ -1,6 +1,8 @@
1
1
  import js from '@eslint/js'
2
2
  import promise from 'eslint-plugin-promise'
3
3
  import babelParser from '@babel/eslint-parser'
4
+ import importplug from 'eslint-plugin-import'
5
+ // eslint-disable-next-line import/extensions
4
6
  import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
5
7
  import globals from 'globals'
6
8
 
@@ -9,7 +11,8 @@ export default [
9
11
  eslintPluginPrettierRecommended,
10
12
  {
11
13
  plugins: {
12
- promise
14
+ promise,
15
+ import: importplug
13
16
  },
14
17
  languageOptions: {
15
18
  globals: {
@@ -37,7 +40,15 @@ export default [
37
40
  'import/export': 0,
38
41
  'promise/catch-or-return': 'error',
39
42
  'no-useless-return': 1,
40
- camelcase: 1
43
+ camelcase: 1,
44
+ 'import/extensions': [
45
+ 'error',
46
+ 'always',
47
+ {
48
+ js: 'always',
49
+ jsx: 'always'
50
+ }
51
+ ]
41
52
  }
42
53
  },
43
54
  {
@@ -3,7 +3,7 @@ import { HttpWTSession } from './session.js'
3
3
  import { HttpClient } from './client.js'
4
4
  import { Http2WebTransportBrowser } from './http2/browser/browser.js'
5
5
  import { logger } from './utils.js'
6
- import { WebTransportError } from './error'
6
+ import { WebTransportError } from './error.js'
7
7
 
8
8
  const log = logger(`webtransport:browser()`)
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "A component to add webtransport support (server and client) to node.js using libquiche",
5
5
  "exports": {
6
6
  ".": {