@blocklet/launcher-util 2.0.42 → 2.0.43

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.
@@ -4,6 +4,13 @@ module.exports = (locales) => {
4
4
  Object.prototype.hasOwnProperty.call(data || {}, key) ? data[key] : ''
5
5
  );
6
6
 
7
+ /**
8
+ * 翻译函数
9
+ * @param {string} key
10
+ * @param {string} locale
11
+ * @param {object} [params]
12
+ * @returns {string}
13
+ */
7
14
  const translate = (key, locale, params) => {
8
15
  if (!locales[locale]) {
9
16
  // eslint-disable-next-line no-param-reassign
@@ -25,7 +25,7 @@ class Notification {
25
25
 
26
26
  this.logger.info('text message was sent', { to, payload: JSON.stringify(payload, null, 2) });
27
27
  } catch (error) {
28
- this.logger.error('send text message failed', { error, to, message });
28
+ this.logger.error('send text message failed', { error, to, message, actions, attachments });
29
29
  throw error;
30
30
  }
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-util",
3
- "version": "2.0.42",
3
+ "version": "2.0.43",
4
4
  "description": "Common constants",
5
5
  "keywords": [
6
6
  "constant"
@@ -42,5 +42,5 @@
42
42
  "nodemailer": "^6.9.2",
43
43
  "url-join": "^4.0.1"
44
44
  },
45
- "gitHead": "4ec71e9e15bf5d2ec6ab9f084c60af19bdcd5992"
45
+ "gitHead": "33508a3b09378e15d5bc9f9e5f2342697c0c99f8"
46
46
  }