Comparing version 0.1.1 to 0.1.2
@@ -65,3 +65,6 @@ var EventEmitter = require('events').EventEmitter; | ||
if(nobuffer) { | ||
this._gotToken(data.substr(last_tokenized), matching[0]); | ||
// when no actual data was tokenized, matching is undefined | ||
if(matching) { | ||
this._gotToken(data.substr(last_tokenized), matching[0]); | ||
} | ||
} | ||
@@ -75,3 +78,3 @@ // buffer data for the next write | ||
Tokenizer.prototype.end = function end(data) { | ||
this.write(data || '', true); | ||
if(data) this.write(data, true); | ||
this.write = noop; | ||
@@ -78,0 +81,0 @@ this.emit('end'); |
{ | ||
"name": "tokenizer", | ||
"description": "A wide purpose tokenizer for node.js which looks like a stream", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "http://github.com/floby/node-tokenizer", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
8213
7
162
0
1