This repository was archived by the owner on Jul 28, 2021. It is now read-only.
Commit 500207c
feat(view): add 'view' command (#27)
* feat(view): add a first draft of `tink view`
* fix(view): move to jsx, register command
Move to use JSX and use register command.
* fix(view): use common opts
* style(view): use jsx, improve components
* fix(view): fix error handling
* fix(view): fix dist-tag handling
* fix(view): use libnpm instead of npa
* fix(view): improve error handling
* feat(view): allow unlimited items for specified fields
Allow unlimited items when field is specified.
* feat(view): add packument info
Add packument info to outputted JSON, as is custom in `npm view`. It's a
bit double if multiple versions are queried, but that's just how it is.
Also allows packument-specific props to be queried.
* feat(view): allow dots in props
Allow dots (.) in props with a special prop syntax:
Data:
{ foo: {
'bar.baz': 1,
bar: { baz: 2 }
} }
Query:
foo[bar.baz] // -> 1
Useful to query versions, deps:
time[0.10.1]
dependencies[lodash.uniq]
* fix(view): properly show error stack
* feat(view): show deps as columns
Show dependencies in columns, matching the old behaviour.
* chore(git): clean merge conflict1 parent 97e7880 commit 500207c
File tree
5 files changed
+540
-1
lines changed- bin
- lib
- commands
- components
5 files changed
+540
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments