FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript-client/src/settings/node.js at dev_mode · splitio/javascript-client · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
splitio
/
javascript-client
Public
Notifications
You must be signed in to change notification settings
Fork
38
Star
49
Code
Issues
2
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript-client
/
src
/
settings
/
node.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 753 Bytes
Breadcrumbs
javascript-client
/
src
/
settings
/
node.js
Copy path
File metadata and controls
21 lines (17 loc) · 753 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import
{
settingsValidation
}
from
'@splitsoftware/splitio-commons/src/utils/settingsValidation'
;
import
{
validateLogger
}
from
'@splitsoftware/splitio-commons/src/utils/settingsValidation/logger/builtinLogger'
;
import
{
defaults
}
from
'./defaults/node'
;
import
{
validateStorage
}
from
'./storage/node'
;
import
{
validateRuntime
}
from
'./runtime/node'
;
const
params
=
{
defaults
,
runtime
:
validateRuntime
,
storage
:
validateStorage
,
logger
:
validateLogger
,
}
;
export
function
settingsFactory
(
config
)
{
const
settings
=
settingsValidation
(
config
,
params
)
;
// if provided, keeps reference to the `requestOptions` object
if
(
settings
.
sync
.
requestOptions
)
settings
.
sync
.
requestOptions
=
config
.
sync
.
requestOptions
;
return
settings
;
}
Back
|
FazBrowse Home
|
New Git URL