@optimiser/common 1.0.442 → 1.0.445

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 -2
  2. package/package.json +60 -60
@@ -2415,8 +2415,15 @@ function FilterConditions(condition, match, fields) {
2415
2415
  case "lookup":
2416
2416
  case "multilookup":
2417
2417
  // escape special characters for CONTAINS operator [Ravi Mishra: QPC-10750]
2418
- if (obj.Operator === "CONTAINS") {
2419
- obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2418
+ if (obj.Operator === "CONTAINS" ||
2419
+ obj.Operator === "NOT_CONTAINS" ||
2420
+ obj.Operator === "EQUAL" ||
2421
+ obj.Operator === "NOT_EQUAL" ||
2422
+ obj.Operator === "STARTS_WITH" ||
2423
+ obj.Operator === "END_WITH") {
2424
+ if (typeof obj.Value === "string") {
2425
+ obj.Value = obj.Value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2426
+ }
2420
2427
  }
2421
2428
  break;
2422
2429
  }
package/package.json CHANGED
@@ -1,60 +1,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
- }
1
+ {
2
+ "name": "@optimiser/common",
3
+ "version": "1.0.445",
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
+ }