@pgsql/utils 17.5.2 → 17.6.0

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/index.js CHANGED
@@ -1,22 +1,14 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
17
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
4
  };
19
5
  Object.defineProperty(exports, "__esModule", { value: true });
20
- __exportStar(require("./utils"), exports);
6
+ exports.ast = exports.nodes = void 0;
21
7
  const asts_1 = __importDefault(require("./asts"));
22
- exports.default = asts_1.default;
8
+ exports.ast = asts_1.default;
9
+ const wrapped_1 = __importDefault(require("./wrapped"));
10
+ exports.nodes = wrapped_1.default;
11
+ exports.default = {
12
+ nodes: wrapped_1.default,
13
+ ast: asts_1.default
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgsql/utils",
3
- "version": "17.5.2",
3
+ "version": "17.6.0",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "PostgreSQL AST utils for pgsql-parser",
6
6
  "main": "index.js",
@@ -31,12 +31,13 @@
31
31
  "test:watch": "jest --watch"
32
32
  },
33
33
  "devDependencies": {
34
- "pg-proto-parser": "^1.28.2"
34
+ "pg-proto-parser": "^1.29.0",
35
+ "pgsql-deparser": "^17.7.0"
35
36
  },
36
37
  "dependencies": {
37
- "@pgsql/types": "^17.5.2",
38
+ "@pgsql/types": "^17.6.1",
38
39
  "nested-obj": "0.0.1"
39
40
  },
40
41
  "keywords": [],
41
- "gitHead": "dfffa6417d453373e59e6e57449ee813fb547403"
42
+ "gitHead": "e0f9b0579328f4206c315d499e0e2045d3b8f845"
42
43
  }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was automatically generated by pg-proto-parser@1.29.0.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
+ * and run the pg-proto-parser generate command to regenerate this file.
5
+ */
6
+ export interface FieldSpec {
7
+ name: string;
8
+ type: string;
9
+ isNode: boolean;
10
+ isArray: boolean;
11
+ optional: boolean;
12
+ }
13
+ export interface NodeSpec {
14
+ name: string;
15
+ isNode: boolean;
16
+ fields: FieldSpec[];
17
+ }
18
+ export declare const runtimeSchema: NodeSpec[];