@peter.naydenov/notice 2.2.2 → 2.2.3
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/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/CODE_OF_CONDUCT.md +128 -0
- package/Changelog.md +5 -0
- package/README.md +3 -2
- package/SECURITY.md +18 -0
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov-report/main.js.html +94 -76
- package/coverage/lcov.info +150 -139
- package/coverage/tmp/coverage-42325-1706509962826-0.json +1 -0
- package/coverage/tmp/coverage-42326-1706509962568-0.json +1 -0
- package/dist/notice.cjs +1 -0
- package/dist/notice.esm.mjs +1 -0
- package/dist/notice.umd.js +1 -0
- package/package.json +31 -16
- package/rollup.config.js +37 -0
- package/coverage/tmp/coverage-43593-1691169158883-0.json +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. What is environment 'browser/node/version...'. Describe it best is possible
|
|
16
|
+
2. Settings applied to the library...
|
|
17
|
+
3. Call with data ...
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Description of the result**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Additional context**
|
|
32
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Is your feature request related to a problem? Please describe.**
|
|
11
|
+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
12
|
+
|
|
13
|
+
**Describe the solution you'd like**
|
|
14
|
+
A clear and concise description of what you want to happen.
|
|
15
|
+
|
|
16
|
+
**Describe alternatives you've considered**
|
|
17
|
+
A clear and concise description of any alternative solutions or features you've considered.
|
|
18
|
+
|
|
19
|
+
**Additional context**
|
|
20
|
+
Add any other context or screenshots about the feature request here.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity
|
|
10
|
+
and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
+
overall community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or
|
|
31
|
+
advances of any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email
|
|
35
|
+
address, without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official e-mail address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
peter.naydenov@gmail.com.
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series
|
|
86
|
+
of actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or
|
|
93
|
+
permanent ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
+
the community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.0, available at
|
|
119
|
+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
|
122
|
+
enforcement ladder](https://github.com/mozilla/diversity).
|
|
123
|
+
|
|
124
|
+
[homepage]: https://www.contributor-covenant.org
|
|
125
|
+
|
|
126
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
127
|
+
https://www.contributor-covenant.org/faq. Translations are available at
|
|
128
|
+
https://www.contributor-covenant.org/translations.
|
package/Changelog.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
### 2.2.3 ( 2024-01-29)
|
|
6
|
+
- [x] Folder 'dist' was added. It contains compiled files for commonjs and es6 modules;
|
|
7
|
+
- [x] Package.json: "exports" section was added. Allows you to use package as commonjs or es6 module without additional configuration;
|
|
8
|
+
|
|
9
|
+
|
|
5
10
|
|
|
6
11
|
### 2.2.2 ( 2023-11-09)
|
|
7
12
|
- [x] Badges and head image were added to README.md;
|
package/README.md
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|

|
|
10
10
|

|
|
11
11
|

|
|
12
|
-

|
|
13
|
+
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
Notice is an simple event emitter. Define a behaviour related to event and then trigger the event.
|
|
@@ -238,4 +239,4 @@ eBus.emit ( 'dummy' )
|
|
|
238
239
|
|
|
239
240
|
|
|
240
241
|
## License
|
|
241
|
-
'notice' is released under the [
|
|
242
|
+
'notice' is released under the [MIT License](https://opensource.org/licenses/ISC).
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Use this section to tell people about which versions of your project are
|
|
6
|
+
currently being supported with security updates.
|
|
7
|
+
|
|
8
|
+
| Version | Supported |
|
|
9
|
+
| ------- | ------------------ |
|
|
10
|
+
| 2.x.x | :white_check_mark: |
|
|
11
|
+
| < 2.0 | :x: |
|
|
12
|
+
|
|
13
|
+
## Reporting a Vulnerability
|
|
14
|
+
|
|
15
|
+
Security vulnerabilities should be reported as a 'issue' on the github repository. Please include the following information:
|
|
16
|
+
- A description of the vulnerability
|
|
17
|
+
- Steps to reproduce the vulnerability
|
|
18
|
+
- Versions affected
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">90.
|
|
26
|
+
<span class="strong">90.74% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>98/108</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">95.83% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>46/48</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">90% </span>
|
|
40
|
+
<span class="strong">90.9% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>10/11</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">90.
|
|
47
|
+
<span class="strong">90.74% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>98/108</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file high" data-value="main.js"><a href="main.js.html">main.js</a></td>
|
|
83
|
-
<td data-value="90.
|
|
83
|
+
<td data-value="90.74" class="pic high">
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 90%"></div><div class="cover-empty" style="width: 10%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="90.
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="
|
|
89
|
-
<td data-value="
|
|
90
|
-
<td data-value="90" class="pct high">90%</td>
|
|
91
|
-
<td data-value="
|
|
92
|
-
<td data-value="90.
|
|
93
|
-
<td data-value="
|
|
86
|
+
<td data-value="90.74" class="pct high">90.74%</td>
|
|
87
|
+
<td data-value="108" class="abs high">98/108</td>
|
|
88
|
+
<td data-value="95.83" class="pct high">95.83%</td>
|
|
89
|
+
<td data-value="48" class="abs high">46/48</td>
|
|
90
|
+
<td data-value="90.9" class="pct high">90.9%</td>
|
|
91
|
+
<td data-value="11" class="abs high">10/11</td>
|
|
92
|
+
<td data-value="90.74" class="pct high">90.74%</td>
|
|
93
|
+
<td data-value="108" class="abs high">98/108</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
</tbody>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at
|
|
104
|
+
at 2024-01-29T06:32:42.881Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">90.
|
|
26
|
+
<span class="strong">90.74% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>98/108</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">95.83% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>46/48</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">90% </span>
|
|
40
|
+
<span class="strong">90.9% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>10/11</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">90.
|
|
47
|
+
<span class="strong">90.74% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>98/108</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -167,25 +167,32 @@
|
|
|
167
167
|
<a name='L102'></a><a href='#L102'>102</a>
|
|
168
168
|
<a name='L103'></a><a href='#L103'>103</a>
|
|
169
169
|
<a name='L104'></a><a href='#L104'>104</a>
|
|
170
|
-
<a name='L105'></a><a href='#L105'>105</a
|
|
171
|
-
<
|
|
172
|
-
<
|
|
173
|
-
<
|
|
174
|
-
<
|
|
175
|
-
<
|
|
176
|
-
<span class="cline-any cline-yes">
|
|
177
|
-
<span class="cline-any cline-yes">
|
|
178
|
-
<span class="cline-any cline-yes">
|
|
179
|
-
<span class="cline-any cline-yes">
|
|
180
|
-
<span class="cline-any cline-yes">
|
|
181
|
-
<span class="cline-any cline-yes">
|
|
182
|
-
<span class="cline-any cline-yes">
|
|
183
|
-
<span class="cline-any cline-yes">
|
|
184
|
-
<span class="cline-any cline-yes">
|
|
170
|
+
<a name='L105'></a><a href='#L105'>105</a>
|
|
171
|
+
<a name='L106'></a><a href='#L106'>106</a>
|
|
172
|
+
<a name='L107'></a><a href='#L107'>107</a>
|
|
173
|
+
<a name='L108'></a><a href='#L108'>108</a>
|
|
174
|
+
<a name='L109'></a><a href='#L109'>109</a>
|
|
175
|
+
<a name='L110'></a><a href='#L110'>110</a>
|
|
176
|
+
<a name='L111'></a><a href='#L111'>111</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
|
|
177
|
+
<span class="cline-any cline-yes">22x</span>
|
|
178
|
+
<span class="cline-any cline-yes">22x</span>
|
|
179
|
+
<span class="cline-any cline-yes">22x</span>
|
|
180
|
+
<span class="cline-any cline-yes">22x</span>
|
|
181
|
+
<span class="cline-any cline-yes">22x</span>
|
|
182
|
+
<span class="cline-any cline-yes">22x</span>
|
|
183
|
+
<span class="cline-any cline-yes">22x</span>
|
|
184
|
+
<span class="cline-any cline-yes">22x</span>
|
|
185
|
+
<span class="cline-any cline-yes">22x</span>
|
|
186
|
+
<span class="cline-any cline-yes">22x</span>
|
|
187
|
+
<span class="cline-any cline-yes">26x</span>
|
|
188
|
+
<span class="cline-any cline-yes">26x</span>
|
|
189
|
+
<span class="cline-any cline-yes">22x</span>
|
|
190
|
+
<span class="cline-any cline-yes">22x</span>
|
|
185
191
|
<span class="cline-any cline-yes">9x</span>
|
|
186
192
|
<span class="cline-any cline-yes">9x</span>
|
|
187
|
-
<span class="cline-any cline-yes">
|
|
188
|
-
<span class="cline-any cline-yes">
|
|
193
|
+
<span class="cline-any cline-yes">9x</span>
|
|
194
|
+
<span class="cline-any cline-yes">22x</span>
|
|
195
|
+
<span class="cline-any cline-yes">22x</span>
|
|
189
196
|
<span class="cline-any cline-yes">7x</span>
|
|
190
197
|
<span class="cline-any cline-yes">5x</span>
|
|
191
198
|
<span class="cline-any cline-yes">5x</span>
|
|
@@ -195,19 +202,19 @@
|
|
|
195
202
|
<span class="cline-any cline-yes">5x</span>
|
|
196
203
|
<span class="cline-any cline-yes">7x</span>
|
|
197
204
|
<span class="cline-any cline-yes">7x</span>
|
|
198
|
-
<span class="cline-any cline-yes">
|
|
199
|
-
<span class="cline-any cline-yes">
|
|
205
|
+
<span class="cline-any cline-yes">22x</span>
|
|
206
|
+
<span class="cline-any cline-yes">22x</span>
|
|
200
207
|
<span class="cline-any cline-yes">1x</span>
|
|
201
208
|
<span class="cline-any cline-yes">1x</span>
|
|
202
209
|
<span class="cline-any cline-yes">1x</span>
|
|
203
|
-
<span class="cline-any cline-yes">
|
|
204
|
-
<span class="cline-any cline-yes">
|
|
210
|
+
<span class="cline-any cline-yes">22x</span>
|
|
211
|
+
<span class="cline-any cline-yes">22x</span>
|
|
205
212
|
<span class="cline-any cline-no"> </span>
|
|
206
213
|
<span class="cline-any cline-no"> </span>
|
|
207
|
-
<span class="cline-any cline-yes">
|
|
208
|
-
<span class="cline-any cline-yes">
|
|
209
|
-
<span class="cline-any cline-yes">
|
|
210
|
-
<span class="cline-any cline-yes">
|
|
214
|
+
<span class="cline-any cline-yes">22x</span>
|
|
215
|
+
<span class="cline-any cline-yes">22x</span>
|
|
216
|
+
<span class="cline-any cline-yes">38x</span>
|
|
217
|
+
<span class="cline-any cline-yes">38x</span>
|
|
211
218
|
<span class="cline-any cline-no"> </span>
|
|
212
219
|
<span class="cline-any cline-no"> </span>
|
|
213
220
|
<span class="cline-any cline-no"> </span>
|
|
@@ -216,31 +223,36 @@
|
|
|
216
223
|
<span class="cline-any cline-no"> </span>
|
|
217
224
|
<span class="cline-any cline-no"> </span>
|
|
218
225
|
<span class="cline-any cline-no"> </span>
|
|
219
|
-
<span class="cline-any cline-yes">
|
|
220
|
-
<span class="cline-any cline-yes">
|
|
221
|
-
<span class="cline-any cline-yes">
|
|
222
|
-
<span class="cline-any cline-yes">
|
|
226
|
+
<span class="cline-any cline-yes">38x</span>
|
|
227
|
+
<span class="cline-any cline-yes">38x</span>
|
|
228
|
+
<span class="cline-any cline-yes">28x</span>
|
|
229
|
+
<span class="cline-any cline-yes">28x</span>
|
|
230
|
+
<span class="cline-any cline-yes">21x</span>
|
|
231
|
+
<span class="cline-any cline-yes">21x</span>
|
|
232
|
+
<span class="cline-any cline-yes">38x</span>
|
|
233
|
+
<span class="cline-any cline-yes">38x</span>
|
|
234
|
+
<span class="cline-any cline-yes">38x</span>
|
|
223
235
|
<span class="cline-any cline-yes">3x</span>
|
|
224
|
-
<span class="cline-any cline-yes">
|
|
225
|
-
<span class="cline-any cline-yes">
|
|
226
|
-
<span class="cline-any cline-yes">
|
|
236
|
+
<span class="cline-any cline-yes">3x</span>
|
|
237
|
+
<span class="cline-any cline-yes">3x</span>
|
|
238
|
+
<span class="cline-any cline-yes">3x</span>
|
|
239
|
+
<span class="cline-any cline-yes">38x</span>
|
|
227
240
|
<span class="cline-any cline-yes">6x</span>
|
|
228
241
|
<span class="cline-any cline-yes">5x</span>
|
|
229
242
|
<span class="cline-any cline-yes">5x</span>
|
|
230
243
|
<span class="cline-any cline-yes">5x</span>
|
|
231
|
-
<span class="cline-any cline-yes">
|
|
232
|
-
<span class="cline-any cline-yes">
|
|
233
|
-
<span class="cline-any cline-yes">
|
|
234
|
-
<span class="cline-any cline-yes">
|
|
235
|
-
<span class="cline-any cline-yes">
|
|
236
|
-
<span class="cline-any cline-yes">20x</span>
|
|
244
|
+
<span class="cline-any cline-yes">38x</span>
|
|
245
|
+
<span class="cline-any cline-yes">19x</span>
|
|
246
|
+
<span class="cline-any cline-yes">19x</span>
|
|
247
|
+
<span class="cline-any cline-yes">22x</span>
|
|
248
|
+
<span class="cline-any cline-yes">22x</span>
|
|
237
249
|
<span class="cline-any cline-yes">3x</span>
|
|
238
250
|
<span class="cline-any cline-yes">1x</span>
|
|
239
251
|
<span class="cline-any cline-yes">1x</span>
|
|
240
252
|
<span class="cline-any cline-yes">1x</span>
|
|
241
253
|
<span class="cline-any cline-yes">2x</span>
|
|
242
|
-
<span class="cline-any cline-yes">
|
|
243
|
-
<span class="cline-any cline-yes">
|
|
254
|
+
<span class="cline-any cline-yes">22x</span>
|
|
255
|
+
<span class="cline-any cline-yes">22x</span>
|
|
244
256
|
<span class="cline-any cline-yes">4x</span>
|
|
245
257
|
<span class="cline-any cline-yes">1x</span>
|
|
246
258
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -250,21 +262,21 @@
|
|
|
250
262
|
<span class="cline-any cline-yes">1x</span>
|
|
251
263
|
<span class="cline-any cline-yes">1x</span>
|
|
252
264
|
<span class="cline-any cline-yes">3x</span>
|
|
253
|
-
<span class="cline-any cline-yes">
|
|
254
|
-
<span class="cline-any cline-yes">
|
|
255
|
-
<span class="cline-any cline-yes">
|
|
256
|
-
<span class="cline-any cline-yes">
|
|
257
|
-
<span class="cline-any cline-yes">
|
|
258
|
-
<span class="cline-any cline-yes">
|
|
259
|
-
<span class="cline-any cline-yes">
|
|
260
|
-
<span class="cline-any cline-yes">
|
|
261
|
-
<span class="cline-any cline-yes">
|
|
262
|
-
<span class="cline-any cline-yes">
|
|
263
|
-
<span class="cline-any cline-yes">
|
|
264
|
-
<span class="cline-any cline-yes">
|
|
265
|
-
<span class="cline-any cline-yes">
|
|
266
|
-
<span class="cline-any cline-yes">
|
|
267
|
-
<span class="cline-any cline-yes">
|
|
265
|
+
<span class="cline-any cline-yes">22x</span>
|
|
266
|
+
<span class="cline-any cline-yes">22x</span>
|
|
267
|
+
<span class="cline-any cline-yes">22x</span>
|
|
268
|
+
<span class="cline-any cline-yes">22x</span>
|
|
269
|
+
<span class="cline-any cline-yes">22x</span>
|
|
270
|
+
<span class="cline-any cline-yes">22x</span>
|
|
271
|
+
<span class="cline-any cline-yes">22x</span>
|
|
272
|
+
<span class="cline-any cline-yes">22x</span>
|
|
273
|
+
<span class="cline-any cline-yes">22x</span>
|
|
274
|
+
<span class="cline-any cline-yes">22x</span>
|
|
275
|
+
<span class="cline-any cline-yes">22x</span>
|
|
276
|
+
<span class="cline-any cline-yes">22x</span>
|
|
277
|
+
<span class="cline-any cline-yes">22x</span>
|
|
278
|
+
<span class="cline-any cline-yes">22x</span>
|
|
279
|
+
<span class="cline-any cline-yes">22x</span>
|
|
268
280
|
<span class="cline-any cline-yes">1x</span>
|
|
269
281
|
<span class="cline-any cline-yes">1x</span>
|
|
270
282
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -275,7 +287,7 @@
|
|
|
275
287
|
function notice () {
|
|
276
288
|
function Notice () {
|
|
277
289
|
let
|
|
278
|
-
scroll = {} // General events with their subscribers
|
|
290
|
+
scroll = {'*':[]} // General events with their subscribers
|
|
279
291
|
, scrollOnce = {} // Single events with their subscribers
|
|
280
292
|
, ignore = [] // Ignore event names ( general and single )
|
|
281
293
|
, debugFlag = false
|
|
@@ -286,6 +298,7 @@ function notice () {
|
|
|
286
298
|
scroll[e].push ( fn )
|
|
287
299
|
} // on func.
|
|
288
300
|
function once ( e, fn ) {
|
|
301
|
+
if ( e === '*' ) <span class="branch-0 cbranch-no" title="branch not covered" >return </span> // The wildcard '*' doesn't work for 'once' events
|
|
289
302
|
if ( !scrollOnce[e] ) scrollOnce[e] = []
|
|
290
303
|
scrollOnce[e].push ( fn )
|
|
291
304
|
} // once func.
|
|
@@ -301,7 +314,7 @@ function notice () {
|
|
|
301
314
|
if ( scroll[e] ) delete scroll[e]
|
|
302
315
|
} // off func.
|
|
303
316
|
function reset () {
|
|
304
|
-
scroll = {}
|
|
317
|
+
scroll = {'*':[]}
|
|
305
318
|
scrollOnce = {}
|
|
306
319
|
ignore = []
|
|
307
320
|
} // reset func.
|
|
@@ -320,22 +333,27 @@ function notice () {
|
|
|
320
333
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
321
334
|
<span class="cstat-no" title="statement not covered" > </span>
|
|
322
335
|
<span class="cstat-no" title="statement not covered" > }</span>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
336
|
+
|
|
337
|
+
function exeCallback ( name ) {
|
|
338
|
+
if ( name === '*' ) return
|
|
339
|
+
if ( ignore.includes(name) ) return
|
|
340
|
+
scroll[name].forEach ( fn => fn(...args))
|
|
341
|
+
scroll['*'].forEach ( fn => fn(e,...args) )
|
|
342
|
+
} // exeCallback func.
|
|
343
|
+
|
|
344
|
+
if ( e === '*' ) { // The wildcard '*' doesn't work for 'once' events
|
|
345
|
+
let evNames = Object.keys ( scroll )
|
|
346
|
+
evNames.forEach ( name => exeCallback(name) )
|
|
347
|
+
return
|
|
329
348
|
}
|
|
330
349
|
if ( scrollOnce[e] ) {
|
|
331
350
|
if ( ignore.includes(e) ) return
|
|
332
351
|
scrollOnce[e].forEach ( fn => fn(...args) )
|
|
333
352
|
delete scrollOnce[e]
|
|
334
353
|
}
|
|
335
|
-
if ( scroll[e] )
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
}
|
|
354
|
+
if ( scroll[e] ) {
|
|
355
|
+
exeCallback ( e )
|
|
356
|
+
}
|
|
339
357
|
} // emit func.
|
|
340
358
|
function start ( e ) {
|
|
341
359
|
if ( e === '*' ) {
|
|
@@ -382,7 +400,7 @@ export default notice
|
|
|
382
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
383
401
|
Code coverage generated by
|
|
384
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
385
|
-
at
|
|
403
|
+
at 2024-01-29T06:32:42.881Z
|
|
386
404
|
</div>
|
|
387
405
|
<script src="prettify.js"></script>
|
|
388
406
|
<script>
|