parent
6879453d83
commit
6415450634
@ -0,0 +1,25 @@
|
||||
var os = require('os');
|
||||
var defaults = require(__dirname + '/defaults');
|
||||
|
||||
var hits = {
|
||||
};
|
||||
var deprecate = module.exports = function(methodName, message) {
|
||||
if(defaults.hideDeprecationWarnings) return;
|
||||
if(hits[deprecate.caller]) return;
|
||||
hits[deprecate.caller] = true;
|
||||
process.stderr.write(os.EOL);
|
||||
process.stderr.write('\x1b[31;1m');
|
||||
process.stderr.write('WARNING!!');
|
||||
process.stderr.write(os.EOL);
|
||||
process.stderr.write(methodName);
|
||||
process.stderr.write(os.EOL);
|
||||
for(var i = 1; i < arguments.length; i++) {
|
||||
process.stderr.write(arguments[i]);
|
||||
process.stderr.write(os.EOL);
|
||||
}
|
||||
process.stderr.write('\x1b[0m');
|
||||
process.stderr.write(os.EOL);
|
||||
process.stderr.write("You can silence these warnings with `require('pg').defaults.hideDeprecationWarnings = true`");
|
||||
process.stderr.write(os.EOL);
|
||||
process.stderr.write(os.EOL);
|
||||
};
|
@ -1,24 +1,35 @@
|
||||
{ "name": "pg",
|
||||
{
|
||||
"name": "pg",
|
||||
"version": "0.13.3",
|
||||
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
||||
"keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"],
|
||||
"keywords": [
|
||||
"postgres",
|
||||
"pg",
|
||||
"libpq",
|
||||
"postgre",
|
||||
"database",
|
||||
"rdbms"
|
||||
],
|
||||
"homepage": "http://github.com/brianc/node-postgres",
|
||||
"repository" : {
|
||||
"type" : "git",
|
||||
"url" : "git://github.com/brianc/node-postgres.git"
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/brianc/node-postgres.git"
|
||||
},
|
||||
"author" : "Brian Carlson <brian.m.carlson@gmail.com>",
|
||||
"main" : "./lib",
|
||||
"dependencies" : {
|
||||
"generic-pool" : "2.0.2"
|
||||
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
|
||||
"main": "./lib",
|
||||
"dependencies": {
|
||||
"generic-pool": "2.0.2",
|
||||
"deprecate": "~0.1.0"
|
||||
},
|
||||
"devDependencies" : {
|
||||
"jshint" : "git://github.com/jshint/jshint.git"
|
||||
"devDependencies": {
|
||||
"jshint": "git://github.com/jshint/jshint.git"
|
||||
},
|
||||
"scripts" : {
|
||||
"test" : "make test-all connectionString=pg://postgres@localhost:5432/postgres",
|
||||
"scripts": {
|
||||
"test": "make test-all connectionString=pg://postgres@localhost:5432/postgres",
|
||||
"prepublish": "rm -r build || (exit 0)",
|
||||
"install" : "node-gyp rebuild || (exit 0)"
|
||||
"install": "node-gyp rebuild || (exit 0)"
|
||||
},
|
||||
"engines" : { "node": ">= 0.8.0" }
|
||||
"engines": {
|
||||
"node": ">= 0.8.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue