@verdaccio/local-storage 10.0.7 → 11.0.0-6-next.9

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,522 @@
1
+ # Change Log
2
+
3
+ ## 11.0.0-6-next.9
4
+
5
+ ### Minor Changes
6
+
7
+ - 154b2ecd: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [794af76c]
12
+ - Updated dependencies [154b2ecd]
13
+ - @verdaccio/core@6.0.0-6-next.2
14
+ - @verdaccio/file-locking@11.0.0-6-next.4
15
+ - @verdaccio/streams@11.0.0-6-next.5
16
+
17
+ ## 11.0.0-6-next.8
18
+
19
+ ### Major Changes
20
+
21
+ - 459b6fa7: refactor: search v1 endpoint and local-database
22
+
23
+ - refactor search `api v1` endpoint, improve performance
24
+ - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
25
+ - refactor method storage class
26
+ - create new module `core` to reduce the ammount of modules with utilities
27
+ - use `undici` instead `node-fetch`
28
+ - use `fastify` instead `express` for functional test
29
+
30
+ ### Breaking changes
31
+
32
+ - plugin storage API changes
33
+ - remove old search endpoint (return 404)
34
+ - filter local private packages at plugin level
35
+
36
+ The storage api changes for methods `get`, `add`, `remove` as promise base. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
37
+
38
+ ```ts
39
+ export interface IPluginStorage<T> extends IPlugin {
40
+ add(name: string): Promise<void>;
41
+ remove(name: string): Promise<void>;
42
+ get(): Promise<any>;
43
+ init(): Promise<void>;
44
+ getSecret(): Promise<string>;
45
+ setSecret(secret: string): Promise<any>;
46
+ getPackageStorage(packageInfo: string): IPackageStorage;
47
+ search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
48
+ saveToken(token: Token): Promise<any>;
49
+ deleteToken(user: string, tokenKey: string): Promise<any>;
50
+ readTokens(filter: TokenFilter): Promise<Token[]>;
51
+ }
52
+ ```
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [459b6fa7]
57
+ - @verdaccio/commons-api@11.0.0-6-next.4
58
+ - @verdaccio/core@6.0.0-6-next.1
59
+ - @verdaccio/streams@11.0.0-6-next.4
60
+ - @verdaccio/file-locking@11.0.0-alpha.3
61
+
62
+ ## 11.0.0-6-next.7
63
+
64
+ ### Patch Changes
65
+
66
+ - df0da3d6: Added core-js missing from dependencies though referenced in .js sources
67
+
68
+ ## 11.0.0-6-next.6
69
+
70
+ ### Minor Changes
71
+
72
+ - 1b217fd3: Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
73
+ NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
74
+ Time to stick with a built-in library solution!
75
+
76
+ - All 'mkdirp' calls are replaced with appropriate 'fs' calls.
77
+
78
+ ## 11.0.0-6-next.5
79
+
80
+ ### Major Changes
81
+
82
+ - cb2281a5: # async storage plugin bootstrap
83
+
84
+ Gives a storage plugin the ability to perform asynchronous tasks on initialization
85
+
86
+ ## Breaking change
87
+
88
+ Plugin must have an init method in which asynchronous tasks can be executed
89
+
90
+ ```js
91
+ public async init(): Promise<void> {
92
+ this.data = await this._fetchLocalPackages();
93
+ this._sync();
94
+ }
95
+ ```
96
+
97
+ ## 10.0.0-alpha.4
98
+
99
+ ### Patch Changes
100
+
101
+ - fecbb9be: chore: add release step to private regisry on merge changeset pr
102
+ - Updated dependencies [fecbb9be]
103
+ - @verdaccio/commons-api@10.0.0-alpha.3
104
+ - @verdaccio/file-locking@10.0.0-alpha.3
105
+ - @verdaccio/streams@10.0.0-alpha.3
106
+
107
+ ## 10.0.0-alpha.3
108
+
109
+ ### Minor Changes
110
+
111
+ - 54c58d1e: feat: add server rate limit protection to all request
112
+
113
+ To modify custom values, use the server settings property.
114
+
115
+ ```markdown
116
+ server:
117
+
118
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
119
+
120
+ rateLimit:
121
+ windowMs: 1000
122
+ max: 10000
123
+ ```
124
+
125
+ The values are intended to be high, if you want to improve security of your server consider
126
+ using different values.
127
+
128
+ ### Patch Changes
129
+
130
+ - Updated dependencies [54c58d1e]
131
+ - @verdaccio/commons-api@10.0.0-alpha.2
132
+ - @verdaccio/file-locking@10.0.0-alpha.2
133
+ - @verdaccio/streams@10.0.0-alpha.2
134
+
135
+ ## 10.0.0-alpha.2
136
+
137
+ ### Minor Changes
138
+
139
+ - 2a327c4b: feat: remove level dependency by lowdb for npm token cli as storage
140
+
141
+ ### new npm token database
142
+
143
+ There will be a new database located in your storage named `.token-db.json` which
144
+ will store all references to created tokens, **it does not store tokens**, just
145
+ mask of them and related metadata required to reference them.
146
+
147
+ #### Breaking change
148
+
149
+ If you were relying on `npm token` experiment. This PR will replace the
150
+ used database (level) by a json plain based one (lowbd) which does not
151
+ require Node.js C++ compilation step and has less dependencies. Since was
152
+ a experiment there is no migration step.
153
+
154
+ ## 10.0.0-alpha.1
155
+
156
+ ### Major Changes
157
+
158
+ - d87fa026: feat!: experiments config renamed to flags
159
+
160
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
161
+
162
+ ```js
163
+ flags: token: false;
164
+ search: false;
165
+ ```
166
+
167
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
168
+ - Refactor `config` module, better types and utilities
169
+
170
+ - da1ee9c8: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
171
+
172
+ - Introduce environment variables for legacy tokens
173
+
174
+ ### Code Improvements
175
+
176
+ - Add debug library for improve developer experience
177
+
178
+ ### Breaking change
179
+
180
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
181
+ - The secret key must have 32 characters long.
182
+
183
+ ### New environment variables
184
+
185
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
186
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
187
+
188
+ ### Minor Changes
189
+
190
+ - 26b494cb: feat: add typescript project references settings
191
+
192
+ Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
193
+
194
+ It allows to navigate (IDE) trough the packages without need compile the packages.
195
+
196
+ Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
197
+
198
+ ### Patch Changes
199
+
200
+ - b57b4338: Enable prerelease mode with **changesets**
201
+ - 31af0164: ESLint Warnings Fixed
202
+
203
+ Related to issue #1461
204
+
205
+ - max-len: most of the sensible max-len errors are fixed
206
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
207
+ - @typescript-eslint/no-unused-vars: same as above
208
+
209
+ - Updated dependencies [d87fa026]
210
+ - Updated dependencies [da1ee9c8]
211
+ - Updated dependencies [26b494cb]
212
+ - Updated dependencies [b57b4338]
213
+ - Updated dependencies [31af0164]
214
+ - @verdaccio/commons-api@10.0.0-alpha.1
215
+ - @verdaccio/file-locking@10.0.0-alpha.1
216
+ - @verdaccio/streams@10.0.0-alpha.1
217
+
218
+ All notable changes to this project will be documented in this file.
219
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
220
+
221
+ ## [9.7.2](https://github.com/verdaccio/monorepo/compare/v9.7.1...v9.7.2) (2020-07-20)
222
+
223
+ **Note:** Version bump only for package @verdaccio/local-storage
224
+
225
+ ## [9.7.1](https://github.com/verdaccio/monorepo/compare/v9.7.0...v9.7.1) (2020-07-10)
226
+
227
+ ### Bug Fixes
228
+
229
+ - update dependencies ([#375](https://github.com/verdaccio/monorepo/issues/375)) ([1e7aeec](https://github.com/verdaccio/monorepo/commit/1e7aeec31b056979285e272793a95b8c75d57c77))
230
+
231
+ # [9.7.0](https://github.com/verdaccio/monorepo/compare/v9.6.1...v9.7.0) (2020-06-24)
232
+
233
+ **Note:** Version bump only for package @verdaccio/local-storage
234
+
235
+ ## [9.6.1](https://github.com/verdaccio/monorepo/compare/v9.6.0...v9.6.1) (2020-06-07)
236
+
237
+ **Note:** Version bump only for package @verdaccio/local-storage
238
+
239
+ ## [9.5.1](https://github.com/verdaccio/monorepo/compare/v9.5.0...v9.5.1) (2020-06-03)
240
+
241
+ ### Bug Fixes
242
+
243
+ - restore Node v8 support ([#361](https://github.com/verdaccio/monorepo/issues/361)) ([9be55a1](https://github.com/verdaccio/monorepo/commit/9be55a1deebe954e8eef9edc59af9fd16e29daed))
244
+
245
+ # [9.5.0](https://github.com/verdaccio/monorepo/compare/v9.4.1...v9.5.0) (2020-05-02)
246
+
247
+ **Note:** Version bump only for package @verdaccio/local-storage
248
+
249
+ # [9.4.0](https://github.com/verdaccio/monorepo/compare/v9.3.4...v9.4.0) (2020-03-21)
250
+
251
+ **Note:** Version bump only for package @verdaccio/local-storage
252
+
253
+ ## [9.3.4](https://github.com/verdaccio/monorepo/compare/v9.3.3...v9.3.4) (2020-03-11)
254
+
255
+ ### Bug Fixes
256
+
257
+ - update mkdirp@1.0.3 ([#341](https://github.com/verdaccio/monorepo/issues/341)) ([96db337](https://github.com/verdaccio/monorepo/commit/96db3378a4f2334ec89cfb113af95e9a3a6eb050))
258
+
259
+ ## [9.3.2](https://github.com/verdaccio/monorepo/compare/v9.3.1...v9.3.2) (2020-03-08)
260
+
261
+ ### Bug Fixes
262
+
263
+ - update dependencies ([#332](https://github.com/verdaccio/monorepo/issues/332)) ([b6165ae](https://github.com/verdaccio/monorepo/commit/b6165aea9b7e4012477081eae68bfa7159c58f56))
264
+
265
+ ## [9.3.1](https://github.com/verdaccio/monorepo/compare/v9.3.0...v9.3.1) (2020-02-23)
266
+
267
+ **Note:** Version bump only for package @verdaccio/local-storage
268
+
269
+ # [9.3.0](https://github.com/verdaccio/monorepo/compare/v9.2.0...v9.3.0) (2020-01-29)
270
+
271
+ **Note:** Version bump only for package @verdaccio/local-storage
272
+
273
+ # [9.0.0](https://github.com/verdaccio/monorepo/compare/v8.5.3...v9.0.0) (2020-01-07)
274
+
275
+ ### Bug Fixes
276
+
277
+ - prevent circular structure exception ([#312](https://github.com/verdaccio/monorepo/issues/312)) ([f565461](https://github.com/verdaccio/monorepo/commit/f565461f5bb2873467eeb4372a12fbf4a4974d17))
278
+
279
+ ## [8.5.2](https://github.com/verdaccio/monorepo/compare/v8.5.1...v8.5.2) (2019-12-25)
280
+
281
+ **Note:** Version bump only for package @verdaccio/local-storage
282
+
283
+ ## [8.5.1](https://github.com/verdaccio/monorepo/compare/v8.5.0...v8.5.1) (2019-12-24)
284
+
285
+ **Note:** Version bump only for package @verdaccio/local-storage
286
+
287
+ # [8.5.0](https://github.com/verdaccio/monorepo/compare/v8.4.2...v8.5.0) (2019-12-22)
288
+
289
+ **Note:** Version bump only for package @verdaccio/local-storage
290
+
291
+ ## [8.4.2](https://github.com/verdaccio/monorepo/compare/v8.4.1...v8.4.2) (2019-11-23)
292
+
293
+ **Note:** Version bump only for package @verdaccio/local-storage
294
+
295
+ ## [8.4.1](https://github.com/verdaccio/monorepo/compare/v8.4.0...v8.4.1) (2019-11-22)
296
+
297
+ **Note:** Version bump only for package @verdaccio/local-storage
298
+
299
+ # [8.4.0](https://github.com/verdaccio/monorepo/compare/v8.3.0...v8.4.0) (2019-11-22)
300
+
301
+ **Note:** Version bump only for package @verdaccio/local-storage
302
+
303
+ # [8.3.0](https://github.com/verdaccio/monorepo/compare/v8.2.0...v8.3.0) (2019-10-27)
304
+
305
+ **Note:** Version bump only for package @verdaccio/local-storage
306
+
307
+ # [8.2.0](https://github.com/verdaccio/monorepo/compare/v8.2.0-next.0...v8.2.0) (2019-10-23)
308
+
309
+ **Note:** Version bump only for package @verdaccio/local-storage
310
+
311
+ # [8.2.0-next.0](https://github.com/verdaccio/monorepo/compare/v8.1.4...v8.2.0-next.0) (2019-10-08)
312
+
313
+ ### Bug Fixes
314
+
315
+ - fixed lint errors ([5e677f7](https://github.com/verdaccio/monorepo/commit/5e677f7))
316
+
317
+ ## [8.1.2](https://github.com/verdaccio/monorepo/compare/v8.1.1...v8.1.2) (2019-09-29)
318
+
319
+ **Note:** Version bump only for package @verdaccio/local-storage
320
+
321
+ ## [8.1.1](https://github.com/verdaccio/monorepo/compare/v8.1.0...v8.1.1) (2019-09-26)
322
+
323
+ **Note:** Version bump only for package @verdaccio/local-storage
324
+
325
+ # [8.1.0](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.1...v8.1.0) (2019-09-07)
326
+
327
+ **Note:** Version bump only for package @verdaccio/local-storage
328
+
329
+ ## [8.0.1-next.1](https://github.com/verdaccio/monorepo/compare/v8.0.1-next.0...v8.0.1-next.1) (2019-08-29)
330
+
331
+ **Note:** Version bump only for package @verdaccio/local-storage
332
+
333
+ ## [8.0.1-next.0](https://github.com/verdaccio/monorepo/compare/v8.0.0...v8.0.1-next.0) (2019-08-29)
334
+
335
+ **Note:** Version bump only for package @verdaccio/local-storage
336
+
337
+ # [8.0.0](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.4...v8.0.0) (2019-08-22)
338
+
339
+ **Note:** Version bump only for package @verdaccio/local-storage
340
+
341
+ # [8.0.0-next.4](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.3...v8.0.0-next.4) (2019-08-18)
342
+
343
+ **Note:** Version bump only for package @verdaccio/local-storage
344
+
345
+ # [8.0.0-next.3](https://github.com/verdaccio/monorepo/compare/v8.0.0-next.2...v8.0.0-next.3) (2019-08-16)
346
+
347
+ ### Bug Fixes
348
+
349
+ - restore closure ([32b9d7e](https://github.com/verdaccio/monorepo/commit/32b9d7e))
350
+ - **build:** error on types for fs callback ([cc35acb](https://github.com/verdaccio/monorepo/commit/cc35acb))
351
+ - Add DATE and VERSION in search result ([e352b75](https://github.com/verdaccio/monorepo/commit/e352b75))
352
+ - avoid open write stream if resource exist [#1191](https://github.com/verdaccio/monorepo/issues/1191) ([f041d3f](https://github.com/verdaccio/monorepo/commit/f041d3f))
353
+ - bug fixing integration ([6c75ac8](https://github.com/verdaccio/monorepo/commit/6c75ac8))
354
+ - build before publish ([cd6c7ff](https://github.com/verdaccio/monorepo/commit/cd6c7ff))
355
+ - check whether path exist before return result ([a4d2af1](https://github.com/verdaccio/monorepo/commit/a4d2af1))
356
+ - flow issues ([f42a284](https://github.com/verdaccio/monorepo/commit/f42a284))
357
+ - ignore flow on this one, we need it ([c8e0b2b](https://github.com/verdaccio/monorepo/commit/c8e0b2b))
358
+ - local storage requires package.json file for read, save and create all the time ([33c847b](https://github.com/verdaccio/monorepo/commit/33c847b))
359
+ - migration from main repository merge [#306](https://github.com/verdaccio/monorepo/issues/306) ([8fbe86e](https://github.com/verdaccio/monorepo/commit/8fbe86e))
360
+ - missing callback ([abfc422](https://github.com/verdaccio/monorepo/commit/abfc422))
361
+ - missing error code ([7121939](https://github.com/verdaccio/monorepo/commit/7121939))
362
+ - move to local storage the fs location handler ([3b12083](https://github.com/verdaccio/monorepo/commit/3b12083))
363
+ - mtimeMs is not backward compatible ([c6f74eb](https://github.com/verdaccio/monorepo/commit/c6f74eb))
364
+ - remove temp file whether is emtpy and fails ([655102f](https://github.com/verdaccio/monorepo/commit/655102f))
365
+ - remove uncessary async ([3e3e3a6](https://github.com/verdaccio/monorepo/commit/3e3e3a6))
366
+ - remove unused parameters ([554e301](https://github.com/verdaccio/monorepo/commit/554e301))
367
+ - restore build path ([4902042](https://github.com/verdaccio/monorepo/commit/4902042))
368
+ - return time as milliseconds ([15467ba](https://github.com/verdaccio/monorepo/commit/15467ba))
369
+ - sync after set secret ([2abae4f](https://github.com/verdaccio/monorepo/commit/2abae4f))
370
+ - temp files are written into the storage ([89a1dc8](https://github.com/verdaccio/monorepo/commit/89a1dc8))
371
+ - unit test ([995a27c](https://github.com/verdaccio/monorepo/commit/995a27c))
372
+ - update @verdaccio/file-locking@1.0.0 ([9bd36f0](https://github.com/verdaccio/monorepo/commit/9bd36f0))
373
+ - update lodash types ([184466c](https://github.com/verdaccio/monorepo/commit/184466c))
374
+
375
+ ### Features
376
+
377
+ - token support with level.js ([#168](https://github.com/verdaccio/monorepo/issues/168)) ([ca877ff](https://github.com/verdaccio/monorepo/commit/ca877ff))
378
+ - **build:** standardize build ([33fe090](https://github.com/verdaccio/monorepo/commit/33fe090))
379
+ - change new db name to verdaccio ([#83](https://github.com/verdaccio/monorepo/issues/83)) ([edfca9f](https://github.com/verdaccio/monorepo/commit/edfca9f))
380
+ - drop node v6 support ([664f288](https://github.com/verdaccio/monorepo/commit/664f288))
381
+ - implement search ([2e2bb32](https://github.com/verdaccio/monorepo/commit/2e2bb32))
382
+ - migrate to typescript ([c439d25](https://github.com/verdaccio/monorepo/commit/c439d25))
383
+ - update database method with callbacks ([ef202a9](https://github.com/verdaccio/monorepo/commit/ef202a9))
384
+ - update minor dependencies ([007b026](https://github.com/verdaccio/monorepo/commit/007b026))
385
+
386
+ # Changelog
387
+
388
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
389
+
390
+ ## [2.3.0](https://github.com/verdaccio/local-storage/compare/v2.2.1...v2.3.0) (2019-08-13)
391
+
392
+ ### Bug Fixes
393
+
394
+ - restore closure ([8ec27f2](https://github.com/verdaccio/local-storage/commit/8ec27f2))
395
+
396
+ ### Features
397
+
398
+ - add logging for each method ([3c915c7](https://github.com/verdaccio/local-storage/commit/3c915c7))
399
+ - token support with level.js ([#168](https://github.com/verdaccio/local-storage/issues/168)) ([16727bd](https://github.com/verdaccio/local-storage/commit/16727bd))
400
+
401
+ ### [2.2.1](https://github.com/verdaccio/local-storage/compare/v2.2.0...v2.2.1) (2019-06-30)
402
+
403
+ ### Bug Fixes
404
+
405
+ - **build:** error on types for fs callback ([774d808](https://github.com/verdaccio/local-storage/commit/774d808))
406
+
407
+ ## [2.2.0](https://github.com/verdaccio/local-storage/compare/v2.1.0...v2.2.0) (2019-06-30)
408
+
409
+ ### Features
410
+
411
+ - **build:** standardize build ([eba832e](https://github.com/verdaccio/local-storage/commit/eba832e))
412
+
413
+ # [2.1.0](https://github.com/verdaccio/local-storage/compare/v2.0.0...v2.1.0) (2019-03-29)
414
+
415
+ ### Bug Fixes
416
+
417
+ - remove uncessary async ([23a09f3](https://github.com/verdaccio/local-storage/commit/23a09f3))
418
+
419
+ ### Features
420
+
421
+ - drop node v6 support ([ef548e0](https://github.com/verdaccio/local-storage/commit/ef548e0))
422
+
423
+ # [2.0.0](https://github.com/verdaccio/local-storage/compare/v2.0.0-beta.3...v2.0.0) (2019-03-29)
424
+
425
+ <a name="2.0.0-beta.3"></a>
426
+
427
+ # [2.0.0-beta.3](https://github.com/verdaccio/local-storage/compare/v2.0.0-beta.2...v2.0.0-beta.3) (2019-02-24)
428
+
429
+ ### Bug Fixes
430
+
431
+ - update [@verdaccio](https://github.com/verdaccio)/file-locking@1.0.0 ([587245d](https://github.com/verdaccio/local-storage/commit/587245d))
432
+
433
+ <a name="2.0.0-beta.2"></a>
434
+
435
+ # [2.0.0-beta.2](https://github.com/verdaccio/local-storage/compare/v2.0.0-beta.1...v2.0.0-beta.2) (2019-02-24)
436
+
437
+ ### Bug Fixes
438
+
439
+ - avoid open write stream if resource exist [#1191](https://github.com/verdaccio/local-storage/issues/1191) ([b13904a](https://github.com/verdaccio/local-storage/commit/b13904a))
440
+ - package.json to reduce vulnerabilities ([97e9dc3](https://github.com/verdaccio/local-storage/commit/97e9dc3))
441
+
442
+ <a name="2.0.0-beta.1"></a>
443
+
444
+ # [2.0.0-beta.1](https://github.com/verdaccio/local-storage/compare/v2.0.0-beta.0...v2.0.0-beta.1) (2019-02-03)
445
+
446
+ <a name="2.0.0-beta.0"></a>
447
+
448
+ # [2.0.0-beta.0](https://github.com/verdaccio/local-storage/compare/v1.2.0...v2.0.0-beta.0) (2019-02-01)
449
+
450
+ ### Bug Fixes
451
+
452
+ - **deps:** update dependency lodash to v4.17.11 ([682616a](https://github.com/verdaccio/local-storage/commit/682616a))
453
+
454
+ ### Features
455
+
456
+ - custom storage location ([b1423cd](https://github.com/verdaccio/local-storage/commit/b1423cd))
457
+ - migrate to typescript ([fe8344b](https://github.com/verdaccio/local-storage/commit/fe8344b))
458
+
459
+ ### BREAKING CHANGES
460
+
461
+ - we change from boolean value to string within the config file
462
+
463
+ <a name="1.2.0"></a>
464
+
465
+ # [1.2.0](https://github.com/verdaccio/local-storage/compare/v1.1.3...v1.2.0) (2018-08-25)
466
+
467
+ ### Features
468
+
469
+ - change new db name to verdaccio ([#83](https://github.com/verdaccio/local-storage/issues/83)) ([143977d](https://github.com/verdaccio/local-storage/commit/143977d))
470
+
471
+ <a name="1.1.3"></a>
472
+
473
+ ## [1.1.3](https://github.com/verdaccio/local-storage/compare/v1.1.2...v1.1.3) (2018-07-15)
474
+
475
+ ### Bug Fixes
476
+
477
+ - remove unused parameters ([3ce374a](https://github.com/verdaccio/local-storage/commit/3ce374a))
478
+
479
+ <a name="1.1.2"></a>
480
+
481
+ ## [1.1.2](https://github.com/verdaccio/local-storage/compare/v1.1.1...v1.1.2) (2018-06-09)
482
+
483
+ ### Bug Fixes
484
+
485
+ - return time as milliseconds ([c98be85](https://github.com/verdaccio/local-storage/commit/c98be85))
486
+
487
+ <a name="1.1.1"></a>
488
+
489
+ ## [1.1.1](https://github.com/verdaccio/local-storage/compare/v1.1.0...v1.1.1) (2018-06-08)
490
+
491
+ ### Bug Fixes
492
+
493
+ - check whether path exist before return result ([cb5d4ef](https://github.com/verdaccio/local-storage/commit/cb5d4ef))
494
+
495
+ <a name="1.1.0"></a>
496
+
497
+ # [1.1.0](https://github.com/verdaccio/local-storage/compare/v1.0.3...v1.1.0) (2018-06-08)
498
+
499
+ ### Bug Fixes
500
+
501
+ - **deps:** update dependency async to v2.6.1 ([487b095](https://github.com/verdaccio/local-storage/commit/487b095))
502
+
503
+ ### Features
504
+
505
+ - implement search ([f884a24](https://github.com/verdaccio/local-storage/commit/f884a24))
506
+
507
+ <a name="0.2.0"></a>
508
+
509
+ # [0.2.0](https://github.com/verdaccio/local-storage/compare/v0.1.4...v0.2.0) (2018-01-17)
510
+
511
+ ### Features
512
+
513
+ - update minor dependencies ([92daa81](https://github.com/verdaccio/local-storage/commit/92daa81))
514
+
515
+ <a name="0.1.4"></a>
516
+
517
+ ## [0.1.4](https://github.com/verdaccio/local-storage/compare/v0.1.3...v0.1.4) (2018-01-17)
518
+
519
+ ### Bug Fixes
520
+
521
+ - remove temp file whether is emtpy and fails ([593e162](https://github.com/verdaccio/local-storage/commit/593e162))
522
+ - unit test ([2573f30](https://github.com/verdaccio/local-storage/commit/2573f30))
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @verdaccio/local-storage
2
2
 
3
- 📦 File system storage plugin for verdaccio
3
+ 📦 File system storage plugin for verdaccio
4
4
 
5
5
  [![verdaccio (latest)](https://img.shields.io/npm/v/@verdaccio/local-storage/latest.svg)](https://www.npmjs.com/package/@verdaccio/local-storage)
6
6
  [![CircleCI](https://circleci.com/gh/verdaccio/local-storage/tree/master.svg?style=svg)](https://circleci.com/gh/verdaccio/local-storage/tree/master)
@@ -29,8 +29,8 @@ The main object that handle a JSON database the private packages.
29
29
  new LocalDatabase(config, logger);
30
30
  ```
31
31
 
32
- * **config**: A verdaccio configuration instance.
33
- * **logger**: A logger instance
32
+ - **config**: A verdaccio configuration instance.
33
+ - **logger**: A logger instance
34
34
 
35
35
  ### LocalFS
36
36
 
@@ -40,10 +40,8 @@ A class that handle an package instance in the File System
40
40
  new LocalFS(packageStoragePath, logger);
41
41
  ```
42
42
 
43
-
44
-
45
43
  ## License
46
- Verdaccio is [MIT licensed](https://github.com/verdaccio/local-storage/blob/master/LICENSE).
47
44
 
45
+ Verdaccio is [MIT licensed](https://github.com/verdaccio/local-storage/blob/master/LICENSE).
48
46
 
49
47
  [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fverdaccio%2Flocal-storage.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fverdaccio%2Flocal-storage?ref=badge_large)
@@ -0,0 +1,34 @@
1
+ import { searchUtils } from '@verdaccio/core';
2
+ /**
3
+ * Retrieve a list of absolute paths to all folders in the given storage path
4
+ * @param storagePath the base path of the storage
5
+ * @return a promise that resolves to an array of absolute paths
6
+ */
7
+ export declare function getFolders(storagePath: string, pattern?: string): Promise<string[]>;
8
+ /**
9
+ * Search packages on the the storage. The storage could be
10
+ * - storage
11
+ * - pkg1
12
+ * - @company
13
+ * - pkg2 -> @scompany/pkg2
14
+ * - storage1
15
+ * - pkg2
16
+ * - pkg3
17
+ * - storage2
18
+ * - @scope
19
+ * - pkg4 > @scope/pkg4
20
+ * The search return a data structure like:
21
+ * [
22
+ * {
23
+ * name: 'pkg1', // package name could be @scope/pkg1
24
+ * path: absolute/path/package/name
25
+ * }
26
+ * ]
27
+ * @param {string} storagePath is the base path of the storage folder,
28
+ * inside could be packages, storages and @scope packages.
29
+ * @param {Set<string>} storages storages are defined peer package access pattern via `storage` property
30
+ * @param query is the search query from the user via npm search command.
31
+ * and are intended to organize packages in a tree structure.
32
+ * @returns {Promise<searchUtils.SearchItemPkg[]>}
33
+ */
34
+ export declare function searchOnStorage(storagePath: string, storages: Map<string, string>): Promise<searchUtils.SearchItemPkg[]>;