Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/diff-frag.json

raw
1 {
2 "_id": "diff-frag",
3 "_rev": "1-def66f6723299e2e8d73bbc94a36c9cf",
4 "name": "diff-frag",
5 "dist-tags": {
6 "latest": "1.0.1"
7 },
8 "versions": {
9 "1.0.0": {
10 "name": "diff-frag",
11 "version": "1.0.0",
12 "description": "Take a big diff with a 2-line header and turn it into frags with only a reasonable amount of context",
13 "author": {
14 "name": "Isaac Z. Schlueter",
15 "email": "[email protected]",
16 "url": "https://izs.me"
17 },
18 "license": "ISC",
19 "scripts": {
20 "test": "tap",
21 "preversion": "npm test",
22 "postversion": "npm publish",
23 "postpublish": "git push origin --follow-tags"
24 },
25 "tap": {
26 "check-coverage": true
27 },
28 "devDependencies": {
29 "tap": "^14.9.2"
30 },
31 "funding": {
32 "url": "https://github.com/sponsors/isaacs"
33 },
34 "gitHead": "ec08ed829c1ad1db60559cb609c93139b122b85c",
35 "_id": "[email protected]",
36 "_nodeVersion": "12.12.0",
37 "_npmVersion": "6.13.1",
38 "dist": {
39 "integrity": "sha512-1DqVT8BlsGYXAH1YCsMkW14n2YUjic/3p20jsBoTZC6B5Bm5XzXVFo8JldLV4meRK4nwk36JaMULIlLviqn0ow==",
40 "shasum": "de3405b09be58d744db3d8d749b5a849ed8f0721",
41 "tarball": "https://registry.npmjs.org/diff-frag/-/diff-frag-1.0.0.tgz",
42 "fileCount": 18,
43 "unpackedSize": 204550,
44 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1jBSCRA9TVsSAnZWagAAS0wP/2bUQaK+hrR59MYB0DFZ\nwA73RT3vFY0FTh3ZJMo3QHDmdhXXkoi4m1dipJnci+AdIObbZLI4iUTe2brI\nrH20Iv2gr/5JPSc9tW24Yqjn4M4mXgugvJTcRllsg/5rvrFEBBp0UBQYDggk\nmkavztYo1HwSOTw8zyONhyQfJiPPSIjJY+5umzlqjO/KIf9rJ5zpPf2y7nd6\nqkCra5AktIAlCn9Puos4qilZ6eiCduEMgUSA3bp3vL4vHM2BPXYrDtfHER5F\nFZACPMcbvaYRcEuAV0bKeNlCh5q8JQK+V1UAL0cxfRCwnyYrRi1dory/q9tF\nCduQsZLAnRbV01iF75VPRwKg4D7wDSRRLAC4nlkJb9e1zItJuhb1cfNEST3j\n/wLXbidg8mbM59lQmILqT1opIoq/DdaserLLzKUmrPjbycjIaM60Zm7cFhLT\nosO4KUeRhoN/r1sNDjfM7Ps/d9tv9aN5a+Q9yIFo0wKFSNmQpAlocLw9Ju3R\nmmHxiIJIBhG+EwPyn6dIW+xgtixETXOlsiFf7THDcLLfa6iOCB4S3eNSoffn\nsbi27R3MK1mDUQo4d0YTjmPAi0KrSeqO9h8IlUYXvFtzzFR8uP2ORkQggEss\nYLULkl06eXBgZO7L+pmoA4nTT25zeFeRBnx59xS0TNarJPq/evhThYmBLWBq\n0ggZ\r\n=5GcC\r\n-----END PGP SIGNATURE-----\r\n"
45 },
46 "maintainers": [
47 {
48 "name": "isaacs",
49 "email": "[email protected]"
50 }
51 ],
52 "_npmUser": {
53 "name": "isaacs",
54 "email": "[email protected]"
55 },
56 "directories": {},
57 "_npmOperationalInternal": {
58 "host": "s3://npm-registry-packages",
59 "tmp": "tmp/diff-frag_1.0.0_1574318162341_0.5731649720389702"
60 },
61 "_hasShrinkwrap": false
62 },
63 "1.0.1": {
64 "name": "diff-frag",
65 "version": "1.0.1",
66 "description": "Take a big diff with a 2-line header and turn it into frags with only a reasonable amount of context",
67 "author": {
68 "name": "Isaac Z. Schlueter",
69 "email": "[email protected]",
70 "url": "https://izs.me"
71 },
72 "license": "ISC",
73 "scripts": {
74 "test": "tap",
75 "preversion": "npm test",
76 "postversion": "npm publish",
77 "postpublish": "git push origin --follow-tags"
78 },
79 "tap": {
80 "check-coverage": true
81 },
82 "devDependencies": {
83 "tap": "^14.9.2"
84 },
85 "funding": {
86 "url": "https://github.com/sponsors/isaacs"
87 },
88 "gitHead": "8a018258c21b8e7074d6631b412956c84ec31295",
89 "_id": "[email protected]",
90 "_nodeVersion": "12.12.0",
91 "_npmVersion": "6.13.1",
92 "dist": {
93 "integrity": "sha512-6/v2PC/6UTGcWPPetb9acL8foberUg/CtPdALeJUdD1B/weHNvzftoo00gYznqHGRhHEbykUGzqfG9RWOSr5yw==",
94 "shasum": "a7bb51789743e8c0b40e2509166bd155e5833826",
95 "tarball": "https://registry.npmjs.org/diff-frag/-/diff-frag-1.0.1.tgz",
96 "fileCount": 4,
97 "unpackedSize": 5093,
98 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1jCzCRA9TVsSAnZWagAAdvUQAJ2DUmMfPAiViflYBbn0\nx6bLiOonfulg5PmAWvUBKabv7GwQ0dqtCjxKeZGC7tqRrxBwK62UWUBlJ8Lh\nuwuNPLqnRt69kGMtZSCmPSuI8Mbfn9YXAVm0z5hYlR2Kgg3MetlSIBw+8nE+\nlbTx6zHZ0vASE0Nm7SNFYvUWkWJIXKImDGpp9de1qJkTlBWlHo4rNfnryV9M\nJ6Qz5W7LRk0gjdHZFMVZ2tAbVc93idgRkPfAofoM4KxiM/JAEMQ2uUgEUMoZ\nYkKREOdOY93Y0nCbe/DzamtDnE6BH7Waho+Ox+nTO3/O+7KUS+4MUW4m/BnT\nX644uAC/QvpneL86UWq/xG5ZrfUzEqGtGmCl4rfZ0puoaDrHJmivKcMgJGCj\nYjAy0YuaMGO0AnLrs3c6GS7fXI0Ee33KlpsHn/X6I56agNsr288gBebnQFAQ\nLoyUzsTOcOnENJpSDwsMrN9FWs6FDLuP9JUo5aF3Y7mGIzLBApJipeS76jOD\nFT4T7PHQD04X7A7LgV8HfproAF50bixy860SZ4cBTBrOCR4mqiYL06SOwxNw\nL8TifKtHHNFS5oybed6Fjipc+dFIMynQjmEKuIx2f4ruDhICN7Xy2Zk2sKpp\nDO+a0DtaSlxpr0O8SXUiPT7ko5E2ZXjEVfcbJhjns9sczagVXii4QK+/Ns/Y\n6u82\r\n=f9OI\r\n-----END PGP SIGNATURE-----\r\n"
99 },
100 "maintainers": [
101 {
102 "name": "isaacs",
103 "email": "[email protected]"
104 }
105 ],
106 "_npmUser": {
107 "name": "isaacs",
108 "email": "[email protected]"
109 },
110 "directories": {},
111 "_npmOperationalInternal": {
112 "host": "s3://npm-registry-packages",
113 "tmp": "tmp/diff-frag_1.0.1_1574318259189_0.9084394099490205"
114 },
115 "_hasShrinkwrap": false
116 }
117 },
118 "time": {
119 "created": "2019-11-21T06:36:02.340Z",
120 "1.0.0": "2019-11-21T06:36:02.483Z",
121 "modified": "2019-11-21T06:37:41.699Z",
122 "1.0.1": "2019-11-21T06:37:39.405Z"
123 },
124 "maintainers": [
125 {
126 "name": "isaacs",
127 "email": "[email protected]"
128 }
129 ],
130 "description": "Take a big diff with a 2-line header and turn it into frags with only a reasonable amount of context",
131 "author": {
132 "name": "Isaac Z. Schlueter",
133 "email": "[email protected]",
134 "url": "https://izs.me"
135 },
136 "license": "ISC",
137 "readme": "# diff-frag\n\nTake a big diff with a 2-line header and turn it into frags with only a\nreasonable amount of context\n\nFor example, you might have a program that spits out a diff like this:\n\n```diff\nsome header data\nAuthor: Bobo The Cat <[email protected]>\nDate: Wed Nov 20 20:13:08 2019 -0800\n\ndiff --git a/bowl.txt b/bowl.txt\nindex glorp..prolg 100655\n--- a/bowl.txt\n+++ b/bowl.txt\n space-prefixed lines are the same in both\n but we were sloppy in what got included in the diff\n so you get 1000 lines of identical output ...\n\n but dumping that all to ta teerminal is so ruuuuuude\n\n-what you want\n+what you want is just this bit\n+ just the changes\n\n more more more more more.... it goes on and on for a long time...\n```\n\nIn that case, what you'd really prefer is something like:\n\n```diff\nsome header data\nAuthor: Bobo The Cat <[email protected]>\nDate: Wed Nov 20 20:13:08 2019 -0800\n\ndiff --git a/bowl.txt b/bowl.txt\nindex glorp..prolg 100655\n--- a/bowl.txt\n+++ b/bowl.txt\n@@ -1000,6 +1000,7 @@ so you get 1000 lines of identical...\n\n but dumping that all to ta teerminal is so ruuuuuude\n\n-what you want\n+what you want is just this bit\n+just the changes\n\n more more more more more.... it goes on and on for a long time...\n@@ -2456,5 +2567,5 @@ another bit of context here\n\n+ added line\n- removed line\n+ well, you get\n- the idea\n\n just the changes, is what I'm saying, not the 1000 lines between.\n```\n\nThis function will take the first kind of string, and turn it into the\nsecond. It's useful for [test frameworks](https://node-tap.org) that\npretty-print object diffs, for object matching assertions, and want to make\nthem prettier when the object is really big.\n\n## USAGE\n\n```js\nconst diffFrag = require('diff-frag')\nconst fraggedDiff = diffFrag(rawDiff)\n// that's it, it's just the one function\n```\n",
138 "readmeFilename": "README.md"
139 }