pg-promise 12.6.0 → 12.6.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/lib/helpers/table-name.js +12 -1
- package/package.json +9 -9
|
@@ -33,7 +33,7 @@ const npm = {
|
|
|
33
33
|
* - {@link Table} object
|
|
34
34
|
*
|
|
35
35
|
* @property {string} name
|
|
36
|
-
*
|
|
36
|
+
* Escaped full table name, combining `schema` + `table`.
|
|
37
37
|
*
|
|
38
38
|
* @property {string} table
|
|
39
39
|
* Table name.
|
|
@@ -109,6 +109,17 @@ TableName.prototype[npm.format.ctf.toPostgres] = function (self) {
|
|
|
109
109
|
|
|
110
110
|
TableName.prototype[npm.format.ctf.rawType] = true; // use as pre-formatted
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @method helpers.TableName#toString
|
|
114
|
+
* @description
|
|
115
|
+
* Redirects into `name` property, for a fully escaped table name.
|
|
116
|
+
*
|
|
117
|
+
* @returns {string}
|
|
118
|
+
*/
|
|
119
|
+
TableName.prototype.toString = function () {
|
|
120
|
+
return this.name;
|
|
121
|
+
};
|
|
122
|
+
|
|
112
123
|
/**
|
|
113
124
|
* @interface Table
|
|
114
125
|
* @description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pg-promise",
|
|
3
|
-
"version": "12.6.
|
|
3
|
+
"version": "12.6.2",
|
|
4
4
|
"description": "PostgreSQL interface for Node.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "typescript/pg-promise.d.ts",
|
|
@@ -42,24 +42,24 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"assert-options": "0.8.3",
|
|
45
|
-
"pg": "8.
|
|
45
|
+
"pg": "8.20.0",
|
|
46
46
|
"pg-minify": "1.8.0",
|
|
47
47
|
"spex": "4.1.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"pg-query-stream": "4.
|
|
50
|
+
"pg-query-stream": "4.14.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@eslint/js": "
|
|
54
|
-
"@types/node": "25.
|
|
53
|
+
"@eslint/js": "10.0.1",
|
|
54
|
+
"@types/node": "25.3.4",
|
|
55
55
|
"coveralls": "3.1.1",
|
|
56
|
-
"cspell": "9.
|
|
57
|
-
"eslint": "
|
|
58
|
-
"globals": "17.
|
|
56
|
+
"cspell": "9.7.0",
|
|
57
|
+
"eslint": "10.0.2",
|
|
58
|
+
"globals": "17.4.0",
|
|
59
59
|
"jasmine-node": "3.0.0",
|
|
60
60
|
"jsdoc": "4.0.5",
|
|
61
61
|
"JSONStream": "1.3.5",
|
|
62
|
-
"nyc": "
|
|
62
|
+
"nyc": "18.0.0",
|
|
63
63
|
"typescript": "5.9.3"
|
|
64
64
|
}
|
|
65
65
|
}
|