@ind-rcg/backend 256.1006.0 → 258.1003.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.
Binary file
package/package.json CHANGED
@@ -1,32 +1,33 @@
1
1
  {
2
2
  "name": "@ind-rcg/backend",
3
- "version": "256.1006.0",
3
+ "version": "258.1003.0",
4
4
  "author": "Salesforce",
5
5
  "license": "BSD-3-Clause",
6
6
  "description": "This backend module is required to simulate the application of Consumer Goods Mobile Application. This modules can only be used in modeler-sfdx-cli-plugin.",
7
7
  "dependencies": {
8
8
  "bindings": "1.5.0",
9
- "body-parser": "1.20.3",
9
+ "body-parser": "2.2.0",
10
10
  "copyfiles": "2.4.1",
11
- "express": "4.21.2",
11
+ "express": "5.1.0",
12
12
  "lodash": "4.17.21",
13
13
  "log4js": "6.9.1",
14
14
  "md5": "2.3.0",
15
15
  "mkdirp": "3.0.1",
16
- "node-addon-api": "8.1.0",
16
+ "node-addon-api": "8.3.1",
17
17
  "node-fetch": "3.3.2",
18
18
  "pako": "2.1.0",
19
19
  "rimraf": "6.0.1",
20
- "sharp": "0.32.6",
20
+ "sharp": "0.34.1",
21
21
  "sqlite3": "5.1.7",
22
22
  "sqlite3-transactions": "0.0.5",
23
23
  "yargs": "17.7.2"
24
24
  },
25
25
  "scripts": {
26
- "test": "mocha --recursive --timeout 3000 --retries 3",
27
- "testWithLcovReport": "nyc --reporter=lcov --reporter=text-lcov mocha --recursive --timeout 3000 --retries 3",
28
- "testSingle": "mocha test/local-test.js --timeout 3000 --retries 3",
26
+ "test": "mocha --recursive --timeout 5000 --retries 3",
27
+ "testWithLcovReport": "nyc --reporter=lcov --reporter=text-lcov mocha --recursive --timeout 5000 --retries 3",
28
+ "testSingle": "mocha test/sfAttachmentsHandler-test.mjs --timeout 5000 --retries 3",
29
29
  "lint": "npx eslint *.js src/*.js src/**/*.js test/*.js test/**/*.js",
30
+ "lintFix": "npx eslint --fix *.js src/*.js src/**/*.js test/*.js test/**/*.js",
30
31
  "start": "node src/server.js",
31
32
  "nativeConfigure": "node-gyp configure",
32
33
  "nativeBuild": "node-gyp build",
@@ -59,13 +60,13 @@
59
60
  "log4js.json"
60
61
  ],
61
62
  "devDependencies": {
62
- "@ind-rcg/com-salesforce-rcg-sqlite-extensions": "250.1001.0",
63
- "chai": "4.5.0",
64
- "eslint": "8.56.0",
63
+ "@ind-rcg/com-salesforce-rcg-sqlite-extensions": "254.1001.0",
64
+ "chai": "5.2.0",
65
+ "eslint": "9.26.0",
65
66
  "jszip": "3.10.1",
66
- "mocha": "10.7.3",
67
- "nyc": "17.0.0",
68
- "supertest": "7.0.0"
67
+ "mocha": "11.2.2",
68
+ "nyc": "17.1.0",
69
+ "supertest": "7.1.0"
69
70
  },
70
71
  "overrides": {
71
72
  "sqlite3": {
package/src/bootstrap.js CHANGED
@@ -14,13 +14,13 @@ const _ = require('lodash');
14
14
  const fs = require("fs");
15
15
  const path = require("path");
16
16
  const GlobalConfig = require('./globalConfig');
17
+ // eslint-disable-next-line no-redeclare
17
18
  let fetch = null;
18
19
  let salesforceInstanceURL;
19
- //let salesforceAccessToken;
20
20
 
21
21
  async function loadESModule() {
22
- // eslint-disable-next-line no-shadow
23
- fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
22
+ // eslint-disable-next-line no-shadow, no-global-assign
23
+ fetch = (...args) => import('node-fetch').then(({default: fetch}) => fetch(...args));
24
24
  return fetch;
25
25
  }
26
26
 
@@ -153,4 +153,4 @@ module.exports.setup = (webServerConfig) => {
153
153
 
154
154
  module.exports.closeConnection = () => {
155
155
  local.closeDBConnection();
156
- };
156
+ };