html-crush 5.1.19 → 5.1.20
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/CHANGELOG.md +9 -14
- package/dist/html-crush.esm.js +4 -4
- package/dist/html-crush.umd.js +11 -11
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -28,7 +28,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
28
28
|
|
|
29
29
|
### BREAKING CHANGES
|
|
30
30
|
|
|
31
|
-
- programs now are in ES Modules and won't work with Common JS require()
|
|
31
|
+
- programs now are in ES Modules and won't work with Common JS `require()`
|
|
32
32
|
|
|
33
33
|
## 4.2.0 (2021-05-24)
|
|
34
34
|
|
|
@@ -58,7 +58,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
58
58
|
|
|
59
59
|
### Fixed
|
|
60
60
|
|
|
61
|
-
- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
61
|
+
- add `testStats` to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
62
62
|
- correct the line length calculation around inline tags ([073f7a5](https://github.com/codsen/codsen/commit/073f7a5a2bb3f8ce0460e674deed9cf1eff63409))
|
|
63
63
|
|
|
64
64
|
## 4.0.0 (2021-01-23)
|
|
@@ -81,7 +81,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
81
81
|
|
|
82
82
|
### Fixed
|
|
83
83
|
|
|
84
|
-
- fix typo in the output, in log.timeTakenInMilliseconds ([48debda](https://gitlab.com/codsen/codsen/commit/48debda98858aa83d6f7df4a3b7f85895756d67e))
|
|
84
|
+
- fix typo in the output, in `log.timeTakenInMilliseconds` ([48debda](https://gitlab.com/codsen/codsen/commit/48debda98858aa83d6f7df4a3b7f85895756d67e))
|
|
85
85
|
|
|
86
86
|
### Features
|
|
87
87
|
|
|
@@ -92,19 +92,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
92
92
|
|
|
93
93
|
### BREAKING CHANGES
|
|
94
94
|
|
|
95
|
-
- in output, log.timeTakenInMiliseconds is now called log.timeTakenInMilliseconds
|
|
95
|
+
- in output, `log.timeTakenInMiliseconds` is now called `log.timeTakenInMilliseconds`
|
|
96
96
|
(two l's)
|
|
97
97
|
|
|
98
|
-
## 2.0.0
|
|
99
|
-
|
|
100
|
-
- renamed output `log.timeTakenInMiliseconds` to `log.timeTakenInMilliseconds` (was a typo)
|
|
101
|
-
- output returns `applicableOpts` - handy in UI's, to show only applicable options. Not all options can be "applicable" or not so this list contains only some of available options, not all.
|
|
102
|
-
|
|
103
98
|
## 1.9.35 (2020-05-24)
|
|
104
99
|
|
|
105
100
|
### Fixed
|
|
106
101
|
|
|
107
|
-
- fixes the pre
|
|
102
|
+
- fixes the `pre`, `code`, `CDATA` and other code chunk skipping ([ec0408a](https://gitlab.com/codsen/codsen/commit/ec0408afee0b1a09cd711549cab6fefdc55efde8)), closes [#29](https://gitlab.com/codsen/codsen/issues/29)
|
|
108
103
|
|
|
109
104
|
## 1.9.0 (2019-09-14)
|
|
110
105
|
|
|
@@ -181,7 +176,7 @@ That's now implemented.
|
|
|
181
176
|
|
|
182
177
|
### Features
|
|
183
178
|
|
|
184
|
-
- opts.reportProgressFuncFrom and opts.reportProgressFuncTo ([4ebf439](https://gitlab.com/codsen/codsen/commit/4ebf439))
|
|
179
|
+
- `opts.reportProgressFuncFrom` and `opts.reportProgressFuncTo` ([4ebf439](https://gitlab.com/codsen/codsen/commit/4ebf439))
|
|
185
180
|
- Re-distribute the ratio of progress reported during main and final tasks ([1e80408](https://gitlab.com/codsen/codsen/commit/1e80408))
|
|
186
181
|
|
|
187
182
|
## 1.2.0 (2019-06-01)
|
|
@@ -195,7 +190,7 @@ That's now implemented.
|
|
|
195
190
|
### Features
|
|
196
191
|
|
|
197
192
|
- Inline CSS minification ([0518f05](https://gitlab.com/codsen/codsen/commit/0518f05))
|
|
198
|
-
- Only replace
|
|
193
|
+
- Only replace line breaks when result will be smaller in size, not the same ([a431686](https://gitlab.com/codsen/codsen/commit/a431686))
|
|
199
194
|
|
|
200
195
|
## 1.0.11 (2019-04-06)
|
|
201
196
|
|
|
@@ -216,7 +211,7 @@ That's now implemented.
|
|
|
216
211
|
|
|
217
212
|
- Add licence block at the top of built files in dist/ folder ([cb2c259](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/cb2c259))
|
|
218
213
|
- Add more logging for doNothing state ([25262e5](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/25262e5))
|
|
219
|
-
- Do not touch CDATA blocks ([920e9d9](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/920e9d9))
|
|
214
|
+
- Do not touch `CDATA` blocks ([920e9d9](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/920e9d9))
|
|
220
215
|
- Don't minify script tags contents ([557e8fa](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/557e8fa))
|
|
221
216
|
- Don't touch code within pre-code blocks ([d32c092](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/d32c092))
|
|
222
217
|
- Fetch a handful of real websites and minify them for tests ([f7e8153](https://gitlab.com/codsen/codsen/tree/master/packages/html-crush/commits/f7e8153))
|
|
@@ -240,7 +235,7 @@ That's now implemented.
|
|
|
240
235
|
## 0.2.0 (2018-12-11)
|
|
241
236
|
|
|
242
237
|
- Program will not touch:
|
|
243
|
-
- CDATA blocks
|
|
238
|
+
- `CDATA` blocks
|
|
244
239
|
- `<pre><code>...</code></pre>` blocks
|
|
245
240
|
- `<script>` tag contents
|
|
246
241
|
|
package/dist/html-crush.esm.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name html-crush
|
|
3
3
|
* @fileoverview Minify email templates
|
|
4
|
-
* @version 5.1.
|
|
4
|
+
* @version 5.1.20
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/html-crush/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{rApply as ne}from"ranges-apply";import{Ranges as le}from"ranges-push";import{matchLeft as oe,matchRight as F,matchRightIncl as X}from"string-match-left-right";import{expander as _}from"string-range-expander";import{left as G,right as a}from"string-left-right";var Y="5.1.
|
|
10
|
+
import{rApply as ne}from"ranges-apply";import{Ranges as le}from"ranges-push";import{matchLeft as oe,matchRight as F,matchRightIncl as X}from"string-match-left-right";import{expander as _}from"string-range-expander";import{left as G,right as a}from"string-left-right";var Y="5.1.20";var ge=Y,$=new le({limitToBeAddedWhitespace:!0}),te={lineLengthLimit:500,removeIndentations:!0,removeLineBreaks:!1,removeHTMLComments:!1,removeCSSComments:!0,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,breakToTheLeftOf:["</td","<html","</html","<head","</head","<meta","<link","<table","<script","<\/script","<!DOCTYPE","<style","</style","<title","<body","@media","</body","<!--[if","<!--<![endif","<![endif]"],mindTheInlineTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]};function N(n){return typeof n=="string"}function A(n){return typeof n=="string"&&n.toUpperCase()!==n.toLowerCase()}function ce(n,E){let W=Date.now();if(!N(n))throw n===void 0?new Error("html-crush: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`html-crush: [THROW_ID_02] the first input argument must be string! It was given as "${typeof n}", equal to:
|
|
11
11
|
${JSON.stringify(n,null,4)}`);if(E&&typeof E!="object")throw new Error(`html-crush: [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof E}, equal to ${JSON.stringify(E,null,4)}`);if(E&&Array.isArray(E.breakToTheLeftOf)&&E.breakToTheLeftOf.length){for(let e=0,w=E.breakToTheLeftOf.length;e<w;e++)if(!N(E.breakToTheLeftOf[e]))throw new TypeError(`html-crush: [THROW_ID_05] the resolvedOpts.breakToTheLeftOf array contains non-string elements! For example, element at index ${e} is of a type "${typeof E.breakToTheLeftOf[e]}" and is equal to:
|
|
12
|
-
${JSON.stringify(E.breakToTheLeftOf[e],null,4)}`)}let l={...te,...E};typeof l.removeHTMLComments=="boolean"&&(l.removeHTMLComments=l.removeHTMLComments?1:0);let v="";Array.isArray(l.breakToTheLeftOf)&&l.breakToTheLeftOf.length&&(v=[...new Set(l.breakToTheLeftOf.map(e=>e[0]))].join(""));let L={removeHTMLComments:!1,removeCSSComments:!1},p=null,i=null,S=!1,m=0,H=0,g=!1,O=!1,c=null,f=null,V=null,U=null,u,t=null,s=null,r=null,T=null,D=null,M=null,P=">};",I="<",K="!",q=">",z="<",
|
|
12
|
+
${JSON.stringify(E.breakToTheLeftOf[e],null,4)}`)}let l={...te,...E};typeof l.removeHTMLComments=="boolean"&&(l.removeHTMLComments=l.removeHTMLComments?1:0);let v="";Array.isArray(l.breakToTheLeftOf)&&l.breakToTheLeftOf.length&&(v=[...new Set(l.breakToTheLeftOf.map(e=>e[0]))].join(""));let L={removeHTMLComments:!1,removeCSSComments:!1},p=null,i=null,S=!1,m=0,H=0,g=!1,O=!1,c=null,f=null,V=null,U=null,u,t=null,s=null,r=null,T=null,D=null,M=null,P=">};",I="<",K="!",q=">",z="<",x="{},:;<>~+",k=x,J=x,C=!0,h=n.length,Q=Math.floor(h/2),B=.01,j;l.reportProgressFunc&&(j=Math.floor(l.reportProgressFuncTo-(l.reportProgressFuncTo-l.reportProgressFuncFrom)*B-l.reportProgressFuncFrom));let d,R=0,b=`
|
|
13
13
|
`;if(n.includes(`\r
|
|
14
14
|
`)?b=`\r
|
|
15
15
|
`:n.includes("\r")&&(b="\r"),h){for(let e=0;e<h;e++){if(l.reportProgressFunc&&(h>1e3&&h<2e3?e===Q&&l.reportProgressFunc(Math.floor((l.reportProgressFuncTo-l.reportProgressFuncFrom)/2)):h>=2e3&&(d=l.reportProgressFuncFrom+Math.floor(e/h*(j||1)),d!==R&&(R=d,l.reportProgressFunc(d)))),H++,!u&&g&&n[e]==="}"&&n[e-1]==="}"&&(m+1>=l.lineLengthLimit?($.push(e,e,b),m=0):(t=e,s=e,r=" ")),u&&typeof u=="number"&&e>=u&&(u=void 0),U!==null&&n.startsWith("<\/script",e)&&!A(n[e+8])){if((l.removeIndentations||l.removeLineBreaks)&&e>0&&n[~-e]&&!n[~-e].trim()){for(let o=e;o--;)if(n[o]===`
|
|
@@ -21,4 +21,4 @@ ${JSON.stringify(E.breakToTheLeftOf[e],null,4)}`)}let l={...te,...E};typeof l.re
|
|
|
21
21
|
`&&$.push(i,e)),n[e+1]||(g&&f!==null?$.push(..._({str:n,from:f,to:e,ifLeftSideIncludesThisThenCropTightly:k||"",ifRightSideIncludesThisThenCropTightly:J||""})):i&&n[e]!==`
|
|
22
22
|
`&&n[e]!=="\r"?$.push(i,e+1):i&&(n[e]==="\r"&&n[e+1]===`
|
|
23
23
|
`||n[e]===`
|
|
24
|
-
`&&n[e-1]!=="\r")&&$.push(i,e)),!u&&c&&c<e&&n[c]===n[e]&&(c=null),!u&&!g&&n.startsWith("<pre",e)&&!A(n[e+4])){let o=n.indexOf("</pre",e+5);o>0&&(u=o)}if(!u&&!g&&n.startsWith("<code",e)&&!A(n[e+5])){let o=n.indexOf("</code",e+5);o>0&&(u=o)}if(!u&&n.startsWith("<![CDATA[",e)){let o=n.indexOf("]]>",e+9);o>0&&(u=o)}!u&&!g&&!c&&D!==null&&n[e]===">"&&(n[a(n,e)]==="<"&&(M=T),D=null,T=null),n[e]==="<"&&M!==null&&(M=null),g&&n[e]==="{"&&n[e+1]==="{"&&n.indexOf("}}")!==-1&&(u=n.indexOf("}}")+2);let w=!0}if($.current()){let e=$.current();$.wipe();let w=l.reportProgressFuncTo-(l.reportProgressFuncTo-l.reportProgressFuncFrom)*
|
|
24
|
+
`&&n[e-1]!=="\r")&&$.push(i,e)),!u&&c&&c<e&&n[c]===n[e]&&(c=null),!u&&!g&&n.startsWith("<pre",e)&&!A(n[e+4])){let o=n.indexOf("</pre",e+5);o>0&&(u=o)}if(!u&&!g&&n.startsWith("<code",e)&&!A(n[e+5])){let o=n.indexOf("</code",e+5);o>0&&(u=o)}if(!u&&n.startsWith("<![CDATA[",e)){let o=n.indexOf("]]>",e+9);o>0&&(u=o)}!u&&!g&&!c&&D!==null&&n[e]===">"&&(n[a(n,e)]==="<"&&(M=T),D=null,T=null),n[e]==="<"&&M!==null&&(M=null),g&&n[e]==="{"&&n[e+1]==="{"&&n.indexOf("}}")!==-1&&(u=n.indexOf("}}")+2);let w=!0}if($.current()){let e=$.current();$.wipe();let w=l.reportProgressFuncTo-(l.reportProgressFuncTo-l.reportProgressFuncFrom)*B,o=ne(n,e,Z=>{l.reportProgressFunc&&h>=2e3&&(d=Math.floor(w+(l.reportProgressFuncTo-w)*(Z/100)),d!==R&&(R=d,l.reportProgressFunc(d)))}),y=o.length;return{log:{timeTakenInMilliseconds:Date.now()-W,originalLength:h,cleanedLength:y,bytesSaved:Math.max(h-y,0),percentageReducedOfOriginal:h?Math.round(Math.max(h-y,0)*100/h):0},ranges:e,applicableOpts:L,result:o}}}return{log:{timeTakenInMilliseconds:Date.now()-W,originalLength:h,cleanedLength:h,bytesSaved:0,percentageReducedOfOriginal:0},applicableOpts:L,ranges:null,result:n}}export{ce as crush,te as defaults,ge as version};
|
package/dist/html-crush.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name html-crush
|
|
3
3
|
* @fileoverview Minify email templates
|
|
4
|
-
* @version 5.1.
|
|
4
|
+
* @version 5.1.20
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/html-crush/}
|
|
@@ -24,7 +24,7 @@ ${JSON.stringify(a.ifLeftSideIncludesThisThenCropTightly,null,4)}. Now, that arr
|
|
|
24
24
|
\r`.includes(e[a])||n&&e[a]===K)return a;return null}function D(e,t=0){return oi({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}function si({str:e,idx:t,stopAtNewlines:r,stopAtRawNbsp:n}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||r&&`
|
|
25
25
|
\r`.includes(e[~-t])||n&&e[~-t]===K))return~-t;if(e[t-2]&&(e[t-2].trim()||r&&`
|
|
26
26
|
\r`.includes(e[t-2])||n&&e[t-2]===K))return t-2;for(let a=t;a--;)if(e[a]&&(e[a].trim()||r&&`
|
|
27
|
-
\r`.includes(e[a])||n&&e[a]===K))return a;return null}function de(e,t=0){return si({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}var zt="5.1.
|
|
27
|
+
\r`.includes(e[a])||n&&e[a]===K))return a;return null}function de(e,t=0){return si({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}var zt="5.1.20";var ai=zt,E=new et({limitToBeAddedWhitespace:!0}),Zt={lineLengthLimit:500,removeIndentations:!0,removeLineBreaks:!1,removeHTMLComments:!1,removeCSSComments:!0,reportProgressFunc:null,reportProgressFuncFrom:0,reportProgressFuncTo:100,breakToTheLeftOf:["</td","<html","</html","<head","</head","<meta","<link","<table","<script","<\/script","<!DOCTYPE","<style","</style","<title","<body","@media","</body","<!--[if","<!--<![endif","<![endif]"],mindTheInlineTags:["a","abbr","acronym","audio","b","bdi","bdo","big","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","label","map","mark","meter","noscript","object","output","picture","progress","q","ruby","s","samp","script","select","slot","small","span","strong","sub","sup","svg","template","textarea","time","u","tt","var","video","wbr"]};function Y(e){return typeof e=="string"}function X(e){return typeof e=="string"&&e.toUpperCase()!==e.toLowerCase()}function ui(e,t){let r=Date.now();if(!Y(e))throw e===void 0?new Error("html-crush: [THROW_ID_01] the first input argument is completely missing! It should be given as string."):new Error(`html-crush: [THROW_ID_02] the first input argument must be string! It was given as "${typeof e}", equal to:
|
|
28
28
|
${JSON.stringify(e,null,4)}`);if(t&&typeof t!="object")throw new Error(`html-crush: [THROW_ID_03] the second input argument, options object, should be a plain object but it was given as type ${typeof t}, equal to ${JSON.stringify(t,null,4)}`);if(t&&Array.isArray(t.breakToTheLeftOf)&&t.breakToTheLeftOf.length){for(let i=0,Q=t.breakToTheLeftOf.length;i<Q;i++)if(!Y(t.breakToTheLeftOf[i]))throw new TypeError(`html-crush: [THROW_ID_05] the resolvedOpts.breakToTheLeftOf array contains non-string elements! For example, element at index ${i} is of a type "${typeof t.breakToTheLeftOf[i]}" and is equal to:
|
|
29
29
|
${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.removeHTMLComments=="boolean"&&(n.removeHTMLComments=n.removeHTMLComments?1:0);let a="";Array.isArray(n.breakToTheLeftOf)&&n.breakToTheLeftOf.length&&(a=[...new Set(n.breakToTheLeftOf.map(i=>i[0]))].join(""));let o={removeHTMLComments:!1,removeCSSComments:!1},u=null,l=null,c=!1,s=0,d=0,p=!1,T=!1,f=null,m=null,w=null,L=null,b,h=null,$=null,y=null,A=null,I=null,V=null,z=">};",Z="<",Qt="!",en=">",tn="<",We="{},:;<>~+",be=We,Te=We,j=!0,v=e.length,nn=Math.floor(v/2),je=.01,Je;n.reportProgressFunc&&(Je=Math.floor(n.reportProgressFuncTo-(n.reportProgressFuncTo-n.reportProgressFuncFrom)*je-n.reportProgressFuncFrom));let R,oe=0,C=`
|
|
30
30
|
`;if(e.includes(`\r
|
|
@@ -42,7 +42,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
42
42
|
/**
|
|
43
43
|
* @name arrayiffy-if-string
|
|
44
44
|
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
45
|
-
* @version 4.1.
|
|
45
|
+
* @version 4.1.4
|
|
46
46
|
* @author Roy Revelt, Codsen Ltd
|
|
47
47
|
* @license MIT
|
|
48
48
|
* {@link https://codsen.com/os/arrayiffy-if-string/}
|
|
@@ -50,7 +50,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
50
50
|
/**
|
|
51
51
|
* @name ranges-apply
|
|
52
52
|
* @fileoverview Take an array of string index ranges, delete/replace the string according to them
|
|
53
|
-
* @version 6.2.
|
|
53
|
+
* @version 6.2.10
|
|
54
54
|
* @author Roy Revelt, Codsen Ltd
|
|
55
55
|
* @license MIT
|
|
56
56
|
* {@link https://codsen.com/os/ranges-apply/}
|
|
@@ -58,7 +58,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
58
58
|
/**
|
|
59
59
|
* @name ranges-merge
|
|
60
60
|
* @fileoverview Merge and sort string index ranges
|
|
61
|
-
* @version 8.2.
|
|
61
|
+
* @version 8.2.5
|
|
62
62
|
* @author Roy Revelt, Codsen Ltd
|
|
63
63
|
* @license MIT
|
|
64
64
|
* {@link https://codsen.com/os/ranges-merge/}
|
|
@@ -66,7 +66,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
66
66
|
/**
|
|
67
67
|
* @name ranges-push
|
|
68
68
|
* @fileoverview Gather string index ranges
|
|
69
|
-
* @version 6.2.
|
|
69
|
+
* @version 6.2.5
|
|
70
70
|
* @author Roy Revelt, Codsen Ltd
|
|
71
71
|
* @license MIT
|
|
72
72
|
* {@link https://codsen.com/os/ranges-push/}
|
|
@@ -74,7 +74,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
74
74
|
/**
|
|
75
75
|
* @name ranges-sort
|
|
76
76
|
* @fileoverview Sort string index ranges
|
|
77
|
-
* @version 5.1.
|
|
77
|
+
* @version 5.1.4
|
|
78
78
|
* @author Roy Revelt, Codsen Ltd
|
|
79
79
|
* @license MIT
|
|
80
80
|
* {@link https://codsen.com/os/ranges-sort/}
|
|
@@ -82,7 +82,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
82
82
|
/**
|
|
83
83
|
* @name string-collapse-leading-whitespace
|
|
84
84
|
* @fileoverview Collapse the leading and trailing whitespace of a string
|
|
85
|
-
* @version 6.1.
|
|
85
|
+
* @version 6.1.5
|
|
86
86
|
* @author Roy Revelt, Codsen Ltd
|
|
87
87
|
* @license MIT
|
|
88
88
|
* {@link https://codsen.com/os/string-collapse-leading-whitespace/}
|
|
@@ -90,7 +90,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
90
90
|
/**
|
|
91
91
|
* @name string-left-right
|
|
92
92
|
* @fileoverview Looks up the first non-whitespace character to the left/right of a given index
|
|
93
|
-
* @version 5.1.
|
|
93
|
+
* @version 5.1.5
|
|
94
94
|
* @author Roy Revelt, Codsen Ltd
|
|
95
95
|
* @license MIT
|
|
96
96
|
* {@link https://codsen.com/os/string-left-right/}
|
|
@@ -98,7 +98,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
98
98
|
/**
|
|
99
99
|
* @name string-match-left-right
|
|
100
100
|
* @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
|
|
101
|
-
* @version 8.2.
|
|
101
|
+
* @version 8.2.5
|
|
102
102
|
* @author Roy Revelt, Codsen Ltd
|
|
103
103
|
* @license MIT
|
|
104
104
|
* {@link https://codsen.com/os/string-match-left-right/}
|
|
@@ -106,7 +106,7 @@ ${JSON.stringify(t.breakToTheLeftOf[i],null,4)}`)}let n=S(S({},Zt),t);typeof n.r
|
|
|
106
106
|
/**
|
|
107
107
|
* @name string-range-expander
|
|
108
108
|
* @fileoverview Expands string index ranges within whitespace boundaries until letters are met
|
|
109
|
-
* @version 3.1.
|
|
109
|
+
* @version 3.1.4
|
|
110
110
|
* @author Roy Revelt, Codsen Ltd
|
|
111
111
|
* @license MIT
|
|
112
112
|
* {@link https://codsen.com/os/string-range-expander/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-crush",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.20",
|
|
4
4
|
"description": "Minify email templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"breaks",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
52
52
|
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
53
53
|
"letspublish": "yarn publish || :",
|
|
54
|
-
"lint": "eslint . --fix",
|
|
54
|
+
"lint": "eslint . --ext .js --ext .ts --fix",
|
|
55
55
|
"perf": "node perf/check.js",
|
|
56
56
|
"prepare": "echo 'ready'",
|
|
57
57
|
"prettier": "prettier",
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"ranges-apply": "^6.2.
|
|
82
|
-
"ranges-push": "^6.2.
|
|
83
|
-
"string-left-right": "^5.1.
|
|
84
|
-
"string-match-left-right": "^8.2.
|
|
85
|
-
"string-range-expander": "^3.1.
|
|
86
|
-
"test-mixer": "^3.1.
|
|
81
|
+
"ranges-apply": "^6.2.10",
|
|
82
|
+
"ranges-push": "^6.2.5",
|
|
83
|
+
"string-left-right": "^5.1.5",
|
|
84
|
+
"string-match-left-right": "^8.2.5",
|
|
85
|
+
"string-range-expander": "^3.1.4",
|
|
86
|
+
"test-mixer": "^3.1.4"
|
|
87
87
|
}
|
|
88
88
|
}
|