@atlaspack/reporter-dev-server 2.14.15-alshintegrationtestslib.0 → 2.14.15-dev.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.
@@ -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,9 +16917,8 @@ 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';
16921
16920
  let matchesIsIndex = null;
16922
- if (isIndex && (reqURL.startsWith(bundleDirSubdir) || reqURL === bundleDir)) // bundle is /bar/index.html and (/bar or something inside of /bar/** was requested was requested)
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)
16923
16922
  matchesIsIndex = true;
16924
16923
  else if (reqURL == (0, ($parcel$interopDefault($impb2$path))).posix.join(bundleDir, withoutExtension)) // bundle is /bar/foo.html and /bar/foo was requested
16925
16924
  matchesIsIndex = false;