@travetto/scaffold 5.0.22 → 5.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/scaffold",
3
- "version": "5.0.22",
3
+ "version": "5.0.24",
4
4
  "description": "App Scaffold for the Travetto framework",
5
5
  "keywords": [
6
6
  "generator",
@@ -20,20 +20,20 @@
20
20
  "resources"
21
21
  ],
22
22
  "repository": {
23
- "url": "https://github.com/travetto/travetto.git",
23
+ "url": "git+https://github.com/travetto/travetto.git",
24
24
  "directory": "related/scaffold"
25
25
  },
26
26
  "bin": {
27
- "trv-scaffold": "./bin/trv-scaffold.js"
27
+ "trv-scaffold": "bin/trv-scaffold.js"
28
28
  },
29
29
  "dependencies": {
30
- "@travetto/cli": "^5.0.17",
31
- "@travetto/runtime": "^5.0.14",
30
+ "@travetto/cli": "^5.0.19",
31
+ "@travetto/runtime": "^5.0.16",
32
32
  "enquirer": "^2.4.1",
33
33
  "mustache": "^4.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@travetto/model": "^5.0.15",
36
+ "@travetto/model": "^5.0.17",
37
37
  "@types/mustache": "^4.2.5"
38
38
  },
39
39
  "travetto": {
@@ -1,10 +1,10 @@
1
1
  import { Authorizer, Authenticator, AuthenticationError } from '@travetto/auth';
2
- import { SessionModelⲐ } from '@travetto/rest-session';
2
+ import { SessionModelSymbol } from '@travetto/rest-session';
3
3
  import { InjectableFactory } from '@travetto/di';
4
4
  import { ModelExpirySupport } from '@travetto/model';
5
5
  import { MemoryModelService } from '@travetto/model-memory';
6
6
 
7
- export const BasicAuthⲐ = Symbol.for('AUTH_BASIC');
7
+ export const BasicAuthSymbol = Symbol.for('AUTH_BASIC');
8
8
 
9
9
  type User = { username: string, password: string };
10
10
 
@@ -14,12 +14,12 @@ class AuthConfig {
14
14
  return { authorize: p => p };
15
15
  }
16
16
 
17
- @InjectableFactory(SessionModelⲐ)
17
+ @InjectableFactory(SessionModelSymbol)
18
18
  static getStore(svc: MemoryModelService): ModelExpirySupport {
19
19
  return svc;
20
20
  }
21
21
 
22
- @InjectableFactory(BasicAuthⲐ)
22
+ @InjectableFactory(BasicAuthSymbol)
23
23
  static getAuthenticator(): Authenticator<User> {
24
24
  return {
25
25
  authenticate(u) {
@@ -3,7 +3,7 @@ import { Authenticate, Authenticated, AuthService, Unauthenticated } from '@trav
3
3
  import { Principal } from '@travetto/auth';
4
4
  import { Inject } from '@travetto/di';
5
5
 
6
- import { BasicAuthⲐ } from './auth.config';
6
+ import { BasicAuthSymbol } from './auth.config';
7
7
 
8
8
  /**
9
9
  * Auth API
@@ -15,7 +15,7 @@ export class ApiController {
15
15
  svc: AuthService;
16
16
 
17
17
  @Post('/login')
18
- @Authenticate(BasicAuthⲐ)
18
+ @Authenticate(BasicAuthSymbol)
19
19
  async getAll(): Promise<Redirect> {
20
20
  return new Redirect('/auth/self', 301);
21
21
  }