@optimiser/common 1.0.432 → 1.0.434

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 +7 -4
  2. package/package.json +60 -60
@@ -4824,10 +4824,13 @@ var CustomSanitizeHtml = function (dirtyHtml, uiDataType) {
4824
4824
  try {
4825
4825
  // Sanitize the HTML content
4826
4826
  var sanitizedHtmlContent = (0, sanitize_html_1.default)(dirtyHtml, sanitizeOptions);
4827
- return sanitizedHtmlContent; //Replace code commented fixed QPC-11110 script data save
4828
- // .replace(/&/g, '&')
4829
- // .replace(/&lt;/g, '<')
4830
- // .replace(/&gt;/g, '>');
4827
+ if (uiDataType === 'texteditor') {
4828
+ return sanitizedHtmlContent; //Return without replace code fixed QPC-11110 script data save
4829
+ }
4830
+ return sanitizedHtmlContent
4831
+ .replace(/&amp;/g, '&')
4832
+ .replace(/&lt;/g, '<')
4833
+ .replace(/&gt;/g, '>');
4831
4834
  }
4832
4835
  catch (error) {
4833
4836
  console.error('Sanitization failed:', error);
package/package.json CHANGED
@@ -1,60 +1,60 @@
1
- {
2
- "name": "@optimiser/common",
3
- "version": "1.0.432",
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.434",
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
+ }