@blocklet/component-studio-cli 0.6.99 → 0.6.101
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
|
@@ -6,7 +6,7 @@ import cookieParser from 'cookie-parser';
|
|
|
6
6
|
import cors from 'cors';
|
|
7
7
|
import dotenv from 'dotenv-flow';
|
|
8
8
|
import express, { ErrorRequestHandler } from 'express';
|
|
9
|
-
import fallback from '@blocklet/sdk/lib/middlewares/fallback';
|
|
9
|
+
import { fallback } from '@blocklet/sdk/lib/middlewares/fallback';
|
|
10
10
|
|
|
11
11
|
import logger from './libs/logger';
|
|
12
12
|
import routes from './routes';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import AuthStorage from '@arcblock/did-connect-storage-nedb';
|
|
2
|
-
import getWallet from '@blocklet/sdk/lib/wallet';
|
|
3
|
-
import WalletAuthenticator from '@blocklet/sdk/lib/wallet-authenticator';
|
|
4
|
-
import
|
|
2
|
+
import { getWallet } from '@blocklet/sdk/lib/wallet';
|
|
3
|
+
import { WalletAuthenticator } from '@blocklet/sdk/lib/wallet-authenticator';
|
|
4
|
+
import { WalletHandlers } from '@blocklet/sdk/lib/wallet-handler';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
|
|
7
7
|
import env from './env';
|
|
8
8
|
|
|
9
9
|
export const wallet = getWallet();
|
|
10
10
|
export const authenticator = new WalletAuthenticator();
|
|
11
|
-
export const handlers = new
|
|
11
|
+
export const handlers = new WalletHandlers({
|
|
12
12
|
authenticator,
|
|
13
13
|
tokenStorage: new AuthStorage({
|
|
14
14
|
dbPath: path.join(env.dataDir, 'auth.db'),
|