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

co-wechat-body

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

co-wechat-body - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

6

lib/xml-parser.js

@@ -13,3 +13,3 @@ 'use strict';

}
}
};

@@ -19,3 +19,3 @@ function* formater(next) {

if(this.request.body && this.request.body.xml){
this.request.body = formatMessage(this.request.body);
this.request.body = formatMessage(this.request.body.xml);
}

@@ -50,2 +50,2 @@

return message;
};
}
{
"name": "co-wechat-body",
"version": "0.1.1",
"version": "0.1.2",
"description": "Wechat xml mesage body parser for koa.",

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

@@ -38,3 +38,23 @@ # co-wechat-body

## Example
http request raw body:
```
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[OK]]></return_msg>
</xml>
```
parse result, this.request.body:
```
{
"return_code": "SUCCESS",
"return_msg": "OK"
}
```
## Options

@@ -41,0 +61,0 @@

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