prajesh
62336717bf
fix: added a missing semicolon in css styles in examples/auth ( #6297 )
2025-01-26 11:54:07 +01:00
Szymon Łągiewka
41113599af
fix(refactor): prefix built-in node module imports
...
Since v5 relies on node >= 18, this is now possible (since v16, v14.18.0
[^1][^2]).
It's functionally irrelevant:
1. It's not required for CJS nor ESM (with a few exceptions [^3])
2. It has no performance promises
However, there are upsides to this approach:
1. It brings clear boundaries to what's a built-in and what's an
external dependency
2. It reduces the risk of importing unwanted deps where a built-in is
expected
3. It's slightly more interoperable with other JS runtimes that provide
node compatibility[^4], albeit only during development. Once imported
from npm, built-ins are assumed.
[^1]:https://nodejs.org/docs/latest-v22.x/api/modules.html#built-in-modules
[^2]:https://github.com/nodejs/node/pull/37246
[^3]:https://nodejs.org/api/modules.html#built-in-modules-with-mandatory-node-prefix
[^4]:https://docs.deno.com/runtime/fundamentals/node/#using-node's-built-in-modules
2025-01-10 11:53:44 -06:00
Blake Embrey
bdd81f8670
Delete back as a magic string ( #5933 )
2024-09-09 20:28:55 -07:00
Wes Todd
e9f9aaeebd
Merge tag '4.19.0' into 5.x
...
4.19.0
2024-03-20 21:14:00 -05:00
Hashen
8880ddad1c
examples: add missing html label associations
...
closes #4884
2022-04-11 19:29:14 -04:00
Douglas Christopher Wilson
318fd4b543
Merge tag '4.17.3'
2022-02-17 00:27:11 -05:00
Douglas Christopher Wilson
20047bb6e4
examples: use strict mode
2022-02-02 01:30:51 -05:00
Douglas Christopher Wilson
69997cbdbe
examples: fix error handling in auth example
2022-02-02 00:44:28 -05:00
Douglas Christopher Wilson
af341b0f09
deps: body-parser@2.0.0-beta.1
2021-12-17 23:02:38 -05:00
Aravind Nair
884e080a19
build: ejs@3.1.6
...
closes #4572
closes #4573
2021-07-31 21:54:15 -04:00
Aditya Srivastava
3f1dcb96e0
examples: add viewport and charset where missing
...
closes #3860
2020-03-25 17:10:34 -04:00
Alejandro Estrada
40e04ec7a6
lint: remove usages of "=="
...
closes #3540
2018-02-13 19:30:57 -05:00
Douglas Christopher Wilson
c0136d8b48
Add express.json and express.urlencoded to parse bodies
...
closes #2211
2017-09-28 13:22:36 -04:00
chainhelen
8eb95ae579
examples: use path.join instead of concatenation
...
closes #3236
2017-03-05 23:07:24 -05:00
Douglas Christopher Wilson
034f261fea
examples: use pbkdf2-password module in auth example
...
closes #3207
2017-02-15 23:36:17 -05:00
Douglas Christopher Wilson
b1d0c19ca1
examples: make main app file names consistent
...
fixes #2408
2014-10-23 02:39:38 -04:00
Douglas Christopher Wilson
e9539fc780
docs: visionmedia is now tj on Github
2014-10-23 02:20:51 -04:00
Douglas Christopher Wilson
ca306eace1
deps: update example dependencies
2014-07-03 10:49:53 -04:00
Douglas Christopher Wilson
6ee9433f29
deps: update example dependencies
2014-06-20 16:43:04 -04:00
Douglas Christopher Wilson
db4448dda8
Merge tag '3.9.0'
2014-05-30 22:17:51 -04:00
Douglas Christopher Wilson
c18c2a8e68
tests: exclude untestable lines in examples from coverage
2014-05-28 00:07:27 -04:00
Douglas Christopher Wilson
097cd0c242
Merge tag '3.7.0'
2014-05-18 11:21:30 -04:00
agchou
06dcb22ae2
clean up code consistency
2014-03-27 09:15:27 -07:00
Roman Shtylman
1396e0855d
remove last pieces of connect dependency
...
- copy over patch.js to shim ServerResponse
- bundle `static` middleware
2014-02-22 09:26:29 -05:00
Rick Yakubowski
1684a8792a
Removed Buffer call with 'binary' encoding option in auth example.
...
According to the Node.js documentation for Buffer objects regarding the
'binary' encoding option:
"This encoding method is deprecated and should be avoided in favor of
Buffer objects where possible. This encoding will be removed in future
versions of Node."
Simply calling toString() with a 'base64' argument on the hash seems to
accomplish the same thing; this makes the code compatible with current
documentation as well as being a bit easier to follow.
2013-11-21 14:01:56 -05:00
Josh Lubawy
ee9d50c128
Modified hash to return base64 encoded strings.
2013-04-04 23:26:27 -07:00
TJ Holowaychuk
d653d2308b
refactor ejs example
2012-10-09 19:26:17 -07:00
TJ Holowaychuk
a52b1f121c
add EJS title example to auth
2012-10-09 19:21:50 -07:00
TJ Holowaychuk
9edd8be520
remove user footer info from auth example
...
looks a little weird
2012-10-09 19:20:30 -07:00
TJ Holowaychuk
aa1d47600a
fix auth example acceptance tests
2012-10-09 19:19:54 -07:00
sakateka
be7ec8b40e
improved ejs Example
2012-10-09 19:16:54 -07:00
sakateka
8e12dd9c17
Checked all the examples
2012-10-09 19:16:54 -07:00
sakateka
92840b9f68
Fixed: notify of a successful auth.
2012-10-05 12:23:11 +04:00
TJ Holowaychuk
ab61837885
change res.sendfile() to use send() module
2012-07-13 08:58:40 -07:00
TJ Holowaychuk
bddcdee3fe
docs
2012-06-27 13:58:35 -07:00
TJ Holowaychuk
26fab2a27d
update auth example to utilize cores pbkdf2
2012-06-27 13:20:39 -07:00
TJ Holowaychuk
30167356f2
less verbose example apps when testing
2012-04-26 04:40:04 -07:00
TJ Holowaychuk
7048be2830
refactoring auth example
2012-04-11 11:17:12 -07:00
TJ Holowaychuk
196a1eb6ad
set view engine for auth app
2012-02-18 13:20:23 -08:00
TJ Holowaychuk
593271f536
removed accessLogger from auth example
2012-02-18 13:18:00 -08:00
TJ Holowaychuk
0f24f715ba
tweak auth example
2012-02-18 13:16:17 -08:00
Robert Sköld
ad3f1e84aa
Updated blog example for Jade inheritence. Passes tests.
2012-02-18 13:08:25 -08:00
Robert Sköld
9290f0d407
Cookie secret is a cookieParser() thing.
2012-02-18 13:08:25 -08:00
Robert Sköld
9bd3ad846e
Silence while NODE_ENV=test
2012-02-18 13:08:25 -08:00
Robert Sköld
a8c73649ce
Updated auth example for express 3.x. With a test.
2012-02-18 13:08:25 -08:00
Tj Holowaychuk
579836e221
docs
2011-07-27 08:58:58 -07:00
Tj Holowaychuk
8ca0a45b33
hmac for auth example
2011-06-23 08:50:20 -07:00
Tj Holowaychuk
8323f19e96
fixing examples
2011-05-20 08:56:25 -07:00
Tj Holowaychuk
cd38fb4177
refactored auth example
2011-03-02 09:56:09 -08:00
Tj Holowaychuk
2a7a5aeefe
Renaming usage of old connect middleware
2011-03-01 10:59:09 -08:00