@optimiser/common 1.0.440 → 1.0.442

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/dist/lib/utility.js +8 -1
  2. package/package.json +60 -60
@@ -2412,6 +2412,13 @@ function FilterConditions(condition, match, fields) {
2412
2412
  case "textarea":
2413
2413
  obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // [Rishi: QPC-10169] Escape string special characters
2414
2414
  break;
2415
+ case "lookup":
2416
+ case "multilookup":
2417
+ // escape special characters for CONTAINS operator [Ravi Mishra: QPC-10750]
2418
+ if (obj.Operator === "CONTAINS") {
2419
+ obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2420
+ }
2421
+ break;
2415
2422
  }
2416
2423
  }
2417
2424
  // Or Condition code in NOT_CONTAINS filter was added by Shahzaib for QPC-6368
@@ -6167,7 +6174,7 @@ function CheckProfilePermissions(permissionType, objectName, pageName, msp_d, db
6167
6174
  if (data && data.Permissions.length > 0) {
6168
6175
  for (_i = 0, _f = data.Permissions; _i < _f.length; _i++) {
6169
6176
  item = _f[_i];
6170
- if (item.ModuleID.toLowerCase() == objectName.toLowerCase() || ((_b = (_a = item.ModuleData) === null || _a === void 0 ? void 0 : _a.Objects) === null || _b === void 0 ? void 0 : _b.includes(objectName)) || (pageName && ((_d = (_c = item.ModuleData) === null || _c === void 0 ? void 0 : _c.Pages) === null || _d === void 0 ? void 0 : _d.includes(pageName)))) {
6177
+ if (item.ModuleID.toLowerCase() == (objectName === null || objectName === void 0 ? void 0 : objectName.toLowerCase()) || ((_b = (_a = item.ModuleData) === null || _a === void 0 ? void 0 : _a.Objects) === null || _b === void 0 ? void 0 : _b.includes(objectName)) || (pageName && ((_d = (_c = item.ModuleData) === null || _c === void 0 ? void 0 : _c.Pages) === null || _d === void 0 ? void 0 : _d.includes(pageName)))) {
6171
6178
  if (permissionType == "CheckOnlyAccess") {
6172
6179
  isAllowed = true;
6173
6180
  }
package/package.json CHANGED
@@ -1,60 +1,60 @@
1
- {
2
- "name": "@optimiser/common",
3
- "version": "1.0.440",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "compile": "tsc",
8
- "push": "tsc && npm version patch -git-tag-version false && npm publish"
9
- },
10
- "files": [
11
- "dist/*"
12
- ],
13
- "author": "",
14
- "license": "ISC",
15
- "dependencies": {
16
- "@types/geoip-lite": "^1.4.0",
17
- "@types/promise.allsettled": "^1.0.3",
18
- "@types/request": "^2.48.5",
19
- "@types/sanitize-html": "^2.11.0",
20
- "@types/sequelize": "^4.28.9",
21
- "@types/unzipper": "^0.10.3",
22
- "@types/uuid": "^8.3.0",
23
- "aws-sdk": "^2.786.0",
24
- "axios": "^0.21.4",
25
- "bson": "^4.2.0",
26
- "exceljs": "^4.3.0",
27
- "express": "^4.17.1",
28
- "express-validator": "^6.9.2",
29
- "firebase-admin": "^12.0.0",
30
- "geoip-lite": "^1.4.2",
31
- "google-libphonenumber": "^3.2.30",
32
- "html-to-text": "^8.2.0",
33
- "ioredis": "^4.17.3",
34
- "libphonenumber-js": "^1.9.51",
35
- "moment": "^2.25.3",
36
- "moment-timezone": "^0.5.27",
37
- "mongo-sanitize": "^1.1.0",
38
- "mongodb": "^3.6.2",
39
- "nodemailer": "^6.4.11",
40
- "promise.allsettled": "^1.0.2",
41
- "qrcode": "^1.5.3",
42
- "request": "^2.88.2",
43
- "sanitize-html": "^2.13.0",
44
- "sequelize": "^6.3.5",
45
- "typescript": "^5.3.3",
46
- "unzipper": "^0.10.11",
47
- "uuid": "^8.3.1"
48
- },
49
- "devDependencies": {
50
- "@types/aws-sdk": "^2.7.0",
51
- "@types/bson": "^4.0.2",
52
- "@types/exceljs": "^1.3.0",
53
- "@types/express": "^4.17.8",
54
- "@types/ioredis": "^4.17.4",
55
- "@types/moment": "^2.13.0",
56
- "@types/moment-timezone": "^0.5.30",
57
- "@types/mongodb": "^3.5.27",
58
- "@types/nodemailer": "^6.4.0"
59
- }
60
- }
1
+ {
2
+ "name": "@optimiser/common",
3
+ "version": "1.0.442",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "compile": "tsc",
8
+ "push": "tsc && npm version patch -git-tag-version false && npm publish"
9
+ },
10
+ "files": [
11
+ "dist/*"
12
+ ],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "@types/geoip-lite": "^1.4.0",
17
+ "@types/promise.allsettled": "^1.0.3",
18
+ "@types/request": "^2.48.5",
19
+ "@types/sanitize-html": "^2.11.0",
20
+ "@types/sequelize": "^4.28.9",
21
+ "@types/unzipper": "^0.10.3",
22
+ "@types/uuid": "^8.3.0",
23
+ "aws-sdk": "^2.786.0",
24
+ "axios": "^0.21.4",
25
+ "bson": "^4.2.0",
26
+ "exceljs": "^4.3.0",
27
+ "express": "^4.17.1",
28
+ "express-validator": "^6.9.2",
29
+ "firebase-admin": "^12.0.0",
30
+ "geoip-lite": "^1.4.2",
31
+ "google-libphonenumber": "^3.2.30",
32
+ "html-to-text": "^8.2.0",
33
+ "ioredis": "^4.17.3",
34
+ "libphonenumber-js": "^1.9.51",
35
+ "moment": "^2.25.3",
36
+ "moment-timezone": "^0.5.27",
37
+ "mongo-sanitize": "^1.1.0",
38
+ "mongodb": "^3.6.2",
39
+ "nodemailer": "^6.4.11",
40
+ "promise.allsettled": "^1.0.2",
41
+ "qrcode": "^1.5.3",
42
+ "request": "^2.88.2",
43
+ "sanitize-html": "^2.13.0",
44
+ "sequelize": "^6.3.5",
45
+ "typescript": "^5.3.3",
46
+ "unzipper": "^0.10.11",
47
+ "uuid": "^8.3.1"
48
+ },
49
+ "devDependencies": {
50
+ "@types/aws-sdk": "^2.7.0",
51
+ "@types/bson": "^4.0.2",
52
+ "@types/exceljs": "^1.3.0",
53
+ "@types/express": "^4.17.8",
54
+ "@types/ioredis": "^4.17.4",
55
+ "@types/moment": "^2.13.0",
56
+ "@types/moment-timezone": "^0.5.30",
57
+ "@types/mongodb": "^3.5.27",
58
+ "@types/nodemailer": "^6.4.0"
59
+ }
60
+ }