@joystick.js/node-canary 0.0.0-canary.84 → 0.0.0-canary.86

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.
@@ -23,10 +23,9 @@ var postgresql_default = async (settings = {}, databasePort = 2610) => {
23
23
  });
24
24
  return {
25
25
  pool,
26
- query: async (...args) => {
27
- const client = await pool.connect();
28
- const response = await client.query(...args).then((response2) => {
29
- return response2?.rows || [];
26
+ query: (...args) => {
27
+ return pool.query(...args).then((response) => {
28
+ return response?.rows || [];
30
29
  }).catch((error) => {
31
30
  console.log(chalk.redBright(`
32
31
  Failed SQL Statement:
@@ -40,8 +39,6 @@ Failed Values:
40
39
  console.log(args[1]);
41
40
  throw error;
42
41
  });
43
- client.release();
44
- return response;
45
42
  }
46
43
  };
47
44
  } catch (exception) {
@@ -25,9 +25,8 @@ const flattenAndReplaceWhenElements = (dom = {}, options = {}) => {
25
25
  };
26
26
  var replaceWhenTags_default = (html = "") => {
27
27
  try {
28
- const { document: parseHTMLDocument } = parseHTML(html);
29
- const dom = flattenAndReplaceWhenElements(parseHTMLDocument);
30
- return dom.toString();
28
+ const whenRegex = new RegExp("<when>|</when>", "g");
29
+ return html?.replace(whenRegex, "");
31
30
  } catch (exception) {
32
31
  throw new Error(`[ssr.replaceWhenTags] ${exception.message}`);
33
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/node-canary",
3
- "version": "0.0.0-canary.84",
3
+ "version": "0.0.0-canary.86",
4
4
  "type": "module",
5
5
  "description": "A Node.js framework for building web apps.",
6
6
  "main": "./dist/index.js",