@embeddable.com/sdk-core 3.9.1 → 3.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embeddable.com/sdk-core",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
5
5
  "keywords": [
6
6
  "embeddable",
package/src/dev.ts CHANGED
@@ -140,11 +140,13 @@ export default async () => {
140
140
 
141
141
  const done = finalhandler(request, res);
142
142
 
143
- if (request.url?.endsWith(GLOBAL_CSS)) {
144
- res.writeHead(200, { "Content-Type": "text/css" });
145
- res.end(fs.readFileSync(config.client.globalCss));
146
- return;
147
- }
143
+ try {
144
+ if (request.url?.endsWith(GLOBAL_CSS)) {
145
+ res.writeHead(200, { "Content-Type": "text/css" });
146
+ res.end(fs.readFileSync(config.client.globalCss));
147
+ return;
148
+ }
149
+ } catch {}
148
150
 
149
151
  serve(request, res, done);
150
152
  },