@abtnode/auth 1.16.25-next-44800645 → 1.16.25-next-1ada5956

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/auth.js CHANGED
@@ -176,6 +176,12 @@ const messages = {
176
176
  zh: (message) => `通行证状态检测失败:${message}`,
177
177
  'zh-TW': (message) => `通行證狀態檢測失敗:${message}`,
178
178
  },
179
+ /**
180
+ *
181
+ * @param {Parameters<typeof getLocaleMap>[1]} data
182
+ * @returns
183
+ */
184
+ cannotImportFromDidSpace: (data) => getLocaleMap('cannotImportFromDidSpace', data),
179
185
  };
180
186
 
181
187
  const PASSPORT_STATUS_KEY = 'passport-status';
package/lib/launcher.js CHANGED
@@ -60,7 +60,7 @@ const getLauncherSession = async (serverSk, params) => {
60
60
  const { launcherSessionId, launcherUrl } = params;
61
61
  try {
62
62
  const result = await doRequest(serverSk, {
63
- launcherUrl,
63
+ launcherUrl: launcherUrl || 'https://launcher.arcblock.io/',
64
64
  pathname: `/api/launches/${launcherSessionId}`,
65
65
  payload: {},
66
66
  method: 'get',
package/lib/server.js CHANGED
@@ -223,7 +223,6 @@ const authenticateByNFT = async ({ node, claims, userDid, challenge, locale, isA
223
223
  nftId: state.address,
224
224
  nftOwner: state.owner,
225
225
  chainHost,
226
- appMaxCount: state.data.value.appMaxCount || 1,
227
226
  },
228
227
  },
229
228
  user: {
@@ -270,7 +269,6 @@ const authenticateByLauncher = async ({ node, claims, launcherSessionId, launche
270
269
  nftId: launcherSession.nftDid,
271
270
  nftOwner: launcherSession.userDid,
272
271
  chainHost,
273
- appMaxCount: 1,
274
272
  launcherUrl,
275
273
  launcherSessionId,
276
274
  ownerDid: claim.userDid,
@@ -534,7 +532,7 @@ const getOwnershipNFTClaim = async (node, locale) => {
534
532
  return {
535
533
  description: messages.requestBlockletSpaceNFT[locale],
536
534
  trustedIssuers: [info.ownerNft.issuer],
537
- tag, // tag is an unique identifier for the server in launcher
535
+ address: info.ownerNft.did,
538
536
  };
539
537
  };
540
538
 
@@ -879,7 +877,6 @@ const handleRestoreByLauncherSession = async ({ node, userDid, updateSession, ex
879
877
  nftId: launcherSession.nftDid,
880
878
  nftOwner: launcherSession.userDid,
881
879
  chainHost,
882
- appMaxCount: 1,
883
880
  launcherUrl,
884
881
  launcherSessionId,
885
882
  ownerDid: userDid, // FIXME: @wangshijun is this incorrect
package/locales/ar.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'العلامة مطلوبة',
66
66
  appIsInProgress: 'التطبيق قيد التقدم، يرجى الانتظار حتى الانتهاء.',
67
67
  requestDidSpace: 'يرجى تفويض مساحة DID للاستمرار',
68
+ cannotImportFromDidSpace: 'غير قادر على إيجاد بيانات من الفضاء({spaceName}) التي يمكن استيرادها',
68
69
  };
package/locales/de.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'Es ist ein Pflichtfeld',
66
66
  appIsInProgress: 'Die Anwendung befindet sich in Bearbeitung. Bitte warten Sie, bis sie abgeschlossen ist.',
67
67
  requestDidSpace: 'Bitte autorisieren Sie DID Space, um fortzufahren',
68
+ cannotImportFromDidSpace: 'Kann keine Daten aus dem Bereich({spaceName}) finden, die importiert werden können',
68
69
  };
package/locales/en.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  notAllowedTransferToSelf: 'Not allowed to transfer the Server to yourself',
66
66
  tagRequired: 'tag is required',
67
67
  appIsInProgress: 'The application is in progress, please wait for it to finish',
68
+ cannotImportFromDidSpace: 'Unable to find data from space({spaceName}) that can be imported',
68
69
  };
package/locales/es.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'La etiqueta es requerida',
66
66
  appIsInProgress: 'La aplicación está en progreso, por favor espere a que termine',
67
67
  requestDidSpace: 'Por favor, autoriza a DID Space para continuar',
68
+ cannotImportFromDidSpace: 'No se pueden encontrar datos para importar desde el espacio ({spaceName})',
68
69
  };
package/locales/fr.js CHANGED
@@ -66,4 +66,5 @@ module.exports = {
66
66
  tagRequired: 'Les balises sont obligatoires',
67
67
  appIsInProgress: "L'application est en cours, veuillez attendre qu'elle se termine.",
68
68
  requestDidSpace: 'Veuillez autoriser DID Space à continuer',
69
+ cannotImportFromDidSpace: "Impossible de trouver des données de l'espace({spaceName}) pouvant être importées",
69
70
  };
package/locales/hi.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'टैग आवश्यक है',
66
66
  appIsInProgress: 'ऐप्लीकेशन प्रगति में है, कृपया पूरा होने तक प्रतीक्षा करें।',
67
67
  requestDidSpace: 'कृपया DID स्थान की प्राधिकरणदिये जारी रखें',
68
+ cannotImportFromDidSpace: 'डेटास्पेस({spaceName}) से आयात किए जा सकने वाले डेटा को खोजने में असमर्थ',
68
69
  };
package/locales/i18n.db CHANGED
Binary file
package/locales/id.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'Tag diperlukan',
66
66
  appIsInProgress: 'Aplikasi ini sedang berjalan, mohon tunggu hingga selesai',
67
67
  requestDidSpace: 'Silakan otorisasi DID Space untuk melanjutkan',
68
+ cannotImportFromDidSpace: 'Tidak dapat menemukan data dari ruang({spaceName}) yang dapat diimport',
68
69
  };
package/locales/ja.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'タグは必須です',
66
66
  appIsInProgress: 'アプリケーションは進行中です。完了するまでお待ちください',
67
67
  requestDidSpace: '続行するためにDID Spaceへの承認をお願いします',
68
+ cannotImportFromDidSpace: 'スペース ({spaceName}) からインポートできるデータが見つかりません',
68
69
  };
package/locales/ko.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: '태그가 필요합니다',
66
66
  appIsInProgress: '애플리케이션 진행 중입니다. 완료될 때까지 기다려주세요',
67
67
  requestDidSpace: '계속하려면 DID Space를 인증해주세요',
68
+ cannotImportFromDidSpace: '공간({spaceName})에서 가져올 수 있는 데이터를 찾을 수 없습니다.',
68
69
  };
package/locales/pt.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'A tag é necessária',
66
66
  appIsInProgress: 'O aplicativo está em progresso, por favor, aguarde até que ele termine',
67
67
  requestDidSpace: 'Por favor, autorize o DID Space a continuar',
68
+ cannotImportFromDidSpace: 'Não é possível encontrar dados do espaço({spaceName}) que podem ser importados',
68
69
  };
package/locales/ru.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'Требуется тег',
66
66
  appIsInProgress: 'Приложение находится в процессе, пожалуйста, подождите, пока оно закончится.',
67
67
  requestDidSpace: 'Пожалуйста, авторизуйте DID Space для продолжения',
68
+ cannotImportFromDidSpace: 'Не удалось найти данные в пространстве({spaceName}), которые можно импортировать',
68
69
  };
package/locales/th.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'ต้องใส่แท็ก',
66
66
  appIsInProgress: 'แอปพลิเคชันกำลังดำเนินการ โปรดรอให้เสร็จสิ้น',
67
67
  requestDidSpace: 'โปรดอนุญาตให้ DID Space ดำเนินการต่อ',
68
+ cannotImportFromDidSpace: 'ไม่สามารถค้นหาข้อมูลจากพื้นที่({spaceName}) ที่สามารถนำเข้า',
68
69
  };
package/locales/vi.js CHANGED
@@ -65,4 +65,5 @@ module.exports = {
65
65
  tagRequired: 'Tag là bắt buộc',
66
66
  appIsInProgress: 'Ứng dụng đang tiến hành, vui lòng đợi cho đến khi nó hoàn thành',
67
67
  requestDidSpace: 'Vui lòng cho phép DID Space tiếp tục',
68
+ cannotImportFromDidSpace: 'Không tìm thấy dữ liệu từ khoảng không({spaceName}) có thể nhập',
68
69
  };
package/locales/zh-tw.js CHANGED
@@ -63,4 +63,5 @@ module.exports = {
63
63
  tagRequired: '需要標籤',
64
64
  appIsInProgress: '應用程式正在進行中,請等待完成',
65
65
  requestDidSpace: '請授權DID Space繼續',
66
+ cannotImportFromDidSpace: '無法找到可從空間 ({spaceName}) 匯入的資料',
66
67
  };
package/locales/zh.js CHANGED
@@ -63,4 +63,5 @@ module.exports = {
63
63
  notAllowedTransferToSelf: '不能将节点转移给自己',
64
64
  tagRequired: 'tag 不能为空',
65
65
  appIsInProgress: '应用正在进行中,请等待完成',
66
+ cannotImportFromDidSpace: '无法从 DID Space({spaceName}) 中找到可以导入的数据',
66
67
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.25-next-44800645",
6
+ "version": "1.16.25-next-1ada5956",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,17 +20,17 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "Apache-2.0",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.16.25-next-44800645",
24
- "@abtnode/logger": "1.16.25-next-44800645",
25
- "@abtnode/util": "1.16.25-next-44800645",
23
+ "@abtnode/constant": "1.16.25-next-1ada5956",
24
+ "@abtnode/logger": "1.16.25-next-1ada5956",
25
+ "@abtnode/util": "1.16.25-next-1ada5956",
26
26
  "@arcblock/did": "1.18.113",
27
27
  "@arcblock/jwt": "^1.18.113",
28
- "@arcblock/nft-display": "^2.9.54",
28
+ "@arcblock/nft-display": "^2.9.60",
29
29
  "@arcblock/validator": "^1.18.113",
30
30
  "@arcblock/vc": "1.18.113",
31
- "@blocklet/constant": "1.16.25-next-44800645",
32
- "@blocklet/meta": "1.16.25-next-44800645",
33
- "@blocklet/sdk": "1.16.25-next-44800645",
31
+ "@blocklet/constant": "1.16.25-next-1ada5956",
32
+ "@blocklet/meta": "1.16.25-next-1ada5956",
33
+ "@blocklet/sdk": "1.16.25-next-1ada5956",
34
34
  "@ocap/client": "^1.18.113",
35
35
  "@ocap/mcrypto": "1.18.113",
36
36
  "@ocap/util": "1.18.113",
@@ -51,5 +51,5 @@
51
51
  "devDependencies": {
52
52
  "jest": "^29.7.0"
53
53
  },
54
- "gitHead": "7d09cee17eb88bcfe6a4b298a0394c5945aa5f2e"
54
+ "gitHead": "acabb2f45de011bb6db8038202c5632e85aef8f5"
55
55
  }