@atlaspack/reporter-dev-server 2.14.17 → 2.14.18-typescript-d6e6d169c.0
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/LICENSE +201 -0
- package/lib/ServerReporter.js +52 -51
- package/lib/ServerReporter.js.map +1 -1
- package/package.json +7 -6
- package/src/Server.js +2 -2
- /package/{src/templates → templates}/404.html +0 -0
- /package/{src/templates → templates}/500.html +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright (c) 2024 Atlassian US., Inc.
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/lib/ServerReporter.js
CHANGED
|
@@ -12945,7 +12945,7 @@ var $a0d584cf04914f16$var$parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb
|
|
|
12945
12945
|
}
|
|
12946
12946
|
|
|
12947
12947
|
|
|
12948
|
-
var $
|
|
12948
|
+
var $03ab44b9a3a3cd17$exports = {};
|
|
12949
12949
|
/*!
|
|
12950
12950
|
* content-disposition
|
|
12951
12951
|
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
@@ -12953,30 +12953,30 @@ var $d08eb12d161683c9$exports = {};
|
|
|
12953
12953
|
*/ 'use strict';
|
|
12954
12954
|
/**
|
|
12955
12955
|
* Module exports.
|
|
12956
|
-
*/ $
|
|
12957
|
-
$
|
|
12956
|
+
*/ $03ab44b9a3a3cd17$exports = $03ab44b9a3a3cd17$var$contentDisposition;
|
|
12957
|
+
$03ab44b9a3a3cd17$exports.parse = $03ab44b9a3a3cd17$var$parse;
|
|
12958
12958
|
|
|
12959
|
-
var $
|
|
12959
|
+
var $03ab44b9a3a3cd17$require$basename = $impb2$path.basename;
|
|
12960
12960
|
/**
|
|
12961
12961
|
* RegExp to match non attr-char, *after* encodeURIComponent (i.e. not including "%")
|
|
12962
|
-
*/ var $
|
|
12962
|
+
*/ var $03ab44b9a3a3cd17$var$ENCODE_URL_ATTR_CHAR_REGEXP = /[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g // eslint-disable-line no-control-regex
|
|
12963
12963
|
;
|
|
12964
12964
|
/**
|
|
12965
12965
|
* RegExp to match percent encoding escape.
|
|
12966
|
-
*/ var $
|
|
12967
|
-
var $
|
|
12966
|
+
*/ var $03ab44b9a3a3cd17$var$HEX_ESCAPE_REGEXP = /%[0-9A-Fa-f]{2}/;
|
|
12967
|
+
var $03ab44b9a3a3cd17$var$HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
|
|
12968
12968
|
/**
|
|
12969
12969
|
* RegExp to match non-latin1 characters.
|
|
12970
|
-
*/ var $
|
|
12970
|
+
*/ var $03ab44b9a3a3cd17$var$NON_LATIN1_REGEXP = /[^\x20-\x7e\xa0-\xff]/g;
|
|
12971
12971
|
/**
|
|
12972
12972
|
* RegExp to match quoted-pair in RFC 2616
|
|
12973
12973
|
*
|
|
12974
12974
|
* quoted-pair = "\" CHAR
|
|
12975
12975
|
* CHAR = <any US-ASCII character (octets 0 - 127)>
|
|
12976
|
-
*/ var $
|
|
12976
|
+
*/ var $03ab44b9a3a3cd17$var$QESC_REGEXP = /\\([\u0000-\u007f])/g;
|
|
12977
12977
|
/**
|
|
12978
12978
|
* RegExp to match chars that must be quoted-pair in RFC 2616
|
|
12979
|
-
*/ var $
|
|
12979
|
+
*/ var $03ab44b9a3a3cd17$var$QUOTE_REGEXP = /([\\"])/g;
|
|
12980
12980
|
/**
|
|
12981
12981
|
* RegExp for various RFC 2616 grammar
|
|
12982
12982
|
*
|
|
@@ -12999,10 +12999,10 @@ var $d08eb12d161683c9$var$HEX_ESCAPE_REPLACE_REGEXP = /%([0-9A-Fa-f]{2})/g;
|
|
|
12999
12999
|
* HT = <US-ASCII HT, horizontal-tab (9)>
|
|
13000
13000
|
* CTL = <any US-ASCII control character (octets 0 - 31) and DEL (127)>
|
|
13001
13001
|
* OCTET = <any 8-bit sequence of data>
|
|
13002
|
-
*/ var $
|
|
13002
|
+
*/ var $03ab44b9a3a3cd17$var$PARAM_REGEXP = /;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g // eslint-disable-line no-control-regex
|
|
13003
13003
|
;
|
|
13004
|
-
var $
|
|
13005
|
-
var $
|
|
13004
|
+
var $03ab44b9a3a3cd17$var$TEXT_REGEXP = /^[\x20-\x7e\x80-\xff]+$/;
|
|
13005
|
+
var $03ab44b9a3a3cd17$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
13006
13006
|
/**
|
|
13007
13007
|
* RegExp for various RFC 5987 grammar
|
|
13008
13008
|
*
|
|
@@ -13022,7 +13022,7 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13022
13022
|
* attr-char = ALPHA / DIGIT
|
|
13023
13023
|
* / "!" / "#" / "$" / "&" / "+" / "-" / "."
|
|
13024
13024
|
* / "^" / "_" / "`" / "|" / "~"
|
|
13025
|
-
*/ var $
|
|
13025
|
+
*/ var $03ab44b9a3a3cd17$var$EXT_VALUE_REGEXP = /^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/;
|
|
13026
13026
|
/**
|
|
13027
13027
|
* RegExp for various RFC 6266 grammar
|
|
13028
13028
|
*
|
|
@@ -13034,7 +13034,7 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13034
13034
|
* disp-ext-parm = token "=" value
|
|
13035
13035
|
* | ext-token "=" ext-value
|
|
13036
13036
|
* ext-token = <the characters in token, followed by "*">
|
|
13037
|
-
*/ var $
|
|
13037
|
+
*/ var $03ab44b9a3a3cd17$var$DISPOSITION_TYPE_REGEXP = /^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/ // eslint-disable-line no-control-regex
|
|
13038
13038
|
;
|
|
13039
13039
|
/**
|
|
13040
13040
|
* Create an attachment Content-Disposition header.
|
|
@@ -13045,14 +13045,14 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13045
13045
|
* @param {string|boolean} [options.fallback=true]
|
|
13046
13046
|
* @return {string}
|
|
13047
13047
|
* @api public
|
|
13048
|
-
*/ function $
|
|
13048
|
+
*/ function $03ab44b9a3a3cd17$var$contentDisposition(filename, options) {
|
|
13049
13049
|
var opts = options || {};
|
|
13050
13050
|
// get type
|
|
13051
13051
|
var type = opts.type || 'attachment';
|
|
13052
13052
|
// get parameters
|
|
13053
|
-
var params = $
|
|
13053
|
+
var params = $03ab44b9a3a3cd17$var$createparams(filename, opts.fallback);
|
|
13054
13054
|
// format into string
|
|
13055
|
-
return $
|
|
13055
|
+
return $03ab44b9a3a3cd17$var$format(new $03ab44b9a3a3cd17$var$ContentDisposition(type, params));
|
|
13056
13056
|
}
|
|
13057
13057
|
/**
|
|
13058
13058
|
* Create parameters object from filename and fallback.
|
|
@@ -13061,23 +13061,23 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13061
13061
|
* @param {string|boolean} [fallback=true]
|
|
13062
13062
|
* @return {object}
|
|
13063
13063
|
* @api private
|
|
13064
|
-
*/ function $
|
|
13064
|
+
*/ function $03ab44b9a3a3cd17$var$createparams(filename, fallback) {
|
|
13065
13065
|
if (filename === undefined) return;
|
|
13066
13066
|
var params = {};
|
|
13067
13067
|
if (typeof filename !== 'string') throw new TypeError('filename must be a string');
|
|
13068
13068
|
// fallback defaults to true
|
|
13069
13069
|
if (fallback === undefined) fallback = true;
|
|
13070
13070
|
if (typeof fallback !== 'string' && typeof fallback !== 'boolean') throw new TypeError('fallback must be a string or boolean');
|
|
13071
|
-
if (typeof fallback === 'string' && $
|
|
13071
|
+
if (typeof fallback === 'string' && $03ab44b9a3a3cd17$var$NON_LATIN1_REGEXP.test(fallback)) throw new TypeError('fallback must be ISO-8859-1 string');
|
|
13072
13072
|
// restrict to file base name
|
|
13073
|
-
var name = $
|
|
13073
|
+
var name = $03ab44b9a3a3cd17$require$basename(filename);
|
|
13074
13074
|
// determine if name is suitable for quoted string
|
|
13075
|
-
var isQuotedString = $
|
|
13075
|
+
var isQuotedString = $03ab44b9a3a3cd17$var$TEXT_REGEXP.test(name);
|
|
13076
13076
|
// generate fallback name
|
|
13077
|
-
var fallbackName = typeof fallback !== 'string' ? fallback && $
|
|
13077
|
+
var fallbackName = typeof fallback !== 'string' ? fallback && $03ab44b9a3a3cd17$var$getlatin1(name) : $03ab44b9a3a3cd17$require$basename(fallback);
|
|
13078
13078
|
var hasFallback = typeof fallbackName === 'string' && fallbackName !== name;
|
|
13079
13079
|
// set extended filename parameter
|
|
13080
|
-
if (hasFallback || !isQuotedString || $
|
|
13080
|
+
if (hasFallback || !isQuotedString || $03ab44b9a3a3cd17$var$HEX_ESCAPE_REGEXP.test(name)) params['filename*'] = name;
|
|
13081
13081
|
// set filename parameter
|
|
13082
13082
|
if (isQuotedString || hasFallback) params.filename = hasFallback ? fallbackName : name;
|
|
13083
13083
|
return params;
|
|
@@ -13090,10 +13090,10 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13090
13090
|
* @param {object} [obj.parameters]
|
|
13091
13091
|
* @return {string}
|
|
13092
13092
|
* @api private
|
|
13093
|
-
*/ function $
|
|
13093
|
+
*/ function $03ab44b9a3a3cd17$var$format(obj) {
|
|
13094
13094
|
var parameters = obj.parameters;
|
|
13095
13095
|
var type = obj.type;
|
|
13096
|
-
if (!type || typeof type !== 'string' || !$
|
|
13096
|
+
if (!type || typeof type !== 'string' || !$03ab44b9a3a3cd17$var$TOKEN_REGEXP.test(type)) throw new TypeError('invalid type');
|
|
13097
13097
|
// start with normalized type
|
|
13098
13098
|
var string = String(type).toLowerCase();
|
|
13099
13099
|
// append parameters
|
|
@@ -13102,7 +13102,7 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13102
13102
|
var params = Object.keys(parameters).sort();
|
|
13103
13103
|
for(var i = 0; i < params.length; i++){
|
|
13104
13104
|
param = params[i];
|
|
13105
|
-
var val = param.substr(-1) === '*' ? $
|
|
13105
|
+
var val = param.substr(-1) === '*' ? $03ab44b9a3a3cd17$var$ustring(parameters[param]) : $03ab44b9a3a3cd17$var$qstring(parameters[param]);
|
|
13106
13106
|
string += '; ' + param + '=' + val;
|
|
13107
13107
|
}
|
|
13108
13108
|
}
|
|
@@ -13114,17 +13114,17 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13114
13114
|
* @param {string} str
|
|
13115
13115
|
* @return {string}
|
|
13116
13116
|
* @api private
|
|
13117
|
-
*/ function $
|
|
13118
|
-
var match = $
|
|
13117
|
+
*/ function $03ab44b9a3a3cd17$var$decodefield(str) {
|
|
13118
|
+
var match = $03ab44b9a3a3cd17$var$EXT_VALUE_REGEXP.exec(str);
|
|
13119
13119
|
if (!match) throw new TypeError('invalid extended field value');
|
|
13120
13120
|
var charset = match[1].toLowerCase();
|
|
13121
13121
|
var encoded = match[2];
|
|
13122
13122
|
var value;
|
|
13123
13123
|
// to binary string
|
|
13124
|
-
var binary = encoded.replace($
|
|
13124
|
+
var binary = encoded.replace($03ab44b9a3a3cd17$var$HEX_ESCAPE_REPLACE_REGEXP, $03ab44b9a3a3cd17$var$pdecode);
|
|
13125
13125
|
switch(charset){
|
|
13126
13126
|
case 'iso-8859-1':
|
|
13127
|
-
value = $
|
|
13127
|
+
value = $03ab44b9a3a3cd17$var$getlatin1(binary);
|
|
13128
13128
|
break;
|
|
13129
13129
|
case 'utf-8':
|
|
13130
13130
|
value = new Buffer(binary, 'binary').toString('utf8');
|
|
@@ -13140,9 +13140,9 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13140
13140
|
* @param {string} val
|
|
13141
13141
|
* @return {string}
|
|
13142
13142
|
* @api private
|
|
13143
|
-
*/ function $
|
|
13143
|
+
*/ function $03ab44b9a3a3cd17$var$getlatin1(val) {
|
|
13144
13144
|
// simple Unicode -> ISO-8859-1 transformation
|
|
13145
|
-
return String(val).replace($
|
|
13145
|
+
return String(val).replace($03ab44b9a3a3cd17$var$NON_LATIN1_REGEXP, '?');
|
|
13146
13146
|
}
|
|
13147
13147
|
/**
|
|
13148
13148
|
* Parse Content-Disposition header string.
|
|
@@ -13150,9 +13150,9 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13150
13150
|
* @param {string} string
|
|
13151
13151
|
* @return {object}
|
|
13152
13152
|
* @api private
|
|
13153
|
-
*/ function $
|
|
13153
|
+
*/ function $03ab44b9a3a3cd17$var$parse(string) {
|
|
13154
13154
|
if (!string || typeof string !== 'string') throw new TypeError('argument string is required');
|
|
13155
|
-
var match = $
|
|
13155
|
+
var match = $03ab44b9a3a3cd17$var$DISPOSITION_TYPE_REGEXP.exec(string);
|
|
13156
13156
|
if (!match) throw new TypeError('invalid type format');
|
|
13157
13157
|
// normalize type
|
|
13158
13158
|
var index = match[0].length;
|
|
@@ -13162,9 +13162,9 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13162
13162
|
var params = {};
|
|
13163
13163
|
var value;
|
|
13164
13164
|
// calculate index to start at
|
|
13165
|
-
index = $
|
|
13165
|
+
index = $03ab44b9a3a3cd17$var$PARAM_REGEXP.lastIndex = match[0].substr(-1) === ';' ? index - 1 : index;
|
|
13166
13166
|
// match parameters
|
|
13167
|
-
while(match = $
|
|
13167
|
+
while(match = $03ab44b9a3a3cd17$var$PARAM_REGEXP.exec(string)){
|
|
13168
13168
|
if (match.index !== index) throw new TypeError('invalid parameter format');
|
|
13169
13169
|
index += match[0].length;
|
|
13170
13170
|
key = match[1].toLowerCase();
|
|
@@ -13174,18 +13174,18 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13174
13174
|
if (key.indexOf('*') + 1 === key.length) {
|
|
13175
13175
|
// decode extended value
|
|
13176
13176
|
key = key.slice(0, -1);
|
|
13177
|
-
value = $
|
|
13177
|
+
value = $03ab44b9a3a3cd17$var$decodefield(value);
|
|
13178
13178
|
// overwrite existing value
|
|
13179
13179
|
params[key] = value;
|
|
13180
13180
|
continue;
|
|
13181
13181
|
}
|
|
13182
13182
|
if (typeof params[key] === 'string') continue;
|
|
13183
13183
|
if (value[0] === '"') // remove quotes and escapes
|
|
13184
|
-
value = value.substr(1, value.length - 2).replace($
|
|
13184
|
+
value = value.substr(1, value.length - 2).replace($03ab44b9a3a3cd17$var$QESC_REGEXP, '$1');
|
|
13185
13185
|
params[key] = value;
|
|
13186
13186
|
}
|
|
13187
13187
|
if (index !== -1 && index !== string.length) throw new TypeError('invalid parameter format');
|
|
13188
|
-
return new $
|
|
13188
|
+
return new $03ab44b9a3a3cd17$var$ContentDisposition(type, params);
|
|
13189
13189
|
}
|
|
13190
13190
|
/**
|
|
13191
13191
|
* Percent decode a single character.
|
|
@@ -13194,7 +13194,7 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13194
13194
|
* @param {string} hex
|
|
13195
13195
|
* @return {string}
|
|
13196
13196
|
* @api private
|
|
13197
|
-
*/ function $
|
|
13197
|
+
*/ function $03ab44b9a3a3cd17$var$pdecode(str, hex) {
|
|
13198
13198
|
return String.fromCharCode(parseInt(hex, 16));
|
|
13199
13199
|
}
|
|
13200
13200
|
/**
|
|
@@ -13203,7 +13203,7 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13203
13203
|
* @param {string} char
|
|
13204
13204
|
* @return {string}
|
|
13205
13205
|
* @api private
|
|
13206
|
-
*/ function $
|
|
13206
|
+
*/ function $03ab44b9a3a3cd17$var$pencode(char) {
|
|
13207
13207
|
var hex = String(char).charCodeAt(0).toString(16).toUpperCase();
|
|
13208
13208
|
return hex.length === 1 ? '%0' + hex : '%' + hex;
|
|
13209
13209
|
}
|
|
@@ -13213,9 +13213,9 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13213
13213
|
* @param {string} val
|
|
13214
13214
|
* @return {string}
|
|
13215
13215
|
* @api private
|
|
13216
|
-
*/ function $
|
|
13216
|
+
*/ function $03ab44b9a3a3cd17$var$qstring(val) {
|
|
13217
13217
|
var str = String(val);
|
|
13218
|
-
return '"' + str.replace($
|
|
13218
|
+
return '"' + str.replace($03ab44b9a3a3cd17$var$QUOTE_REGEXP, '\\$1') + '"';
|
|
13219
13219
|
}
|
|
13220
13220
|
/**
|
|
13221
13221
|
* Encode a Unicode string for HTTP (RFC 5987).
|
|
@@ -13223,15 +13223,15 @@ var $d08eb12d161683c9$var$TOKEN_REGEXP = /^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/;
|
|
|
13223
13223
|
* @param {string} val
|
|
13224
13224
|
* @return {string}
|
|
13225
13225
|
* @api private
|
|
13226
|
-
*/ function $
|
|
13226
|
+
*/ function $03ab44b9a3a3cd17$var$ustring(val) {
|
|
13227
13227
|
var str = String(val);
|
|
13228
13228
|
// percent encode as UTF-8
|
|
13229
|
-
var encoded = encodeURIComponent(str).replace($
|
|
13229
|
+
var encoded = encodeURIComponent(str).replace($03ab44b9a3a3cd17$var$ENCODE_URL_ATTR_CHAR_REGEXP, $03ab44b9a3a3cd17$var$pencode);
|
|
13230
13230
|
return 'UTF-8\'\'' + encoded;
|
|
13231
13231
|
}
|
|
13232
13232
|
/**
|
|
13233
13233
|
* Class for parsed Content-Disposition header for v8 optimization
|
|
13234
|
-
*/ function $
|
|
13234
|
+
*/ function $03ab44b9a3a3cd17$var$ContentDisposition(type, parameters) {
|
|
13235
13235
|
this.type = type;
|
|
13236
13236
|
this.parameters = parameters;
|
|
13237
13237
|
}
|
|
@@ -13597,7 +13597,7 @@ const $54fa85a6c98167c6$var$getHeaders = async (handlers, config, current, absol
|
|
|
13597
13597
|
// Default to "inline", which always tries to render in the browser,
|
|
13598
13598
|
// if that's not working, it will save the file. But to be clear: This
|
|
13599
13599
|
// only happens if it cannot find a appropiate value.
|
|
13600
|
-
'Content-Disposition': $
|
|
13600
|
+
'Content-Disposition': $03ab44b9a3a3cd17$exports(base, {
|
|
13601
13601
|
type: 'inline'
|
|
13602
13602
|
}),
|
|
13603
13603
|
'Accept-Ranges': 'bytes'
|
|
@@ -16827,8 +16827,8 @@ function $3b1aec1ac6768a60$export$1c94a12dbc96ed70(res) {
|
|
|
16827
16827
|
const $3b1aec1ac6768a60$var$SLASH_REGEX = /\//g;
|
|
16828
16828
|
const $3b1aec1ac6768a60$export$48c584f74c55688f = '/__parcel_source_root';
|
|
16829
16829
|
const $3b1aec1ac6768a60$var$EDITOR_ENDPOINT = '/__parcel_launch_editor';
|
|
16830
|
-
const $3b1aec1ac6768a60$var$TEMPLATE_404 = (0, ($parcel$interopDefault($impb2$fs))).readFileSync((0, ($parcel$interopDefault($impb2$path))).join($3b1aec1ac6768a60$var$$parcel$__dirname, 'templates/404.html'), 'utf8');
|
|
16831
|
-
const $3b1aec1ac6768a60$var$TEMPLATE_500 = (0, ($parcel$interopDefault($impb2$fs))).readFileSync((0, ($parcel$interopDefault($impb2$path))).join($3b1aec1ac6768a60$var$$parcel$__dirname, 'templates/500.html'), 'utf8');
|
|
16830
|
+
const $3b1aec1ac6768a60$var$TEMPLATE_404 = (0, ($parcel$interopDefault($impb2$fs))).readFileSync((0, ($parcel$interopDefault($impb2$path))).join($3b1aec1ac6768a60$var$$parcel$__dirname, '..', 'templates/404.html'), 'utf8');
|
|
16831
|
+
const $3b1aec1ac6768a60$var$TEMPLATE_500 = (0, ($parcel$interopDefault($impb2$fs))).readFileSync((0, ($parcel$interopDefault($impb2$path))).join($3b1aec1ac6768a60$var$$parcel$__dirname, '..', 'templates/500.html'), 'utf8');
|
|
16832
16832
|
class $3b1aec1ac6768a60$export$2e2bcd8739ae039 {
|
|
16833
16833
|
constructor(options){
|
|
16834
16834
|
this.options = options;
|
|
@@ -16917,8 +16917,9 @@ class $3b1aec1ac6768a60$export$2e2bcd8739ae039 {
|
|
|
16917
16917
|
let bundleDir = (0, ($parcel$interopDefault($impb2$path))).posix.dirname(bundle);
|
|
16918
16918
|
let bundleDirSubdir = bundleDir === '/' ? bundleDir : bundleDir + '/';
|
|
16919
16919
|
let withoutExtension = (0, ($parcel$interopDefault($impb2$path))).posix.basename(bundle, (0, ($parcel$interopDefault($impb2$path))).posix.extname(bundle));
|
|
16920
|
+
let isIndex = withoutExtension === 'index';
|
|
16920
16921
|
let matchesIsIndex = null;
|
|
16921
|
-
if (
|
|
16922
|
+
if (isIndex && (reqURL.startsWith(bundleDirSubdir) || reqURL === bundleDir)) // bundle is /bar/index.html and (/bar or something inside of /bar/** was requested was requested)
|
|
16922
16923
|
matchesIsIndex = true;
|
|
16923
16924
|
else if (reqURL == (0, ($parcel$interopDefault($impb2$path))).posix.join(bundleDir, withoutExtension)) // bundle is /bar/foo.html and /bar/foo was requested
|
|
16924
16925
|
matchesIsIndex = false;
|