@nattyjs/core 0.0.1-beta.45 → 0.0.1-beta.46

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.
package/dist/index.cjs CHANGED
@@ -221,23 +221,7 @@ var RequestPipeline = /* @__PURE__ */ ((RequestPipeline2) => {
221
221
  return RequestPipeline2;
222
222
  })(RequestPipeline || {});
223
223
 
224
- function lessThan(value) {
225
- return value ? value.replace(/</g, "&lt;") : value;
226
- }
227
- function greaterThan(value) {
228
- return value ? value.replace(/>/g, "&gt;") : value;
229
- }
230
- function ampersand(value) {
231
- return value ? value.replace(/&/g, "&amp;") : value;
232
- }
233
- function doubleDash(value) {
234
- return value ? value.replace(/--/g, "") : value;
235
- }
236
224
  function sanitizeSpecialCodes(value) {
237
- value = ampersand(value);
238
- value = lessThan(value);
239
- value = greaterThan(value);
240
- value = doubleDash(value);
241
225
  return value;
242
226
  }
243
227
 
package/dist/index.mjs CHANGED
@@ -219,23 +219,7 @@ var RequestPipeline = /* @__PURE__ */ ((RequestPipeline2) => {
219
219
  return RequestPipeline2;
220
220
  })(RequestPipeline || {});
221
221
 
222
- function lessThan(value) {
223
- return value ? value.replace(/</g, "&lt;") : value;
224
- }
225
- function greaterThan(value) {
226
- return value ? value.replace(/>/g, "&gt;") : value;
227
- }
228
- function ampersand(value) {
229
- return value ? value.replace(/&/g, "&amp;") : value;
230
- }
231
- function doubleDash(value) {
232
- return value ? value.replace(/--/g, "") : value;
233
- }
234
222
  function sanitizeSpecialCodes(value) {
235
- value = ampersand(value);
236
- value = lessThan(value);
237
- value = greaterThan(value);
238
- value = doubleDash(value);
239
223
  return value;
240
224
  }
241
225
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/core",
3
- "version": "0.0.1-beta.45",
3
+ "version": "0.0.1-beta.46",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "ajayojha",
@@ -18,7 +18,7 @@
18
18
  "reflect-metadata": "0.2.2",
19
19
  "tsyringe": "^4.7.0",
20
20
  "path-to-regexp": "6.2.1",
21
- "@nattyjs/common": "0.0.1-beta.45"
21
+ "@nattyjs/common": "0.0.1-beta.46"
22
22
  },
23
23
  "devDependencies": {
24
24
  "unbuild": "1.2.1"