@nattyjs/core 0.0.1-beta.44 → 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
 
@@ -491,7 +475,7 @@ const entityContainer = new class {
491
475
  }
492
476
  getPropertyValidators(entityName, propName) {
493
477
  const entityInfo = this.entityConfig[entityName];
494
- const propertyInfo = entityInfo.properties[propName];
478
+ const propertyInfo = entityInfo ? entityInfo.properties[propName] : void 0;
495
479
  return propertyInfo ? propertyInfo.validators : {};
496
480
  }
497
481
  getProperties(entityName) {
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
 
@@ -489,7 +473,7 @@ const entityContainer = new class {
489
473
  }
490
474
  getPropertyValidators(entityName, propName) {
491
475
  const entityInfo = this.entityConfig[entityName];
492
- const propertyInfo = entityInfo.properties[propName];
476
+ const propertyInfo = entityInfo ? entityInfo.properties[propName] : void 0;
493
477
  return propertyInfo ? propertyInfo.validators : {};
494
478
  }
495
479
  getProperties(entityName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/core",
3
- "version": "0.0.1-beta.44",
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.44"
21
+ "@nattyjs/common": "0.0.1-beta.46"
22
22
  },
23
23
  "devDependencies": {
24
24
  "unbuild": "1.2.1"