Commit Graph

10 Commits

Author SHA1 Message Date
Zoltan Kochan
803542a6ac fix: shamefully-flatten should work with independent-leaves
close #1547
2018-12-21 00:30:46 +02:00
Tejasvi (Teju) Nareddy
d5f78267d5 fix(server): change error type for invalid request method
* fix(server): Change error type for invalid request method

Return 405 instead of 503
Encapsulate error in JSON object
Set `Allow` header for 405 response

* test(server): Add tests for 404 and 405

Added test for invalid route (404)
Added test for invalid HTTP method (405)

PR #1548
2018-12-12 12:27:38 +02:00
Zoltan Kochan
2947a05d1e fix: pnpm store usages
ref #1529
ref #1527
2018-12-08 17:23:28 +02:00
Tejasvi (Teju) Nareddy
b1737dcd9f feat: pnpm store usages <package>...
* docs(pnpm): docs for the package usages feature

- Add documentation for `pnpm store usages`
- Refactor docs for `pnpm store` to be more readable

* feat(package-store): implement findPackageUsages

Introduces functionality to search the package store for packages.
Reports all matching packages and the node projects they are used in.
Allows for searching a specific version, or all versions.

* feat(server): expose findPackageUsages API

Exposes an API for finding package usages in the store.

* feat(store-controller-types): Exposes findPackageUsages store functionality

Publicly exposes the findPackageUsages function in the store-controller.
Also exposes the expected response type, allowing clients to be type-safe.

* feat(supi): implement findStoreUsages functionality, add API

Publicly exposes the findPackageUsages function SUPI.

* feat(pnpm): pnpm store usages

Enabled CLI command to find usages of a package in the global store.
Pretty-prints a tree with queries and results.

* style: remove semicolons

Removed semicolons to follow style guide.

* refactor(supi): change test after merge of #1528

* refactor: rename findPackageUsages return type

Better naming of the types returned in the pnpm store usages feature.

* tests: add tests for `pnpm store usages`

Add tests to `supi` to ensure datamodel returned by `package-store` is correct.
Fix test messages in `server`

PR #1529
2018-12-08 01:23:46 +02:00
Zoltan Kochan
6ad444c217 style: remove unnecessary semicolons 2018-12-03 02:50:43 +02:00
Emanuele Tamponi
7d46a6f500 fix(headless): call getCacheByEngine through the store controller
PR #1490
2018-11-15 22:00:07 +02:00
Zoltan Kochan
92e7383d00 style: sort keys 2018-11-15 03:04:37 +02:00
Zoltan Kochan
246b0fd440 refactor: create @pnpm/store-controller-types and @pnpm/package-store 2018-11-11 02:01:54 +02:00
Zoltan Kochan
3911cf0823 style: use standard style with trailing comma 2018-10-07 16:39:49 +03:00
Zoltan Kochan
30af01225e refactor: move @pnpm/server to monorepo 2018-08-17 23:44:04 +03:00