halfcab 13.0.4 → 13.0.8

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/README.md CHANGED
@@ -5,7 +5,7 @@ Halfcab is a universal JavaScript framework that assembles some elegant and easy
5
5
  [![CircleCI](https://circleci.com/gh/lorengreenfield/halfcab.svg?style=shield)](https://circleci.com/gh/lorengreenfield/halfcab) [![Coverage Status](https://coveralls.io/repos/github/lorengreenfield/halfcab/badge.svg?branch=master)](https://coveralls.io/github/lorengreenfield/halfcab?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/lorengreenfield/halfcab.svg)](https://greenkeeper.io/)
6
6
 
7
7
  ## ES Modules required
8
- Halfcab is no longer built as a common js distribution. The `esm` package is required in node, and an es2015 bundler is required for the browser (webpack, rollup, etc)
8
+ Halfcab is no longer built as a common js distribution.
9
9
 
10
10
  ## What you get
11
11
 
package/halfcab.mjs CHANGED
@@ -8,7 +8,7 @@ import axios from 'axios'
8
8
  import cssInject from 'csjs-inject'
9
9
  import merge from 'deepmerge'
10
10
  import marked from 'marked'
11
- import htmlEntities from 'html-entities'
11
+ import { decode } from 'html-entities'
12
12
  import eventEmitter from './eventEmitter'
13
13
  import qs from 'qs'
14
14
  import LRU from 'nanolru'
@@ -16,10 +16,8 @@ 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()
23
21
  let cssTag = cssInject
24
22
  let componentCSSString = ''
25
23
  let routesArray = []
@@ -312,7 +310,7 @@ function injectHTML (htmlString, options) {
312
310
  }
313
311
 
314
312
  function injectMarkdown (mdString, options) {
315
- return injectHTML(entities.decode(marked(mdString)), options) //using html as a regular function instead of a tag function, and prevent double encoding of ampersands while we're at it
313
+ return injectHTML(decode(marked(mdString)), options) //using html as a regular function instead of a tag function, and prevent double encoding of ampersands while we're at it
316
314
  }
317
315
 
318
316
  function gotoRoute (route) {
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "halfcab",
3
- "version": "13.0.4",
3
+ "version": "13.0.8",
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",
7
7
  "module": "halfcab.mjs",
8
8
  "jsnext:main": "halfcab.mjs",
9
- "esm": true,
10
9
  "scripts": {
11
10
  "test": "mocha --experimental-modules --es-module-specifier-resolution=node --experimental-json-modules './{,!(node_modules)/**}/test.js'",
12
11
  "test:coverage": "c8 --reporter=html --check-coverage --lines 75 --functions 75 --branches 75 npm test",
@@ -48,13 +47,13 @@
48
47
  "sinon-chai": "^3.0.0"
49
48
  },
50
49
  "dependencies": {
51
- "axios": "^0.19.0",
50
+ "axios": "^0.26.1",
52
51
  "csjs-inject": "^1.0.1",
53
52
  "deep-object-diff": "^1.1.0",
54
53
  "deepmerge": "^4.0.0",
55
54
  "event-emitter": "^0.3.5",
56
55
  "fast-clone": "^1.5.13",
57
- "html-entities": "^1.2.1",
56
+ "html-entities": "^2.3.2",
58
57
  "marked": "^0.7.0",
59
58
  "nanocomponent": "^6.5.2",
60
59
  "nanohtml": "^1.6.3",