@optimiser/common 1.0.441 → 1.0.444

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 +9 -0
  2. package/package.json +61 -60
@@ -2412,6 +2412,15 @@ 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
+ if (typeof obj.Value === "string") {
2420
+ obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2421
+ }
2422
+ }
2423
+ break;
2415
2424
  }
2416
2425
  }
2417
2426
  // Or Condition code in NOT_CONTAINS filter was added by Shahzaib for QPC-6368
package/package.json CHANGED
@@ -1,60 +1,61 @@
1
- {
2
- "name": "@optimiser/common",
3
- "version": "1.0.441",
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.444",
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
+ "push1": "tsc && npm publish"
10
+ },
11
+ "files": [
12
+ "dist/*"
13
+ ],
14
+ "author": "",
15
+ "license": "ISC",
16
+ "dependencies": {
17
+ "@types/geoip-lite": "^1.4.0",
18
+ "@types/promise.allsettled": "^1.0.3",
19
+ "@types/request": "^2.48.5",
20
+ "@types/sanitize-html": "^2.11.0",
21
+ "@types/sequelize": "^4.28.9",
22
+ "@types/unzipper": "^0.10.3",
23
+ "@types/uuid": "^8.3.0",
24
+ "aws-sdk": "^2.786.0",
25
+ "axios": "^0.21.4",
26
+ "bson": "^4.2.0",
27
+ "exceljs": "^4.3.0",
28
+ "express": "^4.17.1",
29
+ "express-validator": "^6.9.2",
30
+ "firebase-admin": "^12.0.0",
31
+ "geoip-lite": "^1.4.2",
32
+ "google-libphonenumber": "^3.2.30",
33
+ "html-to-text": "^8.2.0",
34
+ "ioredis": "^4.17.3",
35
+ "libphonenumber-js": "^1.9.51",
36
+ "moment": "^2.25.3",
37
+ "moment-timezone": "^0.5.27",
38
+ "mongo-sanitize": "^1.1.0",
39
+ "mongodb": "^3.6.2",
40
+ "nodemailer": "^6.4.11",
41
+ "promise.allsettled": "^1.0.2",
42
+ "qrcode": "^1.5.3",
43
+ "request": "^2.88.2",
44
+ "sanitize-html": "^2.13.0",
45
+ "sequelize": "^6.3.5",
46
+ "typescript": "^5.3.3",
47
+ "unzipper": "^0.10.11",
48
+ "uuid": "^8.3.1"
49
+ },
50
+ "devDependencies": {
51
+ "@types/aws-sdk": "^2.7.0",
52
+ "@types/bson": "^4.0.2",
53
+ "@types/exceljs": "^1.3.0",
54
+ "@types/express": "^4.17.8",
55
+ "@types/ioredis": "^4.17.4",
56
+ "@types/moment": "^2.13.0",
57
+ "@types/moment-timezone": "^0.5.30",
58
+ "@types/mongodb": "^3.5.27",
59
+ "@types/nodemailer": "^6.4.0"
60
+ }
61
+ }