Skip to content

Commit

Permalink
release: pump version to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tuananh committed Mar 23, 2018
1 parent 7fb63eb commit ad248b2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 28 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Tuan Anh Tran https://tuananh.org
Copyright (c) 2018 Tuan Anh Tran https://tuananh.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
27 changes: 4 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ The whole reason of me creating this is because most of the time, I'm just inter

* I may expose another method to transform the whole XML tree so that the benchmark will better reflect the real performance.

* Performance on small XML strings is not good due to crossing between JS and C++ is expensive.
* Performance on small XML strings is not very good due to crossing between JS and C++ is expensive.

![intro](intro.png)

## Installation

```sh
npm install camaro
yarn add camaro
# npm install camaro
```

## Usage
Expand Down Expand Up @@ -100,24 +101,4 @@ As of currently, AWS Lambda only supports node 6 on Linux so you're looking for

## Licence

The MIT License

Copyright (c) 2018 Tuan Anh Tran https://tuananh.org

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
[The MIT License](LICENSE)
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function transform(xml, template) {
throw new TypeError('2nd argument (template) must be an object')
}

const template_string = JSON.stringify(template)
let result = camaro.transform(xml, template_string)
const templateString = JSON.stringify(template)
let result = camaro.transform(xml, templateString)

if (isEmptyObject(result)) {
throw new TypeError('Invalid input: Malformed xml')
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camaro",
"version": "3.0.0",
"version": "3.0.1",
"description": "Transforming XML to JSON using Node.js binding to native pugixml parser library",
"homepage": "https://github.com/tuananh/camaro",
"bugs": "https://github.com/tuananh/camaro/issues",
Expand Down

0 comments on commit ad248b2

Please sign in to comment.