@blocklet/component-studio-cli 0.6.100 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/component-studio-cli",
3
- "version": "0.6.100",
3
+ "version": "0.6.101",
4
4
  "description": "CLI for Component Studio",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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 WalletHandler from '@blocklet/sdk/lib/wallet-handler';
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 WalletHandler({
11
+ export const handlers = new WalletHandlers({
12
12
  authenticator,
13
13
  tokenStorage: new AuthStorage({
14
14
  dbPath: path.join(env.dataDir, 'auth.db'),
@@ -1,4 +1,4 @@
1
- import env from '@blocklet/sdk/lib/env';
1
+ import { env } from '@blocklet/sdk/lib/env';
2
2
 
3
3
  export default {
4
4
  ...env,