New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pg-hstore

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-hstore - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.travis.yml

2

lib/index.js

@@ -9,2 +9,4 @@ var sanitize_input = function(input) {

input = input.replace(/"/g, '\\"');
// colons (:) must be replaced with escaped colons (\\:)
input = input.replace(/:/g, '\\:');
return input;

@@ -11,0 +13,0 @@ };

2

package.json

@@ -7,3 +7,3 @@ {

"keywords": ["pg", "postgres", "hstore"],
"version": "1.0.3",
"version": "1.0.4",
"main": "lib/index.js",

@@ -10,0 +10,0 @@ "homepage": "https://github.com/scarney81/pg-hstore",

@@ -0,1 +1,3 @@

[![Build Status](https://travis-ci.org/scarney81/pg-hstore.png)](https://travis-ci.org/[YOUR_GITHUB_USERNAME]/[YOUR_PROJECT_NAME])
pg-hstore

@@ -35,2 +37,2 @@ ===========

});
```
```

@@ -78,2 +78,11 @@ /*globals it, describe */

});
});
it('should hstore encode colon correctly', function(done) {
var source = { 'foo': "with:colon" };
hstore.stringify(source, function(target) {
should.exist(target);
target.should.equal('"foo"=>"with\\:colon"');
done();
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc