We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0f2e2e commit c5bf1faCopy full SHA for c5bf1fa
lib/postgresql.js
@@ -15,6 +15,11 @@ var ParameterizedSQL = SqlConnector.ParameterizedSQL;
15
var util = require('util');
16
var debug = require('debug')('loopback:connector:postgresql');
17
18
+// Add support for node 0.10.x
19
+if (typeof Promise == 'undefined') {
20
+ global.Promise = require('promise-polyfill');
21
+}
22
+
23
/**
24
*
25
* Initialize the PostgreSQL connector against the given data source
package.json
@@ -21,6 +21,7 @@
"debug": "^2.1.1",
"loopback-connector": "^2.1.0",
"pg": "^6.0.0",
+ "promise-polyfill": "^6.0.2",
"strong-globalize": "^2.6.2"
26
},
27
"devDependencies": {
0 commit comments