miqro 1.7.20 → 1.7.24

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/dist/cli.js CHANGED
@@ -24,6 +24,7 @@ const db_createmodel_1 = require("./cmds/db-createmodel");
24
24
  const db_push_data_1 = require("./cmds/db-push-data");
25
25
  const db_dump_data_1 = require("./cmds/db-dump-data");
26
26
  const db_migrate_1 = require("./cmds/db-migrate");
27
+ const wc_cache_templates_1 = require("./cmds/wc-cache-templates");
27
28
  // noinspection SpellCheckingInspection
28
29
  (0, utils_1.mainCMD)({
29
30
  ["new"]: { section: "quick start", cb: new_1.mainJS, tabs: 5, description: `create a new project. ${new_1.usageJS}` },
@@ -69,11 +70,11 @@ const db_migrate_1 = require("./cmds/db-migrate");
69
70
  tabs: 5,
70
71
  cb: serve_1.main, description: `serve static files. ${serve_1.usage}`
71
72
  },
72
- /*["generate:html:cache"]: {
73
- section: "web components",
74
- tabs: 6,
75
- cb: generateTemplatesCache, description: `generate cache.js for webcomponents. ${generateTemplatesCacheUsage}`
76
- },*/
73
+ ["generate:template:cache"]: {
74
+ section: "web components",
75
+ tabs: 6,
76
+ cb: wc_cache_templates_1.main, description: `generate a cache.json for webcomponents. ${wc_cache_templates_1.usage}`
77
+ },
77
78
  ["doc"]: {
78
79
  section: "api documentation",
79
80
  tabs: 5,
@@ -57,7 +57,7 @@ const main = () => {
57
57
  const proxyURL = new url_1.URL(proxySplit[1]);
58
58
  proxyURL.pathname = (0, tokenize_match_1.normalizePath)(proxyURL.pathname);
59
59
  const proxyRouter = (0, core_1.Proxy)({
60
- url: proxyURL.toString(), rejectUnauthorized: !flags.flags.hasOwnProperty("proxy-cert-ignore")
60
+ url: proxyURL.toString(), rejectUnauthorized: flags.flags["proxy-cert-ignore"] ? true : false
61
61
  });
62
62
  console.log("setting up proxy to %s on %s", proxyURL.toString(), proxyPath);
63
63
  proxyRouter.use((0, core_1.ReadBuffer)());
@@ -71,7 +71,7 @@ const main = () => {
71
71
  index404Status: flags.flags.index404Status ? parseInt(flags.flags.index404Status, 10) : undefined
72
72
  }), path);
73
73
  app.listen(PORT, () => {
74
- console.log("serving " + directory + " on " + path + " on port " + PORT);
74
+ console.log("serving " + directory + " on http://localhost:%s%s", PORT, path);
75
75
  });
76
76
  };
77
77
  exports.main = main;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miqro",
3
- "version": "1.7.20",
3
+ "version": "1.7.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "author": "claukers",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@miqro/core": "^1.5.18",
21
- "@miqro/parser": "^0.1.3",
20
+ "@miqro/core": "^1.5.21",
21
+ "@miqro/parser": "^0.1.4",
22
22
  "@miqro/runner": "^1.2.8",
23
23
  "@miqro/test": "^0.2.1",
24
24
  "deep-diff": "1.0.2"