@travetto/auth-web-passport 7.0.3 → 7.0.5

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/README.md CHANGED
@@ -24,7 +24,7 @@ Within the node ecosystem, the most prevalent auth framework is [passport](http:
24
24
  import { Strategy as FacebookStrategy } from 'passport-facebook';
25
25
 
26
26
  import { InjectableFactory } from '@travetto/di';
27
- import { Authenticator, Authorizer, Principal } from '@travetto/auth';
27
+ import type { Authenticator, Authorizer, Principal } from '@travetto/auth';
28
28
  import { PassportAuthenticator } from '@travetto/auth-web-passport';
29
29
 
30
30
  export class FbUser {
@@ -77,9 +77,9 @@ After that, the provider is no different than any other, and can be used accordi
77
77
 
78
78
  **Code: Sample endpoints using Facebook/passport provider**
79
79
  ```typescript
80
- import { Controller, Get, Post, WebRequest, ContextParam, WebResponse } from '@travetto/web';
80
+ import { Controller, Get, Post, type WebRequest, ContextParam, WebResponse } from '@travetto/web';
81
81
  import { Login, Authenticated, Logout } from '@travetto/auth-web';
82
- import { Principal } from '@travetto/auth';
82
+ import type { Principal } from '@travetto/auth';
83
83
 
84
84
  import { FbAuthSymbol } from './config.ts';
85
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/auth-web-passport",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "Web authentication integration support for the Travetto framework",
5
5
  "keywords": [
6
6
  "authentication",
@@ -26,11 +26,11 @@
26
26
  "directory": "module/auth-web-passport"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/auth": "^7.0.3",
30
- "@travetto/auth-web": "^7.0.3",
31
- "@travetto/config": "^7.0.3",
32
- "@travetto/web": "^7.0.3",
33
- "@travetto/web-connect": "^7.0.3",
29
+ "@travetto/auth": "^7.0.5",
30
+ "@travetto/auth-web": "^7.0.5",
31
+ "@travetto/config": "^7.0.5",
32
+ "@travetto/web": "^7.0.5",
33
+ "@travetto/web-connect": "^7.0.5",
34
34
  "@types/passport": "^1.0.17",
35
35
  "passport": "^0.7.0"
36
36
  },
@@ -1,7 +1,7 @@
1
1
  import passport from 'passport';
2
2
 
3
- import { Authenticator, AuthenticatorState, Principal } from '@travetto/auth';
4
- import { WebFilterContext } from '@travetto/web';
3
+ import type { Authenticator, AuthenticatorState, Principal } from '@travetto/auth';
4
+ import type { WebFilterContext } from '@travetto/web';
5
5
  import { WebConnectUtil } from '@travetto/web-connect';
6
6
 
7
7
  import { PassportUtil } from './util.ts';
package/src/util.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { WebFilterContext, WebRequest } from '@travetto/web';
1
+ import type { WebFilterContext, WebRequest } from '@travetto/web';
2
2
  import { castTo, JSONUtil } from '@travetto/runtime';
3
3
 
4
4
  /**