@atlaspack/reporter-dev-server 2.14.17-unified-e330ff3d9.0 → 2.14.18-unified-f92fba5b6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaspack/reporter-dev-server
2
2
 
3
+ ## 2.14.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/utils@2.16.1
9
+ - @atlaspack/plugin@2.14.17
10
+
3
11
  ## 2.14.16
4
12
 
5
13
  ### Patch Changes
@@ -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 (withoutExtension === 'index' && (reqURL.startsWith(bundleDirSubdir) || reqURL === bundleDir)) // bundle is /bar/index.html and (/bar or something inside of /bar/** was requested was requested)
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;