UNPKG
payload-rest-client
Version:
latest (3.0.5)
3.0.5
3.0.4
3.0.3
3.0.1
3.0.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
A typesafe rest api client for the payload cms.
dkirchhof/payload-rest-client
payload-rest-client
/
dist
/
replaceUrlParams.js
8 lines
•
306 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
replaceUrlParams
=
void
0
;
const
replaceUrlParams
= (
url, params
) => {
return
url.
replaceAll
(
/(:\w+)/
,
(
_, p
) =>
params[p]); };
exports
.
replaceUrlParams
= replaceUrlParams;
//# sourceMappingURL=replaceUrlParams.js.map