@etsoo/appscript 1.5.38 → 1.5.39

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.
@@ -14,16 +14,14 @@ var CultureUtils;
14
14
  */
15
15
  function make(...resources) {
16
16
  return shared_1.DomUtils.zhHans(async () => {
17
- const rs = await Promise.all([
18
- ...resources.map((resource) => new Promise((resolve) => {
19
- if (typeof resource === 'object') {
20
- resolve(resource);
21
- }
22
- else {
23
- resource().then((result) => resolve(result));
24
- }
25
- }))
26
- ]);
17
+ const rs = await Promise.all(resources.map((resource) => new Promise((resolve) => {
18
+ if (typeof resource === 'object') {
19
+ resolve(resource);
20
+ }
21
+ else {
22
+ resource().then((result) => resolve(result));
23
+ }
24
+ })));
27
25
  return rs.reduce((prev, curr) => ({
28
26
  ...prev,
29
27
  ...curr
@@ -183,7 +183,7 @@
183
183
  "serviceDisabled": "The service is not enabled or has been disabled",
184
184
  "showIt": "Show it",
185
185
  "signout": "Sign out",
186
- "smartERP": "SmartERP",
186
+ "smartERP": "SmartERP Cloud",
187
187
  "sortTip": "Drag and drop items to sort",
188
188
  "state": "Province/State",
189
189
  "status": "Status",
@@ -11,16 +11,14 @@ export var CultureUtils;
11
11
  */
12
12
  function make(...resources) {
13
13
  return DomUtils.zhHans(async () => {
14
- const rs = await Promise.all([
15
- ...resources.map((resource) => new Promise((resolve) => {
16
- if (typeof resource === 'object') {
17
- resolve(resource);
18
- }
19
- else {
20
- resource().then((result) => resolve(result));
21
- }
22
- }))
23
- ]);
14
+ const rs = await Promise.all(resources.map((resource) => new Promise((resolve) => {
15
+ if (typeof resource === 'object') {
16
+ resolve(resource);
17
+ }
18
+ else {
19
+ resource().then((result) => resolve(result));
20
+ }
21
+ })));
24
22
  return rs.reduce((prev, curr) => ({
25
23
  ...prev,
26
24
  ...curr
@@ -183,7 +183,7 @@
183
183
  "serviceDisabled": "The service is not enabled or has been disabled",
184
184
  "showIt": "Show it",
185
185
  "signout": "Sign out",
186
- "smartERP": "SmartERP",
186
+ "smartERP": "SmartERP Cloud",
187
187
  "sortTip": "Drag and drop items to sort",
188
188
  "state": "Province/State",
189
189
  "status": "Status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.5.38",
3
+ "version": "1.5.39",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -11,8 +11,8 @@ export namespace CultureUtils {
11
11
  */
12
12
  export function make(...resources: (object | (() => Promise<object>))[]) {
13
13
  return DomUtils.zhHans(async () => {
14
- const rs = await Promise.all([
15
- ...resources.map(
14
+ const rs = await Promise.all(
15
+ resources.map(
16
16
  (resource) =>
17
17
  new Promise<object>((resolve) => {
18
18
  if (typeof resource === 'object') {
@@ -22,7 +22,7 @@ export namespace CultureUtils {
22
22
  }
23
23
  })
24
24
  )
25
- ]);
25
+ );
26
26
  return rs.reduce((prev, curr) => ({
27
27
  ...prev,
28
28
  ...curr
package/src/i18n/en.json CHANGED
@@ -183,7 +183,7 @@
183
183
  "serviceDisabled": "The service is not enabled or has been disabled",
184
184
  "showIt": "Show it",
185
185
  "signout": "Sign out",
186
- "smartERP": "SmartERP",
186
+ "smartERP": "SmartERP Cloud",
187
187
  "sortTip": "Drag and drop items to sort",
188
188
  "state": "Province/State",
189
189
  "status": "Status",