This repository was archived by the owner on Nov 22, 2020. It is now read-only.
File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ module.exports = {
46
46
'array-callback-return' : 'error' ,
47
47
complexity : 'warn' ,
48
48
'consistent-return' : 'error' ,
49
- curly : [ 'error' , 'multi-line' , 'consistent '] ,
49
+ curly : [ 'error' , 'multi' ] ,
50
50
'dot-location' : [ 'error' , 'property' ] ,
51
51
'dot-notation' : 'error' ,
52
52
eqeqeq : 'error' ,
@@ -121,7 +121,6 @@ module.exports = {
121
121
'no-trailing-spaces' : 'error' ,
122
122
'no-unneeded-ternary' : 'error' ,
123
123
'no-whitespace-before-property' : 'error' ,
124
- 'nonblock-statement-body-position' : 'error' ,
125
124
'object-curly-spacing' : [ 'error' , 'always' ] ,
126
125
'operator-assignment' : 'error' ,
127
126
'operator-linebreak' : [ 'error' , 'after' ] ,
Original file line number Diff line number Diff line change 16
16
<h3 >{{ contributors }}</h3 >
17
17
<span >Contributors</span >
18
18
</a >
19
+ <a v-if =" usedBy" href =" https://github.com/dbots-pkg/dbots.js/network/dependents?package_id=UGFja2FnZS0zNzA1MzQ1MA%3D%3D" class =" stat-card" >
20
+ <h3 >{{ usedBy }}</h3 >
21
+ <span >GitHub repos using dbots.js</span >
22
+ </a >
19
23
<a href =" https://github.com/dbots-pkg/dbots.js/commits/master" class =" stat-card" >
20
24
<h3 >{{ commits }}</h3 >
21
25
<span >Commits to master</span >
@@ -58,6 +62,7 @@ const data = {
58
62
forks: ' ' ,
59
63
commits: ' 100+' ,
60
64
versions: ' 10+' ,
65
+ usedBy: ' 10+' ,
61
66
size: ' ~24' ,
62
67
fetching: false ,
63
68
};
@@ -86,6 +91,7 @@ export default {
86
91
commiters,
87
92
versions,
88
93
size,
94
+ usedBy,
89
95
] = await Promise .all ([
90
96
fetch (
91
97
' https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/dbots'
@@ -104,6 +110,7 @@ export default {
104
110
fetch (
105
111
' https://bundlephobia.com/api/size?package=dbots&record=true'
106
112
).then (json, noop),
113
+ fetch (' https://api.snaz.in/v2/github/used-by/dbots-pkg/dbots.js' ).then (json, noop),
107
114
]);
108
115
109
116
if (downloads) {
@@ -137,6 +144,9 @@ export default {
137
144
138
145
if (size)
139
146
this .size = (size .size / 1000 ).toFixed (1 );
147
+
148
+ if (usedBy)
149
+ this .usedBy = usedBy .used_by .value .toLocaleString ();
140
150
},
141
151
},
142
152
};
You can’t perform that action at this time.
0 commit comments