scheduler-node-models 1.2.53 → 1.2.55

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
- import { RichText, Style, Worksheet } from "@zurmokeeper/exceljs";
1
+ import { RichText, Style, Worksheet } from "exceljs";
2
2
  export declare class Formula {
3
3
  formula: string;
4
4
  constructor(formula: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scheduler-node-models",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "files": [
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExcelRowIngest = void 0;
4
- const exceljs_1 = require("@zurmokeeper/exceljs");
4
+ const exceljs_1 = require("exceljs");
5
5
  const sites_1 = require("../sites");
6
6
  const teams_1 = require("../teams");
7
7
  const excelRow_1 = require("./excelRow");
@@ -57,7 +57,10 @@ class ExcelRowIngest {
57
57
  const fileBinary = Buffer.from(fileDataU8);
58
58
  const workbook = new exceljs_1.Workbook();
59
59
  console.log(`password = ${password}`);
60
- await workbook.xlsx.load(fileBinary.buffer, { password: password });
60
+ await workbook.xlsx.load(fileBinary.buffer);
61
+ workbook.eachSheet((sheet, s) => {
62
+ console.log(sheet.name);
63
+ });
61
64
  const worksheet = workbook.getWorksheet('Sheet1');
62
65
  if (worksheet) {
63
66
  worksheet.eachRow((row, r) => {
@@ -127,6 +130,9 @@ class ExcelRowIngest {
127
130
  }
128
131
  });
129
132
  }
133
+ else {
134
+ throw new Error('No worksheet');
135
+ }
130
136
  result.sort((a, b) => a.compareTo(b));
131
137
  return result;
132
138
  }
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SAPIngest = void 0;
4
4
  const teams_1 = require("../teams");
5
5
  const excelRow_1 = require("./excelRow");
6
- const exceljs_1 = require("@zurmokeeper/exceljs");
6
+ const exceljs_1 = require("exceljs");
7
7
  class SAPIngest {
8
8
  files;
9
9
  team;