fix: update package-store to version 0.4.0

This commit is contained in:
zkochan
2017-09-30 19:46:15 +03:00
parent 1ed532ab7a
commit 257a12cfbc
3 changed files with 101 additions and 37 deletions

View File

@@ -39,7 +39,7 @@
"@types/node": "^8.0.28",
"npm-package-arg": "^5.1.2",
"npm-registry-client": "^8.4.0",
"package-store": "^0.3.3",
"package-store": "^0.4.0",
"pnpm-shrinkwrap": "^3.1.0"
},
"devDependencies": {

View File

@@ -2,7 +2,7 @@ dependencies:
'@types/node': 8.0.28
npm-package-arg: 5.1.2
npm-registry-client: 8.4.0
package-store: 0.3.3
package-store: 0.4.0
pnpm-shrinkwrap: 3.1.0
devDependencies:
mos: 2.0.0-alpha.3
@@ -81,15 +81,13 @@ packages:
/any-promise/1.3.0:
resolution:
integrity: sha1-q8av7tzqUugJzcA3au0845Y10X8=
/aproba/1.1.2:
optional: true
/aproba/1.2.0:
resolution:
integrity: sha512-ZpYajIfO0j2cOFTO955KUMIKNmj6zhX8kVztMAxFsDaMwz+9Z9SV0uou2pC9HJqcfpffOsjnbrDMvkNy+9RXPw==
integrity: sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==
/are-we-there-yet/1.1.4:
dependencies:
delegates: 1.0.0
readable-stream: 2.3.3
optional: true
resolution:
integrity: sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=
/argparse/1.0.9:
@@ -314,6 +312,9 @@ packages:
optional: true
resolution:
integrity: sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=
/bindings/1.3.0:
resolution:
integrity: sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==
/bl/1.2.1:
dependencies:
readable-stream: 2.3.3
@@ -516,7 +517,6 @@ packages:
resolution:
integrity: sha1-c3o6cDbpiGECqmCZ5HuzOrGroaE=
/console-control-strings/1.1.0:
optional: true
resolution:
integrity: sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=
/convert-source-map/1.5.0:
@@ -579,6 +579,11 @@ packages:
dev: true
resolution:
integrity: sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=
/debug/3.1.0:
dependencies:
ms: 2.0.0
resolution:
integrity: sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==
/decamelize/1.2.0:
dev: true
resolution:
@@ -595,14 +600,12 @@ packages:
resolution:
integrity: sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=
/deep-extend/0.4.2:
dev: true
resolution:
integrity: sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=
/define-properties/1.1.2:
dependencies:
foreach: 2.0.5
object-keys: 1.0.11
dev: true
resolution:
integrity: sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=
/defined/1.0.0:
@@ -613,7 +616,6 @@ packages:
resolution:
integrity: sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
/delegates/1.0.0:
optional: true
resolution:
integrity: sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=
/detect-indent/4.0.0:
@@ -643,6 +645,15 @@ packages:
dev: true
resolution:
integrity: sha1-G3CK8JSknJoOfbyteQq6U52sEXc=
/drive-by-path/0.1.0:
dependencies:
is-subdir: 1.0.2
once: 1.4.0
ramda: 0.24.1
util.promisify: 1.0.0
zkochan-drivelist: 0.0.0
resolution:
integrity: sha512-8AqipZ/j8CZVQpIEueQKawBXGZSE9iGCSLJPyZbTuzdWx19wuUmMIfJzCi8TZ0dkeyuhvVSbsTKdhMsC2KZl5A==
/duplexer/0.1.1:
dev: true
resolution:
@@ -693,7 +704,6 @@ packages:
has: 1.0.1
is-callable: 1.1.3
is-regex: 1.0.4
dev: true
resolution:
integrity: sha512-dvhwFL3yjQxNNsOWx6exMlaDrRHCRGMQlnx5lsXDCZ/J7G/frgIIl94zhZSp/galVAYp7VzPi1OrAHta89/yGQ==
/es-to-primitive/1.1.1:
@@ -701,7 +711,6 @@ packages:
is-callable: 1.1.3
is-date-object: 1.0.1
is-symbol: 1.0.1
dev: true
resolution:
integrity: sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=
/escape-string-regexp/1.0.5:
@@ -734,6 +743,9 @@ packages:
strip-eof: 1.0.0
resolution:
integrity: sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=
/expand-template/1.1.0:
resolution:
integrity: sha512-kkjwkMqj0h4w/sb32ERCDxCQkREMCAgS39DscDnSwDsbxnwwM1BTZySdC3Bn1lhY7vL08n9GoO/fVTynjDgRyQ==
/extend/3.0.1:
resolution:
integrity: sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=
@@ -774,7 +786,6 @@ packages:
resolution:
integrity: sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=
/foreach/2.0.5:
dev: true
resolution:
integrity: sha1-C+4AUBiusmDQo6865ljdATbsG5k=
/forever-agent/0.6.1:
@@ -799,12 +810,11 @@ packages:
resolution:
integrity: sha1-FQStJSMVjKpA20onh8sBQRmU6k8=
/function-bind/1.1.1:
dev: true
resolution:
integrity: sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
/gauge/2.7.4:
dependencies:
aproba: 1.1.2
aproba: 1.2.0
console-control-strings: 1.1.0
has-unicode: 2.0.1
object-assign: 4.1.1
@@ -812,7 +822,6 @@ packages:
string-width: 1.0.2
strip-ansi: 3.0.1
wide-align: 1.1.2
optional: true
resolution:
integrity: sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=
/get-stdin/4.0.1:
@@ -827,6 +836,9 @@ packages:
assert-plus: 1.0.0
resolution:
integrity: sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=
/github-from-package/0.0.0:
resolution:
integrity: sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=
/github-slugger/1.1.3:
dependencies:
emoji-regex: 6.1.1
@@ -919,13 +931,11 @@ packages:
resolution:
integrity: sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=
/has-unicode/2.0.1:
optional: true
resolution:
integrity: sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=
/has/1.0.1:
dependencies:
function-bind: 1.1.1
dev: true
resolution:
integrity: sha1-hGFzP1OLCDfJNh45qauelwTcLyg=
/hawk/3.1.3:
@@ -994,7 +1004,6 @@ packages:
resolution:
integrity: sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
/ini/1.3.4:
dev: true
resolution:
integrity: sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=
/invariant/2.2.2:
@@ -1026,11 +1035,9 @@ packages:
resolution:
integrity: sha1-XuWOqlounIDiFAe+3yOuWsCRs/w=
/is-callable/1.1.3:
dev: true
resolution:
integrity: sha1-hut1OSgF3cM69xySoO7fdO52BLI=
/is-date-object/1.0.1:
dev: true
resolution:
integrity: sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=
/is-decimal/1.0.1:
@@ -1080,7 +1087,6 @@ packages:
/is-regex/1.0.4:
dependencies:
has: 1.0.1
dev: true
resolution:
integrity: sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=
/is-retry-allowed/1.1.0:
@@ -1095,8 +1101,12 @@ packages:
/is-stream/1.1.0:
resolution:
integrity: sha1-EtSj3U5o4Lec6428hBc66A2RykQ=
/is-subdir/1.0.2:
dependencies:
is-windows: 1.0.1
resolution:
integrity: sha512-2H3vM92ez7TjW6T2e4G7AQVm/1/UA/qikNO0/aIi2SkouUU2wXW2CQ5Owiz8oaaFQpjNl74B5LIjTcM1htr2mQ==
/is-symbol/1.0.1:
dev: true
resolution:
integrity: sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=
/is-typedarray/1.0.0:
@@ -1132,6 +1142,12 @@ packages:
dev: true
resolution:
integrity: sha1-mGbfOVECEw449/mWvOtlRDIJwls=
/js-yaml/3.10.0:
dependencies:
argparse: 1.0.9
esprima: 4.0.0
resolution:
integrity: sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==
/js-yaml/3.9.1:
dependencies:
argparse: 1.0.9
@@ -1218,7 +1234,6 @@ packages:
resolution:
integrity: sha1-o45GtzRp4EILDaEhLmbUFL42S6Q=
/lodash/4.17.4:
dev: true
resolution:
integrity: sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=
/longest-streak/1.0.0:
@@ -1317,7 +1332,6 @@ packages:
resolution:
integrity: sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=
/minimist/1.2.0:
dev: true
resolution:
integrity: sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=
/mkdirp-promise/5.0.1:
@@ -1536,7 +1550,6 @@ packages:
resolution:
integrity: sha1-t+m8RNw22I6vHVgmBn54ySEeqVE=
/ms/2.0.0:
dev: true
resolution:
integrity: sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
/mz/2.6.0:
@@ -1546,6 +1559,9 @@ packages:
thenify-all: 1.6.0
resolution:
integrity: sha1-yLhSHZWN8KTydoAl22nHGe5O8c4=
/nan/2.7.0:
resolution:
integrity: sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=
/ndjson/1.5.0:
dependencies:
json-stringify-safe: 5.0.1
@@ -1555,10 +1571,16 @@ packages:
dev: true
resolution:
integrity: sha1-rmA7NrE0vOw0e0UkIrC/mNWDLsg=
/node-abi/2.1.1:
resolution:
integrity: sha512-6oxV13poCOv7TfGvhsSz6XZWpXeKkdGVh72++cs33OfMh3KAX8lN84dCvmqSETyDXAFcUHtV7eJrgFBoOqZbNQ==
/node-status-codes/1.0.0:
dev: true
resolution:
integrity: sha1-WuVUHQJGRdMqWPzdyc7s6nrjrC8=
/noop-logger/0.1.1:
resolution:
integrity: sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI=
/normalize-newline/2.0.0:
dev: true
resolution:
@@ -1627,7 +1649,6 @@ packages:
console-control-strings: 1.1.0
gauge: 2.7.4
set-blocking: 2.0.0
optional: true
resolution:
integrity: sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==
/number-is-nan/1.0.1:
@@ -1644,9 +1665,14 @@ packages:
resolution:
integrity: sha1-NLymRKgPlPi6QaD50JhOr2Os8U0=
/object-keys/1.0.11:
dev: true
resolution:
integrity: sha1-xUYBd4rVYPEULODgG8yotW0TQm0=
/object.getownpropertydescriptors/2.0.3:
dependencies:
define-properties: 1.1.2
es-abstract: 1.8.2
resolution:
integrity: sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=
/once/1.4.0:
dependencies:
wrappy: 1.0.2
@@ -1690,7 +1716,7 @@ packages:
dev: true
resolution:
integrity: sha1-DRW9Z9HLvduyyiIv8u24a8sxqLs=
/package-store/0.3.3:
/package-store/0.4.0:
dependencies:
'@types/load-json-file': 2.0.6
'@types/node': 7.0.43
@@ -1698,6 +1724,7 @@ packages:
'@types/retry': 0.10.1
'@types/semver': 5.4.0
dint: 1.0.0
drive-by-path: 0.1.0
encode-registry: 1.0.0
execa: 0.7.0
fs-write-stream-atomic: 1.0.10
@@ -1708,6 +1735,7 @@ packages:
normalize-registry-url: 1.0.0
normalize-ssh: 1.0.0
npm: 5.4.1
os-homedir: 1.0.2
p-limit: 1.1.0
p-queue: 1.2.0
parse-npm-tarball-url: 1.0.1
@@ -1725,7 +1753,7 @@ packages:
unpack-stream: 2.1.0
write-json-file: 2.2.0
resolution:
integrity: sha512-VnopyzqBHvB67zZbwYp6DWT3jBOWIxHYkyiqDgYh7nOpIDE/N5l/GOxa8SzdmrfaDHE5HCDBa1xQxH2ATMzIiQ==
integrity: sha512-tjXHz2U884cJT8en1VS3lj/lk2czsvArv+ReWlqzUu7ALRIefkIB1/UJgHIOjxSAFLj11TuakhV40yFkChd9zg==
/pako/0.2.9:
resolution:
integrity: sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=
@@ -1842,6 +1870,24 @@ packages:
write-file-atomic: 2.3.0
resolution:
integrity: sha512-mFMdm0fCmh+kwxmGVD8Bl5QO4E7h/SCWdayKRtdzexHon0nN7YNkEz/llj1lHrb99pzQmE4NCI6BEvTYP/XeIg==
/prebuild-install/2.2.2:
dependencies:
expand-template: 1.1.0
github-from-package: 0.0.0
minimist: 1.2.0
mkdirp: 0.5.1
node-abi: 2.1.1
noop-logger: 0.1.1
npmlog: 4.1.2
os-homedir: 1.0.2
pump: 1.0.2
rc: 1.2.1
simple-get: 1.4.3
tar-fs: 1.15.3
tunnel-agent: 0.6.0
xtend: 4.0.1
resolution:
integrity: sha512-F46pcvDxtQhbV3B+dm+exHuKxIyJK26fVNiJRmbTW/5D7o0Z2yzc8CKeu7UWbo9XxQZoVOC88aKgySAsza+cWw==
/prepend-http/1.0.4:
dev: true
resolution:
@@ -1899,7 +1945,6 @@ packages:
ini: 1.3.4
minimist: 1.2.0
strip-json-comments: 2.0.1
dev: true
resolution:
integrity: sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=
/rcfile/1.0.3:
@@ -2141,7 +2186,6 @@ packages:
resolution:
integrity: sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==
/set-blocking/2.0.0:
optional: true
resolution:
integrity: sha1-BF+XgtARrppoA93TgrJDkrPYkPc=
/shebang-command/1.2.0:
@@ -2159,6 +2203,13 @@ packages:
/signal-exit/3.0.2:
resolution:
integrity: sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=
/simple-get/1.4.3:
dependencies:
once: 1.4.0
unzip-response: 1.0.2
xtend: 4.0.1
resolution:
integrity: sha1-6XVe2kB+ltpAxeUVjJ6jezO+y+s=
/slash/1.0.0:
resolution:
integrity: sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=
@@ -2304,7 +2355,6 @@ packages:
resolution:
integrity: sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=
/strip-json-comments/2.0.1:
dev: true
resolution:
integrity: sha1-PFMZQukIwml8DsNEhYwobHygpgo=
/supports-color/0.2.0:
@@ -2466,7 +2516,6 @@ packages:
resolution:
integrity: sha512-6V27bksNIRg7MD/4gvmlVTouA22akjUmSnJFbgHM0XSGcuFWLmt0WjrE0NmScQm1/bQJfOFIX+kt941RCx1rBw==
/unzip-response/1.0.2:
dev: true
resolution:
integrity: sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=
/update-notifier/0.7.0:
@@ -2491,6 +2540,12 @@ packages:
/util-deprecate/1.0.2:
resolution:
integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
/util.promisify/1.0.0:
dependencies:
define-properties: 1.1.2
object.getownpropertydescriptors: 2.0.3
resolution:
integrity: sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==
/uuid/2.0.3:
dev: true
resolution:
@@ -2524,7 +2579,6 @@ packages:
/wide-align/1.1.2:
dependencies:
string-width: 1.0.2
optional: true
resolution:
integrity: sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==
/widest-line/1.0.0:
@@ -2591,6 +2645,16 @@ packages:
/yallist/2.1.2:
resolution:
integrity: sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=
/zkochan-drivelist/0.0.0:
dependencies:
bindings: 1.3.0
debug: 3.1.0
js-yaml: 3.10.0
lodash: 4.17.4
nan: 2.7.0
prebuild-install: 2.2.2
resolution:
integrity: sha512-bx/VIFk9YjCUvONHmBzpoBYaX7ze6B/YNG5BTD8zpe5JVonubpMSB4+GQZ/DZL2ZsOEpT0ILzJk2z2nbtRHBZQ==
registry: 'https://registry.npmjs.org/'
shrinkwrapVersion: 3
specifiers:
@@ -2599,7 +2663,7 @@ specifiers:
mos-plugin-readme: ^1.0.4
npm-package-arg: ^5.1.2
npm-registry-client: ^8.4.0
package-store: ^0.3.3
package-store: ^0.4.0
pnpm-logger: ^0.6.1
pnpm-shrinkwrap: ^3.1.0
typescript: ^2.5.2

View File

@@ -102,7 +102,7 @@ async function _outdated (
if (!wantedShrinkwrap) {
throw new Error('No shrinkwrapfile in this directory. Run `pnpm install` to generate one.')
}
const storePath = resolveStore(opts.store, pkgPath)
const storePath = await resolveStore(opts.store, pkgPath)
const currentShrinkwrap = await readCurrentShrinkwrap(pkgPath, {ignoreIncompatible: false}) || {}
const client = new RegClient(adaptConfig(opts))