@fails-components/webtransport 1.0.9 → 1.0.10

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.
@@ -0,0 +1,60 @@
1
+ export { WebTransport } from "./webtransport.node.js";
2
+ /**
3
+ * // Spec
4
+ */
5
+ export type WebTransportDatagramStats = import('./dom').WebTransportDatagramStats;
6
+ /**
7
+ * // Spec
8
+ */
9
+ export type WebTransportStats = import('./dom').WebTransportStats;
10
+ /**
11
+ * // Spec
12
+ */
13
+ export type WebTransportCloseInfo = import('./dom').WebTransportCloseInfo;
14
+ /**
15
+ * // Spec
16
+ */
17
+ export type WebTransportDatagramDuplexStream = import('./dom').WebTransportDatagramDuplexStream;
18
+ /**
19
+ * // Spec
20
+ */
21
+ export type WebTransportBidirectionalStream = import('./dom').WebTransportBidirectionalStream;
22
+ /**
23
+ * // Spec
24
+ */
25
+ export type WebTransportSendStreamStats = import('./dom').WebTransportSendStreamStats;
26
+ /**
27
+ * // Spec
28
+ */
29
+ export type WebTransportSendStream = import('./dom').WebTransportSendStream;
30
+ /**
31
+ * // Spec
32
+ */
33
+ export type WebTransportReceiveStreamStats = import('./dom').WebTransportReceiveStreamStats;
34
+ /**
35
+ * // Spec
36
+ */
37
+ export type WebTransportReceiveStream = import('./dom').WebTransportReceiveStream;
38
+ /**
39
+ * // Spec
40
+ */
41
+ export type WebTransportHash = import('./dom').WebTransportHash;
42
+ /**
43
+ * // Spec
44
+ */
45
+ export type WebTransportOptions = import('./dom').WebTransportOptions;
46
+ /**
47
+ * Public API
48
+ */
49
+ export type WebTransportReliabilityMode = import('./dom').WebTransportReliabilityMode;
50
+ /**
51
+ * // Spec
52
+ */
53
+ export type WebTransportSession = import('./types').WebTransportSessionImpl;
54
+ /**
55
+ * // Spec
56
+ */
57
+ export type HttpServerInit = import('./types').HttpServerInit;
58
+ export { HttpServer, Http3Server, Http2Server } from "./server.js";
59
+ export { WebTransportPonyfill, WebTransportPolyfill } from "./webtransport.browser.js";
60
+ //# sourceMappingURL=index.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.types.d.ts","sourceRoot":"","sources":["../../lib/index.types.js"],"names":[],"mappings":";;;;wCAOa,OAAO,OAAO,EAAE,yBAAyB;;;;gCACzC,OAAO,OAAO,EAAE,iBAAiB;;;;oCACjC,OAAO,OAAO,EAAE,qBAAqB;;;;+CACrC,OAAO,OAAO,EAAE,gCAAgC;;;;8CAChD,OAAO,OAAO,EAAE,+BAA+B;;;;0CAC/C,OAAO,OAAO,EAAE,2BAA2B;;;;qCAC3C,OAAO,OAAO,EAAE,sBAAsB;;;;6CACtC,OAAO,OAAO,EAAE,8BAA8B;;;;wCAC9C,OAAO,OAAO,EAAE,yBAAyB;;;;+BACzC,OAAO,OAAO,EAAE,gBAAgB;;;;kCAChC,OAAO,OAAO,EAAE,mBAAmB;;;;0CACnC,OAAO,OAAO,EAAE,2BAA2B;;;;kCAG3C,OAAO,SAAS,EAAE,uBAAuB;;;;6BACzC,OAAO,SAAS,EAAE,cAAc"}
@@ -23,6 +23,7 @@
23
23
  * @typedef {import('./types').HttpServerInit} HttpServerInit
24
24
  */
25
25
 
26
+ // also edit index.types.js
26
27
  export {
27
28
  WebTransportPonyfill,
28
29
  WebTransportPolyfill
package/lib/index.node.js CHANGED
@@ -23,5 +23,6 @@
23
23
  * @typedef {import('./types').HttpServerInit} HttpServerInit
24
24
  */
25
25
 
26
+ // also edit index.types.js
26
27
  export { HttpServer, Http3Server, Http2Server } from './server.js'
27
28
  export { WebTransport } from './webtransport.node.js'
@@ -0,0 +1,33 @@
1
+ /* eslint-disable no-prototype-builtins */
2
+ // Copyright (c) 2022 Marten Richter or other contributers (see commit). All rights reserved.
3
+ // Use of this source code is governed by a BSD-style license that can be
4
+ // found in the LICENSE file.
5
+
6
+ /**
7
+ * // Spec
8
+ * @typedef {import('./dom').WebTransportDatagramStats} WebTransportDatagramStats
9
+ * @typedef {import('./dom').WebTransportStats} WebTransportStats
10
+ * @typedef {import('./dom').WebTransportCloseInfo} WebTransportCloseInfo
11
+ * @typedef {import('./dom').WebTransportDatagramDuplexStream} WebTransportDatagramDuplexStream
12
+ * @typedef {import('./dom').WebTransportBidirectionalStream} WebTransportBidirectionalStream
13
+ * @typedef {import('./dom').WebTransportSendStreamStats} WebTransportSendStreamStats
14
+ * @typedef {import('./dom').WebTransportSendStream} WebTransportSendStream
15
+ * @typedef {import('./dom').WebTransportReceiveStreamStats} WebTransportReceiveStreamStats
16
+ * @typedef {import('./dom').WebTransportReceiveStream} WebTransportReceiveStream
17
+ * @typedef {import('./dom').WebTransportHash} WebTransportHash
18
+ * @typedef {import('./dom').WebTransportOptions} WebTransportOptions
19
+ * @typedef {import('./dom').WebTransportReliabilityMode} WebTransportReliabilityMode
20
+ *
21
+ * Public API
22
+ * @typedef {import('./types').WebTransportSessionImpl} WebTransportSession
23
+ * @typedef {import('./types').HttpServerInit} HttpServerInit
24
+ */
25
+
26
+ // both imports from the browser side and for nodes to generate a joint type file
27
+ export { HttpServer, Http3Server, Http2Server } from './server.js'
28
+ export { WebTransport } from './webtransport.node.js'
29
+
30
+ export {
31
+ WebTransportPonyfill,
32
+ WebTransportPolyfill
33
+ } from './webtransport.browser.js'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A component to add webtransport support (server and client) to node.js using libquiche",
5
5
  "exports": {
6
6
  ".": {
@@ -12,7 +12,7 @@
12
12
  "node": ">=16.5"
13
13
  },
14
14
  "type": "module",
15
- "types": "./dist/lib/index.d.ts",
15
+ "types": "./dist/lib/index.types.d.ts",
16
16
  "scripts": {
17
17
  "start": "node test/echoserver.js",
18
18
  "test": "npm run test:node && npm run test:node:http2 && npm run test:chromium && npm run test:chromium:http2:polyfill && npm run test:chromium:http2:ponyfill && npm run test:firefox:http2:polyfill && npm run test:firefox:http2:ponyfill && npm run test:webkit:http2:polyfill && npm run test:webkit:http2:ponyfill",