Comparing version 0.7.2 to 0.8.0
@@ -19,2 +19,7 @@ const {Readable} = require('readable-stream'); | ||
const finish = () => { | ||
assert.equal(eventsIndex, events.length, 'should process all events'); | ||
assert.end(); | ||
}; | ||
uniq(events.map(([name]) => name)).forEach(eventName => { | ||
@@ -36,2 +41,3 @@ parser.on(eventName, eventArgs => { | ||
); | ||
finish(); | ||
} else { | ||
@@ -47,6 +53,3 @@ assert.deepEqual( | ||
parser.on('finish', () => { | ||
assert.equal(eventsIndex, events.length, 'should process all events'); | ||
assert.end(); | ||
}); | ||
parser.on('finish', finish); | ||
@@ -53,0 +56,0 @@ if (!Array.isArray(xml)) { |
{ | ||
"name": "saxophone", | ||
"description": "Fast and lightweight event-driven XML parser in pure JavaScript", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": "10 || 12 || 14 || 15" | ||
"node": "14 || 16 || 18" | ||
}, | ||
@@ -46,4 +46,4 @@ "keywords": [ | ||
"benchmark": "^2.1.4", | ||
"common-tags": "^1.8.0", | ||
"eslint": "^7.31.0", | ||
"common-tags": "^1.8.2", | ||
"eslint": "^8.18.0", | ||
"faucet": "0.0.1", | ||
@@ -53,8 +53,8 @@ "lodash.uniq": "^4.5.0", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^5.2.2" | ||
"tape": "^5.5.3" | ||
}, | ||
"dependencies": { | ||
"readable-stream": "^3.6.0", | ||
"readable-stream": "^4.0.0", | ||
"string_decoder": "^1.3.0" | ||
} | ||
} |
@@ -9,3 +9,2 @@ # Saxophone 🎷 | ||
[![coverage](https://img.shields.io/coveralls/matteodelabre/saxophone.svg?style=flat-square)](https://coveralls.io/github/matteodelabre/saxophone) | ||
[![dependencies status](http://img.shields.io/david/matteodelabre/saxophone.svg?style=flat-square)](https://david-dm.org/matteodelabre/saxophone) | ||
@@ -35,7 +34,7 @@ Saxophone is inspired by SAX parsers such as [sax-js](https://github.com/isaacs/sax-js) and [EasySax](https://github.com/vflash/easysax): unlike most XML parsers, it does not create a Document Object Model ([DOM](https://en.wikipedia.org/wiki/Document_Object_Model)) tree as a result of parsing documents. | ||
-------------------|--------:|----------------------------------------: | ||
**Saxophone** | 0.5.0 | **6,797 ±2.99%** | ||
**EasySax** | 0.3.2 | **7,919 ±1.21%** | ||
node-expat | 2.3.18 | 904 ±1.77% | ||
libxmljs.SaxParser | 0.19.7 | 869 ±0.98% | ||
sax-js | 1.2.4 | 634 ±2.01% | ||
**Saxophone** | 0.8.0 | **5,608 ±1.97%** | ||
**EasySax** | 0.3.2 | **8,192 ±2.33%** | ||
node-expat | 2.4.0 | 939 ±0.89% | ||
libxmljs.SaxParser | 0.19.10 | 767 ±0.79% | ||
sax-js | 1.2.4 | 771 ±0.82% | ||
@@ -42,0 +41,0 @@ ```sh |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
972
45415
11
240
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedreadable-stream@4.5.2(transitive)
- Removedinherits@2.0.4(transitive)
- Removedreadable-stream@3.6.2(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updatedreadable-stream@^4.0.0