@abtnode/core 1.16.21-beta-93c6e42b → 1.16.21-beta-da3f852a

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/lib/api/team.js CHANGED
@@ -1399,7 +1399,7 @@ class TeamAPI extends EventEmitter {
1399
1399
 
1400
1400
  const userSessions = await state.model.findAll({
1401
1401
  where,
1402
- attributes: ['id', 'appPid', 'userDid', 'visitorId', 'passportId', 'updatedAt'],
1402
+ attributes: ['id', 'appPid', 'userDid', 'visitorId', 'passportId', 'updatedAt', 'extra'],
1403
1403
  include: {
1404
1404
  model: userState.model,
1405
1405
  as: 'user',
@@ -1442,10 +1442,11 @@ class TeamAPI extends EventEmitter {
1442
1442
  * @param {string} params.lastLoginIp - 记录的 userSession 中当前用户的最后登录 ip
1443
1443
  * @param {string} params.passportId - 记录的 userSession 中当前用户登录所使用的 passportId
1444
1444
  * @param {string} params.status - 记录的 userSession 的状态
1445
+ * @param {Object} params.extra - 记录的 userSession 额外的数据
1445
1446
  * @returns
1446
1447
  */
1447
1448
 
1448
- async upsertUserSession({ teamDid, appPid, userDid, visitorId, ua, lastLoginIp, passportId, status }) {
1449
+ async upsertUserSession({ teamDid, appPid, userDid, visitorId, ua, lastLoginIp, passportId, status, extra }) {
1449
1450
  if (!userDid) {
1450
1451
  throw new Error('userDid are required');
1451
1452
  }
@@ -1459,13 +1460,14 @@ class TeamAPI extends EventEmitter {
1459
1460
  lastLoginIp,
1460
1461
  appPid,
1461
1462
  passportId,
1463
+ extra,
1462
1464
  });
1463
- logger.info('insert userSession successfully', { userDid, ua, lastLoginIp, appPid, passportId });
1465
+ logger.info('insert userSession successfully', { userDid, ua, lastLoginIp, appPid, passportId, extra });
1464
1466
  } else {
1465
1467
  const exist = await state.findOne({ userDid, visitorId, appPid });
1466
1468
  if (exist) {
1467
- [, [data]] = await state.update(exist.id, { ua, lastLoginIp, passportId, status });
1468
- logger.info('update userSession successfully', { id: exist.id, ua, lastLoginIp, passportId, status });
1469
+ [, [data]] = await state.update(exist.id, { ua, lastLoginIp, passportId, status, extra });
1470
+ logger.info('update userSession successfully', { id: exist.id, ua, lastLoginIp, passportId, status, extra });
1469
1471
  } else {
1470
1472
  data = await state.insert({
1471
1473
  visitorId,
@@ -1474,8 +1476,17 @@ class TeamAPI extends EventEmitter {
1474
1476
  lastLoginIp,
1475
1477
  appPid,
1476
1478
  passportId,
1479
+ extra,
1480
+ });
1481
+ logger.info('insert userSession successfully', {
1482
+ visitorId,
1483
+ userDid,
1484
+ ua,
1485
+ lastLoginIp,
1486
+ appPid,
1487
+ passportId,
1488
+ extra,
1477
1489
  });
1478
- logger.info('insert userSession successfully', { visitorId, userDid, ua, lastLoginIp, appPid, passportId });
1479
1490
  }
1480
1491
  }
1481
1492
 
@@ -1491,9 +1502,10 @@ class TeamAPI extends EventEmitter {
1491
1502
  * @param {string} params.ua - 同步的 userSession 中当前用户所使用设备的 ua
1492
1503
  * @param {string} params.lastLoginIp - 同步的 userSession 中当前用户的最后登录 ip
1493
1504
  * @param {string} params.passportId - 同步的 userSession 中当前用户登录所使用的 passportId
1505
+ * @param {object} params.extra - 同步的 userSession 中当前用户登录额外的数据
1494
1506
  * @returns
1495
1507
  */
1496
- async syncUserSession({ teamDid, targetAppPid, userDid, visitorId, ua, lastLoginIp, passportId }) {
1508
+ async syncUserSession({ teamDid, targetAppPid, userDid, visitorId, ua, lastLoginIp, passportId, extra }) {
1497
1509
  if (!targetAppPid) return;
1498
1510
 
1499
1511
  const blocklet = await getBlocklet({ did: teamDid, states: this.states, dataDirs: this.dataDirs });
@@ -1526,6 +1538,7 @@ class TeamAPI extends EventEmitter {
1526
1538
  lastLoginIp,
1527
1539
  appPid,
1528
1540
  passportId,
1541
+ extra,
1529
1542
  };
1530
1543
  await callFederated({
1531
1544
  action: 'sync',
@@ -1543,6 +1556,7 @@ class TeamAPI extends EventEmitter {
1543
1556
  appPid,
1544
1557
  passportId,
1545
1558
  targetSite,
1559
+ extra,
1546
1560
  });
1547
1561
  } catch (err) {
1548
1562
  logger.info(
@@ -1555,6 +1569,7 @@ class TeamAPI extends EventEmitter {
1555
1569
  appPid,
1556
1570
  passportId,
1557
1571
  targetSite,
1572
+ extra,
1558
1573
  },
1559
1574
  err
1560
1575
  );
@@ -2712,7 +2712,7 @@ class DiskBlockletManager extends BaseBlockletManager {
2712
2712
  };
2713
2713
 
2714
2714
  const action = `/blocklets/${did}/components?checkUpdate=1`;
2715
- const blockletDashboardAction = `/blocklets/${did}/components?checkUpdate=1`;
2715
+ const blockletDashboardAction = '/.well-known/service/admin/components?checkUpdate=1';
2716
2716
  const users = await this.teamManager.getOwnerAndAdminUsers(did, 1);
2717
2717
  const nodeInfo = await states.node.read();
2718
2718
  const { wallet } = getBlockletInfo(blocklet, nodeInfo.sk);
@@ -0,0 +1,17 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'فشل الحصول على قائمة بلوكلت من السجل "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'واجه النسخ الاحتياطي خطأ في البيانات المضاعفة',
10
+ forbidden:
11
+ 'ليس لديك إذن لأداء النسخ الاحتياطي، حاول استعادة ترخيص التطبيق على DID Spaces أو إعادة الاتصال بـ DID Spaces وحاول مرة أخرى',
12
+ },
13
+ isFull: 'المساحة الحالية لتخزين المساحة ممتلئة ، يرجى توسيع المساحة وعمل نسخة احتياطية مرة أخرى.',
14
+ lackOfSpace: 'المساحة المتاحة حاليًا في التخزين غير كافية. يرجى توسيع المساحة وإجراء النسخ الاحتياطي مرة أخرى.',
15
+ },
16
+ },
17
+ };
@@ -0,0 +1,19 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Abrufen der Blocklet-Liste aus dem Register "{registryUrl}" ist fehlgeschlagen.',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Beim Backup sind Fehler aufgetreten.',
10
+ forbidden:
11
+ 'Sie haben keine Berechtigung, das Backup durchzuführen. Versuchen Sie, die Anwendungslizenz in DID Spaces wiederherzustellen oder verbinden Sie sich erneut mit DID Spaces und versuchen Sie es erneut',
12
+ },
13
+ isFull:
14
+ 'Der aktuelle Speicherplatz im Space ist voll. Bitte erweitern Sie den Speicherplatz und machen Sie ein Backup.',
15
+ lackOfSpace:
16
+ 'Der derzeit verfügbare Speicherplatz ist unzureichend. Bitte erweitern Sie den Speicherplatz und führen Sie das Backup erneut durch.',
17
+ },
18
+ },
19
+ };
package/lib/locales/en.js CHANGED
@@ -1,6 +1,5 @@
1
- const flat = require('flat');
2
-
3
- module.exports = flat({
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
4
3
  registry: {
5
4
  getListError: 'Get Blocklet list from registry "{registryUrl}" failed.',
6
5
  },
@@ -16,4 +15,4 @@ module.exports = flat({
16
15
  'The current available space in the storage is insufficient, Please expand the space and perform the backup again',
17
16
  },
18
17
  },
19
- });
18
+ };
@@ -0,0 +1,19 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Falló obtener la lista de Blocklets del registro "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'La copia de seguridad encontró un error al encontrar espacios',
10
+ forbidden:
11
+ 'No tienes permiso para realizar la copia de seguridad, intenta restaurar la licencia de la aplicación en DID Spaces o vuelve a conectar a DID Spaces e intenta nuevamente',
12
+ },
13
+ isFull:
14
+ 'El espacio de almacenamiento actual de Space está lleno, por favor amplía el espacio y haz una copia de seguridad nuevamente',
15
+ lackOfSpace:
16
+ 'El espacio disponible actual en el almacenamiento es insuficiente. Por favor, amplíe el espacio y realice la copia de seguridad nuevamente.',
17
+ },
18
+ },
19
+ };
@@ -0,0 +1,19 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Échec de l\'obtention de la liste Blocklet à partir du registre "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Une erreur est survenue lors de la sauvegarde des espaces',
10
+ forbidden:
11
+ "Vous n'êtes pas autorisé à effectuer la sauvegarde, essayez de restaurer la licence de l'application sur DID Spaces ou reconnectez-vous à DID Spaces et réessayez",
12
+ },
13
+ isFull:
14
+ "L'espace de stockage actuel de l'espace est plein, veuillez étendre l'espace et effectuer une sauvegarde à nouveau.",
15
+ lackOfSpace:
16
+ "L'espace disponible actuel dans le stockage est insuffisant. Veuillez étendre l'espace et effectuer à nouveau la sauvegarde.",
17
+ },
18
+ },
19
+ };
@@ -0,0 +1,17 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: '"{registryUrl}" से ब्लॉकलेट सूची प्राप्त करने में विफल हुआ।',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'स्पेसेज़ के साथ पता चली गलती को बैकअप करता है',
10
+ forbidden:
11
+ 'आपको बैकअप कार्य करने की अनुमति नहीं है, DID स्पेस पर एप्लिकेशन लाइसेंस को पुनर्स्थापित करने का प्रयास करें या DID स्पेस से फिर से कनेक्ट करें और पुनः प्रयास करें',
12
+ },
13
+ isFull: 'वर्तमान अंतरिक्ष संग्रहण स्थान भरा हुआ है, कृपया स्थान का विस्तार करें और फिर से बैकअप बनाएं।',
14
+ lackOfSpace: 'उपलब्ध भंडारण में वर्तमान में कमी है, कृपया स्थान बढ़ाएं और पुनः बैकअप करें',
15
+ },
16
+ },
17
+ };
Binary file
@@ -0,0 +1,18 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Gagal mendapatkan daftar Blocklet dari registrasi "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Backup ke ruang mengalami kesalahan',
10
+ forbidden:
11
+ 'Anda tidak memiliki izin untuk melakukan pencadangan, coba pulihkan lisensi aplikasi di DID Spaces atau hubungkan kembali ke DID Spaces dan coba lagi',
12
+ },
13
+ isFull: 'Ruang penyimpanan Space saat ini penuh, silakan perluas ruang dan buat cadangan lagi',
14
+ lackOfSpace:
15
+ 'Ruang yang tersedia saat ini di penyimpanan tidak mencukupi. Mohon perluas ruang dan lakukan backup lagi.',
16
+ },
17
+ },
18
+ };
@@ -1,9 +1,36 @@
1
+ const flat = require('flat');
2
+ const ar = require('./ar');
3
+ const de = require('./de');
1
4
  const en = require('./en');
5
+ const es = require('./es');
6
+ const fr = require('./fr');
7
+ const hi = require('./hi');
8
+ const id = require('./id');
9
+ const ja = require('./ja');
10
+ const ko = require('./ko');
11
+ const pt = require('./pt');
12
+ const ru = require('./ru');
13
+ const th = require('./th');
14
+ const vi = require('./vi');
15
+ const zhTW = require('./zh-tw');
2
16
  const zh = require('./zh');
3
17
 
4
- const tranlations = new Map([
5
- ['en', en],
6
- ['zh', zh],
18
+ const translations = new Map([
19
+ ['ar', flat(ar)],
20
+ ['de', flat(de)],
21
+ ['en', flat(en)],
22
+ ['es', flat(es)],
23
+ ['fr', flat(fr)],
24
+ ['hi', flat(hi)],
25
+ ['id', flat(id)],
26
+ ['ja', flat(ja)],
27
+ ['ko', flat(ko)],
28
+ ['pt', flat(pt)],
29
+ ['ru', flat(ru)],
30
+ ['th', flat(th)],
31
+ ['vi', flat(vi)],
32
+ ['zh-TW', flat(zhTW)],
33
+ ['zh', flat(zh)],
7
34
  ]);
8
35
 
9
36
  const replace = (template, data) =>
@@ -18,10 +45,10 @@ module.exports = {
18
45
  * @returns {string}
19
46
  */
20
47
  translate: (locale, key, data) => {
21
- if (tranlations.has(locale)) {
22
- return replace(tranlations.get(locale)[key], data);
48
+ if (translations.has(locale)) {
49
+ return replace(translations.get(locale)[key], data);
23
50
  }
24
51
 
25
- return replace(en[key], data);
52
+ return replace(translations.get('en')[key], data);
26
53
  },
27
54
  };
@@ -0,0 +1,18 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'レジストリ"{registryUrl}"からBlockletリストの取得に失敗しました。',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'スペースとのバックアップでエラーが発生しました',
10
+ forbidden:
11
+ 'バックアップの実行権限がありません。DIDスペースでアプリケーションのライセンスを復元するか、DIDスペースに再接続してもう一度お試しください',
12
+ },
13
+ isFull: '現在のSpaceのストレージスペースはいっぱいです。スペースを拡張して、もう一度バックアップしてください',
14
+ lackOfSpace:
15
+ '現在のストレージの利用可能なスペースは不十分です。スペースを拡張してバックアップを再実行してください。',
16
+ },
17
+ },
18
+ };
@@ -0,0 +1,17 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: '"{registryUrl}" 레지스트리에서 Blocklet 목록을 가져오는 데 실패했습니다.',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: '공간 백업 중 오류가 발생했습니다',
10
+ forbidden:
11
+ '백업을 수행할 권한이 없습니다. DID Spaces에서 애플리케이션 라이센스를 복원하거나 DID Spaces에 다시 연결한 후 다시 시도하십시오',
12
+ },
13
+ isFull: '현재 Space 저장 공간이 가득 찼습니다. 공간을 확장하고 다시 백업해주세요',
14
+ lackOfSpace: '현재 사용 가능한 저장 공간이 부족합니다. 공간을 확장하고 백업을 다시 실행하세요.',
15
+ },
16
+ },
17
+ };
@@ -0,0 +1,19 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Falha ao obter a lista de Blocklets do registro "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Backup para espaços encontrou um erro',
10
+ forbidden:
11
+ 'Você não tem permissão para realizar o backup, tente restaurar a licença do aplicativo em DID Spaces ou reconecte-se a DID Spaces e tente novamente',
12
+ },
13
+ isFull:
14
+ 'O espaço de armazenamento atual do Espaço está cheio, por favor, expanda o espaço e faça backup novamente',
15
+ lackOfSpace:
16
+ 'O espaço disponível atualmente no armazenamento é insuficiente. Por favor, expanda o espaço e execute o backup novamente.',
17
+ },
18
+ },
19
+ };
@@ -0,0 +1,19 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Не удалось получить список блоклетов из реестра "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Резервное копирование обнаружило ошибку при встрече с пробелами',
10
+ forbidden:
11
+ 'У вас нет разрешения на выполнение резервного копирования. Попробуйте восстановить лицензию приложения в DID Spaces или повторно подключитесь к DID Spaces и попробуйте еще раз',
12
+ },
13
+ isFull:
14
+ 'Текущее пространство хранения Space заполнено, пожалуйста, расширьте пространство и создайте резервную копию снова.',
15
+ lackOfSpace:
16
+ 'Текущее доступное пространство в хранилище недостаточно. Пожалуйста, расширьте пространство и выполните резервное копирование снова.',
17
+ },
18
+ },
19
+ };
@@ -0,0 +1,17 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'การรับรายการ Blocklet จากทะเบียน "{registryUrl}" ไม่สำเร็จ',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'การสำรองข้อมูลไปยังช่องว่างพบข้อผิดพลาด',
10
+ forbidden:
11
+ 'คุณไม่ได้รับอนุญาตให้ทำการสำรองข้อมูลกลับสู่ ลองเรียกคืนใบอนุญาตแอปพลิเคชันบน DID Spaces หรือเชื่อมต่อกับ DID Spaces และลองอีกครั้ง',
12
+ },
13
+ isFull: 'พื้นที่จัดเก็บ Space ปัจจุบันเต็มแล้ว โปรดขยายพื้นที่และสำรองข้อมูลอีกครั้ง',
14
+ lackOfSpace: 'พื้นที่ว่างในการจัดเก็บปัจจุบันไม่เพียงพอ โปรดขยายพื้นที่และทำการสำรองข้อมูลอีกครั้ง',
15
+ },
16
+ },
17
+ };
@@ -0,0 +1,17 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: 'Không thể lấy danh sách Blocklet từ registry "{registryUrl}".',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: 'Backup vào không gian gặp lỗi',
10
+ forbidden:
11
+ 'Bạn không có quyền thực hiện sao lưu, hãy thử khôi phục giấy phép ứng dụng trên DID Spaces hoặc kết nối lại với DID Spaces và thử lại',
12
+ },
13
+ isFull: 'Không gian lưu trữ hiện tại của không gian Đang đầy, vui lòng mở rộng không gian và sao lưu lại',
14
+ lackOfSpace: 'Không gian lưu trữ hiện tại không đủ. Vui lòng mở rộng không gian và thực hiện sao lưu lại.',
15
+ },
16
+ },
17
+ };
@@ -0,0 +1,16 @@
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
3
+ registry: {
4
+ getListError: '從注冊表"{registryUrl}"獲取Blocklet列表失敗。',
5
+ },
6
+ backup: {
7
+ space: {
8
+ error: {
9
+ title: '備份遇到錯誤空格',
10
+ forbidden: '您無權限執行備份,請嘗試在DID Spaces上恢復應用程式許可證,或重新連接到DID Spaces並重試',
11
+ },
12
+ isFull: '當前 Space 儲存空間已滿,請擴展空間並再次備份',
13
+ lackOfSpace: '儲存空間當前的可用空間不足,請擴展空間並重新進行備份。',
14
+ },
15
+ },
16
+ };
package/lib/locales/zh.js CHANGED
@@ -1,6 +1,5 @@
1
- const flat = require('flat');
2
-
3
- module.exports = flat({
1
+ /* eslint-disable prettier/prettier */
2
+ module.exports = {
4
3
  registry: {
5
4
  getListError: '从 "{registryUrl}" 源获取 Blocklet 列表失败.',
6
5
  },
@@ -14,4 +13,4 @@ module.exports = flat({
14
13
  lackOfSpace: '当前存储空间的可用空间不足, 请扩展空间后再次进行备份',
15
14
  },
16
15
  },
17
- });
16
+ };
@@ -1,5 +1,6 @@
1
1
  /* eslint-disable no-console */
2
2
  const fs = require('fs-extra');
3
+ const os = require('os');
3
4
  const axon = require('axon');
4
5
  const path = require('path');
5
6
  const shell = require('shelljs');
@@ -9,6 +10,7 @@ const { getInstaller, getInstallCommands } = require('@abtnode/util/lib/get-inst
9
10
  const VERBOSE = '';
10
11
  // const VERBOSE = '--verbose';
11
12
 
13
+ const USER = os.userInfo().username;
12
14
  const BINARY_NAME = process.env.ABT_NODE_BINARY_NAME;
13
15
  const COMMAND_NAME = process.env.ABT_NODE_COMMAND_NAME;
14
16
  const PACKAGE_NAME = process.env.ABT_NODE_PACKAGE_NAME;
@@ -18,10 +20,13 @@ console.info(`binary name: ${BINARY_NAME}`);
18
20
  console.info(`command name: ${COMMAND_NAME}`);
19
21
  console.info(`package name: ${PACKAGE_NAME}`);
20
22
 
23
+ // server state control
24
+ const state = { locked: false };
25
+
21
26
  // async and promise style of shelljs.exec
22
27
  const runAsync = (command, options) =>
23
28
  new Promise((resolve) => {
24
- console.info(`Run command: ${command}`);
29
+ console.info(`Run command: ${command} as ${USER}`);
25
30
  shell.exec(command, { async: true, windowsHide: true, ...options }, (code, stdout, stderr) => {
26
31
  resolve({ code, stdout, stderr });
27
32
  });
@@ -138,25 +143,36 @@ sock.on('message', async (raw, reply) => {
138
143
  try {
139
144
  const message = JSON.parse(raw);
140
145
  if (message.command === 'install') {
146
+ state.locked = true;
141
147
  const result = await installBlockletServer(message.version);
148
+ state.locked = false;
142
149
  reply(result);
143
150
  } else if (message.command === 'verify') {
151
+ state.locked = true;
144
152
  const result = await verifyBlockletServer(message.version);
153
+ state.locked = false;
145
154
  reply(result);
146
155
  } else if (message.command === 'restart') {
156
+ state.locked = true;
147
157
  const result = await restartBlockletServer(message.dataDir);
158
+ state.locked = false;
148
159
  reply(result);
149
160
  } else if (message.command === 'shutdown') {
150
- reply('Terminate myself after this message');
151
- setTimeout(() => {
152
- process.exit(0);
153
- }, 500);
161
+ if (state.locked) {
162
+ reply('Refuse to terminate myself since I have work to do');
163
+ } else {
164
+ reply('Terminate myself after this message');
165
+ setTimeout(() => {
166
+ process.exit(0);
167
+ }, 60 * 1000);
168
+ }
154
169
  } else if (message.command === 'ping') {
155
170
  reply('pong');
156
171
  } else {
157
172
  reply({ error: 'Unknown command' });
158
173
  }
159
174
  } catch (err) {
175
+ state.locked = false;
160
176
  console.error('failed to process command', { error: err });
161
177
  }
162
178
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.21-beta-93c6e42b",
6
+ "version": "1.16.21-beta-da3f852a",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -12,46 +12,46 @@
12
12
  "scripts": {
13
13
  "lint": "eslint tests lib",
14
14
  "lint:fix": "eslint --fix tests lib",
15
- "test": "node tools/jest.js",
15
+ "test": "node tools/jest.js --maxWorkers=2",
16
16
  "coverage": "npm run test -- --coverage"
17
17
  },
18
18
  "keywords": [],
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/analytics": "1.16.21-beta-93c6e42b",
23
- "@abtnode/auth": "1.16.21-beta-93c6e42b",
24
- "@abtnode/certificate-manager": "1.16.21-beta-93c6e42b",
25
- "@abtnode/constant": "1.16.21-beta-93c6e42b",
26
- "@abtnode/cron": "1.16.21-beta-93c6e42b",
27
- "@abtnode/logger": "1.16.21-beta-93c6e42b",
28
- "@abtnode/models": "1.16.21-beta-93c6e42b",
29
- "@abtnode/queue": "1.16.21-beta-93c6e42b",
30
- "@abtnode/rbac": "1.16.21-beta-93c6e42b",
31
- "@abtnode/router-provider": "1.16.21-beta-93c6e42b",
32
- "@abtnode/static-server": "1.16.21-beta-93c6e42b",
33
- "@abtnode/timemachine": "1.16.21-beta-93c6e42b",
34
- "@abtnode/util": "1.16.21-beta-93c6e42b",
35
- "@arcblock/did": "1.18.107",
36
- "@arcblock/did-auth": "1.18.107",
37
- "@arcblock/did-ext": "^1.18.107",
22
+ "@abtnode/analytics": "1.16.21-beta-da3f852a",
23
+ "@abtnode/auth": "1.16.21-beta-da3f852a",
24
+ "@abtnode/certificate-manager": "1.16.21-beta-da3f852a",
25
+ "@abtnode/constant": "1.16.21-beta-da3f852a",
26
+ "@abtnode/cron": "1.16.21-beta-da3f852a",
27
+ "@abtnode/logger": "1.16.21-beta-da3f852a",
28
+ "@abtnode/models": "1.16.21-beta-da3f852a",
29
+ "@abtnode/queue": "1.16.21-beta-da3f852a",
30
+ "@abtnode/rbac": "1.16.21-beta-da3f852a",
31
+ "@abtnode/router-provider": "1.16.21-beta-da3f852a",
32
+ "@abtnode/static-server": "1.16.21-beta-da3f852a",
33
+ "@abtnode/timemachine": "1.16.21-beta-da3f852a",
34
+ "@abtnode/util": "1.16.21-beta-da3f852a",
35
+ "@arcblock/did": "1.18.108",
36
+ "@arcblock/did-auth": "1.18.108",
37
+ "@arcblock/did-ext": "^1.18.108",
38
38
  "@arcblock/did-motif": "^1.1.13",
39
- "@arcblock/did-util": "1.18.107",
40
- "@arcblock/event-hub": "1.18.107",
41
- "@arcblock/jwt": "^1.18.107",
39
+ "@arcblock/did-util": "1.18.108",
40
+ "@arcblock/event-hub": "1.18.108",
41
+ "@arcblock/jwt": "^1.18.108",
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
- "@arcblock/validator": "^1.18.107",
44
- "@arcblock/vc": "1.18.107",
45
- "@blocklet/constant": "1.16.21-beta-93c6e42b",
46
- "@blocklet/env": "1.16.21-beta-93c6e42b",
47
- "@blocklet/meta": "1.16.21-beta-93c6e42b",
48
- "@blocklet/resolver": "1.16.21-beta-93c6e42b",
49
- "@blocklet/sdk": "1.16.21-beta-93c6e42b",
50
- "@did-space/client": "^0.3.45",
43
+ "@arcblock/validator": "^1.18.108",
44
+ "@arcblock/vc": "1.18.108",
45
+ "@blocklet/constant": "1.16.21-beta-da3f852a",
46
+ "@blocklet/env": "1.16.21-beta-da3f852a",
47
+ "@blocklet/meta": "1.16.21-beta-da3f852a",
48
+ "@blocklet/resolver": "1.16.21-beta-da3f852a",
49
+ "@blocklet/sdk": "1.16.21-beta-da3f852a",
50
+ "@did-space/client": "^0.3.49",
51
51
  "@fidm/x509": "^1.2.1",
52
- "@ocap/mcrypto": "1.18.107",
53
- "@ocap/util": "1.18.107",
54
- "@ocap/wallet": "1.18.107",
52
+ "@ocap/mcrypto": "1.18.108",
53
+ "@ocap/util": "1.18.108",
54
+ "@ocap/wallet": "1.18.108",
55
55
  "@slack/webhook": "^5.0.4",
56
56
  "archiver": "^5.3.1",
57
57
  "axios": "^0.27.2",
@@ -102,5 +102,5 @@
102
102
  "jest": "^27.5.1",
103
103
  "unzipper": "^0.10.11"
104
104
  },
105
- "gitHead": "80619ce49f5a9224d3d817e5faea4422072b0553"
105
+ "gitHead": "57b315bdb59f2125c5f0595d5cb21c92196710ba"
106
106
  }