is-html-tag-opening 4.0.33 → 4.1.0
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/.eslintcache +1 -0
- package/CHANGELOG.md +6 -0
- package/LICENSE +2 -2
- package/README.md +2 -2
- package/dist/is-html-tag-opening.esm.js +3 -3
- package/dist/is-html-tag-opening.umd.js +11 -11
- package/package.json +5 -5
package/.eslintcache
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/_quickTake.js":"1","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/opts.allowCustomTagNames.js":"2","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/opts.skipOpeningBracket.js":"3","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/perf/check.js":"4","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/rollup.config.js":"5","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/extraRequirements.ts":"6","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/isNotLetter.ts":"7","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/main.ts":"8","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/util.ts":"9","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/ad-hoc.js":"10","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/api.js":"11","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/closing.js":"12","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/custom-html.js":"13","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/false-positives.js":"14","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/missing-bits.js":"15","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/opening.js":"16","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/rogue-space.js":"17","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/self-closing-with-attr.js":"18","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/self-closing.js":"19","/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/util/util.js":"20"},{"size":380,"mtime":1760566739106,"results":"21","hashOfConfig":"22"},{"size":481,"mtime":1760566739106,"results":"23","hashOfConfig":"22"},{"size":743,"mtime":1760566739106,"results":"24","hashOfConfig":"22"},{"size":295,"mtime":1760566739106,"results":"25","hashOfConfig":"26"},{"size":373,"mtime":1760566739106,"results":"27","hashOfConfig":"22"},{"size":394,"mtime":1760566739106,"results":"28","hashOfConfig":"26"},{"size":212,"mtime":1760566739106,"results":"29","hashOfConfig":"26"},{"size":9469,"mtime":1760566739106,"results":"30","hashOfConfig":"26"},{"size":1642,"mtime":1760566739106,"results":"31","hashOfConfig":"26"},{"size":7767,"mtime":1760566739106,"results":"32","hashOfConfig":"33"},{"size":1320,"mtime":1760566739106,"results":"34","hashOfConfig":"33"},{"size":3938,"mtime":1760566739106,"results":"35","hashOfConfig":"33"},{"size":1413,"mtime":1760566739106,"results":"36","hashOfConfig":"33"},{"size":8951,"mtime":1760566739106,"results":"37","hashOfConfig":"33"},{"size":580,"mtime":1760566739106,"results":"38","hashOfConfig":"33"},{"size":11321,"mtime":1760566739106,"results":"39","hashOfConfig":"33"},{"size":1551,"mtime":1760566739106,"results":"40","hashOfConfig":"33"},{"size":2706,"mtime":1760566739107,"results":"41","hashOfConfig":"33"},{"size":2711,"mtime":1760566739107,"results":"42","hashOfConfig":"33"},{"size":292,"mtime":1760566739107,"results":"43","hashOfConfig":"33"},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nlhngw",{"filePath":"47","messages":"48","suppressedMessages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","suppressedMessages":"52","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","suppressedMessages":"55","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1xjytlu",{"filePath":"56","messages":"57","suppressedMessages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"nrihsz",{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/_quickTake.js",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/opts.allowCustomTagNames.js",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/examples/opts.skipOpeningBracket.js",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/perf/check.js",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/rollup.config.js",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/extraRequirements.ts",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/isNotLetter.ts",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/main.ts",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/src/util.ts",[],[],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/ad-hoc.js",[],["104","105","106","107","108"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/api.js",[],["109","110","111","112","113","114"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/closing.js",[],["115","116","117","118","119"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/custom-html.js",[],["120","121","122","123","124"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/false-positives.js",[],["125","126","127","128","129"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/missing-bits.js",[],["130","131","132","133","134"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/opening.js",[],["135","136","137","138","139"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/rogue-space.js",[],["140","141","142","143","144","145"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/self-closing-with-attr.js",[],["146","147","148","149","150","151"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/self-closing.js",[],["152","153","154","155","156"],"/home/runner/work/codsen/codsen/packages/is-html-tag-opening/test/util/util.js",[],[],{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"160"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"162"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"164"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"166"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"168"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"169"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"170"},{"ruleId":"157","severity":2,"message":"171","line":3,"column":21,"nodeType":null,"messageId":"159","endLine":3,"endColumn":23,"suppressions":"172"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"173"},{"ruleId":"157","severity":2,"message":"174","line":3,"column":39,"nodeType":null,"messageId":"159","endLine":3,"endColumn":42,"suppressions":"175"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"176"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"177"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"178"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"179"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"180"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"181"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"182"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"183"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"184"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"185"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"186"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"187"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"188"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"189"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"190"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"191"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"192"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"193"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"194"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"195"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"196"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"197"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"198"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"199"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"200"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"201"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"202"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"203"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"204"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"205"},{"ruleId":"157","severity":2,"message":"174","line":3,"column":39,"nodeType":null,"messageId":"159","endLine":3,"endColumn":42,"suppressions":"206"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"207"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"208"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"209"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"210"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"211"},{"ruleId":"157","severity":2,"message":"174","line":3,"column":39,"nodeType":null,"messageId":"159","endLine":3,"endColumn":42,"suppressions":"212"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"213"},{"ruleId":"157","severity":2,"message":"158","line":3,"column":10,"nodeType":null,"messageId":"159","endLine":3,"endColumn":15,"suppressions":"214"},{"ruleId":"157","severity":2,"message":"161","line":3,"column":17,"nodeType":null,"messageId":"159","endLine":3,"endColumn":19,"suppressions":"215"},{"ruleId":"157","severity":2,"message":"163","line":3,"column":25,"nodeType":null,"messageId":"159","endLine":3,"endColumn":31,"suppressions":"216"},{"ruleId":"157","severity":2,"message":"165","line":3,"column":33,"nodeType":null,"messageId":"159","endLine":3,"endColumn":37,"suppressions":"217"},{"ruleId":"157","severity":2,"message":"167","line":3,"column":44,"nodeType":null,"messageId":"159","endLine":3,"endColumn":49,"suppressions":"218"},"@typescript-eslint/no-unused-vars","'equal' is defined but never used.","unusedVar",["219"],"'is' is defined but never used.",["220"],"'throws' is defined but never used.",["221"],"'type' is defined but never used.",["222"],"'match' is defined but never used.",["223"],["224"],["225"],"'ok' is defined but never used.",["226"],["227"],"'not' is defined but never used.",["228"],["229"],["230"],["231"],["232"],["233"],["234"],["235"],["236"],["237"],["238"],["239"],["240"],["241"],["242"],["243"],["244"],["245"],["246"],["247"],["248"],["249"],["250"],["251"],["252"],["253"],["254"],["255"],["256"],["257"],["258"],["259"],["260"],["261"],["262"],["263"],["264"],["265"],["266"],["267"],["268"],["269"],["270"],["271"],{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},{"kind":"272","justification":"273"},"directive",""]
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.1.0 (2025-10-15)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- if value to be added is a number, keep it as is, don't stringify ([ce3e1a5](https://github.com/codsen/codsen/commit/ce3e1a525998ca3c0abf0142affef95b14cd1990))
|
|
11
|
+
|
|
6
12
|
## 4.0.0 (2022-12-01)
|
|
7
13
|
|
|
8
14
|
### BREAKING CHANGES
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright
|
|
3
|
+
Copyright © 2010-2025 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -58,8 +58,8 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
58
58
|
|
|
59
59
|
## Licence
|
|
60
60
|
|
|
61
|
-
MIT License
|
|
61
|
+
MIT License
|
|
62
62
|
|
|
63
|
-
Copyright © 2010-2025 Roy Revelt and other contributors
|
|
63
|
+
Copyright © 2010-2025 Roy Revelt and other contributors
|
|
64
64
|
|
|
65
65
|
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name is-html-tag-opening
|
|
3
3
|
* @fileoverview Does an HTML tag start at given position?
|
|
4
|
-
* @version 4.0
|
|
5
|
-
* @author Roy Revelt
|
|
4
|
+
* @version 4.1.0
|
|
5
|
+
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/is-html-tag-opening/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{matchRight as N,matchRightIncl as x}from"string-match-left-right";import{left as c}from"string-left-right";var d={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}import{left as C}from"string-left-right";function p(e,t){return e[t]==="<"||e[C(e,t)]==="<"}var f="4.0
|
|
10
|
+
import{matchRight as N,matchRightIncl as x}from"string-match-left-right";import{left as c}from"string-left-right";var d={allowCustomTagNames:!1,skipOpeningBracket:!1},m="\\",g=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];function b(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}import{left as C}from"string-left-right";function p(e,t){return e[t]==="<"||e[C(e,t)]==="<"}var f="4.1.0";var K=f;function U(e,t=0,h){if(typeof e!="string")throw new Error(`is-html-tag-opening: [THROW_ID_01] the first input argument should have been a string but it was given as "${typeof e}", value being ${JSON.stringify(e,null,4)}`);if(!Number.isInteger(t)||t<0)throw new Error(`is-html-tag-opening: [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "${typeof t}", value being ${JSON.stringify(t,null,4)}`);let n={...d,...h},i="[\\\\ \\t\\r\\n/]*",r="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",w=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+${i}\\/?${i}>`,"g"),k=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*${i}>`,"g"),E=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['"\\w]`,"g"),y=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\w+\\s+[${r}]+[-${r}]*(?:-\\w+)?\\s*=\\s*['"\\w]`),D=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*\\w+\\s*\\/?\\s*>`,"g"),O=new RegExp(`^<${n.skipOpeningBracket?"?":""}\\s*\\/?\\s*[${r}]+[-${r}]*\\s*\\/?\\s*>`,"g"),R=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}\\w+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),v=new RegExp(`^<${n.skipOpeningBracket?"?":""}${i}[${r}]+[-${r}]*\\s+(?:\\s*\\w+)?\\s*\\w+=['"]`,"g"),$=new RegExp(`^<${n.skipOpeningBracket?"?\\/?":""}(${i}[${r}]+)+${i}[\\\\/=>]`,""),V=new RegExp("^\\/\\s*\\w+s*>"),s=t?e.slice(t):e,a=c(e,t),l=!1,o=!1,B={cb:b,i:!0,trimCharsBeforeMatching:["/",m,"!"," "," ",`
|
|
11
11
|
`,"\r"]};return n.allowCustomTagNames?((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||s[0]==="<"&&s[1]?.trim())&&($.test(s)||/^<\w+$/.test(s))||k.test(s)&&p(e,t)||y.test(s)||O.test(s)&&p(e,t)||v.test(s)||e[t]==="/"&&e[a]!=="<"&&V.test(s))&&(o=!0):(((n.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[c(e,a)]==="<")||(s[0]==="<"||s[0]==="/"&&(!e[a]||e[a]!=="<"))&&s[1]?.trim())&&$.test(s)||w.test(s)&&p(e,t)||E.test(s)||D.test(s)&&p(e,t)||R.test(s))&&(l=!0),l&&x(e,t,g,{cb:u=>u===void 0?((e[t]==="<"&&e[t+1]?.trim()||e[t-1]==="<")&&(o=!0),!0):u.toUpperCase()===u.toLowerCase()&&!/\d/.test(u)&&u!=="=",i:!0,trimCharsBeforeMatching:["<","/",m,"!"," "," ",`
|
|
12
12
|
`,"\r"]})&&(o=!0)),!o&&e[t]==="<"&&e[t+1]?.trim()&&N(e,t,g,B)&&(o=!0),typeof e=="string"&&t<e.length&&o}export{d as defaults,U as isOpening,K as version};
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name is-html-tag-opening
|
|
3
3
|
* @fileoverview Does an HTML tag start at given position?
|
|
4
|
-
* @version 4.0
|
|
5
|
-
* @author Roy Revelt
|
|
4
|
+
* @version 4.1.0
|
|
5
|
+
* @author Roy Revelt
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/is-html-tag-opening/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
"use strict";var isHtmlTagOpening=(()=>{var te=Object.create;var D=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var F=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&F(e,n,t[n]);if(H)for(var n of H(t))se.call(t,n)&&F(e,n,t[n]);return e};var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ue=(e,t)=>{for(var n in t)D(e,n,{get:t[n],enumerable:!0})},q=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of ne(t))!_.call(e,u)&&u!==n&&D(e,u,{get:()=>t[u],enumerable:!(l=re(t,u))||l.enumerable});return e};var W=(e,t,n)=>(n=e!=null?te(ie(e)):{},q(t||!e||!e.__esModule?D(n,"default",{value:e,enumerable:!0}):n,e)),ae=e=>q(D({},"__esModule",{value:!0}),e);var S=oe(($e,J)=>{"use strict";J.exports=le;function B(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function le(e){if(e=e||{},e.circles)return ce(e);let t=new Map;if(t.set(Date,i=>new Date(i)),t.set(Map,(i,s)=>new Map(l(Array.from(i),s))),t.set(Set,(i,s)=>new Set(l(Array.from(i),s))),e.constructorHandlers)for(let i of e.constructorHandlers)t.set(i[0],i[1]);let n=null;return e.proto?c:u;function l(i,s){let r=Object.keys(i),o=new Array(r.length);for(let g=0;g<r.length;g++){let f=r[g],p=i[f];typeof p!="object"||p===null?o[f]=p:p.constructor!==Object&&(n=t.get(p.constructor))?o[f]=n(p,s):ArrayBuffer.isView(p)?o[f]=B(p):o[f]=s(p)}return o}function u(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return l(i,u);if(i.constructor!==Object&&(n=t.get(i.constructor)))return n(i,u);let s={};for(let r in i){if(Object.hasOwnProperty.call(i,r)===!1)continue;let o=i[r];typeof o!="object"||o===null?s[r]=o:o.constructor!==Object&&(n=t.get(o.constructor))?s[r]=n(o,u):ArrayBuffer.isView(o)?s[r]=B(o):s[r]=u(o)}return s}function c(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return l(i,c);if(i.constructor!==Object&&(n=t.get(i.constructor)))return n(i,c);let s={};for(let r in i){let o=i[r];typeof o!="object"||o===null?s[r]=o:o.constructor!==Object&&(n=t.get(o.constructor))?s[r]=n(o,c):ArrayBuffer.isView(o)?s[r]=B(o):s[r]=c(o)}return s}}function ce(e){let t=[],n=[],l=new Map;if(l.set(Date,r=>new Date(r)),l.set(Map,(r,o)=>new Map(c(Array.from(r),o))),l.set(Set,(r,o)=>new Set(c(Array.from(r),o))),e.constructorHandlers)for(let r of e.constructorHandlers)l.set(r[0],r[1]);let u=null;return e.proto?s:i;function c(r,o){let g=Object.keys(r),f=new Array(g.length);for(let p=0;p<g.length;p++){let m=g[p],a=r[m];if(typeof a!="object"||a===null)f[m]=a;else if(a.constructor!==Object&&(u=l.get(a.constructor)))f[m]=u(a,o);else if(ArrayBuffer.isView(a))f[m]=B(a);else{let b=t.indexOf(a);b!==-1?f[m]=n[b]:f[m]=o(a)}}return f}function i(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return c(r,i);if(r.constructor!==Object&&(u=l.get(r.constructor)))return u(r,i);let o={};t.push(r),n.push(o);for(let g in r){if(Object.hasOwnProperty.call(r,g)===!1)continue;let f=r[g];if(typeof f!="object"||f===null)o[g]=f;else if(f.constructor!==Object&&(u=l.get(f.constructor)))o[g]=u(f,i);else if(ArrayBuffer.isView(f))o[g]=B(f);else{let p=t.indexOf(f);p!==-1?o[g]=n[p]:o[g]=i(f)}}return t.pop(),n.pop(),o}function s(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return c(r,s);if(r.constructor!==Object&&(u=l.get(r.constructor)))return u(r,s);let o={};t.push(r),n.push(o);for(let g in r){let f=r[g];if(typeof f!="object"||f===null)o[g]=f;else if(f.constructor!==Object&&(u=l.get(f.constructor)))o[g]=u(f,s);else if(ArrayBuffer.isView(f))o[g]=B(f);else{let p=t.indexOf(f);p!==-1?o[g]=n[p]:o[g]=s(f)}}return t.pop(),n.pop(),o}}});var be={};ue(be,{defaults:()=>j,isOpening:()=>de,version:()=>he});function P(e){return typeof e!="string"?e:e.length?[e]:[]}var U=W(S(),1);var Ae=(0,U.default)();function L(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function C(e){return typeof e=="string"}function Q(e,t){return L(e)&&C(t)&&t in e}var K={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},fe=e=>e+1;function ge(e,t,n,l,u=!1,c=fe){var h;let i=typeof n=="function"?n():n;if(+t<0&&u&&i==="EOL")return i;let s=O(O({},K),l);if(t>=e.length&&!u)return!1;let r=u?1:n.length,o=0,g=!1,f=!1,p=!1,m=s.maxMismatches,a=t,b=!1,d=!1,w=!1;function $(){return o===1&&m<s.maxMismatches-1}for(;e[a];){let y=c(a);if(s.trimBeforeMatching&&e[a].trim()===""){if(!e[y]&&u&&n==="EOL")return!0;a=c(a);continue}if(s&&!s.i&&((h=s==null?void 0:s.trimCharsBeforeMatching)!=null&&h.includes(e[a]))||s!=null&&s.i&&s.trimCharsBeforeMatching&&s.trimCharsBeforeMatching.map(v=>v.toLowerCase()).includes(e[a].toLowerCase())){if(u&&n==="EOL"&&!e[y])return!0;a=c(a);continue}let k=y>a?n[n.length-r]:n[r-1];if(!s.i&&e[a]===k||s.i&&e[a].toLowerCase()===k.toLowerCase()){if(b||(b=!0),p||(p=!0),r===n.length){if(d=!0,m!==s.maxMismatches)return!1}else r===1&&(w=!0);if(r-=1,o++,$())return!1;if(!r)return o!==n.length||m===s.maxMismatches||!g?a:!1}else if(!g&&!o&&(g=!0),s.maxMismatches&&m&&a){m-=1;for(let v=0;v<=m;v++){let A=y>a?n[n.length-r+1+v]:n[r-2-v],E=e[c(a)];if(A&&(!s.i&&e[a]===A||s.i&&e[a].toLowerCase()===A.toLowerCase())&&(!s.firstMustMatch||r!==n.length)){if(o++,$())return!1;r-=2,b=!0;break}else if(E&&A&&(!s.i&&E===A||s.i&&E.toLowerCase()===A.toLowerCase())&&(!s.firstMustMatch||r!==n.length)){if(!o&&!s.hungry)return!1;r-=1,b=!0;break}else if(A===void 0&&m>=0&&b&&(!s.firstMustMatch||d)&&(!s.lastMustMatch||w))return a}b||(f=a)}else return a===0&&r===1&&!s.lastMustMatch&&p?0:!1;if(f!==!1&&f!==a&&(f=!1),r<1)return a;a=c(a)}if(r>0)return u&&i==="EOL"?!0:s&&s.maxMismatches>=r&&p?f||0:!1}function z(e,t,n,l,u){var g,f,p;if(L(u)&&Q(u,"trimBeforeMatching")&&u&&typeof u.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(u.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let c=O(O({},K),u);if(typeof c.trimCharsBeforeMatching=="string"&&(c.trimCharsBeforeMatching=P(c.trimCharsBeforeMatching)),c.trimCharsBeforeMatching=c.trimCharsBeforeMatching.map(m=>C(m)?m:String(m)),!C(t)||!t.length)return!1;if(!Number.isInteger(n)||n<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ").concat(typeof n,", equal to:\n").concat(JSON.stringify(n,null,4)));let i,s;if(C(l))i=[l];else if(Array.isArray(l))i=l;else if(!l)i=l;else if(typeof l=="function")i=[],i.push(l);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof l,", equal to:\n").concat(JSON.stringify(l,null,4)));if(u&&!L(u))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_06] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof u,'", and equal to:\n').concat(JSON.stringify(u,null,4)));let r=0,o="";if((g=c==null?void 0:c.trimCharsBeforeMatching)!=null&&g.some((m,a)=>m.length>1?(r=a,o=m,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(r," is longer than 1 character, ").concat(o.length," (equals to ").concat(o,"). Please split it into separate characters and put into array as separate elements."));if(!i||!Array.isArray(i)||Array.isArray(i)&&!i.length||Array.isArray(i)&&i.length===1&&C(i[0])&&!i[0].trim()){if(typeof c.cb=="function"){let a,b=n;if((e==="matchLeftIncl"||e==="matchRight")&&(b+=1),e[5]==="L")for(let h=b;h--;){let y=t[h];if((!c.trimBeforeMatching||c.trimBeforeMatching&&(y!=null&&y.trim()))&&(!((f=c.trimCharsBeforeMatching)!=null&&f.length)||y!==void 0&&!c.trimCharsBeforeMatching.includes(y))){a=h;break}}else if(e.startsWith("matchRight"))for(let h=b;h<t.length;h++){let y=t[h];if((!c.trimBeforeMatching||c.trimBeforeMatching&&y.trim())&&(!((p=c.trimCharsBeforeMatching)!=null&&p.length)||!c.trimCharsBeforeMatching.includes(y))){a=h;break}}if(a===void 0)return!1;let d=t[a],w=a+1,$="";return w&&w>0&&($=t.slice(0,w)),e[5]==="L"||a&&a>0&&($=t.slice(a)),c.cb(d,$,a)}let m="";throw u||(m=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!').concat(m))}for(let m=0,a=i.length;m<a;m++){s=typeof i[m]=="function";let b=i[m],d,w,$="",h=n;e==="matchRight"?h+=1:e==="matchLeft"&&(h-=1);let y=ge(t,h,b,c,s,k=>e[5]==="L"?k-1:k+1);if(y&&s&&typeof b=="function"&&b()==="EOL")return b()&&(!c.cb||c.cb(d,$,w))?b():!1;if(Number.isInteger(y)&&(w=e.startsWith("matchLeft")?y-1:y+1,e[5]==="L"?$=t.slice(0,y):$=t.slice(w)),w<0&&(w=void 0),t[w]&&(d=t[w]),Number.isInteger(y)&&(!c.cb||c.cb(d,$,w)))return b}return!1}function G(e,t,n,l){return z("matchRightIncl",e,t,n,l)}function Z(e,t,n,l){return z("matchRight",e,t,n,l)}var Y=W(S(),1);var Re=(0,Y.default)();var x="\xA0";function me({str:e,idx:t,stopAtNewlines:n,stopAtRawNbsp:l}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||n&&"\n\r".includes(e[~-t])||l&&e[~-t]===x))return~-t;if(e[t-2]&&(e[t-2].trim()||n&&"\n\r".includes(e[t-2])||l&&e[t-2]===x))return t-2;for(let u=t;u--;)if(e[u]&&(e[u].trim()||n&&"\n\r".includes(e[u])||l&&e[u]===x))return u;return null}function M(e,t=0){return me({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}var j={allowCustomTagNames:!1,skipOpeningBracket:!1},T="\\",I=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];function X(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}function N(e,t){return e[t]==="<"||e[M(e,t)]==="<"}var ee="4.0.33";var he=ee;function de(e,t=0,n){var v,A,E;if(typeof e!="string")throw new Error('is-html-tag-opening: [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof e,'", value being ').concat(JSON.stringify(e,null,4)));if(!Number.isInteger(t)||t<0)throw new Error('is-html-tag-opening: [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof t,'", value being ').concat(JSON.stringify(t,null,4)));let l=O(O({},j),n),u="[\\\\ \\t\\r\\n/]*",c="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",i=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"\\w+").concat(u,"\\/?").concat(u,">"),"g"),s=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"[").concat(c,"]+[-").concat(c,"]*").concat(u,">"),"g"),r=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),o=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(c,"]+[-").concat(c,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),g=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),f=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(c,"]+[-").concat(c,"]*\\s*\\/?\\s*>"),"g"),p=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),m=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"[").concat(c,"]+[-").concat(c,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),a=new RegExp("^<".concat(l.skipOpeningBracket?"?\\/?":"","(").concat(u,"[").concat(c,"]+)+").concat(u,"[\\\\/=>]"),""),b=new RegExp("^\\/\\s*\\w+s*>"),d=t?e.slice(t):e,w=M(e,t),$=!1,h=!1,y={cb:X,i:!0,trimCharsBeforeMatching:["/",T,"!"," "," ","\n","\r"]};return l.allowCustomTagNames?((l.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[M(e,w)]==="<")||d[0]==="<"&&((v=d[1])!=null&&v.trim()))&&(a.test(d)||/^<\w+$/.test(d))||s.test(d)&&N(e,t)||o.test(d)||f.test(d)&&N(e,t)||m.test(d)||e[t]==="/"&&e[w]!=="<"&&b.test(d))&&(h=!0):(((l.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[M(e,w)]==="<")||(d[0]==="<"||d[0]==="/"&&(!e[w]||e[w]!=="<"))&&((A=d[1])!=null&&A.trim()))&&a.test(d)||i.test(d)&&N(e,t)||r.test(d)||g.test(d)&&N(e,t)||p.test(d))&&($=!0),$&&G(e,t,I,{cb:R=>{var V;return R===void 0?((e[t]==="<"&&((V=e[t+1])!=null&&V.trim())||e[t-1]==="<")&&(h=!0),!0):R.toUpperCase()===R.toLowerCase()&&!/\d/.test(R)&&R!=="="},i:!0,trimCharsBeforeMatching:["<","/",T,"!"," "," ","\n","\r"]})&&(h=!0)),!h&&e[t]==="<"&&((E=e[t+1])!=null&&E.trim())&&Z(e,t,I,y)&&(h=!0),typeof e=="string"&&t<e.length&&h}return ae(be);})();
|
|
10
|
+
"use strict";var isHtmlTagOpening=(()=>{var te=Object.create;var D=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ne=Object.getOwnPropertyNames,H=Object.getOwnPropertySymbols,ie=Object.getPrototypeOf,_=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable;var F=(e,t,n)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O=(e,t)=>{for(var n in t||(t={}))_.call(t,n)&&F(e,n,t[n]);if(H)for(var n of H(t))se.call(t,n)&&F(e,n,t[n]);return e};var oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ue=(e,t)=>{for(var n in t)D(e,n,{get:t[n],enumerable:!0})},q=(e,t,n,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of ne(t))!_.call(e,u)&&u!==n&&D(e,u,{get:()=>t[u],enumerable:!(l=re(t,u))||l.enumerable});return e};var W=(e,t,n)=>(n=e!=null?te(ie(e)):{},q(t||!e||!e.__esModule?D(n,"default",{value:e,enumerable:!0}):n,e)),ae=e=>q(D({},"__esModule",{value:!0}),e);var S=oe(($e,J)=>{"use strict";J.exports=le;function B(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function le(e){if(e=e||{},e.circles)return ce(e);let t=new Map;if(t.set(Date,i=>new Date(i)),t.set(Map,(i,s)=>new Map(l(Array.from(i),s))),t.set(Set,(i,s)=>new Set(l(Array.from(i),s))),e.constructorHandlers)for(let i of e.constructorHandlers)t.set(i[0],i[1]);let n=null;return e.proto?c:u;function l(i,s){let r=Object.keys(i),o=new Array(r.length);for(let g=0;g<r.length;g++){let f=r[g],p=i[f];typeof p!="object"||p===null?o[f]=p:p.constructor!==Object&&(n=t.get(p.constructor))?o[f]=n(p,s):ArrayBuffer.isView(p)?o[f]=B(p):o[f]=s(p)}return o}function u(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return l(i,u);if(i.constructor!==Object&&(n=t.get(i.constructor)))return n(i,u);let s={};for(let r in i){if(Object.hasOwnProperty.call(i,r)===!1)continue;let o=i[r];typeof o!="object"||o===null?s[r]=o:o.constructor!==Object&&(n=t.get(o.constructor))?s[r]=n(o,u):ArrayBuffer.isView(o)?s[r]=B(o):s[r]=u(o)}return s}function c(i){if(typeof i!="object"||i===null)return i;if(Array.isArray(i))return l(i,c);if(i.constructor!==Object&&(n=t.get(i.constructor)))return n(i,c);let s={};for(let r in i){let o=i[r];typeof o!="object"||o===null?s[r]=o:o.constructor!==Object&&(n=t.get(o.constructor))?s[r]=n(o,c):ArrayBuffer.isView(o)?s[r]=B(o):s[r]=c(o)}return s}}function ce(e){let t=[],n=[],l=new Map;if(l.set(Date,r=>new Date(r)),l.set(Map,(r,o)=>new Map(c(Array.from(r),o))),l.set(Set,(r,o)=>new Set(c(Array.from(r),o))),e.constructorHandlers)for(let r of e.constructorHandlers)l.set(r[0],r[1]);let u=null;return e.proto?s:i;function c(r,o){let g=Object.keys(r),f=new Array(g.length);for(let p=0;p<g.length;p++){let m=g[p],a=r[m];if(typeof a!="object"||a===null)f[m]=a;else if(a.constructor!==Object&&(u=l.get(a.constructor)))f[m]=u(a,o);else if(ArrayBuffer.isView(a))f[m]=B(a);else{let b=t.indexOf(a);b!==-1?f[m]=n[b]:f[m]=o(a)}}return f}function i(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return c(r,i);if(r.constructor!==Object&&(u=l.get(r.constructor)))return u(r,i);let o={};t.push(r),n.push(o);for(let g in r){if(Object.hasOwnProperty.call(r,g)===!1)continue;let f=r[g];if(typeof f!="object"||f===null)o[g]=f;else if(f.constructor!==Object&&(u=l.get(f.constructor)))o[g]=u(f,i);else if(ArrayBuffer.isView(f))o[g]=B(f);else{let p=t.indexOf(f);p!==-1?o[g]=n[p]:o[g]=i(f)}}return t.pop(),n.pop(),o}function s(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return c(r,s);if(r.constructor!==Object&&(u=l.get(r.constructor)))return u(r,s);let o={};t.push(r),n.push(o);for(let g in r){let f=r[g];if(typeof f!="object"||f===null)o[g]=f;else if(f.constructor!==Object&&(u=l.get(f.constructor)))o[g]=u(f,s);else if(ArrayBuffer.isView(f))o[g]=B(f);else{let p=t.indexOf(f);p!==-1?o[g]=n[p]:o[g]=s(f)}}return t.pop(),n.pop(),o}}});var be={};ue(be,{defaults:()=>j,isOpening:()=>de,version:()=>he});function P(e){return typeof e!="string"?e:e.length?[e]:[]}var U=W(S(),1);var Ae=(0,U.default)();function L(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}function C(e){return typeof e=="string"}function Q(e,t){return L(e)&&C(t)&&t in e}var K={cb:void 0,i:!1,trimBeforeMatching:!1,trimCharsBeforeMatching:[],maxMismatches:0,firstMustMatch:!1,lastMustMatch:!1,hungry:!1},fe=e=>e+1;function ge(e,t,n,l,u=!1,c=fe){var h;let i=typeof n=="function"?n():n;if(+t<0&&u&&i==="EOL")return i;let s=O(O({},K),l);if(t>=e.length&&!u)return!1;let r=u?1:n.length,o=0,g=!1,f=!1,p=!1,m=s.maxMismatches,a=t,b=!1,d=!1,w=!1;function $(){return o===1&&m<s.maxMismatches-1}for(;e[a];){let y=c(a);if(s.trimBeforeMatching&&e[a].trim()===""){if(!e[y]&&u&&n==="EOL")return!0;a=c(a);continue}if(s&&!s.i&&((h=s==null?void 0:s.trimCharsBeforeMatching)!=null&&h.includes(e[a]))||s!=null&&s.i&&s.trimCharsBeforeMatching&&s.trimCharsBeforeMatching.map(v=>v.toLowerCase()).includes(e[a].toLowerCase())){if(u&&n==="EOL"&&!e[y])return!0;a=c(a);continue}let k=y>a?n[n.length-r]:n[r-1];if(!s.i&&e[a]===k||s.i&&e[a].toLowerCase()===k.toLowerCase()){if(b||(b=!0),p||(p=!0),r===n.length){if(d=!0,m!==s.maxMismatches)return!1}else r===1&&(w=!0);if(r-=1,o++,$())return!1;if(!r)return o!==n.length||m===s.maxMismatches||!g?a:!1}else if(!g&&!o&&(g=!0),s.maxMismatches&&m&&a){m-=1;for(let v=0;v<=m;v++){let A=y>a?n[n.length-r+1+v]:n[r-2-v],E=e[c(a)];if(A&&(!s.i&&e[a]===A||s.i&&e[a].toLowerCase()===A.toLowerCase())&&(!s.firstMustMatch||r!==n.length)){if(o++,$())return!1;r-=2,b=!0;break}else if(E&&A&&(!s.i&&E===A||s.i&&E.toLowerCase()===A.toLowerCase())&&(!s.firstMustMatch||r!==n.length)){if(!o&&!s.hungry)return!1;r-=1,b=!0;break}else if(A===void 0&&m>=0&&b&&(!s.firstMustMatch||d)&&(!s.lastMustMatch||w))return a}b||(f=a)}else return a===0&&r===1&&!s.lastMustMatch&&p?0:!1;if(f!==!1&&f!==a&&(f=!1),r<1)return a;a=c(a)}if(r>0)return u&&i==="EOL"?!0:s&&s.maxMismatches>=r&&p?f||0:!1}function z(e,t,n,l,u){var g,f,p;if(L(u)&&Q(u,"trimBeforeMatching")&&u&&typeof u.trimBeforeMatching!="boolean")throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_09] opts.trimBeforeMatching should be boolean!").concat(Array.isArray(u.trimBeforeMatching)?" Did you mean to use opts.trimCharsBeforeMatching?":""));let c=O(O({},K),u);if(typeof c.trimCharsBeforeMatching=="string"&&(c.trimCharsBeforeMatching=P(c.trimCharsBeforeMatching)),c.trimCharsBeforeMatching=c.trimCharsBeforeMatching.map(m=>C(m)?m:String(m)),!C(t)||!t.length)return!1;if(!Number.isInteger(n)||n<0)throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_03] the second argument should be a natural number. Currently it's of a type: ").concat(typeof n,", equal to:\n").concat(JSON.stringify(n,null,4)));let i,s;if(C(l))i=[l];else if(Array.isArray(l))i=l;else if(!l)i=l;else if(typeof l=="function")i=[],i.push(l);else throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_05] the third argument, whatToMatch, is neither string nor array of strings! It's ").concat(typeof l,", equal to:\n").concat(JSON.stringify(l,null,4)));if(u&&!L(u))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_06] the fourth argument, options object, should be a plain object. Currently it's of a type \"").concat(typeof u,'", and equal to:\n').concat(JSON.stringify(u,null,4)));let r=0,o="";if((g=c==null?void 0:c.trimCharsBeforeMatching)!=null&&g.some((m,a)=>m.length>1?(r=a,o=m,!0):!1))throw new Error("string-match-left-right/".concat(e,"(): [THROW_ID_07] the fourth argument, options object contains trimCharsBeforeMatching. It was meant to list the single characters but one of the entries at index ").concat(r," is longer than 1 character, ").concat(o.length," (equals to ").concat(o,"). Please split it into separate characters and put into array as separate elements."));if(!i||!Array.isArray(i)||Array.isArray(i)&&!i.length||Array.isArray(i)&&i.length===1&&C(i[0])&&!i[0].trim()){if(typeof c.cb=="function"){let a,b=n;if((e==="matchLeftIncl"||e==="matchRight")&&(b+=1),e[5]==="L")for(let h=b;h--;){let y=t[h];if((!c.trimBeforeMatching||c.trimBeforeMatching&&(y!=null&&y.trim()))&&(!((f=c.trimCharsBeforeMatching)!=null&&f.length)||y!==void 0&&!c.trimCharsBeforeMatching.includes(y))){a=h;break}}else if(e.startsWith("matchRight"))for(let h=b;h<t.length;h++){let y=t[h];if((!c.trimBeforeMatching||c.trimBeforeMatching&&y.trim())&&(!((p=c.trimCharsBeforeMatching)!=null&&p.length)||!c.trimCharsBeforeMatching.includes(y))){a=h;break}}if(a===void 0)return!1;let d=t[a],w=a+1,$="";return w&&w>0&&($=t.slice(0,w)),e[5]==="L"||a&&a>0&&($=t.slice(a)),c.cb(d,$,a)}let m="";throw u||(m=" More so, the whole options object, the fourth input argument, is missing!"),new Error("string-match-left-right/".concat(e,'(): [THROW_ID_08] the third argument, "whatToMatch", was given as an empty string. This means, you intend to match purely by a callback. The callback was not set though, the opts key "cb" is not set!').concat(m))}for(let m=0,a=i.length;m<a;m++){s=typeof i[m]=="function";let b=i[m],d,w,$="",h=n;e==="matchRight"?h+=1:e==="matchLeft"&&(h-=1);let y=ge(t,h,b,c,s,k=>e[5]==="L"?k-1:k+1);if(y&&s&&typeof b=="function"&&b()==="EOL")return b()&&(!c.cb||c.cb(d,$,w))?b():!1;if(Number.isInteger(y)&&(w=e.startsWith("matchLeft")?y-1:y+1,e[5]==="L"?$=t.slice(0,y):$=t.slice(w)),w<0&&(w=void 0),t[w]&&(d=t[w]),Number.isInteger(y)&&(!c.cb||c.cb(d,$,w)))return b}return!1}function G(e,t,n,l){return z("matchRightIncl",e,t,n,l)}function Z(e,t,n,l){return z("matchRight",e,t,n,l)}var Y=W(S(),1);var Re=(0,Y.default)();var x="\xA0";function me({str:e,idx:t,stopAtNewlines:n,stopAtRawNbsp:l}){if(typeof e!="string"||!e.length||((!t||typeof t!="number")&&(t=0),t<1))return null;if(e[~-t]&&(e[~-t].trim()||n&&"\n\r".includes(e[~-t])||l&&e[~-t]===x))return~-t;if(e[t-2]&&(e[t-2].trim()||n&&"\n\r".includes(e[t-2])||l&&e[t-2]===x))return t-2;for(let u=t;u--;)if(e[u]&&(e[u].trim()||n&&"\n\r".includes(e[u])||l&&e[u]===x))return u;return null}function M(e,t=0){return me({str:e,idx:t,stopAtNewlines:!1,stopAtRawNbsp:!1})}var j={allowCustomTagNames:!1,skipOpeningBracket:!1},T="\\",I=["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","doctype","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h1 - h6","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xml"];function X(e){return e===void 0||e.toUpperCase()===e.toLowerCase()&&!/\d/.test(e)&&e!=="="}function N(e,t){return e[t]==="<"||e[M(e,t)]==="<"}var ee="4.1.0";var he=ee;function de(e,t=0,n){var v,A,E;if(typeof e!="string")throw new Error('is-html-tag-opening: [THROW_ID_01] the first input argument should have been a string but it was given as "'.concat(typeof e,'", value being ').concat(JSON.stringify(e,null,4)));if(!Number.isInteger(t)||t<0)throw new Error('is-html-tag-opening: [THROW_ID_02] the second input argument should have been a natural number string index but it was given as "'.concat(typeof t,'", value being ').concat(JSON.stringify(t,null,4)));let l=O(O({},j),n),u="[\\\\ \\t\\r\\n/]*",c="._a-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\uFFFF",i=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"\\w+").concat(u,"\\/?").concat(u,">"),"g"),s=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"[").concat(c,"]+[-").concat(c,"]*").concat(u,">"),"g"),r=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\w+\\s+\\w+(?:-\\w+)?\\s*=\\s*['\"\\w]"),"g"),o=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\w+\\s+[").concat(c,"]+[-").concat(c,"]*(?:-\\w+)?\\s*=\\s*['\"\\w]")),g=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\/?\\s*\\w+\\s*\\/?\\s*>"),"g"),f=new RegExp("^<".concat(l.skipOpeningBracket?"?":"","\\s*\\/?\\s*[").concat(c,"]+[-").concat(c,"]*\\s*\\/?\\s*>"),"g"),p=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"\\w+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),m=new RegExp("^<".concat(l.skipOpeningBracket?"?":"").concat(u,"[").concat(c,"]+[-").concat(c,"]*\\s+(?:\\s*\\w+)?\\s*\\w+=['\"]"),"g"),a=new RegExp("^<".concat(l.skipOpeningBracket?"?\\/?":"","(").concat(u,"[").concat(c,"]+)+").concat(u,"[\\\\/=>]"),""),b=new RegExp("^\\/\\s*\\w+s*>"),d=t?e.slice(t):e,w=M(e,t),$=!1,h=!1,y={cb:X,i:!0,trimCharsBeforeMatching:["/",T,"!"," "," ","\n","\r"]};return l.allowCustomTagNames?((l.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[M(e,w)]==="<")||d[0]==="<"&&((v=d[1])!=null&&v.trim()))&&(a.test(d)||/^<\w+$/.test(d))||s.test(d)&&N(e,t)||o.test(d)||f.test(d)&&N(e,t)||m.test(d)||e[t]==="/"&&e[w]!=="<"&&b.test(d))&&(h=!0):(((l.skipOpeningBracket&&(e[t-1]==="<"||e[t-1]==="/"&&e[M(e,w)]==="<")||(d[0]==="<"||d[0]==="/"&&(!e[w]||e[w]!=="<"))&&((A=d[1])!=null&&A.trim()))&&a.test(d)||i.test(d)&&N(e,t)||r.test(d)||g.test(d)&&N(e,t)||p.test(d))&&($=!0),$&&G(e,t,I,{cb:R=>{var V;return R===void 0?((e[t]==="<"&&((V=e[t+1])!=null&&V.trim())||e[t-1]==="<")&&(h=!0),!0):R.toUpperCase()===R.toLowerCase()&&!/\d/.test(R)&&R!=="="},i:!0,trimCharsBeforeMatching:["<","/",T,"!"," "," ","\n","\r"]})&&(h=!0)),!h&&e[t]==="<"&&((E=e[t+1])!=null&&E.trim())&&Z(e,t,I,y)&&(h=!0),typeof e=="string"&&t<e.length&&h}return ae(be);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name arrayiffy-if-string
|
|
13
13
|
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
14
|
-
* @version 5.0
|
|
15
|
-
* @author Roy Revelt
|
|
14
|
+
* @version 5.1.0
|
|
15
|
+
* @author Roy Revelt
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/arrayiffy-if-string/}
|
|
18
18
|
*/
|
|
19
19
|
/**
|
|
20
20
|
* @name codsen-utils
|
|
21
21
|
* @fileoverview Various utility functions
|
|
22
|
-
* @version 1.
|
|
23
|
-
* @author Roy Revelt
|
|
22
|
+
* @version 1.7.0
|
|
23
|
+
* @author Roy Revelt
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/codsen-utils/}
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @name string-match-left-right
|
|
29
29
|
* @fileoverview Match substrings on the left or right of a given index, ignoring whitespace
|
|
30
|
-
* @version 9.0
|
|
31
|
-
* @author Roy Revelt
|
|
30
|
+
* @version 9.1.0
|
|
31
|
+
* @author Roy Revelt
|
|
32
32
|
* @license MIT
|
|
33
33
|
* {@link https://codsen.com/os/string-match-left-right/}
|
|
34
34
|
*/
|
|
35
35
|
/**
|
|
36
36
|
* @name string-left-right
|
|
37
37
|
* @fileoverview Looks up the first non-whitespace character to the left/right of a given index
|
|
38
|
-
* @version 6.0
|
|
39
|
-
* @author Roy Revelt
|
|
38
|
+
* @version 6.1.0
|
|
39
|
+
* @author Roy Revelt
|
|
40
40
|
* @license MIT
|
|
41
41
|
* {@link https://codsen.com/os/string-left-right/}
|
|
42
42
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "is-html-tag-opening",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Does an HTML tag start at given position?",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bracket",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
47
47
|
"lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
48
48
|
"letspublish": "npm publish --provenance || :",
|
|
49
|
-
"lint": "eslint . --fix",
|
|
49
|
+
"lint": "eslint . --fix --concurrency=auto --cache",
|
|
50
50
|
"perf": "node perf/check.js",
|
|
51
51
|
"prep": "echo 'ready'",
|
|
52
52
|
"prettier": "prettier",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"string-left-right": "^6.0
|
|
77
|
-
"string-match-left-right": "^9.0
|
|
76
|
+
"string-left-right": "^6.1.0",
|
|
77
|
+
"string-match-left-right": "^9.1.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"test-mixer": "^4.
|
|
80
|
+
"test-mixer": "^4.2.0"
|
|
81
81
|
},
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|