@pgsql/utils 17.8.0 → 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.
@@ -180,6 +180,10 @@ console.log(sql);
180
180
  // )
181
181
  ```
182
182
 
183
+ ---
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
+
183
187
  ## Related
184
188
 
185
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.
@@ -190,10 +194,10 @@ console.log(sql);
190
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.
191
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.
192
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.
193
- * [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.
194
198
 
195
199
  ## Disclaimer
196
200
 
197
201
  AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
198
202
 
199
- No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
203
+ No developer or entity involved in creating Software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the Software code or Software CLI, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.
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.0.
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.0.
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.0.
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.0",
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,15 +14,15 @@
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
- "copy": "copyfiles -f ../../LICENSE README.md package.json dist",
24
- "clean": "rimraf dist",
25
- "prepare": "npm run build",
23
+ "copy": "makage assets",
24
+ "clean": "makage clean dist",
25
+ "prepublishOnly": "npm run build",
26
26
  "build": "npm run build:proto && npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
27
27
  "build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
28
28
  "build:proto": "ts-node scripts/pg-proto-parser",
@@ -31,13 +31,14 @@
31
31
  "test:watch": "jest --watch"
32
32
  },
33
33
  "devDependencies": {
34
- "pg-proto-parser": "^1.30.0",
35
- "pgsql-deparser": "^17.12.0"
34
+ "makage": "^0.1.8",
35
+ "pg-proto-parser": "1.30.2",
36
+ "pgsql-deparser": "17.12.2"
36
37
  },
37
38
  "dependencies": {
38
- "@pgsql/types": "^17.6.1",
39
- "nested-obj": "0.0.1"
39
+ "@pgsql/types": "^17.6.2",
40
+ "nested-obj": "0.1.5"
40
41
  },
41
42
  "keywords": [],
42
- "gitHead": "3ae060bb9e0edcf8869d6e9da350216d6c6e01cf"
43
+ "gitHead": "de2ac125ad90c1299238b4c2f24d355bde36adb7"
43
44
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file was automatically generated by pg-proto-parser@1.30.0.
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.0.
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
  */