@travetto/web-connect 6.0.2 → 6.0.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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -13,14 +13,14 @@ npm install @travetto/web-connect
13
13
  yarn add @travetto/web-connect
14
14
  ```
15
15
 
16
- This module provides basic integration for calling [connect](https://github.com/senchalabs/connect) related middleware with [Web API](https://github.com/travetto/travetto/tree/main/module/web#readme "Declarative api for Web Applications with support for the dependency injection."). This logic is not intended to be exhaustive, but intended to provide a quick bridge. This only consumer of this is [Web Auth Passport](https://github.com/travetto/travetto/tree/main/module/auth-web-passport#readme "Web authentication integration support for the Travetto framework") as it needs to bind the [WebRequest](https://github.com/travetto/travetto/tree/main/module/web/src/types/request.ts#L11) and [WebResponse](https://github.com/travetto/travetto/tree/main/module/web/src/types/response.ts#L3) to standard contracts for [passport](http://passportjs.org).
16
+ This module provides basic integration for calling [connect](https://github.com/senchalabs/connect) related middleware with [Web API](https://github.com/travetto/travetto/tree/main/module/web#readme "Declarative support for creating Web Applications"). This logic is not intended to be exhaustive, but intended to provide a quick bridge. This only consumer of this is [Web Auth Passport](https://github.com/travetto/travetto/tree/main/module/auth-web-passport#readme "Web authentication integration support for the Travetto framework") as it needs to bind the [WebRequest](https://github.com/travetto/travetto/tree/main/module/web/src/types/request.ts#L11) and [WebResponse](https://github.com/travetto/travetto/tree/main/module/web/src/types/response.ts#L3) to standard contracts for [passport](http://passportjs.org).
17
17
 
18
18
  This module is already most likely compatible with quite a bit of middleware, but will fail under any of the following conditions:
19
19
  * The calling code expects the request or response to be a proper [EventEmitter](https://nodejs.org/api/events.html#class-eventemitter), beyond `.on('end', callback)`
20
20
  * The calling code expects the request/response sockets to be live.
21
21
  * The calling code modifies the shape of the objects (e.g. rewrites the close method on response).
22
22
 
23
- Barring these exceptions, gaps will be filled in as more use cases arise. The above exceptions are non-negotiable as they are are enforced by the invocation method defined by [Web API](https://github.com/travetto/travetto/tree/main/module/web#readme "Declarative api for Web Applications with support for the dependency injection.").
23
+ Barring these exceptions, gaps will be filled in as more use cases arise. The above exceptions are non-negotiable as they are are enforced by the invocation method defined by [Web API](https://github.com/travetto/travetto/tree/main/module/web#readme "Declarative support for creating Web Applications").
24
24
 
25
25
  **Code: Example of using the Connect Adaptor with Passport**
26
26
  ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/web-connect",
3
- "version": "6.0.2",
3
+ "version": "6.0.3",
4
4
  "description": "Web integration for Connect-Like Resources",
5
5
  "keywords": [
6
6
  "web",
@@ -24,11 +24,11 @@
24
24
  "directory": "module/web-connect"
25
25
  },
26
26
  "dependencies": {
27
- "@travetto/web": "^6.0.2"
27
+ "@travetto/web": "^6.0.3"
28
28
  },
29
29
  "peerDependencies": {
30
- "@travetto/cli": "^6.0.0",
31
- "@travetto/test": "^6.0.1"
30
+ "@travetto/cli": "^6.0.1",
31
+ "@travetto/test": "^6.0.2"
32
32
  },
33
33
  "peerDependenciesMeta": {
34
34
  "@travetto/test": {