We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 981b434 commit 0565ed6Copy full SHA for 0565ed6
lib/utils.js
@@ -1,17 +1,5 @@
1
var url = require('url');
2
var defaults = require(__dirname + "/defaults");
3
-var events = require('events');
4
-
5
-//compatibility for old nodes
6
-if(typeof events.EventEmitter.prototype.once !== 'function') {
7
- events.EventEmitter.prototype.once = function (type, listener) {
8
- var self = this;
9
- self.on(type, function g () {
10
- self.removeListener(type, g);
11
- listener.apply(this, arguments);
12
- });
13
- };
14
-}
15
16
// convert a JS array to a postgres array literal
17
// uses comma separator so won't work for types like box that use
0 commit comments