@pgsql/utils 17.8.1 → 17.8.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/README.md CHANGED
@@ -1,17 +1,17 @@
1
1
  # @pgsql/utils
2
2
 
3
3
  <p align="center" width="100%">
4
- <img height="120" src="https://github.com/launchql/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
4
+ <img height="120" src="https://github.com/constructive-io/pgsql-parser/assets/545047/6440fa7d-918b-4a3b-8d1b-755d85de8bea" />
5
5
  </p>
6
6
 
7
7
  <p align="center" width="100%">
8
- <a href="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml">
9
- <img height="20" src="https://github.com/launchql/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg" />
8
+ <a href="https://github.com/constructive-io/pgsql-parser/actions/workflows/run-tests.yaml">
9
+ <img height="20" src="https://github.com/constructive-io/pgsql-parser/actions/workflows/run-tests.yaml/badge.svg" />
10
10
  </a>
11
11
  <!-- <a href="https://www.npmjs.com/package/@pgsql/utils"><img height="20" src="https://img.shields.io/npm/dt/@pgsql/utils"></a> -->
12
12
  <!-- <a href="https://www.npmjs.com/package/@pgsql/utils"><img height="20" src="https://img.shields.io/npm/dw/@pgsql/utils"/></a> -->
13
- <a href="https://github.com/launchql/pgsql-parser/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
14
- <a href="https://www.npmjs.com/package/@pgsql/utils"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgsql-parser?filename=packages%2Futils%2Fpackage.json"/></a>
13
+ <a href="https://github.com/constructive-io/pgsql-parser/blob/main/LICENSE-MIT"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
14
+ <a href="https://www.npmjs.com/package/@pgsql/utils"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/pgsql-parser?filename=packages%2Futils%2Fpackage.json"/></a>
15
15
  </p>
16
16
 
17
17
  `@pgsql/utils` is a companion utility library for `@pgsql/types`, offering convenient functions to work with PostgreSQL Abstract Syntax Tree (AST) nodes and enums in a type-safe manner. This library facilitates the creation of AST nodes and simplifies the process of converting between enum names and their respective integer values, as defined in the PostgreSQL parser output.
@@ -182,6 +182,8 @@ console.log(sql);
182
182
 
183
183
  ---
184
184
 
185
+ **🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
186
+
185
187
  ## Related
186
188
 
187
189
  * [pgsql-parser](https://www.npmjs.com/package/pgsql-parser): The real PostgreSQL parser for Node.js, providing symmetric parsing and deparsing of SQL statements with actual PostgreSQL parser integration.
@@ -192,7 +194,7 @@ console.log(sql);
192
194
  * [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): A comprehensive utility library for PostgreSQL, offering type-safe AST node creation and enum value conversions, simplifying the construction and manipulation of PostgreSQL ASTs.
193
195
  * [@pgsql/traverse](https://www.npmjs.com/package/@pgsql/traverse): PostgreSQL AST traversal utilities for pgsql-parser, providing a visitor pattern for traversing PostgreSQL Abstract Syntax Tree nodes, similar to Babel's traverse functionality but specifically designed for PostgreSQL AST structures.
194
196
  * [pg-proto-parser](https://www.npmjs.com/package/pg-proto-parser): A TypeScript tool that parses PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
195
- * [libpg-query](https://github.com/launchql/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
197
+ * [libpg-query](https://github.com/constructive-io/libpg-query-node): The real PostgreSQL parser exposed for Node.js, used primarily in `pgsql-parser` for parsing and deparsing SQL queries.
196
198
 
197
199
  ## Disclaimer
198
200
 
package/asts.js CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /**
7
- * This file was automatically generated by pg-proto-parser@1.30.1.
7
+ * This file was automatically generated by pg-proto-parser@1.30.2.
8
8
  * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
9
9
  * and run the pg-proto-parser generate command to regenerate this file.
10
10
  */
package/esm/asts.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by pg-proto-parser@1.30.1.
2
+ * This file was automatically generated by pg-proto-parser@1.30.2.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
4
  * and run the pg-proto-parser generate command to regenerate this file.
5
5
  */
package/esm/wrapped.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by pg-proto-parser@1.30.1.
2
+ * This file was automatically generated by pg-proto-parser@1.30.2.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
4
  * and run the pg-proto-parser generate command to regenerate this file.
5
5
  */
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@pgsql/utils",
3
- "version": "17.8.1",
4
- "author": "Dan Lynch <pyramation@gmail.com>",
3
+ "version": "17.8.2",
4
+ "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL AST utils for pgsql-parser",
6
6
  "main": "index.js",
7
7
  "module": "esm/index.js",
8
8
  "types": "index.d.ts",
9
- "homepage": "https://github.com/launchql/pgsql-parser",
9
+ "homepage": "https://github.com/constructive-io/pgsql-parser",
10
10
  "license": "MIT",
11
11
  "publishConfig": {
12
12
  "access": "public",
@@ -14,10 +14,10 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "https://github.com/launchql/pgsql-parser"
17
+ "url": "https://github.com/constructive-io/pgsql-parser"
18
18
  },
19
19
  "bugs": {
20
- "url": "https://github.com/launchql/pgsql-parser/issues"
20
+ "url": "https://github.com/constructive-io/pgsql-parser/issues"
21
21
  },
22
22
  "scripts": {
23
23
  "copy": "makage assets",
@@ -31,14 +31,14 @@
31
31
  "test:watch": "jest --watch"
32
32
  },
33
33
  "devDependencies": {
34
- "makage": "^0.1.3",
35
- "pg-proto-parser": "1.30.1",
36
- "pgsql-deparser": "17.12.1"
34
+ "makage": "^0.1.8",
35
+ "pg-proto-parser": "1.30.2",
36
+ "pgsql-deparser": "17.12.2"
37
37
  },
38
38
  "dependencies": {
39
- "@pgsql/types": "^17.6.1",
40
- "nested-obj": "0.1.1"
39
+ "@pgsql/types": "^17.6.2",
40
+ "nested-obj": "0.1.5"
41
41
  },
42
42
  "keywords": [],
43
- "gitHead": "da3ab5c3f032c80958902486ef4fd6dc236e0e12"
43
+ "gitHead": "de2ac125ad90c1299238b4c2f24d355bde36adb7"
44
44
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by pg-proto-parser@1.30.1.
2
+ * This file was automatically generated by pg-proto-parser@1.30.2.
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
4
4
  * and run the pg-proto-parser generate command to regenerate this file.
5
5
  */
package/wrapped.js CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  /**
7
- * This file was automatically generated by pg-proto-parser@1.30.1.
7
+ * This file was automatically generated by pg-proto-parser@1.30.2.
8
8
  * DO NOT MODIFY IT BY HAND. Instead, modify the source proto file,
9
9
  * and run the pg-proto-parser generate command to regenerate this file.
10
10
  */