pgsql-parser 17.8.2 → 17.9.1

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
@@ -132,6 +132,8 @@ Built on the excellent work of several contributors:
132
132
  * **[Ethan Resnick](https://github.com/ethanresnick)** for the original Node.js N-API bindings
133
133
  * **[Zac McCormick](https://github.com/zhm)** for the foundational [node-pg-query-native](https://github.com/zhm/node-pg-query-native) parser
134
134
 
135
+ ---
136
+
135
137
  ## Related
136
138
 
137
139
  * [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.
package/esm/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { parse as parse, parseSync as parseSync, loadModule as loadModule } from 'libpg-query';
2
- export { deparse, deparseSync, } from 'pgsql-deparser';
3
- export * from '@pgsql/types';
2
+ export { deparse, deparseSync } from 'pgsql-deparser';
package/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { parse as parse, parseSync as parseSync, loadModule as loadModule } from 'libpg-query';
2
- export { deparse, deparseSync, } from 'pgsql-deparser';
3
- export * from '@pgsql/types';
2
+ export { deparse, deparseSync } from 'pgsql-deparser';
package/index.js CHANGED
@@ -1,18 +1,4 @@
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
  Object.defineProperty(exports, "__esModule", { value: true });
17
3
  exports.deparseSync = exports.deparse = exports.loadModule = exports.parseSync = exports.parse = void 0;
18
4
  var libpg_query_1 = require("libpg-query");
@@ -22,4 +8,3 @@ Object.defineProperty(exports, "loadModule", { enumerable: true, get: function (
22
8
  var pgsql_deparser_1 = require("pgsql-deparser");
23
9
  Object.defineProperty(exports, "deparse", { enumerable: true, get: function () { return pgsql_deparser_1.deparse; } });
24
10
  Object.defineProperty(exports, "deparseSync", { enumerable: true, get: function () { return pgsql_deparser_1.deparseSync; } });
25
- __exportStar(require("@pgsql/types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-parser",
3
- "version": "17.8.2",
3
+ "version": "17.9.1",
4
4
  "author": "Dan Lynch <pyramation@gmail.com>",
5
5
  "description": "The real PostgreSQL query parser",
6
6
  "main": "index.js",
@@ -20,10 +20,16 @@
20
20
  "url": "https://github.com/launchql/pgsql-parser/issues"
21
21
  },
22
22
  "scripts": {
23
- "copy": "copyfiles -f ../../../../LICENSE README.md package.json dist",
24
- "clean": "rimraf dist",
23
+ "copy": "makage assets",
24
+ "clean": "makage clean dist",
25
+ "prepublishOnly": "npm run build",
25
26
  "build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
26
- "publish:pkg": "npm publish --tag pg17"
27
+ "build:dev": "npm run clean && tsc --declarationMap && tsc -p tsconfig.esm.json && npm run copy",
28
+ "lint": "eslint . --fix",
29
+ "test": "jest",
30
+ "test:watch": "jest --watch",
31
+ "prepare-versions": "ts-node scripts/prepare-versions.ts",
32
+ "test:ast": "ts-node scripts/test-ast.ts"
27
33
  },
28
34
  "keywords": [
29
35
  "sql",
@@ -35,8 +41,12 @@
35
41
  "database"
36
42
  ],
37
43
  "dependencies": {
38
- "@pgsql/types": "17.6.1",
44
+ "@pgsql/types": "^17.6.1",
39
45
  "libpg-query": "17.6.0",
40
- "pgsql-deparser": "17.11.1"
41
- }
42
- }
46
+ "pgsql-deparser": "17.12.1"
47
+ },
48
+ "devDependencies": {
49
+ "makage": "^0.1.3"
50
+ },
51
+ "gitHead": "da3ab5c3f032c80958902486ef4fd6dc236e0e12"
52
+ }