File tree Expand file tree Collapse file tree 4 files changed +21
-21
lines changed Expand file tree Collapse file tree 4 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
- import * as path from 'path' ;
2
- import { ComponentsManager } from 'componentsjs' ;
3
- import { App , setGlobalLoggerFactory , WinstonLoggerFactory } from '@solid/community-server' ;
1
+ const path = require ( 'path' ) ;
2
+ const { ComponentsManager } = require ( 'componentsjs' ) ;
3
+ const { setGlobalLoggerFactory, WinstonLoggerFactory } = require ( '@solid/community-server' ) ;
4
4
5
5
const protocol = 'http' ;
6
6
const host = 'localhost' ;
@@ -9,8 +9,8 @@ const port = 4000;
9
9
const baseUrl = `${ protocol } ://${ host } :${ port } /uma` ;
10
10
const rootDir = path . join ( __dirname , '../' ) ;
11
11
12
- export const launch : ( ) => Promise < void > = async ( ) => {
13
- const variables : Record < string , unknown > = { } ;
12
+ const launch = async ( ) => {
13
+ const variables = { } ;
14
14
15
15
variables [ 'urn:uma:variables:port' ] = port ;
16
16
variables [ 'urn:uma:variables:baseUrl' ] = baseUrl ;
@@ -31,7 +31,7 @@ export const launch: () => Promise<void> = async () => {
31
31
32
32
await manager . configRegistry . register ( configPath ) ;
33
33
34
- const umaServer : App = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
34
+ const umaServer = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
35
35
await umaServer . start ( ) ;
36
36
} ;
37
37
Original file line number Diff line number Diff line change 1
- import * as path from 'path' ;
2
- import { ComponentsManager } from 'componentsjs' ;
3
- import { App , setGlobalLoggerFactory , WinstonLoggerFactory } from '@solid/community-server' ;
1
+ const path = require ( 'path' ) ;
2
+ const { ComponentsManager } = require ( 'componentsjs' ) ;
3
+ const { setGlobalLoggerFactory, WinstonLoggerFactory } = require ( '@solid/community-server' ) ;
4
4
5
5
const protocol = 'http' ;
6
6
const host = 'localhost' ;
@@ -9,8 +9,8 @@ const port = 4000;
9
9
const baseUrl = `${ protocol } ://${ host } :${ port } /uma` ;
10
10
const rootDir = path . join ( __dirname , '../' ) ;
11
11
12
- export const launch : ( ) => Promise < void > = async ( ) => {
13
- const variables : Record < string , unknown > = { } ;
12
+ const launch = async ( ) => {
13
+ const variables = { } ;
14
14
15
15
variables [ 'urn:uma:variables:port' ] = port ;
16
16
variables [ 'urn:uma:variables:baseUrl' ] = baseUrl ;
@@ -31,7 +31,7 @@ export const launch: () => Promise<void> = async () => {
31
31
32
32
await manager . configRegistry . register ( configPath ) ;
33
33
34
- const umaServer : App = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
34
+ const umaServer = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
35
35
await umaServer . start ( ) ;
36
36
} ;
37
37
Original file line number Diff line number Diff line change 1
- import { App , setGlobalLoggerFactory , WinstonLoggerFactory } from '@solid/community-server' ;
2
- import * as path from 'path' ;
3
- import { ComponentsManager } from 'componentsjs' ;
1
+ const path = require ( 'path' ) ;
2
+ const { ComponentsManager } = require ( 'componentsjs' ) ;
3
+ const { setGlobalLoggerFactory , WinstonLoggerFactory } = require ( '@solid/community-server' ) ;
4
4
5
5
const protocol = 'http' ;
6
6
const host = 'localhost' ;
@@ -9,8 +9,8 @@ const port = 4000;
9
9
const baseUrl = `${ protocol } ://${ host } :${ port } /uma` ;
10
10
const rootDir = path . join ( __dirname , '../' ) ;
11
11
12
- export const launch : ( ) => Promise < void > = async ( ) => {
13
- const variables : Record < string , any > = { } ;
12
+ const launch = async ( ) => {
13
+ const variables = { } ;
14
14
15
15
variables [ 'urn:uma:variables:port' ] = port ;
16
16
variables [ 'urn:uma:variables:baseUrl' ] = baseUrl ;
@@ -31,7 +31,7 @@ export const launch: () => Promise<void> = async () => {
31
31
32
32
await manager . configRegistry . register ( configPath ) ;
33
33
34
- const umaServer : App = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
34
+ const umaServer = await manager . instantiate ( 'urn:uma:default:App' , { variables} ) ;
35
35
await umaServer . start ( ) ;
36
36
} ;
37
37
Original file line number Diff line number Diff line change 55
55
"build" : " yarn build:ts && yarn build:components" ,
56
56
"build:ts" : " yarn run -T tsc" ,
57
57
"build:components" : " yarn run -T componentsjs-generator -r sai-uma -s src -c dist/components -i .componentsignore --lenient" ,
58
- "start" : " yarn run -T tsx bin/main.ts " ,
59
- "start:odrl" : " yarn run -T tsx bin/odrl.ts " ,
60
- "demo" : " yarn run -T tsx bin/demo.ts "
58
+ "start" : " node bin/main.js " ,
59
+ "start:odrl" : " node bin/odrl.js " ,
60
+ "demo" : " node bin/demo.js "
61
61
},
62
62
"dependencies" : {
63
63
"@httpland/authorization-parser" : " ^1.1.0" ,
You can’t perform that action at this time.
0 commit comments