pgsql-deparser 13.15.0 → 14.0.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.
Files changed (62) hide show
  1. package/README.md +88 -45
  2. package/dist/README.md +160 -0
  3. package/dist/deparser/deparser.d.ts +301 -0
  4. package/dist/deparser/deparser.js +10005 -0
  5. package/dist/deparser/index.d.ts +9 -0
  6. package/dist/deparser/index.js +17 -0
  7. package/dist/deparser/utils/list-utils.d.ts +8 -0
  8. package/dist/deparser/utils/list-utils.js +30 -0
  9. package/dist/deparser/utils/quote-utils.d.ts +24 -0
  10. package/dist/deparser/utils/quote-utils.js +89 -0
  11. package/dist/deparser/utils/sql-formatter.d.ts +16 -0
  12. package/dist/deparser/utils/sql-formatter.js +40 -0
  13. package/dist/deparser/visitors/base.d.ts +21 -0
  14. package/dist/deparser/visitors/base.js +34 -0
  15. package/dist/esm/deparser/deparser.js +10001 -0
  16. package/dist/esm/deparser/index.js +13 -0
  17. package/dist/esm/deparser/utils/list-utils.js +26 -0
  18. package/dist/esm/deparser/utils/quote-utils.js +85 -0
  19. package/dist/esm/deparser/utils/sql-formatter.js +36 -0
  20. package/dist/esm/deparser/visitors/base.js +30 -0
  21. package/dist/esm/index.js +15 -0
  22. package/dist/esm/v14-to-v15.js +1220 -0
  23. package/dist/esm/v14-to-v17-direct.js +67 -0
  24. package/dist/esm/v15-to-v16.js +2881 -0
  25. package/dist/esm/v16-to-v17.js +1488 -0
  26. package/dist/index.d.ts +9 -0
  27. package/dist/index.js +19 -0
  28. package/dist/package.json +42 -0
  29. package/dist/v14-to-v15.d.ts +616 -0
  30. package/dist/v14-to-v15.js +1224 -0
  31. package/dist/v14-to-v17-direct.d.ts +23 -0
  32. package/dist/v14-to-v17-direct.js +71 -0
  33. package/dist/v15-to-v16.d.ts +627 -0
  34. package/dist/v15-to-v16.js +2885 -0
  35. package/dist/v16-to-v17.d.ts +638 -0
  36. package/dist/v16-to-v17.js +1492 -0
  37. package/package.json +26 -73
  38. package/src/deparser/deparser.ts +10026 -0
  39. package/src/deparser/index.ts +14 -0
  40. package/src/deparser/utils/list-utils.ts +27 -0
  41. package/src/deparser/utils/quote-utils.ts +86 -0
  42. package/src/deparser/utils/sql-formatter.ts +37 -0
  43. package/src/deparser/visitors/base.ts +40 -0
  44. package/src/index.ts +27 -3
  45. package/src/v14-to-v15.ts +1621 -0
  46. package/src/v14-to-v17-direct.ts +68 -0
  47. package/src/v15-to-v16.ts +3290 -0
  48. package/src/v16-to-v17.ts +1897 -0
  49. package/tsconfig.esm.json +8 -0
  50. package/tsconfig.json +26 -0
  51. package/main/deparser.js +0 -3481
  52. package/main/index.js +0 -10
  53. package/main/utils/index.js +0 -97
  54. package/module/deparser.js +0 -3478
  55. package/module/index.js +0 -3
  56. package/module/utils/index.js +0 -90
  57. package/src/deparser.ts +0 -4220
  58. package/src/utils/index.ts +0 -92
  59. package/types/deparser.d.ts +0 -119
  60. package/types/index.d.ts +0 -3
  61. package/types/utils/index.d.ts +0 -4
  62. /package/{LICENSE → dist/LICENSE} +0 -0
package/package.json CHANGED
@@ -1,23 +1,29 @@
1
1
  {
2
- "name": "pgsql-deparser",
3
- "version": "13.15.0",
4
- "description": "PostgreSQL AST Deparser",
5
2
  "author": "Dan Lynch <pyramation@gmail.com>",
6
3
  "homepage": "https://github.com/launchql/pgsql-parser",
7
- "license": "SEE LICENSE IN LICENSE",
8
- "main": "main/index.js",
9
- "module": "module/index.js",
10
- "typings": "types/index.d.ts",
11
- "directories": {
12
- "lib": "src",
13
- "test": "__tests__"
4
+ "license": "MIT",
5
+ "main": "index.js",
6
+ "module": "esm/index.js",
7
+ "types": "index.d.ts",
8
+ "description": "PostgreSQL AST Deparser",
9
+ "scripts": {
10
+ "copy": "copyfiles -f ../../../../LICENSE README.md package.json dist",
11
+ "clean": "rimraf dist",
12
+ "prepare": "npm run build",
13
+ "build": "npm run clean && tsc && tsc -p tsconfig.esm.json && npm run copy",
14
+ "publish:pkg": "npm publish --tag pg14"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "directory": "dist"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://github.com/launchql/pgsql-parser"
23
+ },
24
+ "bugs": {
25
+ "url": "https://github.com/launchql/pgsql-parser/issues"
14
26
  },
15
- "files": [
16
- "types",
17
- "module",
18
- "src",
19
- "main"
20
- ],
21
27
  "keywords": [
22
28
  "sql",
23
29
  "postgres",
@@ -28,62 +34,9 @@
28
34
  "deparser",
29
35
  "database"
30
36
  ],
31
- "publishConfig": {
32
- "access": "public"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "https://github.com/launchql/pgsql-parser"
37
- },
38
- "scripts": {
39
- "build:main": "yarn tsc -p tsconfig.json --outDir main --module commonjs",
40
- "build:module": "yarn tsc -p tsconfig.json --outDir module --module es2022",
41
- "build": "npm run build:module && npm run build:main",
42
- "buidl": "npm run build",
43
- "buidl:clean": "npm run clean && npm run buidl",
44
- "prepare": "npm run build",
45
- "lint": "eslint .",
46
- "format": "eslint . --fix",
47
- "test": "jest",
48
- "test:watch": "jest --watch",
49
- "test:debug": "node --inspect node_modules/.bin/jest --runInBand"
50
- },
51
- "bugs": {
52
- "url": "https://github.com/launchql/pgsql-parser/issues"
53
- },
54
- "jest": {
55
- "preset": "ts-jest",
56
- "testEnvironment": "node",
57
- "transform": {
58
- "^.+\\.ts?$": "ts-jest"
59
- },
60
- "transformIgnorePatterns": [
61
- "<rootDir>/node_modules/"
62
- ],
63
- "testPathIgnorePatterns": [
64
- "main/",
65
- "module/",
66
- "types/"
67
- ]
68
- },
69
- "devDependencies": {
70
- "@types/jest": "^29.5.0",
71
- "eslint": "8.38.0",
72
- "eslint-config-prettier": "^8.8.0",
73
- "eslint-plugin-prettier": "^4.0.0",
74
- "esprima": "4.0.1",
75
- "glob": "8.0.3",
76
- "jest": "^29.7.0",
77
- "pgsql-parser": "^13.16.0",
78
- "prettier": "^2.8.7",
79
- "rimraf": "5.0.5",
80
- "ts-jest": "^29.1.0",
81
- "ts-node": "10.9.2",
82
- "typescript": "^5.0.4"
83
- },
37
+ "name": "pgsql-deparser",
38
+ "version": "14.0.0",
84
39
  "dependencies": {
85
- "@pgsql/types": "^13.9.0",
86
- "dotty": "^0.1.0",
87
- "pgsql-enums": "^13.10.0"
40
+ "@pgsql/types": "^14.1.1"
88
41
  }
89
- }
42
+ }