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.
@@ -0,0 +1,4 @@
1
+ github: ionicabizau
2
+ patreon: ionicabizau
3
+ open_collective: ionicabizau
4
+ custom: https://www.buymeacoffee.com/h96wwchmy
package/CONTRIBUTING.md CHANGED
@@ -1,66 +1,41 @@
1
- # :eight_spoked_asterisk: :stars: :sparkles: :dizzy: :star2: :star2: :sparkles: :dizzy: :star2: :star2: Contributing :star: :star2: :dizzy: :sparkles: :star: :star2: :dizzy: :sparkles: :stars: :eight_spoked_asterisk:
1
+ # Contributing :star: :star2: :dizzy:
2
2
 
3
- So, you want to contribute to this project! That's awesome. However, before
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 doing them
9
- - First of all, open an issue in the repository, using the [bug tracker][1],
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
- - If it makes sense, add the platform and software information (e.g. operating
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
- - It is recommended to wait for feedback before continuing to next steps.
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 issues
23
- - Fork the project in your account and create a branch with your fix:
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
- - Commit your changes in that branch, writing the code following the
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
- - If the project contains a `package.json` or a `bower.json` file add yourself
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
- ```json
35
- {
36
- "contributors": [
37
- "Your Name <and@email.address> (http://your.website)"
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 pull request
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
- - Open a pull request, and reference the initial issue in the pull request
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
- - If it makes sense, add screenshots, gifs etc., so it is easier to see what
49
- is going on.
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
- ## Wait for feedback
52
- Before accepting your contributions, we will review them. You may get feedback
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({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "test": "node test/index.js"
4
4
  },
5
5
  "name": "lien",
6
- "version": "3.4.3",
6
+ "version": "3.4.4",
7
7
  "description": "An easy to use web framework for Node.js.",
8
8
  "main": "lib/index.js",
9
9
  "keywords": [