UNPKG
grant
Version:
latest (5.4.24)
5.4.24
5.4.23
5.4.22
5.4.21
5.4.20
5.4.19
5.4.18
5.4.17
5.4.16
5.4.15
5.4.14
5.4.13
5.4.12
5.4.11
5.4.10
5.4.9
5.4.8
5.4.7
5.4.6
5.4.5
5.4.4
5.4.3
5.4.2
5.4.1
5.4.0
5.3.0
5.2.0
5.1.1
5.1.0
5.0.1
5.0.0
4.7.0
4.6.6
4.6.5
4.6.4
4.6.3
4.6.2
4.6.1
4.6.0
4.5.2
4.5.1
4.5.0
4.4.1
4.4.0
4.3.1
4.3.0
4.2.2
4.2.1
4.2.0
4.1.2
4.1.1
4.1.0
4.0.1
4.0.0
3.8.2
3.8.1
3.8.0
3.7.2
3.7.1
3.7.0
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.5
3.5.4
3.5.3
3.5.2
3.5.1
3.5.0
3.4.0
3.3.3
3.3.2
3.3.1
3.3.0
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
2.0.2
2.0.1
2.0.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
OAuth Proxy
github.com/simov/grant
simov/grant
grant
/
lib
/
util.js
9 lines
(5 loc)
•
185 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var
compose
= (
...fns
) =>
(
args
) =>
fns.
reduce
(
(
p, f
) =>
p.
then
(f),
Promise
.
resolve
(args))
var
dcopy
= (
obj
) =>
JSON
.
parse
(
JSON
.
stringify
(obj))
module
.
exports
= {compose, dcopy}