construct-hub-webapp 0.1.487 → 0.1.488

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/build/index.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTf and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script>var AWSMA={config:{customPageview:!0}}</script><script src="https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js"></script><script defer="defer" src="/static/js/main.50cddec1.js"></script><link href="/static/css/main.60c3637f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><script src="/preload.js"></script><meta charset="utf-8"/><meta name="description" content="Construct Hub helps developers find open-source construct libraries for use with AWS CDK, CDK8s, CDKTf and other construct-based tools."/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="manifest" href="/manifest.json"><meta name="theme-color" content="#ffffff"><title>Construct Hub</title><script defer="defer" src="/static/js/main.50cddec1.js"></script><link href="/static/css/main.60c3637f.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
package/package.json CHANGED
@@ -115,7 +115,7 @@
115
115
  "node": ">= 14.17.0"
116
116
  },
117
117
  "license": "Apache-2.0",
118
- "version": "0.1.487",
118
+ "version": "0.1.488",
119
119
  "eslintConfig": {
120
120
  "extends": [
121
121
  "react-app",
@@ -12,11 +12,13 @@ const port = process.env.PORT || 3000;
12
12
 
13
13
  const buildDir = path.join(__dirname, "..", "build");
14
14
 
15
+ const PROXY_FILES = [".json", ".md", "preload.js"];
16
+
15
17
  app.use(express.static(buildDir));
16
18
 
17
19
  app.use(
18
20
  proxy(proxyUrl, {
19
- filter: (req) => req.url.includes(".json") || req.url.includes(".md"),
21
+ filter: (req) => PROXY_FILES.some((file) => req.url.includes(file)),
20
22
  })
21
23
  );
22
24