Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/iterate-value.json

raw
1 {
2 "_id": "iterate-value",
3 "_rev": "2-440524d71422a90602ee1e132e526335",
4 "name": "iterate-value",
5 "dist-tags": {
6 "latest": "1.0.2"
7 },
8 "versions": {
9 "1.0.0": {
10 "name": "iterate-value",
11 "version": "1.0.0",
12 "description": "Iterate any iterable JS value. Works robustly in all environments, all versions.",
13 "main": "index.js",
14 "exports": [
15 {
16 "default": "./index.js"
17 },
18 "./index.js"
19 ],
20 "type": "commonjs",
21 "scripts": {
22 "prepublish": "safe-publish-latest",
23 "lint": "eslint .",
24 "pretest": "npm run lint",
25 "tests-only": "node test",
26 "posttest": "npx aud",
27 "test": "npm run tests-only",
28 "version": "auto-changelog && git add CHANGELOG.md",
29 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
30 },
31 "repository": {
32 "type": "git",
33 "url": "git+https://github.com/ljharb/iterate-value.git"
34 },
35 "keywords": [
36 "iterate",
37 "map",
38 "set",
39 "collection",
40 "string",
41 "array",
42 "es2015",
43 "es6",
44 "iterator",
45 "symbol.iterator",
46 "symbol"
47 ],
48 "author": {
49 "name": "Jordan Harband",
50 "email": "[email protected]"
51 },
52 "funding": {
53 "url": "https://github.com/sponsors/ljharb"
54 },
55 "license": "MIT",
56 "bugs": {
57 "url": "https://github.com/ljharb/iterate-value/issues"
58 },
59 "homepage": "https://github.com/ljharb/iterate-value#readme",
60 "devDependencies": {
61 "@ljharb/eslint-config": "^15.0.2",
62 "auto-changelog": "^1.16.2",
63 "eslint": "^6.7.1",
64 "for-each": "^0.3.3",
65 "has-bigints": "^1.0.0",
66 "has-symbols": "^1.0.1",
67 "object-inspect": "^1.7.0",
68 "safe-publish-latest": "^1.1.4",
69 "tape": "^4.11.0"
70 },
71 "dependencies": {
72 "es-get-iterator": "^1.0.0"
73 },
74 "auto-changelog": {
75 "output": "CHANGELOG.md",
76 "template": "keepachangelog",
77 "unreleased": false,
78 "commitLimit": false,
79 "backfillLimit": false
80 },
81 "gitHead": "7d5d1d34f91db9c2a080ba645b8341b00fcb5994",
82 "_id": "[email protected]",
83 "_nodeVersion": "13.2.0",
84 "_npmVersion": "6.13.1",
85 "dist": {
86 "integrity": "sha512-1wabWdgALXxn9SStGM9Pj3Pi1htYmtqDWCdBD/QC35HSUCoK1KrPJRXrgmMLaeUNitnADh5SCOQtAnueMZeRVw==",
87 "shasum": "9cbde71d1bd3123f82c8d5476563727eca420a98",
88 "tarball": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.0.tgz",
89 "fileCount": 10,
90 "unpackedSize": 13212,
91 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd3f+GCRA9TVsSAnZWagAAT8cP/Ri60Ww4pb+tOxNpHkv2\noqxzZvmlHYDSLWr0j9E0mqkYErxQa694uYODIbyDl6dr6wh6QVmWgSNeN68y\nI+vRlN+N3gKjvnYFN9JArtV4LKaWnTPDNk9DhuKsy616CMgiQklKi+OMbffp\nTd3PNWhZQhuJBac8sAa/w35cR2zBBAG/aoOrGv5Ka/T6pstVo8JjZRcUhnF3\naKGXSnJ3OEDGFcvXgj48d8Bnq6SoJCZq0yb46A/r9uAskSQJzsTjaE3Cw4gS\nFm5BYsCHUvi0j6DM0tWyM0RiE9P3MHp99E2T1JJNHtV+9mgyvqpfQGVqqf1t\nex5KqEHqCJGlj2qLjymTPzjD5IohBg26MhZA7OrQ5CjUjnMaLniP6Ucq7Gae\nG09uyft3tuKJLTeLTLxIKJ4KCGNBQlx+JRae0E1VSkuI0i0uAOhJgi0pkJCG\nBYa7Ydx0Ec0H8Ky1AAvQqjRWA8jqVQNVieITa6sevQSV70ObgJ4v9yQswQ1d\njyTwKZHbxjMRzCheYCKx2OYuqsAK0rRSiVx3PjC44zTPNpmhgE2pw4e7vAsG\n5I1ZK+7rc0L7tavagd/a3HHMFJymCCvAiCkeSTGEwjox3SxeDTjjjwkBAOuV\n/JnfQv3g2T6/MCszJ7sIIoVLgIwl3tMMbFjlGnzaJgFrOSRl4vRnROpEyVL+\ncf5d\r\n=UvmA\r\n-----END PGP SIGNATURE-----\r\n"
92 },
93 "maintainers": [
94 {
95 "name": "ljharb",
96 "email": "[email protected]"
97 }
98 ],
99 "_npmUser": {
100 "name": "ljharb",
101 "email": "[email protected]"
102 },
103 "directories": {},
104 "_npmOperationalInternal": {
105 "host": "s3://npm-registry-packages",
106 "tmp": "tmp/iterate-value_1.0.0_1574829957815_0.41142292824820026"
107 },
108 "_hasShrinkwrap": false
109 },
110 "1.0.1": {
111 "name": "iterate-value",
112 "version": "1.0.1",
113 "description": "Iterate any iterable JS value. Works robustly in all environments, all versions.",
114 "main": "index.js",
115 "exports": {
116 ".": [
117 {
118 "default": "./index.js"
119 },
120 "./index.js"
121 ]
122 },
123 "type": "commonjs",
124 "scripts": {
125 "prepublish": "safe-publish-latest",
126 "lint": "eslint .",
127 "pretest": "npm run lint",
128 "tests-only": "node test",
129 "posttest": "npx aud",
130 "test": "npm run tests-only",
131 "version": "auto-changelog && git add CHANGELOG.md",
132 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
133 },
134 "repository": {
135 "type": "git",
136 "url": "git+https://github.com/ljharb/iterate-value.git"
137 },
138 "keywords": [
139 "iterate",
140 "map",
141 "set",
142 "collection",
143 "string",
144 "array",
145 "es2015",
146 "es6",
147 "iterator",
148 "symbol.iterator",
149 "symbol"
150 ],
151 "author": {
152 "name": "Jordan Harband",
153 "email": "[email protected]"
154 },
155 "funding": {
156 "url": "https://github.com/sponsors/ljharb"
157 },
158 "license": "MIT",
159 "bugs": {
160 "url": "https://github.com/ljharb/iterate-value/issues"
161 },
162 "homepage": "https://github.com/ljharb/iterate-value#readme",
163 "devDependencies": {
164 "@ljharb/eslint-config": "^15.0.2",
165 "auto-changelog": "^1.16.2",
166 "eslint": "^6.7.2",
167 "for-each": "^0.3.3",
168 "has-bigints": "^1.0.0",
169 "has-symbols": "^1.0.1",
170 "object-inspect": "^1.7.0",
171 "safe-publish-latest": "^1.1.4",
172 "tape": "^4.11.0"
173 },
174 "dependencies": {
175 "es-get-iterator": "^1.0.1"
176 },
177 "auto-changelog": {
178 "output": "CHANGELOG.md",
179 "template": "keepachangelog",
180 "unreleased": false,
181 "commitLimit": false,
182 "backfillLimit": false
183 },
184 "gitHead": "605603a68503e9a9bb46fd3ad7c2dc2c4809c32d",
185 "_id": "[email protected]",
186 "_nodeVersion": "13.1.0",
187 "_npmVersion": "6.12.1",
188 "dist": {
189 "integrity": "sha512-xc6jTbwPOWEdD26y41BpJBqh/w3kuEcsQxTypXD+xYQA2+OZIfemmkm725cnRbm1cHj4SMLUO1+7oIA97e88gg==",
190 "shasum": "d2003239b4a06c91a3f8092e379f6062b03c268c",
191 "tarball": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.1.tgz",
192 "fileCount": 10,
193 "unpackedSize": 13757,
194 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd9CwjCRA9TVsSAnZWagAA2sUP/A2ymw0gaxTSMJJPeetO\nXbo7dH8c8sJLlN99NPzyii0/x4FQiUDmGn0J3RyTf4zywoBGJVqxkHVL3GxN\nppDf2fu+dlpr6lmWKh4E9Oh0nmbDXQbxKCP47QjqKeATr/w+iLUSetCRFAoj\nqDjt+OOrk/pnpnJ8t5J4bGO2un04JksXZ27LZ7mnS/CHmLI26hAr961lz2cR\nAsAy05zjfnrsMD3c+XDGOzYoIr7/+ygDUMH1SnXesSxgi7DjJ9+8UrsnHQzi\nxEWVWOaivxSe06R44AjCNaH4rw6s+ktZ9hPd+AyAsTJa3JVC5zYNEJFPzIwn\ncFMcArCkY2x76aok3N03VT7fD0/39K7dHAIS8T7DqfPa1y5sKCzAYl/fslZh\nTvu6ew6EyaqAxrCi/jmviIaLLa6o95opiFP5YfVNrV7Fg3aKh4ZMt3Q4s4LW\nz5ubym3bSHxAJSiHDukuP8a/s17dOTPxIg/TyG5cSTl0COuIc5/Etx2f39de\nVBhGZM1HJ4n3QtYAZKBJ9wxDNLDtzPzy66MBIJmRYKHIBQaCme4VuKZ6oKwz\nmqUCnt7AZnBw/JTQF/4RUIFK9a2n2VoYPZulue0jxNC0Le5J3b10j+lTON53\nz9udWZi7yb7nbOLeaHDArXRebQyZyECyxHUGt52plJgtNv+QPMJOZPKINVIh\n34jz\r\n=RASg\r\n-----END PGP SIGNATURE-----\r\n"
195 },
196 "maintainers": [
197 {
198 "name": "ljharb",
199 "email": "[email protected]"
200 }
201 ],
202 "_npmUser": {
203 "name": "ljharb",
204 "email": "[email protected]"
205 },
206 "directories": {},
207 "_npmOperationalInternal": {
208 "host": "s3://npm-registry-packages",
209 "tmp": "tmp/iterate-value_1.0.1_1576283170447_0.9971842149145462"
210 },
211 "_hasShrinkwrap": false
212 },
213 "1.0.2": {
214 "name": "iterate-value",
215 "version": "1.0.2",
216 "description": "Iterate any iterable JS value. Works robustly in all environments, all versions.",
217 "main": "index.js",
218 "exports": {
219 ".": [
220 {
221 "default": "./index.js"
222 },
223 "./index.js"
224 ]
225 },
226 "type": "commonjs",
227 "scripts": {
228 "prepublish": "safe-publish-latest",
229 "prelint": "evalmd README.md",
230 "lint": "eslint .",
231 "pretest": "npm run lint",
232 "tests-only": "node test",
233 "posttest": "npx aud",
234 "test": "npm run tests-only",
235 "version": "auto-changelog && git add CHANGELOG.md",
236 "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
237 },
238 "repository": {
239 "type": "git",
240 "url": "git+https://github.com/ljharb/iterate-value.git"
241 },
242 "keywords": [
243 "iterate",
244 "map",
245 "set",
246 "collection",
247 "string",
248 "array",
249 "es2015",
250 "es6",
251 "iterator",
252 "symbol.iterator",
253 "symbol"
254 ],
255 "author": {
256 "name": "Jordan Harband",
257 "email": "[email protected]"
258 },
259 "funding": {
260 "url": "https://github.com/sponsors/ljharb"
261 },
262 "license": "MIT",
263 "bugs": {
264 "url": "https://github.com/ljharb/iterate-value/issues"
265 },
266 "homepage": "https://github.com/ljharb/iterate-value#readme",
267 "devDependencies": {
268 "@ljharb/eslint-config": "^15.1.0",
269 "auto-changelog": "^1.16.2",
270 "eslint": "^6.8.0",
271 "evalmd": "^0.0.19",
272 "for-each": "^0.3.3",
273 "has-bigints": "^1.0.0",
274 "has-symbols": "^1.0.1",
275 "object-inspect": "^1.7.0",
276 "safe-publish-latest": "^1.1.4",
277 "tape": "^5.0.0-next.3"
278 },
279 "dependencies": {
280 "es-get-iterator": "^1.0.2",
281 "iterate-iterator": "^1.0.1"
282 },
283 "auto-changelog": {
284 "output": "CHANGELOG.md",
285 "template": "keepachangelog",
286 "unreleased": false,
287 "commitLimit": false,
288 "backfillLimit": false
289 },
290 "gitHead": "ce95188f526a840f3fa2e4ab2caa9cdfa8eea8ab",
291 "_id": "[email protected]",
292 "_nodeVersion": "13.6.0",
293 "_npmVersion": "6.13.4",
294 "dist": {
295 "integrity": "sha512-A6fMAio4D2ot2r/TYzr4yUWrmwNdsN5xL7+HUiyACE4DXm+q8HtPcnFTp+NnW3k4N05tZ7FVYFFb2CR13NxyHQ==",
296 "shasum": "935115bd37d006a52046535ebc8d07e9c9337f57",
297 "tarball": "https://registry.npmjs.org/iterate-value/-/iterate-value-1.0.2.tgz",
298 "fileCount": 10,
299 "unpackedSize": 14211,
300 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeIzdkCRA9TVsSAnZWagAAN6MP/Ax0QswnzGyypUcp7Z75\nIniMnkG6pPNrsNZozwNklHYaFH4WAeR3oiXjzts7cON2DvcWTL8Wm6FiHFvC\nflf1RJq0rZ5jN9gpyuJnq6G82wzJpC7iBj64+jIljWlofSpL6KvypVHsD6EH\nPPFec0DQt7Acd0UPPM/UeFa5NW3rwAQPPxu/9hBY72jcArDaDU/0+k72UcDX\n9JDGBq/MZyK0v9mye9KL1jiXPToORJnV6yyUVzXLJTpSlvPz34X6Fj1crv7L\nwLgNJDkHhEE5NQdLet7IpHoQv4v4ZI9vlMD64Qrmx6rivVXz4QcKCHRb/2NX\nwUW6WGLwPJAcPPVe4R8PY8UdWcKuwKIlVT/kw6Gjo31bP+axu2RfjHpGMmjF\nLB3xw8xOeplHQR/q7n1KIYe6aIp71CLQXmlk5NnF+pdtzAqIVtQGzt7pcT5d\nws+h5cc/JcmIHwWmv3N4VtDsgm2M3h6USjZmML25y1EI56DkkAQP1Fn4zCM1\nGHpPRiKGm+bLCfo3s2+gdy6vC1VCdnCVz741fYtPq/dDWx2zCQikUAO1q85P\nm+F3C7oIytJSbFtQXuWZFWRh+ddeKoVfClzOB98U8K1jSfMfBdjLesrekR3L\n199Sae+B2NCv5/+t2vz7rlEGYs73mKPXtL9ii8hty2AqDHvEEBU30Klc5h1o\nt09+\r\n=Dya3\r\n-----END PGP SIGNATURE-----\r\n"
301 },
302 "maintainers": [
303 {
304 "name": "ljharb",
305 "email": "[email protected]"
306 }
307 ],
308 "_npmUser": {
309 "name": "ljharb",
310 "email": "[email protected]"
311 },
312 "directories": {},
313 "_npmOperationalInternal": {
314 "host": "s3://npm-registry-packages",
315 "tmp": "tmp/iterate-value_1.0.2_1579366243770_0.046982518371430304"
316 },
317 "_hasShrinkwrap": false
318 }
319 },
320 "time": {
321 "created": "2019-11-27T04:45:57.815Z",
322 "1.0.0": "2019-11-27T04:45:57.982Z",
323 "modified": "2020-01-18T16:50:46.333Z",
324 "1.0.1": "2019-12-14T00:26:10.568Z",
325 "1.0.2": "2020-01-18T16:50:43.928Z"
326 },
327 "maintainers": [
328 {
329 "name": "ljharb",
330 "email": "[email protected]"
331 }
332 ],
333 "description": "Iterate any iterable JS value. Works robustly in all environments, all versions.",
334 "homepage": "https://github.com/ljharb/iterate-value#readme",
335 "keywords": [
336 "iterate",
337 "map",
338 "set",
339 "collection",
340 "string",
341 "array",
342 "es2015",
343 "es6",
344 "iterator",
345 "symbol.iterator",
346 "symbol"
347 ],
348 "repository": {
349 "type": "git",
350 "url": "git+https://github.com/ljharb/iterate-value.git"
351 },
352 "author": {
353 "name": "Jordan Harband",
354 "email": "[email protected]"
355 },
356 "bugs": {
357 "url": "https://github.com/ljharb/iterate-value/issues"
358 },
359 "license": "MIT",
360 "readme": "# iterate-value <sup>[![Version Badge][npm-version-svg]][package-url]</sup>\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\nIterate any iterable JS value. Works robustly in all environments, all versions.\n\nIn modern engines, `[...value]` or `Array.from(value)` or `for (const item of value) { }` are sufficient to iterate an iterable value (an object with a `Symbol.iterator` method). However, older engines:\n - may lack `Symbol`, array spread, or `for..of` support altogether\n - may have `Symbol.iterator` but not implement it on everything it should, like arguments objects\n - may have `Map` and `Set`, but a non-standard name for the iterator-producing method (`.iterator` or `['@@iterator']`, eg) and no syntax to support it\n - may be old versions of Firefox that produce values until they throw a StopIteration exception, rather than having iteration result objects\n - may be polyfilled/shimmed/shammed, with `es6-shim` or `core-js` or similar\n\nThis library attempts to provide an abstraction over all that complexity!\n\nIf called with a single value, it will return an array of the yielded values. If also called with a callback function, it will instead call that callback once for each yielded value.\n\nIn node v13+, `exports` is used by the `es-get-iterator` dependency to provide a lean implementation that lacks all the complexity described above, in combination with the `browser` field so that bundlers will pick up the proper implementation.\n\nIf you are targeting browsers that definitely all have Symbol support, then you can configure your bundler to replace `require('has-symbols')()` with a literal `true`, which should allow dead code elimination to reduce the size of the bundled code.\n\n## Example\n\n```js\nvar iterate = require('iterate-value');\nvar assert = require('assert');\n\nassert.deepEqual(iterate('a 💩'), ['a', ' ', '💩']);\nassert.deepEqual(iterate([1, 2]), [1, 2]);\nassert.deepEqual(iterate(new Set([1, 2])), [1, 2]);\nassert.deepEqual(iterate(new Map([[1, 2], [3, 4]])), [[1, 2], [3, 4]]);\n\nfunction assertWithCallback(iterable, expected) {\n\tvar values = [];\n\tvar callback = function (x) { values.push(x); };\n\titerate(iterable, callback);\n\tassert.deepEqual(values, expected);\n}\nassertWithCallback('a 💩', ['a', ' ', '💩']);\nassertWithCallback([1, 2], [1, 2]);\nassertWithCallback(new Set([1, 2]), [1, 2]);\nassertWithCallback(new Map([[1, 2], [3, 4]]), [[1, 2], [3, 4]]);\n```\n\n## Tests\nSimply clone the repo, `npm install`, and run `npm test`\n\n[package-url]: https://npmjs.org/package/iterate-value\n[npm-version-svg]: http://versionbadg.es/ljharb/iterate-value.svg\n[travis-svg]: https://travis-ci.org/ljharb/iterate-value.svg\n[travis-url]: https://travis-ci.org/ljharb/iterate-value\n[deps-svg]: https://david-dm.org/ljharb/iterate-value.svg\n[deps-url]: https://david-dm.org/ljharb/iterate-value\n[dev-deps-svg]: https://david-dm.org/ljharb/iterate-value/dev-status.svg\n[dev-deps-url]: https://david-dm.org/ljharb/iterate-value#info=devDependencies\n[npm-badge-png]: https://nodei.co/npm/iterate-value.png?downloads=true&stars=true\n[license-image]: http://img.shields.io/npm/l/iterate-value.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/iterate-value.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=iterate-value\n",
361 "readmeFilename": "README.md"
362 }