@power-bots/powerbotlibrary 0.5.2 → 0.5.3

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.
Files changed (2) hide show
  1. package/dist/lib/lang.js +5 -1
  2. package/package.json +1 -1
package/dist/lib/lang.js CHANGED
@@ -26,7 +26,11 @@ function localize(obj, lang, args) {
26
26
  return obj;
27
27
  }
28
28
  if (Array.isArray(obj)) {
29
- return obj.map((item) => __awaiter(this, void 0, void 0, function* () { return yield localize(item, lang, args); }));
29
+ let results = [];
30
+ for (const item of obj) {
31
+ results.push(yield localize(item, lang, args));
32
+ }
33
+ return results;
30
34
  }
31
35
  if (typeof obj === "object" && obj !== null) {
32
36
  const result = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@power-bots/powerbotlibrary",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/main.d.ts",
6
6
  "dependencies": {