@atlaspack/reporter-dev-server 2.12.1-dev.3368 → 2.12.1-dev.3401

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/reporter-dev-server",
3
- "version": "2.12.1-dev.3368+af1db7f65",
3
+ "version": "2.12.1-dev.3401+b483af77f",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -14,7 +14,7 @@
14
14
  "source": "src/ServerReporter.js",
15
15
  "engines": {
16
16
  "node": ">= 16.0.0",
17
- "atlaspack": "^2.12.1-dev.3368+af1db7f65"
17
+ "parcel": "^2.12.1-dev.3401+b483af77f"
18
18
  },
19
19
  "targets": {
20
20
  "main": {
@@ -25,12 +25,12 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@atlaspack/plugin": "2.12.1-dev.3368+af1db7f65",
29
- "@atlaspack/utils": "2.12.1-dev.3368+af1db7f65"
28
+ "@atlaspack/plugin": "2.12.1-dev.3401+b483af77f",
29
+ "@atlaspack/utils": "2.12.1-dev.3401+b483af77f"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@atlaspack/babel-preset": "2.12.0",
33
- "@atlaspack/types": "2.12.1-dev.3368+af1db7f65",
33
+ "@atlaspack/types": "2.12.1-dev.3401+b483af77f",
34
34
  "connect": "^3.7.0",
35
35
  "ejs": "^3.1.6",
36
36
  "fresh": "^0.5.2",
@@ -41,5 +41,5 @@
41
41
  "serve-handler": "^6.0.0",
42
42
  "ws": "^7.0.0"
43
43
  },
44
- "gitHead": "af1db7f65c4816917ddf83716deedc536a1b8b27"
44
+ "gitHead": "b483af77f02d1258c8dad156e097b94f83671d8e"
45
45
  }
package/src/HMRServer.js CHANGED
@@ -56,7 +56,7 @@ export type HMRMessage =
56
56
  |};
57
57
 
58
58
  const FS_CONCURRENCY = 64;
59
- const HMR_ENDPOINT = '/__atlaspack_hmr';
59
+ const HMR_ENDPOINT = '/__parcel_hmr';
60
60
  const BROADCAST_MAX_ASSETS = 10000;
61
61
 
62
62
  export default class HMRServer {
@@ -241,7 +241,7 @@ export default class HMRServer {
241
241
  let bundleGraph = nullthrows(this.bundleGraph);
242
242
  if (asset.type === 'js') {
243
243
  let publicId = bundleGraph.getAssetPublicId(asset);
244
- output = `atlaspackHotUpdate['${publicId}'] = function (require, module, exports) {${output}}`;
244
+ output = `parcelHotUpdate['${publicId}'] = function (require, module, exports) {${output}}`;
245
245
  }
246
246
 
247
247
  let sourcemap = await asset.getMap();
package/src/Server.js CHANGED
@@ -48,8 +48,8 @@ export function setHeaders(res: Response) {
48
48
 
49
49
  const SLASH_REGEX = /\//g;
50
50
 
51
- export const SOURCES_ENDPOINT = '/__atlaspack_source_root';
52
- const EDITOR_ENDPOINT = '/__atlaspack_launch_editor';
51
+ export const SOURCES_ENDPOINT = '/__parcel_source_root';
52
+ const EDITOR_ENDPOINT = '/__parcel_launch_editor';
53
53
  const TEMPLATE_404 = fs.readFileSync(
54
54
  path.join(__dirname, 'templates/404.html'),
55
55
  'utf8',
@@ -146,7 +146,7 @@ export default class Server {
146
146
  let query = new URLSearchParams(search);
147
147
  let file = query.get('file');
148
148
  if (file) {
149
- // File location might start with /__atlaspack_source_root if it came from a source map.
149
+ // File location might start with /__parcel_source_root if it came from a source map.
150
150
  if (file.startsWith(SOURCES_ENDPOINT)) {
151
151
  file = file.slice(SOURCES_ENDPOINT.length + 1);
152
152
  }
@@ -482,7 +482,7 @@ export default class Server {
482
482
  const finalHandler = (req: Request, res: Response) => {
483
483
  this.logAccessIfVerbose(req);
484
484
 
485
- // Wait for the atlaspackInstance to finish bundling if needed
485
+ // Wait for the parcelInstance to finish bundling if needed
486
486
  if (this.pending) {
487
487
  this.pendingRequests.push([req, res]);
488
488
  } else {
@@ -497,7 +497,7 @@ export default class Server {
497
497
  });
498
498
 
499
499
  app.use((req, res, next) => {
500
- if (req.url === '/__atlaspack_healthcheck') {
500
+ if (req.url === '/__parcel_healthcheck') {
501
501
  res.statusCode = 200;
502
502
  res.write(`${Date.now()}`);
503
503
  res.end();
@@ -10,7 +10,7 @@
10
10
  color-scheme: dark light;
11
11
  background-color: #282c33;
12
12
  }
13
-
13
+
14
14
  body {
15
15
  margin: 0;
16
16
  font-family: sans-serif;
@@ -70,11 +70,11 @@
70
70
  </style>
71
71
  </head>
72
72
  <body>
73
- <h1 class="title-heading">🚨 Atlaspack encountered errors</h1>
73
+ <h1 class="title-heading">🚨 Parcel encountered errors</h1>
74
74
  <% errors.forEach(function(error){ %>
75
75
  <h2 class="error-message"><%- error.message %></h2>
76
76
 
77
- <div class="error-stack-trace"><% if (error.frames?.length) { %><% error.frames.forEach(function(frame){ %><a href="/__atlaspack_launch_editor?file=<%- encodeURIComponent(frame.location) %>" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false"><%- frame.location %></a>
77
+ <div class="error-stack-trace"><% if (error.frames?.length) { %><% error.frames.forEach(function(frame){ %><a href="/__parcel_launch_editor?file=<%- encodeURIComponent(frame.location) %>" style="text-decoration: underline; color: #888" onclick="fetch(this.href); return false"><%- frame.location %></a>
78
78
  <%- frame.code %><% }); %><% } else { %><%- error.stack %><% } %></div>
79
79
  <ul class="error-hints-container">
80
80
  <% error.hints.forEach(function(hint){ %>