tar 2.2.1 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/0471d9cf-687f-4ae8-84a5-ce7468becd03.json +1 -0
- package/.nyc_output/12bca2bc-6a2b-4f45-abc7-8483922a524d.json +1 -0
- package/.nyc_output/37d58de4-deea-4808-bb77-d27685bd1501.json +1 -0
- package/.nyc_output/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json +1 -0
- package/.nyc_output/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json +1 -0
- package/.nyc_output/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json +1 -0
- package/.nyc_output/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json +1 -0
- package/.nyc_output/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json +1 -0
- package/.nyc_output/ea0194cb-f599-402f-8876-84fb8251e8db.json +1 -0
- package/.nyc_output/eda6b7a3-5e15-440f-8619-e11a15a07f77.json +1 -0
- package/.nyc_output/fb518800-240c-42ff-811f-79e92708d9db.json +1 -0
- package/.nyc_output/fdecfc06-a944-4897-9530-e08f62883fc1.json +1 -0
- package/.nyc_output/processinfo/0471d9cf-687f-4ae8-84a5-ce7468becd03.json +1 -0
- package/.nyc_output/processinfo/12bca2bc-6a2b-4f45-abc7-8483922a524d.json +1 -0
- package/.nyc_output/processinfo/37d58de4-deea-4808-bb77-d27685bd1501.json +1 -0
- package/.nyc_output/processinfo/5ad8066b-6b8c-4bc8-b807-c40bf80898b7.json +1 -0
- package/.nyc_output/processinfo/5cbf674c-7089-4b7d-b9de-2119be4dbb0b.json +1 -0
- package/.nyc_output/processinfo/7853e29b-78ef-4ab4-b8fb-e1e176c0787b.json +1 -0
- package/.nyc_output/processinfo/9d414044-b18d-4f6d-b2e0-531a89bf6f4f.json +1 -0
- package/.nyc_output/processinfo/c3ffeb8c-8e79-4a2c-b678-e5a917fe721e.json +1 -0
- package/.nyc_output/processinfo/ea0194cb-f599-402f-8876-84fb8251e8db.json +1 -0
- package/.nyc_output/processinfo/eda6b7a3-5e15-440f-8619-e11a15a07f77.json +1 -0
- package/.nyc_output/processinfo/fb518800-240c-42ff-811f-79e92708d9db.json +1 -0
- package/.nyc_output/processinfo/fdecfc06-a944-4897-9530-e08f62883fc1.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/coverage/lcov-report/base.css +212 -0
- package/coverage/lcov-report/index.html +106 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +1 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +158 -0
- package/coverage/lcov-report/tar/index.html +93 -0
- package/coverage/lcov-report/tar/index.js.html +119 -0
- package/coverage/lcov-report/tar/lib/create.js.html +380 -0
- package/coverage/lcov-report/tar/lib/extract.js.html +401 -0
- package/coverage/lcov-report/tar/lib/header.js.html +881 -0
- package/coverage/lcov-report/tar/lib/high-level-opt.js.html +152 -0
- package/coverage/lcov-report/tar/lib/index.html +314 -0
- package/coverage/lcov-report/tar/lib/large-numbers.js.html +341 -0
- package/coverage/lcov-report/tar/lib/list.js.html +449 -0
- package/coverage/lcov-report/tar/lib/mkdir.js.html +686 -0
- package/coverage/lcov-report/tar/lib/pack.js.html +1268 -0
- package/coverage/lcov-report/tar/lib/parse.js.html +1310 -0
- package/coverage/lcov-report/tar/lib/pax.js.html +500 -0
- package/coverage/lcov-report/tar/lib/read-entry.js.html +347 -0
- package/coverage/lcov-report/tar/lib/replace.js.html +722 -0
- package/coverage/lcov-report/tar/lib/types.js.html +197 -0
- package/coverage/lcov-report/tar/lib/unpack.js.html +1604 -0
- package/coverage/lcov-report/tar/lib/update.js.html +173 -0
- package/coverage/lcov-report/tar/lib/warn-mixin.js.html +107 -0
- package/coverage/lcov-report/tar/lib/winchars.js.html +134 -0
- package/coverage/lcov-report/tar/lib/write-entry.js.html +1268 -0
- package/coverage/lcov.info +3690 -0
- package/lib/parse.js +6 -0
- package/package.json +2 -2
- package/test/link-file-entry-collision/bad-link.hex +25 -0
- package/test/link-file-entry-collision/bad-link.tar +0 -0
- package/test/link-file-entry-collision.js +39 -0
- package/.npmignore +0 -5
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Code coverage report for tar/lib/types.js</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
7
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
<style type='text/css'>
|
|
10
|
+
.coverage-summary .sorter {
|
|
11
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div class='wrapper'>
|
|
17
|
+
<div class='pad1'>
|
|
18
|
+
<h1>
|
|
19
|
+
<a href="../../index.html">All files</a> / <a href="index.html">tar/lib</a> types.js
|
|
20
|
+
</h1>
|
|
21
|
+
<div class='clearfix'>
|
|
22
|
+
<div class='fl pad1y space-right2'>
|
|
23
|
+
<span class="strong">100% </span>
|
|
24
|
+
<span class="quiet">Statements</span>
|
|
25
|
+
<span class='fraction'>3/3</span>
|
|
26
|
+
</div>
|
|
27
|
+
<div class='fl pad1y space-right2'>
|
|
28
|
+
<span class="strong">100% </span>
|
|
29
|
+
<span class="quiet">Branches</span>
|
|
30
|
+
<span class='fraction'>0/0</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Functions</span>
|
|
35
|
+
<span class='fraction'>1/1</span>
|
|
36
|
+
</div>
|
|
37
|
+
<div class='fl pad1y space-right2'>
|
|
38
|
+
<span class="strong">100% </span>
|
|
39
|
+
<span class="quiet">Lines</span>
|
|
40
|
+
<span class='fraction'>2/2</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class='status-line high'></div>
|
|
45
|
+
<pre><table class="coverage">
|
|
46
|
+
<tr><td class="line-count quiet">1
|
|
47
|
+
2
|
|
48
|
+
3
|
|
49
|
+
4
|
|
50
|
+
5
|
|
51
|
+
6
|
|
52
|
+
7
|
|
53
|
+
8
|
|
54
|
+
9
|
|
55
|
+
10
|
|
56
|
+
11
|
|
57
|
+
12
|
|
58
|
+
13
|
|
59
|
+
14
|
|
60
|
+
15
|
|
61
|
+
16
|
|
62
|
+
17
|
|
63
|
+
18
|
|
64
|
+
19
|
|
65
|
+
20
|
|
66
|
+
21
|
|
67
|
+
22
|
|
68
|
+
23
|
|
69
|
+
24
|
|
70
|
+
25
|
|
71
|
+
26
|
|
72
|
+
27
|
|
73
|
+
28
|
|
74
|
+
29
|
|
75
|
+
30
|
|
76
|
+
31
|
|
77
|
+
32
|
|
78
|
+
33
|
|
79
|
+
34
|
|
80
|
+
35
|
|
81
|
+
36
|
|
82
|
+
37
|
|
83
|
+
38
|
|
84
|
+
39
|
|
85
|
+
40
|
|
86
|
+
41
|
|
87
|
+
42
|
|
88
|
+
43
|
|
89
|
+
44
|
|
90
|
+
45</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
91
|
+
<span class="cline-any cline-neutral"> </span>
|
|
92
|
+
<span class="cline-any cline-yes">14x</span>
|
|
93
|
+
<span class="cline-any cline-neutral"> </span>
|
|
94
|
+
<span class="cline-any cline-neutral"> </span>
|
|
95
|
+
<span class="cline-any cline-neutral"> </span>
|
|
96
|
+
<span class="cline-any cline-neutral"> </span>
|
|
97
|
+
<span class="cline-any cline-neutral"> </span>
|
|
98
|
+
<span class="cline-any cline-neutral"> </span>
|
|
99
|
+
<span class="cline-any cline-neutral"> </span>
|
|
100
|
+
<span class="cline-any cline-neutral"> </span>
|
|
101
|
+
<span class="cline-any cline-neutral"> </span>
|
|
102
|
+
<span class="cline-any cline-neutral"> </span>
|
|
103
|
+
<span class="cline-any cline-neutral"> </span>
|
|
104
|
+
<span class="cline-any cline-neutral"> </span>
|
|
105
|
+
<span class="cline-any cline-neutral"> </span>
|
|
106
|
+
<span class="cline-any cline-neutral"> </span>
|
|
107
|
+
<span class="cline-any cline-neutral"> </span>
|
|
108
|
+
<span class="cline-any cline-neutral"> </span>
|
|
109
|
+
<span class="cline-any cline-neutral"> </span>
|
|
110
|
+
<span class="cline-any cline-neutral"> </span>
|
|
111
|
+
<span class="cline-any cline-neutral"> </span>
|
|
112
|
+
<span class="cline-any cline-neutral"> </span>
|
|
113
|
+
<span class="cline-any cline-neutral"> </span>
|
|
114
|
+
<span class="cline-any cline-neutral"> </span>
|
|
115
|
+
<span class="cline-any cline-neutral"> </span>
|
|
116
|
+
<span class="cline-any cline-neutral"> </span>
|
|
117
|
+
<span class="cline-any cline-neutral"> </span>
|
|
118
|
+
<span class="cline-any cline-neutral"> </span>
|
|
119
|
+
<span class="cline-any cline-neutral"> </span>
|
|
120
|
+
<span class="cline-any cline-neutral"> </span>
|
|
121
|
+
<span class="cline-any cline-neutral"> </span>
|
|
122
|
+
<span class="cline-any cline-neutral"> </span>
|
|
123
|
+
<span class="cline-any cline-neutral"> </span>
|
|
124
|
+
<span class="cline-any cline-neutral"> </span>
|
|
125
|
+
<span class="cline-any cline-neutral"> </span>
|
|
126
|
+
<span class="cline-any cline-neutral"> </span>
|
|
127
|
+
<span class="cline-any cline-neutral"> </span>
|
|
128
|
+
<span class="cline-any cline-neutral"> </span>
|
|
129
|
+
<span class="cline-any cline-neutral"> </span>
|
|
130
|
+
<span class="cline-any cline-neutral"> </span>
|
|
131
|
+
<span class="cline-any cline-neutral"> </span>
|
|
132
|
+
<span class="cline-any cline-neutral"> </span>
|
|
133
|
+
<span class="cline-any cline-yes">294x</span>
|
|
134
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict'
|
|
135
|
+
// map types from key to human-friendly name
|
|
136
|
+
exports.name = new Map([
|
|
137
|
+
['0', 'File'],
|
|
138
|
+
// same as File
|
|
139
|
+
['', 'OldFile'],
|
|
140
|
+
['1', 'Link'],
|
|
141
|
+
['2', 'SymbolicLink'],
|
|
142
|
+
// Devices and FIFOs aren't fully supported
|
|
143
|
+
// they are parsed, but skipped when unpacking
|
|
144
|
+
['3', 'CharacterDevice'],
|
|
145
|
+
['4', 'BlockDevice'],
|
|
146
|
+
['5', 'Directory'],
|
|
147
|
+
['6', 'FIFO'],
|
|
148
|
+
// same as File
|
|
149
|
+
['7', 'ContiguousFile'],
|
|
150
|
+
// pax headers
|
|
151
|
+
['g', 'GlobalExtendedHeader'],
|
|
152
|
+
['x', 'ExtendedHeader'],
|
|
153
|
+
// vendor-specific stuff
|
|
154
|
+
// skip
|
|
155
|
+
['A', 'SolarisACL'],
|
|
156
|
+
// like 5, but with data, which should be skipped
|
|
157
|
+
['D', 'GNUDumpDir'],
|
|
158
|
+
// metadata only, skip
|
|
159
|
+
['I', 'Inode'],
|
|
160
|
+
// data = link path of next file
|
|
161
|
+
['K', 'NextFileHasLongLinkpath'],
|
|
162
|
+
// data = path of next file
|
|
163
|
+
['L', 'NextFileHasLongPath'],
|
|
164
|
+
// skip
|
|
165
|
+
['M', 'ContinuationFile'],
|
|
166
|
+
// like L
|
|
167
|
+
['N', 'OldGnuLongPath'],
|
|
168
|
+
// skip
|
|
169
|
+
['S', 'SparseFile'],
|
|
170
|
+
// skip
|
|
171
|
+
['V', 'TapeVolumeHeader'],
|
|
172
|
+
// like x
|
|
173
|
+
['X', 'OldExtendedHeader']
|
|
174
|
+
])
|
|
175
|
+
|
|
176
|
+
// map the other direction
|
|
177
|
+
exports.code = new Map(Array.from(exports.name).map(kv => [kv[1], kv[0]]))
|
|
178
|
+
</pre></td></tr>
|
|
179
|
+
</table></pre>
|
|
180
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
181
|
+
</div><!-- /wrapper -->
|
|
182
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
183
|
+
Code coverage
|
|
184
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 20 2017 16:00:38 GMT-0800 (PST)
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
<script src="../../prettify.js"></script>
|
|
188
|
+
<script>
|
|
189
|
+
window.onload = function () {
|
|
190
|
+
if (typeof prettyPrint === 'function') {
|
|
191
|
+
prettyPrint();
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
</script>
|
|
195
|
+
<script src="../../sorter.js"></script>
|
|
196
|
+
</body>
|
|
197
|
+
</html>
|