Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flex-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-js - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

.eslintignore

14

package.json
{
"name": "flex-js",
"version": "1.0.4",
"version": "1.0.5",
"description": "FLEX.JS - Fast lexer (tokenizer, scanner) for JavaScript inspired by FLEX lexer generator",

@@ -10,8 +10,12 @@ "main": "index.js",

"scripts": {
"test": "mocha 'src/**.spec.js'"
"eslint": "eslint 'src/**/*.js'",
"mocha": "mocha 'src/**.spec.js'",
"test": "npm run eslint && npm run mocha",
"prepublishOnly": "npm run test"
},
"dependencies": {
"chai": "^3.5.0",
"mocha": "^3.2.0"
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^5.10.0",
"mocha": "^5.2.0"
}
}

@@ -655,1 +655,5 @@ # FLEX.JS

- https://github.com/YuhangGe/jslex
## License
MIT

@@ -210,3 +210,3 @@ /**

if (expression.length === 0) {
throw new Error('Empty expression for rule "' + name + '"');
throw new Error('Empty expression for rule used in states "' + states.join(', ') + '"');
}

@@ -218,3 +218,3 @@ source = this.escapeRegExp(expression);

if (expression.source === '(?:)') {
throw new Error('Empty expression for rule "' + name + '"');
throw new Error('Empty expression for rule used in states "' + states.join(', ') + '"');
}

@@ -221,0 +221,0 @@ if (expression.flags !== '') {

@@ -84,3 +84,3 @@ var chai = require('chai');

lexer.addRule(/{DIGIT}\.{DIGIT}/);
expect(lexer).with.deep.property('rules.INITIAL.0.expression.source').to.equal('(?:[0-9])\\.(?:[0-9])');
expect(lexer).with.deep.nested.property('rules.INITIAL.0.expression.source').to.equal('(?:[0-9])\\.(?:[0-9])');
});

@@ -87,0 +87,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