Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/p-finally.json

raw
1 {
2 "_id": "p-finally",
3 "_rev": "5-a42b5a3715c34bfc9782df668c6747d1",
4 "name": "p-finally",
5 "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
6 "dist-tags": {
7 "latest": "2.0.1"
8 },
9 "versions": {
10 "1.0.0": {
11 "name": "p-finally",
12 "version": "1.0.0",
13 "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/p-finally.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js"
32 ],
33 "keywords": [
34 "promise",
35 "finally",
36 "handler",
37 "function",
38 "async",
39 "await",
40 "promises",
41 "settled",
42 "ponyfill",
43 "polyfill",
44 "shim",
45 "bluebird"
46 ],
47 "devDependencies": {
48 "ava": "*",
49 "xo": "*"
50 },
51 "xo": {
52 "esnext": true
53 },
54 "gitHead": "9cfdd5dccb41995300916c17ab0fab784800f4d3",
55 "bugs": {
56 "url": "https://github.com/sindresorhus/p-finally/issues"
57 },
58 "homepage": "https://github.com/sindresorhus/p-finally#readme",
59 "_id": "[email protected]",
60 "_shasum": "3fbcfb15b899a44123b34b6dcc18b724336a2cae",
61 "_from": ".",
62 "_npmVersion": "2.15.9",
63 "_nodeVersion": "4.6.0",
64 "_npmUser": {
65 "name": "sindresorhus",
66 "email": "[email protected]"
67 },
68 "dist": {
69 "shasum": "3fbcfb15b899a44123b34b6dcc18b724336a2cae",
70 "tarball": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz"
71 },
72 "maintainers": [
73 {
74 "name": "sindresorhus",
75 "email": "[email protected]"
76 }
77 ],
78 "_npmOperationalInternal": {
79 "host": "packages-12-west.internal.npmjs.com",
80 "tmp": "tmp/p-finally-1.0.0.tgz_1477029729610_0.2481102051679045"
81 },
82 "directories": {}
83 },
84 "2.0.0": {
85 "name": "p-finally",
86 "version": "2.0.0",
87 "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
88 "license": "MIT",
89 "repository": {
90 "type": "git",
91 "url": "git+https://github.com/sindresorhus/p-finally.git"
92 },
93 "author": {
94 "name": "Sindre Sorhus",
95 "email": "[email protected]",
96 "url": "sindresorhus.com"
97 },
98 "engines": {
99 "node": ">=8"
100 },
101 "scripts": {
102 "test": "xo && ava"
103 },
104 "keywords": [
105 "promise",
106 "finally",
107 "handler",
108 "function",
109 "async",
110 "await",
111 "promises",
112 "settled",
113 "ponyfill",
114 "polyfill",
115 "shim",
116 "bluebird"
117 ],
118 "devDependencies": {
119 "ava": "^1.4.1",
120 "xo": "^0.24.0"
121 },
122 "gitHead": "7ae963410de1754b565d2fd2b4ef581fef099bd3",
123 "bugs": {
124 "url": "https://github.com/sindresorhus/p-finally/issues"
125 },
126 "homepage": "https://github.com/sindresorhus/p-finally#readme",
127 "_id": "[email protected]",
128 "_nodeVersion": "8.16.0",
129 "_npmVersion": "6.9.0",
130 "_npmUser": {
131 "name": "sindresorhus",
132 "email": "[email protected]"
133 },
134 "dist": {
135 "integrity": "sha512-Hh1x1SR9/Y5ndrziFD+dfB0N+chocV4uCmyzqshjN7fXj4kReUt5Fx+I50Eg9uUWml7g5gCYUzEHiselmnP3dg==",
136 "shasum": "b5bfd254f48358184552430fe55e968a83ccf593",
137 "tarball": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.0.tgz",
138 "fileCount": 4,
139 "unpackedSize": 2918,
140 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7TxiCRA9TVsSAnZWagAAgMMP/R1+5JDq/rkvgdz67B4H\n0TTqgsu62jBFY15DCBlbUhOQY6D5IPgnmqXFtV2K8r39HmujB/Zui7CPvJnG\nj2Cw/nJSMGo1jSK6CST1uvEUe/5wqM2JV0RTs/115+pOrmQ59GtCpkECaDaJ\nBn68aOHeO66PjVVPznco+PTD2M53gOR0ufykta5Ws1i10GEO6o410x6DVGfG\nh9V51sE4As9ZOBjx1F81aelSgxbLQJoprgJtrTFq8IpMBdKfaHWHxEF4JS0T\nWoV1XJSliaoqaEYuR/8qulUgCrtaxZzW/uA37eNK7jyQkt/NA6SLay4l/Rsx\nwWfYsAI6AeupRdnfFQiWoV8b0/SvxBCpg9ILB6hNBgi/DZFSv+4jykxRnhh1\n29f+DcuUaYIMg+9bkHvK9WpaVPxPJqPeyQUCzWZkJZTjFq6T9UGLYKWTn0Y/\nALDAwjilbLSxAYVaAc7QoxbSbBPAin3Dil49Hu5R6Pvlt5jS6wYSDg+P7p03\nhjJIowjExuuCABqTAVeZKJyniMXnE3npJBukzmH20Qb3tOHTRv7LI6UIRw+X\nfw3+ZP1FfnD1eezeWqlz1WixNfl7mAyF2qlPDhdbz1DnOm+gZRToxt8KERIo\nJ5F5fLu9EXMQ82jOvTwzoRgKPj7CUf8hwjyoxZQWe/EzRWJ9nPNBat/SNdky\nhrNL\r\n=Eahz\r\n-----END PGP SIGNATURE-----\r\n"
141 },
142 "maintainers": [
143 {
144 "name": "sindresorhus",
145 "email": "[email protected]"
146 }
147 ],
148 "directories": {},
149 "_npmOperationalInternal": {
150 "host": "s3://npm-registry-packages",
151 "tmp": "tmp/p-finally_2.0.0_1559051362108_0.403046563273898"
152 },
153 "_hasShrinkwrap": false
154 },
155 "2.0.1": {
156 "name": "p-finally",
157 "version": "2.0.1",
158 "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
159 "license": "MIT",
160 "repository": {
161 "type": "git",
162 "url": "git+https://github.com/sindresorhus/p-finally.git"
163 },
164 "author": {
165 "name": "Sindre Sorhus",
166 "email": "[email protected]",
167 "url": "sindresorhus.com"
168 },
169 "engines": {
170 "node": ">=8"
171 },
172 "scripts": {
173 "test": "xo && ava"
174 },
175 "keywords": [
176 "promise",
177 "finally",
178 "handler",
179 "function",
180 "async",
181 "await",
182 "promises",
183 "settled",
184 "ponyfill",
185 "polyfill",
186 "shim",
187 "bluebird"
188 ],
189 "devDependencies": {
190 "ava": "^1.4.1",
191 "xo": "^0.24.0"
192 },
193 "gitHead": "b73e204c7670a8f01428a8c220bcd337d395bdf6",
194 "bugs": {
195 "url": "https://github.com/sindresorhus/p-finally/issues"
196 },
197 "homepage": "https://github.com/sindresorhus/p-finally#readme",
198 "_id": "[email protected]",
199 "_nodeVersion": "8.16.0",
200 "_npmVersion": "6.9.0",
201 "_npmUser": {
202 "name": "sindresorhus",
203 "email": "[email protected]"
204 },
205 "dist": {
206 "integrity": "sha512-vpm09aKwq6H9phqRQzecoDpD8TmVyGw70qmWlyq5onxY7tqyTTFVvxMykxQSQKILBSFlbXpypIw2T1Ml7+DDtw==",
207 "shasum": "bd6fcaa9c559a096b680806f4d657b3f0f240561",
208 "tarball": "https://registry.npmjs.org/p-finally/-/p-finally-2.0.1.tgz",
209 "fileCount": 4,
210 "unpackedSize": 3365,
211 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCktbCRA9TVsSAnZWagAAtGsP/RYSaSrL0IN++15KWg94\n/YbsIRGhldWhp0xGAorpxNIe/tiNP+SiXZtfBmRQ9Z/hGlsJEOdtgAL/4Qkq\ncjl9amsLWBLT5K92bibMml1X0hod3SQg/uijdAZT4qIIegIOJG/qeQ65ihqS\nfgc8t76Gt+65sL4jVxyK7LIY+4i9/rJ8MPiuk1exx7BsjKYrEyDeFFBh+8az\n0eoywev2QHADntMq9qc7jFq2eMqTOlc3x+FNJGantlsNms/fBBeLGw6hQ/l/\njexcnvmqxsIwO1744zadSK2Zlkt1TPgKJXVDyL4OtsdztllRXG0H03dEcatF\n+rA+NygqFFZxhxRAOFNlnEDiAqYitfX7BVa3qpj1xMf5vBriTSpbdXBK46hb\nM0c8ahr0+hl42ir8scke+5D0P5bTTNVVMdSsl+xDOVq/j+JJpHetBeralLI/\nkGfzyg/qCEc8/XzHpW14TnYhiUdPtpCGbfYMFyj3N+UR7160zvZio/3CvvRQ\nIEIEa9dzULjDYgIDYlqgk7Rb2dn6p829F28Wz+hm70Sj0A3UwCTqDWSnLISi\nOdLexyKy5IwTS2T2prYqstTYBYYs5spD3m2EBVytisvxsj6PycCzgzoEgoZO\n/zkStqy1Ot4jEkA5vYDHavB9mQ1+LO786GabdBWCTEcOtTnARkY76Jy+VLbi\n3ebo\r\n=gIn0\r\n-----END PGP SIGNATURE-----\r\n"
212 },
213 "maintainers": [
214 {
215 "name": "sindresorhus",
216 "email": "[email protected]"
217 }
218 ],
219 "directories": {},
220 "_npmOperationalInternal": {
221 "host": "s3://npm-registry-packages",
222 "tmp": "tmp/p-finally_2.0.1_1560955738325_0.1225840138005696"
223 },
224 "_hasShrinkwrap": false
225 }
226 },
227 "readme": "# p-finally [![Build Status](https://travis-ci.org/sindresorhus/p-finally.svg?branch=master)](https://travis-ci.org/sindresorhus/p-finally)\n\n> [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome\n\nUseful for cleanup.\n\n\n## Install\n\n```\n$ npm install p-finally\n```\n\n\n## Usage\n\n```js\nconst pFinally = require('p-finally');\n\nconst directory = createTempDirectory();\n\n(async () => {\n\tawait pFinally(write(directory), () => {\n\t\tcleanup(directory);\n\t});\n});\n```\n\n\n## API\n\n### pFinally(promise, onFinally?)\n\nReturns a `Promise`.\n\n#### onFinally\n\nType: `Function`\n\nNote: Throwing or returning a rejected promise will reject `promise` with the rejection reason.\n\n\n## Related\n\n- [p-try](https://github.com/sindresorhus/p-try) - `Promise.try()` ponyfill - Starts a promise chain\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-p-finally?utm_source=npm-p-finally&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n",
228 "maintainers": [
229 {
230 "name": "sindresorhus",
231 "email": "[email protected]"
232 }
233 ],
234 "time": {
235 "modified": "2019-06-19T14:49:01.588Z",
236 "created": "2016-10-21T06:02:09.848Z",
237 "1.0.0": "2016-10-21T06:02:09.848Z",
238 "2.0.0": "2019-05-28T13:49:22.238Z",
239 "2.0.1": "2019-06-19T14:48:58.457Z"
240 },
241 "homepage": "https://github.com/sindresorhus/p-finally#readme",
242 "keywords": [
243 "promise",
244 "finally",
245 "handler",
246 "function",
247 "async",
248 "await",
249 "promises",
250 "settled",
251 "ponyfill",
252 "polyfill",
253 "shim",
254 "bluebird"
255 ],
256 "repository": {
257 "type": "git",
258 "url": "git+https://github.com/sindresorhus/p-finally.git"
259 },
260 "author": {
261 "name": "Sindre Sorhus",
262 "email": "[email protected]",
263 "url": "sindresorhus.com"
264 },
265 "bugs": {
266 "url": "https://github.com/sindresorhus/p-finally/issues"
267 },
268 "license": "MIT",
269 "readmeFilename": "readme.md",
270 "users": {
271 "rocket0191": true,
272 "sopepos": true
273 }
274 }