pgsql-deparser 17.17.0 → 17.17.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/deparser.js CHANGED
@@ -3984,7 +3984,7 @@ class Deparser {
3984
3984
  output.push('IF NOT EXISTS');
3985
3985
  }
3986
3986
  if (node.schemaname) {
3987
- output.push(node.schemaname);
3987
+ output.push(quote_utils_1.QuoteUtils.quoteIdentifier(node.schemaname));
3988
3988
  }
3989
3989
  if (node.authrole) {
3990
3990
  output.push('AUTHORIZATION');
package/esm/deparser.js CHANGED
@@ -3981,7 +3981,7 @@ export class Deparser {
3981
3981
  output.push('IF NOT EXISTS');
3982
3982
  }
3983
3983
  if (node.schemaname) {
3984
- output.push(node.schemaname);
3984
+ output.push(QuoteUtils.quoteIdentifier(node.schemaname));
3985
3985
  }
3986
3986
  if (node.authrole) {
3987
3987
  output.push('AUTHORIZATION');
package/esm/index.js CHANGED
@@ -7,3 +7,4 @@ export const deparse = async (...args) => {
7
7
  return deparseMethod(...args);
8
8
  };
9
9
  export { Deparser };
10
+ export { QuoteUtils } from './utils/quote-utils';
package/index.d.ts CHANGED
@@ -3,3 +3,4 @@ declare const deparseMethod: typeof Deparser.deparse;
3
3
  export declare const deparseSync: typeof Deparser.deparse;
4
4
  export declare const deparse: (...args: Parameters<typeof deparseMethod>) => Promise<ReturnType<typeof deparseMethod>>;
5
5
  export { Deparser, DeparserOptions };
6
+ export { QuoteUtils } from './utils/quote-utils';
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Deparser = exports.deparse = exports.deparseSync = void 0;
3
+ exports.QuoteUtils = exports.Deparser = exports.deparse = exports.deparseSync = void 0;
4
4
  const deparser_1 = require("./deparser");
5
5
  Object.defineProperty(exports, "Deparser", { enumerable: true, get: function () { return deparser_1.Deparser; } });
6
6
  const deparseMethod = deparser_1.Deparser.deparse;
@@ -11,3 +11,5 @@ const deparse = async (...args) => {
11
11
  return deparseMethod(...args);
12
12
  };
13
13
  exports.deparse = deparse;
14
+ var quote_utils_1 = require("./utils/quote-utils");
15
+ Object.defineProperty(exports, "QuoteUtils", { enumerable: true, get: function () { return quote_utils_1.QuoteUtils; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-deparser",
3
- "version": "17.17.0",
3
+ "version": "17.17.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL AST Deparser",
6
6
  "main": "index.js",
@@ -60,5 +60,5 @@
60
60
  "dependencies": {
61
61
  "@pgsql/types": "^17.6.2"
62
62
  },
63
- "gitHead": "529f487216d0ca3d93b1dea2e6411a1e5432d183"
63
+ "gitHead": "65aeb17fd6ba57c698831988bb8e4efb942ca4e1"
64
64
  }