-
Notifications
You must be signed in to change notification settings - Fork 2
/
defaults.py
38 lines (31 loc) · 856 Bytes
/
defaults.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dependency_fields = [
'dependencies',
'devDependencies',
'peerDependencies',
'optionalDependencies',
]
supported_filenames = ['package.json']
default_registry = 'https://registry.npmjs.org';
default_distribution_mode = 'latest' # could be next
VERSION_MODES = (
('latest', 'Show released versions only'),
('next', 'Show upcoming (alpha, beta) versions')
)
default_tooltip = True
tooltip_styles = {
'version_color': '#FFFFFF',
'package_color': '#76C1BA',
'background': '#253238'
};
def get_registry():
return default_registry
def get_distribution_mode():
return default_distribution_mode
def get_dependency_fields():
return dependency_fields
def get_supported_filenames():
return supported_filenames
def get_tooltip():
return default_tooltip
def get_tooltip_styles():
return tooltip_styles