Sorry, the diff of this file is not supported yet
| version = 0x105016 | ||
| tools = [{'tool': 'ar', 'tooldir': None, 'funs': None}, {'tool': 'cxx', 'tooldir': None, 'funs': None}, {'tool': 'gxx', 'tooldir': None, 'funs': None}, {'tool': 'compiler_cxx', 'tooldir': None, 'funs': None}, {'tool': 'node_addon', 'tooldir': None, 'funs': None}] |
| AR = '/usr/bin/ar' | ||
| ARFLAGS = 'rcs' | ||
| CCFLAGS = ['-g'] | ||
| CCFLAGS_MACBUNDLE = ['-fPIC'] | ||
| CCFLAGS_NODE = ['-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] | ||
| CC_VERSION = ('4', '5', '2') | ||
| COMPILER_CXX = 'g++' | ||
| CPP = '/usr/bin/cpp' | ||
| CPPFLAGS_NODE = ['-D_GNU_SOURCE', '-DEV_MULTIPLICITY=0'] | ||
| CPPPATH_NODE = '/home/brian/local/include/node' | ||
| CPPPATH_PG = ['/home/brian/local/pg9.0.3/include'] | ||
| CPPPATH_ST = '-I%s' | ||
| CXX = ['/usr/bin/g++'] | ||
| CXXDEFINES_ST = '-D%s' | ||
| CXXFLAGS = ['-g'] | ||
| CXXFLAGS_DEBUG = ['-g'] | ||
| CXXFLAGS_NODE = ['-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] | ||
| CXXFLAGS_RELEASE = ['-O2'] | ||
| CXXLNK_SRC_F = '' | ||
| CXXLNK_TGT_F = ['-o', ''] | ||
| CXX_NAME = 'gcc' | ||
| CXX_SRC_F = '' | ||
| CXX_TGT_F = ['-c', '-o', ''] | ||
| DEST_BINFMT = 'elf' | ||
| DEST_CPU = 'x86_64' | ||
| DEST_OS = 'linux' | ||
| FULLSTATIC_MARKER = '-static' | ||
| LIBDIR = '/home/brian/.node_libraries' | ||
| LIBPATH_NODE = '/home/brian/local/lib' | ||
| LIBPATH_PG = ['/home/brian/local/pg9.0.3/lib'] | ||
| LIBPATH_ST = '-L%s' | ||
| LIB_PG = ['pq'] | ||
| LIB_ST = '-l%s' | ||
| LINKFLAGS_MACBUNDLE = ['-bundle', '-undefined', 'dynamic_lookup'] | ||
| LINK_CXX = ['/usr/bin/g++'] | ||
| NODE_PATH = '/home/brian/.node_libraries' | ||
| PG_CONFIG = '/home/brian/local/pg9.0.3/bin/pg_config' | ||
| PREFIX = '/home/brian/local' | ||
| PREFIX_NODE = '/home/brian/local' | ||
| RANLIB = '/usr/bin/ranlib' | ||
| RPATH_ST = '-Wl,-rpath,%s' | ||
| SHLIB_MARKER = '-Wl,-Bdynamic' | ||
| SONAME_ST = '-Wl,-h,%s' | ||
| STATICLIBPATH_ST = '-L%s' | ||
| STATICLIB_MARKER = '-Wl,-Bstatic' | ||
| STATICLIB_ST = '-l%s' | ||
| macbundle_PATTERN = '%s.bundle' | ||
| program_PATTERN = '%s' | ||
| shlib_CXXFLAGS = ['-fPIC', '-DPIC'] | ||
| shlib_LINKFLAGS = ['-shared'] | ||
| shlib_PATTERN = 'lib%s.so' | ||
| staticlib_LINKFLAGS = ['-Wl,-Bstatic'] | ||
| staticlib_PATTERN = 'lib%s.a' |
| # project noname (0.0.1) configured on Tue Aug 16 18:57:55 2011 by | ||
| # waf 1.5.16 (abi 7, python 20701f0 on linux2) | ||
| # using /home/brian/local/bin/node-waf configure build | ||
| # | ||
| ---------------------------------------- | ||
| Checking for program g++ or c++ | ||
| find program=['g++', 'c++'] paths=[] var='CXX' | ||
| -> '/usr/bin/g++' | ||
| ---------------------------------------- | ||
| Checking for program cpp | ||
| find program=['cpp'] paths=[] var='CPP' | ||
| -> '/usr/bin/cpp' | ||
| ---------------------------------------- | ||
| Checking for program ar | ||
| find program=['ar'] paths=[] var='AR' | ||
| -> '/usr/bin/ar' | ||
| ---------------------------------------- | ||
| Checking for program ranlib | ||
| find program=['ranlib'] paths=[] var='RANLIB' | ||
| -> '/usr/bin/ranlib' | ||
| ---------------------------------------- | ||
| Checking for g++ | ||
| ok | ||
| ---------------------------------------- | ||
| Checking for node path | ||
| not found | ||
| ---------------------------------------- | ||
| Checking for node prefix | ||
| ok /home/brian/local | ||
| ---------------------------------------- | ||
| Checking for program pg_config | ||
| find program=['pg_config'] paths=[] var='PG_CONFIG' | ||
| -> '/home/brian/local/pg9.0.3/bin/pg_config' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
+1
-1
@@ -26,3 +26,3 @@ var EventEmitter = require('events').EventEmitter; | ||
| create: function(callback) { | ||
| var client = new Client(c); | ||
| var client = new ClientConstructor(c); | ||
| client.connect(); | ||
@@ -29,0 +29,0 @@ var connectError = function(err) { |
+12
-4
@@ -28,3 +28,3 @@ //require the c++ bindings & export to javascript | ||
| p._pulseQueryQueue = function() { | ||
| p._pulseQueryQueue = function(initialConnection) { | ||
| if(!this._connected) { | ||
@@ -38,3 +38,5 @@ return; | ||
| if(!query) { | ||
| this.emit('drain'); | ||
| if(!initialConnection) { | ||
| this.emit('drain'); | ||
| } | ||
| return; | ||
@@ -70,3 +72,3 @@ } | ||
| connection._connected = true; | ||
| connection._pulseQueryQueue(); | ||
| connection._pulseQueryQueue(true); | ||
| }); | ||
@@ -104,2 +106,3 @@ | ||
| var NativeQuery = function(text, values, callback) { | ||
| //TODO there are better ways to detect overloads | ||
| if(typeof text == 'object') { | ||
@@ -109,3 +112,8 @@ this.text = text.text; | ||
| this.name = text.name; | ||
| this.callback = values; | ||
| if(typeof values === 'function') { | ||
| this.callback = values; | ||
| } else if(typeof values !== 'undefined') { | ||
| this.values = values; | ||
| this.callback = callback; | ||
| } | ||
| } else { | ||
@@ -112,0 +120,0 @@ this.text = text; |
+1
-1
| { "name": "pg", | ||
| "version": "0.5.4", | ||
| "version": "0.5.5", | ||
| "description": "PostgreSQL client - pure javascript & libpq with the same API", | ||
@@ -4,0 +4,0 @@ "keywords" : ["postgres", "pg", "libpq", "postgre", "database", "rdbms"], |
+1
-0
@@ -114,2 +114,3 @@ #node-postgres | ||
| * [booo](https://github.com/booo) | ||
| * [neonstalwart](https://github.com/neonstalwart) | ||
@@ -116,0 +117,0 @@ ## Documentation |
@@ -132,1 +132,15 @@ var helper = require(__dirname + '/../test-helper'); | ||
| }) | ||
| test('can provide callback and config and parameters', function() { | ||
| pg.connect(connectionString, assert.calls(function(err, client) { | ||
| assert.isNull(err); | ||
| var config = { | ||
| text: 'select $1::text as val' | ||
| }; | ||
| client.query(config, ['hi'], assert.calls(function(err, result) { | ||
| assert.isNull(err); | ||
| assert.equal(result.rows.length, 1); | ||
| assert.equal(result.rows[0].val, 'hi'); | ||
| })) | ||
| })) | ||
| }) |
@@ -52,2 +52,5 @@ require.paths.unshift(__dirname + '/../lib/'); | ||
| var actualMonth = actual.getUTCMonth(); | ||
| assert.equal(actualMonth, month, "expected month " + month + " but got " + actualMonth); | ||
| var actualDate = actual.getUTCDate(); | ||
@@ -54,0 +57,0 @@ assert.equal(actualDate, day, "expected day " + day + " but got " + actualDate); |
@@ -78,3 +78,3 @@ var helper = require(__dirname + '/test-helper'); | ||
| expected: function(val) { | ||
| assert.UTCDate(val, 2011, 01, 24, 4, 5, 00, 680); | ||
| assert.UTCDate(val, 2011, 0, 24, 4, 5, 00, 680); | ||
| } | ||
@@ -81,0 +81,0 @@ }, { |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 3 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
597887
220.62%87
7.41%5035
1.57%159
0.63%6
50%