@jtff/miztemplate-lib 3.0.4 → 3.0.5

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/lib/mizlib.js +2 -1
  2. package/package.json +1 -1
package/lib/mizlib.js CHANGED
@@ -7,6 +7,7 @@ const {promisify} = require("util");
7
7
  const fs = require("fs");
8
8
  const {getInstalledPathSync} = require("get-installed-path");
9
9
  const lstat = promisify(fs.lstat);
10
+ let _ = require('lodash');
10
11
 
11
12
  class Mizlib {
12
13
  constructor() {
@@ -451,7 +452,7 @@ class Mizlib {
451
452
  if (_.isEmpty(data)) {
452
453
  return `\n${indentation}{\n${indentation}}`;
453
454
  }
454
- return `\n${indentation}{\n${map(
455
+ return `\n${indentation}{\n${_.map(
455
456
  data,
456
457
  (value, key) =>
457
458
  `${indentation} [${!_.isNaN(key)?key:this.js2Lua(key)}] = ${this.js2Lua(value, depth + 1)}${_.isObject(value)?`, -- end of [${!_.isNaN(key)?key:this.js2Lua(key)}]`:","}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [