Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodejs-wechat

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodejs-wechat - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "nodejs-wechat",
"version": "0.0.7",
"version": "0.0.8",
"description": "nodejs wrapper of wechat(weixin) api - well tested and bug-free",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -18,3 +18,5 @@ # Nodejs Wechat

};
var parse = xmlBodyParser();
var parse = xmlBodyParser({
type: 'text/xml'
});
var wechat = new Wechat(opt);

@@ -45,3 +47,5 @@ wechat.on('event.subscribe', function(session) {

var middlewares = require('express-middlewares-js');
app.use('/weixin', middlewares.xmlBodyParser());
app.use('/weixin', middlewares.xmlBodyParser({
type: 'text/xml'
}));

@@ -53,3 +57,3 @@ /*

app.use('/weixin', xmlBodyParser({
type: ['application/xmlplus', 'xml'],
type: 'text/xml',
limit: '1mb'

@@ -98,2 +102,5 @@ }));

> __NOTE__: We apply `{ type: 'text/xml' }` to `xmlBodyParser` as weixin server
send us a `text/xml` content type instead of `application/xml`.
### __API__

@@ -100,0 +107,0 @@ #### Wechat

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