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

tokenizer

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tokenizer - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

8

lib/Tokenizer.js

@@ -12,3 +12,3 @@ var EventEmitter = require('events').EventEmitter;

// with regex[RegExp] and type[String]
this._ignored = {} // a hash of ignored token types
this._ignored = {}; // a hash of ignored token types
// these will be parsed but not emitted

@@ -36,3 +36,3 @@ this._checkToken = check_token_cb || noop;

var buf = data.substring(last_tokenized, i);
if(!buf.length) {++i; debugger; continue} // ignore ""
if(!buf.length) { ++i; continue; } // ignore ""
// create a list of the rules matching this bit

@@ -97,3 +97,3 @@ var m = this._regexes.filter(function(e) {

}
assert.ok((regex instanceof RegExp) || (typeof regex === 'function'))
assert.ok((regex instanceof RegExp) || (typeof regex === 'function'));
assert.equal(typeof type, 'string');

@@ -110,3 +110,3 @@ this._regexes.push({regex:regex,type:type});

this.ignore(ignored[i]);
};
}
return;

@@ -113,0 +113,0 @@ }

{
"name": "tokenizer",
"description": "A wide purpose tokenizer for node.js which looks like a stream",
"version": "0.1.2",
"version": "0.1.3",
"homepage": "http://github.com/floby/node-tokenizer",

@@ -6,0 +6,0 @@ "repository": {

@@ -82,1 +82,13 @@ # Synopsis

* more checking
## License
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2012 Florent Jaby
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.
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