lien 3.4.3 → 3.4.4
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/FUNDING.yml +4 -0
- package/CONTRIBUTING.md +25 -50
- package/lib/index.js +8 -0
- package/package.json +1 -1
package/CONTRIBUTING.md
CHANGED
|
@@ -1,66 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Contributing :star: :star2: :dizzy:
|
|
2
2
|
|
|
3
|
-
So, you want to contribute to this project
|
|
4
|
-
doing so, please read the following simple steps how to contribute. This will
|
|
5
|
-
make the life easier and will avoid wasting time on things which are not
|
|
6
|
-
requested. :sparkles:
|
|
3
|
+
So, you want to contribute to this project? That's awesome! However, before doing so, please read the following simple steps on how to contribute. This will make life easier and avoid wasting time on things that are not requested. ✨
|
|
7
4
|
|
|
8
|
-
## Discuss the changes before
|
|
9
|
-
|
|
10
|
-
describing the contribution you would like to make, the bug you found or any
|
|
11
|
-
other ideas you have. This will help us to get you started on the right
|
|
12
|
-
foot.
|
|
5
|
+
## Discuss the changes before making them
|
|
6
|
+
To begin, open an issue in the repository using the [bug tracker][1]. Describe the contribution you'd like to make, the bug you've found, or any other ideas you have. This step will help us get you started on the right track.
|
|
13
7
|
|
|
14
|
-
|
|
15
|
-
system, Node.JS version etc.), screenshots (so we can see what you are
|
|
16
|
-
seeing).
|
|
8
|
+
If it is relevant, include platform and software information (e.g., operating system, Node.JS version, etc.) and screenshots to help us understand what you're experiencing.
|
|
17
9
|
|
|
18
|
-
|
|
19
|
-
However, if the issue is clear (e.g. a typo) and the fix is simple, you can
|
|
20
|
-
continue and fix it.
|
|
10
|
+
We recommend waiting for feedback before proceeding to the next steps. However, if the issue is clear, such as a typo, and the fix is simple, you can go ahead and fix it.
|
|
21
11
|
|
|
22
|
-
## Fixing
|
|
23
|
-
|
|
24
|
-
`some-great-feature` or `some-issue-fix`.
|
|
12
|
+
## Fixing Issues
|
|
13
|
+
Begin by forking the project to your own account, and create a branch for your fix, naming it either `some-great-feature` or `some-issue-fix`.
|
|
25
14
|
|
|
26
|
-
|
|
27
|
-
[code style][2]. If the project contains tests (generally, the `test`
|
|
28
|
-
directory), you are encouraged to add a test as well. :memo:
|
|
15
|
+
Commit your changes to that branch, adhering to the [code style][2]. If the project includes tests (usually located in the `test` directory), we encourage you to add a test as well. :memo:
|
|
29
16
|
|
|
30
|
-
|
|
31
|
-
in the `contributors` array (or `authors` in the case of `bower.json`;
|
|
32
|
-
if the array does not exist, create it):
|
|
17
|
+
If the project includes a `package.json` or a `bower.json` file, add yourself to the `contributors` array (or `authors` in the case of `bower.json`). If the array doesn't exist, create it as shown below:
|
|
33
18
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"contributors": [
|
|
22
|
+
"Your Name <your@email.address> (http://your.website)"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
```
|
|
41
26
|
|
|
42
|
-
## Creating a
|
|
27
|
+
## Creating a Pull Request
|
|
28
|
+
Start by opening a pull request and make sure to reference the initial issue in the pull request message (e.g., *fixes #<your-issue-number>*). Provide a clear and descriptive title to help everyone understand what is being fixed or improved.
|
|
43
29
|
|
|
44
|
-
|
|
45
|
-
message (e.g. *fixes #<your-issue-number>*). Write a good description and
|
|
46
|
-
title, so everybody will know what is fixed/improved.
|
|
30
|
+
If applicable, consider adding screenshots, gifs, or any other visual aids that can make it easier to understand the changes you've made.
|
|
47
31
|
|
|
48
|
-
|
|
49
|
-
|
|
32
|
+
## Wait for Feedback
|
|
33
|
+
Before accepting your contributions, we will review them. You may receive feedback regarding what needs to be addressed in your modified code. If so, simply continue making commits to your branch, and the pull request will be automatically updated.
|
|
50
34
|
|
|
51
|
-
##
|
|
52
|
-
|
|
53
|
-
about what should be fixed in your modified code. If so, just keep committing
|
|
54
|
-
in your branch and the pull request will be updated automatically.
|
|
55
|
-
|
|
56
|
-
## Everyone is happy!
|
|
57
|
-
Finally, your contributions will be merged, and everyone will be happy! :smile:
|
|
58
|
-
Contributions are more than welcome!
|
|
35
|
+
## Everyone Is Happy!
|
|
36
|
+
Ultimately, your contributions will be merged, and everyone will be delighted! 😄 Contributions are more than welcome!
|
|
59
37
|
|
|
60
38
|
Thanks! :sweat_smile:
|
|
61
39
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
[1]: https://github.com/LienJS/Lien/issues
|
|
65
|
-
|
|
40
|
+
[1]: /issues
|
|
66
41
|
[2]: https://github.com/IonicaBizau/code-style
|
package/lib/index.js
CHANGED
|
@@ -909,6 +909,9 @@ var Lien = function (_EventEmitter) {
|
|
|
909
909
|
}, {
|
|
910
910
|
key: "getHooksStrict",
|
|
911
911
|
value: function getHooksStrict(type, url, method) {
|
|
912
|
+
if (url === "*") {
|
|
913
|
+
url = "(.*)";
|
|
914
|
+
}
|
|
912
915
|
var reUrl = pathToRegexp(url),
|
|
913
916
|
typ = this.transformers[type] = this.transformers[type] || {},
|
|
914
917
|
all = setOrGet(typ, method, []),
|
|
@@ -947,6 +950,11 @@ var Lien = function (_EventEmitter) {
|
|
|
947
950
|
}, {
|
|
948
951
|
key: "insertHook",
|
|
949
952
|
value: function insertHook(type, url, method, trans) {
|
|
953
|
+
|
|
954
|
+
if (url === "*") {
|
|
955
|
+
url = "(.*)";
|
|
956
|
+
}
|
|
957
|
+
|
|
950
958
|
var all = setOrGet(this.transformers[type], method, []);
|
|
951
959
|
|
|
952
960
|
all.push({
|