@scifeon/sdk 0.90.0 → 0.91.0

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.
package/dist/cli/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -15,7 +15,12 @@ function webpackRunner(mode) {
15
15
  chunks: false,
16
16
  colors: true,
17
17
  };
18
- console.log(stats.toString(config));
18
+ if (err) {
19
+ console.error(err);
20
+ }
21
+ if (stats) {
22
+ console.log(stats.toString(config));
23
+ }
19
24
  });
20
25
  }
21
26
  exports.webpackRunner = webpackRunner;
@@ -1,5 +1,5 @@
1
- import { WorkBook } from "@scifeon/plugins/src/xlsx-types";
1
+ import { ParsingOptions, WorkBook } from "@scifeon/plugins/src/xlsx-types";
2
2
  export declare class TestHelper {
3
3
  static XLSX(): Promise<any>;
4
- static fileToXLSX(filename: string): Promise<WorkBook>;
4
+ static fileToXLSX(filename: string, options?: ParsingOptions): Promise<WorkBook>;
5
5
  }
@@ -33,13 +33,13 @@ const requireURL = (url) => __awaiter(void 0, void 0, void 0, function* () {
33
33
  class TestHelper {
34
34
  static XLSX() {
35
35
  return __awaiter(this, void 0, void 0, function* () {
36
- return yield requireURL(XLSX_URL);
36
+ return requireURL(XLSX_URL);
37
37
  });
38
38
  }
39
- static fileToXLSX(filename) {
39
+ static fileToXLSX(filename, options = { cellDates: true }) {
40
40
  return __awaiter(this, void 0, void 0, function* () {
41
41
  const xlsx = yield TestHelper.XLSX();
42
- return xlsx.read(fs.readFileSync(filename));
42
+ return xlsx.read(fs.readFileSync(filename), options);
43
43
  });
44
44
  }
45
45
  }
@@ -29,11 +29,11 @@ class WebpackUtils {
29
29
  scifeonVersion = scifeonVersion.replace("--scifeon-version=", "");
30
30
  publicPath = "https://scifeon.azureedge.net/";
31
31
  if (prefix) {
32
- publicPath += prefix + "/";
32
+ publicPath += `${prefix}/`;
33
33
  }
34
- publicPath += scifeonVersion + "/";
34
+ publicPath += `${scifeonVersion}/`;
35
35
  if (postfix) {
36
- publicPath += postfix + "/";
36
+ publicPath += `${postfix}/`;
37
37
  }
38
38
  }
39
39
  return publicPath;
@@ -55,9 +55,7 @@ function getFileDirectory(filePath) {
55
55
  if (filePath.indexOf("/") === -1) {
56
56
  return filePath.substring(0, filePath.lastIndexOf("\\"));
57
57
  }
58
- else {
59
- return filePath.substring(0, filePath.lastIndexOf("/"));
60
- }
58
+ return filePath.substring(0, filePath.lastIndexOf("/"));
61
59
  }
62
60
  class IgnoreNotFoundExportPlugin {
63
61
  apply(compiler) {
@@ -67,7 +65,14 @@ class IgnoreNotFoundExportPlugin {
67
65
  const ignoreWarn2 = /export 'default'( \(imported as '.*'\))? was not found in/;
68
66
  const ignoreWarn3 = /export '.*'( \(imported as '.*'\))? was not found in/;
69
67
  if (warn.constructor.name === "ModuleDependencyWarning"
70
- && (ignoreWarn1.test(warn.message) || ignoreWarn2.test(warn.message) || ignoreWarn3.test(warn.message))) {
68
+ && (ignoreWarn1.test(warn.message)
69
+ || ignoreWarn2.test(warn.message)
70
+ || ignoreWarn3.test(warn.message))) {
71
+ return false;
72
+ }
73
+ if (warn.constructor.name === "ModuleWarning"
74
+ && warn.message.includes("Can't resolve")
75
+ && warn.message.includes("chevrotain")) {
71
76
  return false;
72
77
  }
73
78
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scifeon/sdk",
3
- "version": "0.90.0",
3
+ "version": "0.91.0",
4
4
  "description": "A tool for developing Apps for Scifeon.",
5
5
  "author": {
6
6
  "name": "Scifeon",
@@ -25,14 +25,14 @@
25
25
  "watch:test": "npm run test -- --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@types/chai": "4.2.11",
29
- "adm-zip": "0.4.14",
30
- "aurelia-bootstrapper": "2.3.3",
28
+ "@types/chai": "4.3.1",
29
+ "adm-zip": "0.5.9",
30
+ "aurelia-bootstrapper": "2.4.0",
31
31
  "aurelia-webpack-plugin": "4.0.0",
32
- "chai": "4.2.0",
32
+ "chai": "4.3.6",
33
33
  "chalk": "2.4.2",
34
34
  "commander": "4.0.0",
35
- "chokidar": "^2.1.8",
35
+ "chokidar": "3.5.3",
36
36
  "copy-webpack-plugin": "5.1.1",
37
37
  "css-loader": "3.5.3",
38
38
  "file-loader": "6.0.0",
@@ -40,33 +40,33 @@
40
40
  "html-loader": "1.1.0",
41
41
  "json-loader": "0.5.7",
42
42
  "mini-css-extract-plugin": "0.9.0",
43
- "mocha": "7.1.2",
44
- "mocha-junit-reporter": "1.23.3",
45
43
  "node-fetch": "2.6.0",
44
+ "mocha": "10.0.0",
45
+ "mocha-junit-reporter": "2.0.2",
46
46
  "node-hook": "1.0.0",
47
47
  "openurl": "1.1.1",
48
48
  "optimize-css-assets-webpack-plugin": "5.0.3",
49
49
  "post-compile-webpack-plugin": "0.1.2",
50
50
  "progress": "2.0.3",
51
- "prompt": "1.0.0",
52
- "resolve": "1.17.0",
53
- "sass": "1.26.5",
51
+ "prompt": "1.3.0",
52
+ "resolve": "1.22.0",
53
+ "sass": "1.52.3",
54
54
  "sass-loader": "8.0.2",
55
- "semver": "7.3.2",
55
+ "semver": "7.3.7",
56
56
  "style-loader": "1.2.1",
57
57
  "terser-webpack-plugin": "2.3.6",
58
58
  "ts-loader": "8.3.0",
59
- "ts-node": "8.9.1",
59
+ "ts-node": "10.8.1",
60
60
  "tsconfig-paths-webpack-plugin": "3.2.0",
61
- "tslib": "2.3.1",
62
- "typescript": "4.4.2",
61
+ "tslib": "2.4.0",
62
+ "typescript": "4.6.4",
63
63
  "url-loader": "4.1.0",
64
64
  "webpack": "4.43.0",
65
65
  "webpack-cli": "3.3.11",
66
66
  "webpack-dev-server": "3.10.3"
67
67
  },
68
68
  "devDependencies": {
69
- "@types/node": "13.13.4",
69
+ "@types/node": "17.0.41",
70
70
  "rimraf": "3.0.2"
71
71
  }
72
72
  }