lien 3.4.4 → 4.0.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/CONTRIBUTING.md +50 -25
- package/DOCUMENTATION.md +3 -3
- package/LICENSE +1 -1
- package/README.md +14 -13
- package/lib/index.js +3 -0
- package/package.json +2 -2
package/CONTRIBUTING.md
CHANGED
|
@@ -1,41 +1,66 @@
|
|
|
1
|
-
# Contributing :star: :star2: :dizzy:
|
|
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:
|
|
2
2
|
|
|
3
|
-
So, you want to contribute to this project
|
|
3
|
+
So, you want to contribute to this project! That's awesome. However, before
|
|
4
|
+
doing so, please read the following simple steps explaining how to contribute. This will
|
|
5
|
+
make life easier and help avoid wasting time on things that are not
|
|
6
|
+
requested. :sparkles:
|
|
4
7
|
|
|
5
|
-
## Discuss the changes before
|
|
6
|
-
|
|
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.
|
|
7
13
|
|
|
8
|
-
If it
|
|
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).
|
|
9
17
|
|
|
10
|
-
|
|
18
|
+
- It is recommended to wait for feedback before continuing the next steps.
|
|
19
|
+
However, if the issue is clear (e.g. a typo) and the fix is simple, you can
|
|
20
|
+
continue to fix it.
|
|
11
21
|
|
|
12
|
-
## Fixing
|
|
13
|
-
|
|
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`.
|
|
14
25
|
|
|
15
|
-
Commit your changes
|
|
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:
|
|
16
29
|
|
|
17
|
-
If the project
|
|
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):
|
|
18
33
|
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
```
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"contributors": [
|
|
37
|
+
"Your Name <and@email.address> (http://your.website)"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
```
|
|
26
41
|
|
|
27
|
-
## Creating a
|
|
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.
|
|
42
|
+
## Creating a pull request
|
|
29
43
|
|
|
30
|
-
|
|
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.
|
|
31
47
|
|
|
32
|
-
|
|
33
|
-
|
|
48
|
+
- If it makes sense, add screenshots, gifs etc., so it is easier to see what
|
|
49
|
+
is going on.
|
|
34
50
|
|
|
35
|
-
##
|
|
36
|
-
|
|
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!
|
|
37
59
|
|
|
38
60
|
Thanks! :sweat_smile:
|
|
39
61
|
|
|
40
|
-
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
[1]: https://github.com/LienJS/Lien/issues
|
|
65
|
+
|
|
41
66
|
[2]: https://github.com/IonicaBizau/code-style
|
package/DOCUMENTATION.md
CHANGED
|
@@ -110,7 +110,7 @@ Sets, gets or deletes the cookie.
|
|
|
110
110
|
- **String** `value`: If provided and it not `null`, the cookie will be set. If it's null, the cookie will be deleted. If `value` is not provided, the cookie value will be returned.
|
|
111
111
|
|
|
112
112
|
#### Return
|
|
113
|
-
- **String** `null`, if the cookie was deleted. `undefined` if the cookie doesn't exist. The cookie value if this exists.
|
|
113
|
+
- **String|null|undefined** `null`, if the cookie was deleted. `undefined` if the cookie doesn't exist. The cookie value if this exists.
|
|
114
114
|
|
|
115
115
|
### `file(path, customRoot)`
|
|
116
116
|
Serves a file to the response.
|
|
@@ -218,7 +218,7 @@ Gets the transformer for a url.
|
|
|
218
218
|
- **String** `method`: The method.
|
|
219
219
|
|
|
220
220
|
#### Return
|
|
221
|
-
- **Transformer** The transformer (if it exists) or `null`.
|
|
221
|
+
- **Transformer|null** The transformer (if it exists) or `null`.
|
|
222
222
|
|
|
223
223
|
### `getHooksStrict(type, url, method)`
|
|
224
224
|
Similar to `getHooks`, but doesn't concat hooks based on the regex
|
|
@@ -231,7 +231,7 @@ matching but only if they are the same regex.
|
|
|
231
231
|
- **String** `method`: The method.
|
|
232
232
|
|
|
233
233
|
#### Return
|
|
234
|
-
- **Transformer** The transformer (if it exists) or `null`.
|
|
234
|
+
- **Transformer|null** The transformer (if it exists) or `null`.
|
|
235
235
|
|
|
236
236
|
### `insertHook(type, url, method, trans)`
|
|
237
237
|
Inserts a new hook.
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-24 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net/)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -244,7 +244,7 @@ Sets, gets or deletes the cookie.
|
|
|
244
244
|
- **String** `value`: If provided and it not `null`, the cookie will be set. If it's null, the cookie will be deleted. If `value` is not provided, the cookie value will be returned.
|
|
245
245
|
|
|
246
246
|
#### Return
|
|
247
|
-
- **String** `null`, if the cookie was deleted. `undefined` if the cookie doesn't exist. The cookie value if this exists.
|
|
247
|
+
- **String|null|undefined** `null`, if the cookie was deleted. `undefined` if the cookie doesn't exist. The cookie value if this exists.
|
|
248
248
|
|
|
249
249
|
### `file(path, customRoot)`
|
|
250
250
|
Serves a file to the response.
|
|
@@ -352,7 +352,7 @@ Gets the transformer for a url.
|
|
|
352
352
|
- **String** `method`: The method.
|
|
353
353
|
|
|
354
354
|
#### Return
|
|
355
|
-
- **Transformer** The transformer (if it exists) or `null`.
|
|
355
|
+
- **Transformer|null** The transformer (if it exists) or `null`.
|
|
356
356
|
|
|
357
357
|
### `getHooksStrict(type, url, method)`
|
|
358
358
|
Similar to `getHooks`, but doesn't concat hooks based on the regex
|
|
@@ -365,7 +365,7 @@ matching but only if they are the same regex.
|
|
|
365
365
|
- **String** `method`: The method.
|
|
366
366
|
|
|
367
367
|
#### Return
|
|
368
|
-
- **Transformer** The transformer (if it exists) or `null`.
|
|
368
|
+
- **Transformer|null** The transformer (if it exists) or `null`.
|
|
369
369
|
|
|
370
370
|
### `insertHook(type, url, method, trans)`
|
|
371
371
|
Inserts a new hook.
|
|
@@ -483,24 +483,25 @@ Thanks! :heart:
|
|
|
483
483
|
## :dizzy: Where is this library used?
|
|
484
484
|
If you are using this library in one of your projects, add it in this list. :sparkles:
|
|
485
485
|
|
|
486
|
+
- `@dottjt/mediareade`
|
|
487
|
+
- `@everything-registry/sub-chunk-2069`
|
|
486
488
|
- `bloggify`
|
|
487
|
-
- `gh-contributions`
|
|
488
489
|
- `bloggify-cli`
|
|
489
|
-
- `
|
|
490
|
+
- `bloggify-prebuilt`
|
|
490
491
|
- `bloggify-server-prebuilt`
|
|
491
|
-
- `@dottjt/mediareade`
|
|
492
|
-
- `youtube-album-uploader`
|
|
493
|
-
- `youtube-album-uploader-multiple`
|
|
494
492
|
- `bnotify`
|
|
495
|
-
- `
|
|
496
|
-
- `
|
|
493
|
+
- `chewb-youtube-uploader`
|
|
494
|
+
- `fb-token-updater`
|
|
495
|
+
- `gh-contributions`
|
|
497
496
|
- `learning-node-file-upload`
|
|
497
|
+
- `learning-nodejs-file-upload`
|
|
498
498
|
- `lien-github-comments-example`
|
|
499
|
-
- `fb-token-updater`
|
|
500
499
|
- `nodejs-youtube-uploader`
|
|
501
|
-
- `
|
|
500
|
+
- `test-youtube-api`
|
|
501
|
+
- `web-term`
|
|
502
502
|
- `wrabbit`
|
|
503
|
-
- `
|
|
503
|
+
- `youtube-album-uploader`
|
|
504
|
+
- `youtube-album-uploader-multiple`
|
|
504
505
|
|
|
505
506
|
|
|
506
507
|
|
package/lib/index.js
CHANGED
|
@@ -587,6 +587,9 @@ var Lien = function (_EventEmitter) {
|
|
|
587
587
|
if (typeof options.session.store === "string") {
|
|
588
588
|
try {
|
|
589
589
|
_this3.SessionStoreModule = require(options.session.store);
|
|
590
|
+
if (_this3.SessionStoreModule.__esModule && _this3.SessionStoreModule.default) {
|
|
591
|
+
_this3.SessionStoreModule = _this3.SessionStoreModule.default;
|
|
592
|
+
}
|
|
590
593
|
} catch (e) {
|
|
591
594
|
if (e.code === "MODULE_NOT_FOUND") {
|
|
592
595
|
_this3.emit("error", new Error("The " + options.session.store + " should be installed in your app to use it as session store."));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"test": "node test/index.js"
|
|
4
4
|
},
|
|
5
5
|
"name": "lien",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "4.0.0",
|
|
7
7
|
"description": "An easy to use web framework for Node.js.",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"ajs": "^1.2.1",
|
|
24
|
-
"connect-mongo": "^
|
|
24
|
+
"connect-mongo": "^5.1.0",
|
|
25
25
|
"tester": "^1.3.4",
|
|
26
26
|
"tinyreq": "^3.1.2"
|
|
27
27
|
},
|