@verdaccio/search 7.0.0-next.2 → 8.0.0-next-8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,273 @@
1
+ {
2
+ "objects": [
3
+ {
4
+ "package": {
5
+ "name": "verdaccio",
6
+ "scope": "unscoped",
7
+ "version": "5.29.2",
8
+ "description": "A lightweight private npm proxy registry",
9
+ "keywords": [
10
+ "private",
11
+ "package",
12
+ "repository",
13
+ "registry",
14
+ "enterprise",
15
+ "modules",
16
+ "proxy",
17
+ "server",
18
+ "verdaccio"
19
+ ],
20
+ "date": "2024-02-21T19:56:45.379Z",
21
+ "links": {
22
+ "npm": "https://www.npmjs.com/package/verdaccio",
23
+ "homepage": "https://verdaccio.org",
24
+ "repository": "https://github.com/verdaccio/verdaccio",
25
+ "bugs": "https://github.com/verdaccio/verdaccio/issues"
26
+ },
27
+ "author": {
28
+ "name": "Verdaccio Maintainers",
29
+ "email": "test@test.com",
30
+ "username": "verdaccio.npm"
31
+ },
32
+ "publisher": { "username": "verdaccio.npm", "email": "test@test.com" },
33
+ "maintainers": [
34
+ { "username": "jotadeveloper", "email": "test@test.com" },
35
+ { "username": "ayusharma", "email": "test@test.com" },
36
+ { "username": "trentearl", "email": "test@test.com" },
37
+ { "username": "jmwilkinson", "email": "test@test.com" },
38
+ { "username": "sergiohgz", "email": "test@test.com" },
39
+ { "username": "verdaccio.npm", "email": "test@test.com" }
40
+ ]
41
+ },
42
+ "flags": { "insecure": 0 },
43
+ "score": {
44
+ "final": 0.28923397536716566,
45
+ "detail": {
46
+ "quality": 0.39403701233442867,
47
+ "popularity": 0.1553034428576298,
48
+ "maintenance": 0.3333333333333333
49
+ }
50
+ },
51
+ "searchScore": 100000.26
52
+ },
53
+ {
54
+ "package": {
55
+ "name": "@verdaccio/file-locking",
56
+ "scope": "verdaccio",
57
+ "version": "10.3.1",
58
+ "description": "library that handle file locking",
59
+ "keywords": ["verdaccio", "lock", "fs"],
60
+ "date": "2023-03-29T18:48:01.509Z",
61
+ "links": {
62
+ "npm": "https://www.npmjs.com/package/%40verdaccio%2Ffile-locking",
63
+ "homepage": "https://verdaccio.org",
64
+ "repository": "https://github.com/verdaccio/monorepo",
65
+ "bugs": "https://github.com/verdaccio/monorepo/issues"
66
+ },
67
+ "author": {
68
+ "name": "Juan Picado",
69
+ "email": "test@test.com",
70
+ "username": "jotadeveloper"
71
+ },
72
+ "publisher": { "username": "verdaccio.npm", "email": "test@test.com" },
73
+ "maintainers": [
74
+ { "username": "sergiohgz", "email": "test@test.com" },
75
+ { "username": "verdaccio.npm", "email": "test@test.com" },
76
+ { "username": "jotadeveloper", "email": "test@test.com" },
77
+ { "username": "ayusharma", "email": "test@test.com" }
78
+ ]
79
+ },
80
+ "flags": { "insecure": 0 },
81
+ "score": {
82
+ "final": 0.4347300973147867,
83
+ "detail": {
84
+ "quality": 0.8773185907360584,
85
+ "popularity": 0.15732960498192844,
86
+ "maintenance": 0.33276902385798346
87
+ }
88
+ },
89
+ "searchScore": 0.0010177421
90
+ },
91
+ {
92
+ "package": {
93
+ "name": "verdaccio-service-construct",
94
+ "scope": "unscoped",
95
+ "version": "0.0.602",
96
+ "keywords": ["cdk"],
97
+ "date": "2024-03-09T01:14:46.812Z",
98
+ "links": { "npm": "https://www.npmjs.com/package/verdaccio-service-construct" },
99
+ "author": {
100
+ "name": "Ayush Goyal",
101
+ "email": "ayush987goyal@gmail.com",
102
+ "username": "ayush987goyal"
103
+ },
104
+ "publisher": { "username": "ayush987goyal", "email": "ayush987goyal@gmail.com" },
105
+ "maintainers": [{ "username": "ayush987goyal", "email": "ayush987goyal@gmail.com" }]
106
+ },
107
+ "flags": { "insecure": 0, "unstable": true },
108
+ "score": {
109
+ "final": 0.22683523291517088,
110
+ "detail": {
111
+ "quality": 0.32276139168703444,
112
+ "popularity": 0.038114710692553955,
113
+ "maintenance": 0.3333333333333333
114
+ }
115
+ },
116
+ "searchScore": 3.968321e-8
117
+ },
118
+ {
119
+ "package": {
120
+ "name": "verdaccio-theme-hilio",
121
+ "scope": "unscoped",
122
+ "version": "1.14.5",
123
+ "description": "Verdaccio User Interface",
124
+ "keywords": ["verdaccio", "verdaccio-plugin", "verdaccio-theme"],
125
+ "date": "2021-01-12T05:48:12.643Z",
126
+ "links": {
127
+ "npm": "https://www.npmjs.com/package/verdaccio-theme-hilio",
128
+ "homepage": "https://verdaccio.org",
129
+ "repository": "https://github.com/verdaccio/ui",
130
+ "bugs": "https://github.com/verdaccio/ui/issues"
131
+ },
132
+ "author": { "name": "Verdaccio Core Team", "email": "test@test.com" },
133
+ "publisher": { "username": "joebnb", "email": "joebnb@qq.com" },
134
+ "maintainers": [{ "username": "joebnb", "email": "joebnb@qq.com" }]
135
+ },
136
+ "flags": { "insecure": 0 },
137
+ "score": {
138
+ "final": 0.20823236027862208,
139
+ "detail": {
140
+ "quality": 0.6388395536236707,
141
+ "popularity": 0.022545843955562445,
142
+ "maintenance": 0.02482699659164002
143
+ }
144
+ },
145
+ "searchScore": 3.8766167e-8
146
+ },
147
+ {
148
+ "package": {
149
+ "name": "@hamstudy/verdaccio-aws-s3-storage-sse",
150
+ "scope": "hamstudy",
151
+ "version": "10.3.2",
152
+ "description": "AWS S3 storage implementation for Verdaccio - fork that adds support for SSE-C, SSE-S3, and AWS:KMS",
153
+ "keywords": ["verdaccio", "plugin", "storage", "aws"],
154
+ "date": "2022-10-04T21:39:04.907Z",
155
+ "links": {
156
+ "npm": "https://www.npmjs.com/package/%40hamstudy%2Fverdaccio-aws-s3-storage-sse",
157
+ "homepage": "https://verdaccio.org",
158
+ "repository": "https://github.com/taxilian/verdaccio-monorepo",
159
+ "bugs": "https://github.com/verdaccio/monorepo/issues"
160
+ },
161
+ "author": {
162
+ "name": "Richard Bateman",
163
+ "email": "taxilian@gmail.com",
164
+ "username": "taxilian"
165
+ },
166
+ "publisher": { "username": "taxilian", "email": "taxilian@gmail.com" },
167
+ "maintainers": [
168
+ { "username": "rumbcam", "email": "kd7rmx@batemansr.us" },
169
+ { "username": "taxilian", "email": "taxilian@gmail.com" },
170
+ { "username": "bloveridge", "email": "bloveridge@gmail.com" }
171
+ ]
172
+ },
173
+ "flags": { "insecure": 0 },
174
+ "score": {
175
+ "final": 0.220856041974831,
176
+ "detail": {
177
+ "quality": 0.6217078604565084,
178
+ "popularity": 0.0008629747032998004,
179
+ "maintenance": 0.09726183626206726
180
+ }
181
+ },
182
+ "searchScore": 3.8267025e-8
183
+ },
184
+ {
185
+ "package": {
186
+ "name": "testing-verdaccio",
187
+ "scope": "unscoped",
188
+ "version": "1.1.2",
189
+ "description": "this is just for Assignment puropse",
190
+ "date": "2023-03-20T07:58:49.325Z",
191
+ "links": { "npm": "https://www.npmjs.com/package/testing-verdaccio" },
192
+ "publisher": { "username": "samyak3009", "email": "samyak3009@gmail.com" },
193
+ "maintainers": [{ "username": "samyak3009", "email": "samyak3009@gmail.com" }]
194
+ },
195
+ "flags": { "insecure": 0 },
196
+ "score": {
197
+ "final": 0.23106132265338952,
198
+ "detail": {
199
+ "quality": 0.39172042177373956,
200
+ "popularity": 0.0012551184665870981,
201
+ "maintenance": 0.3231597275941777
202
+ }
203
+ },
204
+ "searchScore": 3.383671e-8
205
+ },
206
+ {
207
+ "package": {
208
+ "name": "verdaccio-staryauthgroup",
209
+ "scope": "unscoped",
210
+ "version": "0.0.1",
211
+ "description": "A verdaccio plugin to control auth group",
212
+ "keywords": ["verdaccio,auth,plugin,verdaccio-]"],
213
+ "date": "2023-07-12T01:59:29.928Z",
214
+ "links": { "npm": "https://www.npmjs.com/package/verdaccio-staryauthgroup" },
215
+ "author": { "name": "weihuago4", "email": "weihuago4@gmail.com" },
216
+ "publisher": { "username": "liuweihua", "email": "weihualau@126.com" },
217
+ "maintainers": [{ "username": "liuweihua", "email": "weihualau@126.com" }]
218
+ },
219
+ "flags": { "insecure": 0, "unstable": true },
220
+ "score": {
221
+ "final": 0.2222439493540912,
222
+ "detail": {
223
+ "quality": 0.4337548917356935,
224
+ "popularity": 0.0006994438979026641,
225
+ "maintenance": 0.262493361340335
226
+ }
227
+ },
228
+ "searchScore": 3.2598397e-8
229
+ },
230
+ {
231
+ "package": {
232
+ "name": "verdaccio-auth-gitlab",
233
+ "scope": "unscoped",
234
+ "version": "2.0.0-beta.11",
235
+ "description": "Verdaccio authentication plugin by gitlab personal access token or oauth token or ci job token.",
236
+ "keywords": [
237
+ "verdaccio",
238
+ "authentication",
239
+ "auth",
240
+ "plugin",
241
+ "gitlab",
242
+ "personal",
243
+ "access",
244
+ "oauth",
245
+ "ci",
246
+ "job",
247
+ "token"
248
+ ],
249
+ "date": "2022-12-07T11:00:06.767Z",
250
+ "links": {
251
+ "npm": "https://www.npmjs.com/package/verdaccio-auth-gitlab",
252
+ "homepage": "https://github.com/pfdgithub/verdaccio-auth-gitlab",
253
+ "repository": "https://github.com/pfdgithub/verdaccio-auth-gitlab",
254
+ "bugs": "https://github.com/pfdgithub/verdaccio-auth-gitlab/issues"
255
+ },
256
+ "publisher": { "username": "pfdnpm", "email": "pfdfree@gmail.com" },
257
+ "maintainers": [{ "username": "pfdnpm", "email": "pfdfree@gmail.com" }]
258
+ },
259
+ "flags": { "insecure": 0 },
260
+ "score": {
261
+ "final": 0.2194863817767726,
262
+ "detail": {
263
+ "quality": 0.4542787957560298,
264
+ "popularity": 0.0025512045517420002,
265
+ "maintenance": 0.2351709184481542
266
+ }
267
+ },
268
+ "searchScore": 2.5283079e-8
269
+ }
270
+ ],
271
+ "total": 351,
272
+ "time": "Sat Mar 09 2024 15:20:36 GMT+0000 (Coordinated Universal Time)"
273
+ }
@@ -0,0 +1,103 @@
1
+ import nock from 'nock';
2
+ import { describe, expect, test } from 'vitest';
3
+
4
+ import { Config, getDefaultConfig } from '@verdaccio/config';
5
+ import { logger, setup } from '@verdaccio/logger';
6
+
7
+ import { Search } from '../src/search';
8
+
9
+ setup({});
10
+
11
+ const domain = 'https://registry.npmjs.org';
12
+
13
+ describe('search', () => {
14
+ const response = require('./partials/search.json');
15
+ test('search', async () => {
16
+ nock(domain).get('/-/v1/search').reply(200, response);
17
+ const abort = new AbortController();
18
+ const config = new Config(getDefaultConfig());
19
+ const searchInstance = new Search(config, logger);
20
+ const results = await searchInstance.search({
21
+ query: { text: 'verdaccio', maintenance: 0, popularity: 0, quality: 0, size: 0 },
22
+ abort,
23
+ url: '/-/v1/search',
24
+ });
25
+ expect(results).toHaveLength(8);
26
+
27
+ expect(results[0]).toEqual({
28
+ package: {
29
+ name: 'verdaccio',
30
+ scope: 'unscoped',
31
+ version: '5.29.2',
32
+ description: 'A lightweight private npm proxy registry',
33
+ keywords: [
34
+ 'private',
35
+ 'package',
36
+ 'repository',
37
+ 'registry',
38
+ 'enterprise',
39
+ 'modules',
40
+ 'proxy',
41
+ 'server',
42
+ 'verdaccio',
43
+ ],
44
+ date: '2024-02-21T19:56:45.379Z',
45
+ links: {
46
+ npm: 'https://www.npmjs.com/package/verdaccio',
47
+ homepage: 'https://verdaccio.org',
48
+ repository: 'https://github.com/verdaccio/verdaccio',
49
+ bugs: 'https://github.com/verdaccio/verdaccio/issues',
50
+ },
51
+ author: {
52
+ name: 'Verdaccio Maintainers',
53
+ email: 'test@test.com',
54
+ username: 'verdaccio.npm',
55
+ },
56
+ publisher: {
57
+ username: 'verdaccio.npm',
58
+ email: 'test@test.com',
59
+ },
60
+ maintainers: [
61
+ {
62
+ username: 'jotadeveloper',
63
+ email: 'test@test.com',
64
+ },
65
+ {
66
+ username: 'ayusharma',
67
+ email: 'test@test.com',
68
+ },
69
+ {
70
+ username: 'trentearl',
71
+ email: 'test@test.com',
72
+ },
73
+ {
74
+ username: 'jmwilkinson',
75
+ email: 'test@test.com',
76
+ },
77
+ {
78
+ username: 'sergiohgz',
79
+ email: 'test@test.com',
80
+ },
81
+ {
82
+ username: 'verdaccio.npm',
83
+ email: 'test@test.com',
84
+ },
85
+ ],
86
+ },
87
+ flags: {
88
+ insecure: 0,
89
+ },
90
+ score: {
91
+ final: 0.28923397536716566,
92
+ detail: {
93
+ quality: 0.39403701233442867,
94
+ popularity: 0.1553034428576298,
95
+ maintenance: 0.3333333333333333,
96
+ },
97
+ },
98
+ searchScore: 100000.26,
99
+ verdaccioPkgCached: false,
100
+ verdaccioPrivate: false,
101
+ });
102
+ });
103
+ });
package/tsconfig.json CHANGED
@@ -10,12 +10,6 @@
10
10
  {
11
11
  "path": "../config"
12
12
  },
13
- {
14
- "path": "../core/core"
15
- },
16
- {
17
- "path": "../logger/logger"
18
- },
19
13
  {
20
14
  "path": "../utils"
21
15
  }
package/README.md DELETED
@@ -1,29 +0,0 @@
1
- # @verdaccio/search
2
-
3
- Search utilities
4
-
5
- ```bash
6
- npm install @verdaccio/search
7
- ```
8
-
9
- [![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio)
10
- [![stackshare](https://img.shields.io/badge/Follow%20on-StackShare-blue.svg?logo=stackshare&style=flat)](https://stackshare.io/verdaccio)
11
- [![MIT](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
12
- [![Crowdin](https://d322cqt584bo4o.cloudfront.net/verdaccio/localized.svg)](https://crowdin.com/project/verdaccio)
13
- [![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/verdaccio/verdaccio)](https://www.tickgit.com/browse?repo=github.com/verdaccio/verdaccio)
14
-
15
- [![Twitter followers](https://img.shields.io/twitter/follow/verdaccio_npm.svg?style=social&label=Follow)](https://twitter.com/verdaccio_npm)
16
- [![Github](https://img.shields.io/github/stars/verdaccio/verdaccio.svg?style=social&label=Stars)](https://github.com/verdaccio/verdaccio/stargazers)
17
-
18
- ## Donations
19
-
20
- Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉
21
-
22
- **[Donate](https://opencollective.com/verdaccio)** 💵👍🏻 starting from _\$1/month_ or just one single contribution.
23
-
24
- ### License
25
-
26
- Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
27
-
28
- The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch) files within the /assets folder) is
29
- [Creative Commons licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE-docs).