halfcab 13.0.3 → 13.0.6

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/halfcab.mjs +12 -5
  2. package/package.json +2 -2
package/halfcab.mjs CHANGED
@@ -16,10 +16,9 @@ import Component from 'nanocomponent'
16
16
  import * as deepDiff from 'deep-object-diff'
17
17
  import clone from 'fast-clone'
18
18
 
19
- const {AllHtmlEntities} = htmlEntities
20
19
  const cache = LRU(5000)
21
20
 
22
- let entities = new AllHtmlEntities()
21
+ let entities = new htmlEntities.AllHtmlEntities()
23
22
  let cssTag = cssInject
24
23
  let componentCSSString = ''
25
24
  let routesArray = []
@@ -360,9 +359,17 @@ function removeFromHoldingPen (holdingPen, removal) {
360
359
  let currentValid = holdingPen[getSymbol(holdingPen, 'valid')]
361
360
  let currentTouched = holdingPen[getSymbol(holdingPen, 'touched')]
362
361
  removal.forEach(key => {
363
- delete currentValid[key]
364
- delete currentTouched[key]
365
- delete holdingPen[key]
362
+ if(currentValid){
363
+ delete currentValid[key]
364
+ }
365
+
366
+ if(currentTouched){
367
+ delete currentTouched[key]
368
+ }
369
+
370
+ if(holdingPen){
371
+ delete holdingPen[key]
372
+ }
366
373
  })
367
374
  }
368
375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "halfcab",
3
- "version": "13.0.3",
3
+ "version": "13.0.6",
4
4
  "type": "module",
5
5
  "description": "A simple universal JavaScript framework focused on making use of es2015 template strings to build components.",
6
6
  "main": "halfcab.mjs",
@@ -48,7 +48,7 @@
48
48
  "sinon-chai": "^3.0.0"
49
49
  },
50
50
  "dependencies": {
51
- "axios": "^0.19.0",
51
+ "axios": "^0.26.1",
52
52
  "csjs-inject": "^1.0.1",
53
53
  "deep-object-diff": "^1.1.0",
54
54
  "deepmerge": "^4.0.0",