@domain.js/main 0.7.4 → 0.7.6

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.
@@ -1,4 +1,4 @@
1
- export interface MyError {
1
+ export interface MyError extends Error {
2
2
  message: string;
3
3
  code?: string | number;
4
4
  data?: any;
@@ -152,7 +152,7 @@ function Utils(cnf) {
152
152
  const workBook = xlsx.utils.book_new();
153
153
  const workSheet = xlsx.utils.aoa_to_sheet([
154
154
  titles,
155
- ...rows.map((x) => keys.map((k) => x[k])),
155
+ ...rows.map((x) => keys.map((k) => lodash_1.default.get(x, k))),
156
156
  ]);
157
157
  xlsx.utils.book_append_sheet(workBook, workSheet);
158
158
  xlsx.writeFile(workBook, file, { bookType: "xlsx", type: "binary" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domain.js/main",
3
- "version": "0.7.4",
3
+ "version": "0.7.6",
4
4
  "description": "DDD framework",
5
5
  "main": "dist/index.js",
6
6
  "bin": {