Commit Graph

11 Commits

Author SHA1 Message Date
Zoltan Kochan
cbd1453dd7 fix: importerPrefix=>shrinkwrapDirectory in getPackageLocation()
BREAKING CHANGE:

store controller API changed

ref #1173
2019-02-04 03:04:52 +02:00
Zoltan Kochan
a57012069b fix: path to local tarball should be relative to shrinkwrap dir
This is an issue that may only happen in monorepos that use a
shared shrinkwrap.yaml
2019-01-11 20:35:14 +02:00
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
92e7383d00 style: sort keys 2018-11-15 03:04:37 +02:00
Zoltan Kochan
dd03d96c1a style: fix styles in tests 2018-11-15 01:14:33 +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
34949309b3 chore(deps): update dependency @pnpm/npm-resolver to v2
close #1327
2018-08-20 22:08:02 +03:00
Zoltan Kochan
30af01225e refactor: move @pnpm/server to monorepo 2018-08-17 23:44:04 +03:00