halfcab 13.0.6 → 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 +1 -1
- package/halfcab.mjs +2 -3
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Halfcab is a universal JavaScript framework that assembles some elegant and easy
|
|
|
5
5
|
[](https://circleci.com/gh/lorengreenfield/halfcab) [](https://coveralls.io/github/lorengreenfield/halfcab?branch=master) [](https://greenkeeper.io/)
|
|
6
6
|
|
|
7
7
|
## ES Modules required
|
|
8
|
-
Halfcab is no longer built as a common js distribution.
|
|
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
|
|
11
|
+
import { decode } from 'html-entities'
|
|
12
12
|
import eventEmitter from './eventEmitter'
|
|
13
13
|
import qs from 'qs'
|
|
14
14
|
import LRU from 'nanolru'
|
|
@@ -18,7 +18,6 @@ import clone from 'fast-clone'
|
|
|
18
18
|
|
|
19
19
|
const cache = LRU(5000)
|
|
20
20
|
|
|
21
|
-
let entities = new htmlEntities.AllHtmlEntities()
|
|
22
21
|
let cssTag = cssInject
|
|
23
22
|
let componentCSSString = ''
|
|
24
23
|
let routesArray = []
|
|
@@ -311,7 +310,7 @@ function injectHTML (htmlString, options) {
|
|
|
311
310
|
}
|
|
312
311
|
|
|
313
312
|
function injectMarkdown (mdString, options) {
|
|
314
|
-
return injectHTML(
|
|
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
|
|
315
314
|
}
|
|
316
315
|
|
|
317
316
|
function gotoRoute (route) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "halfcab",
|
|
3
|
-
"version": "13.0.
|
|
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",
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
"deepmerge": "^4.0.0",
|
|
55
54
|
"event-emitter": "^0.3.5",
|
|
56
55
|
"fast-clone": "^1.5.13",
|
|
57
|
-
"html-entities": "^
|
|
56
|
+
"html-entities": "^2.3.2",
|
|
58
57
|
"marked": "^0.7.0",
|
|
59
58
|
"nanocomponent": "^6.5.2",
|
|
60
59
|
"nanohtml": "^1.6.3",
|