Comparing version 1.0.4 to 1.0.5
{ | ||
"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 @@ |
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
0
1107
659
63421
3
- Removedchai@^3.5.0
- Removedmocha@^3.2.0
- Removedassertion-error@1.1.0(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbrowser-stdout@1.3.0(transitive)
- Removedchai@3.5.0(transitive)
- Removedcommander@2.9.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddebug@2.6.8(transitive)
- Removeddeep-eql@0.1.3(transitive)
- Removeddiff@3.2.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.1.1(transitive)
- Removedgraceful-readlink@1.0.1(transitive)
- Removedgrowl@1.9.2(transitive)
- Removedhas-flag@1.0.0(transitive)
- Removedhe@1.1.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjson3@3.3.2(transitive)
- Removedlodash._baseassign@3.2.0(transitive)
- Removedlodash._basecopy@3.0.1(transitive)
- Removedlodash._basecreate@3.0.3(transitive)
- Removedlodash._getnative@3.9.1(transitive)
- Removedlodash._isiterateecall@3.0.9(transitive)
- Removedlodash.create@3.1.1(transitive)
- Removedlodash.isarguments@3.1.0(transitive)
- Removedlodash.isarray@3.0.4(transitive)
- Removedlodash.keys@3.1.2(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@0.0.8(transitive)
- Removedmkdirp@0.5.1(transitive)
- Removedmocha@3.5.3(transitive)
- Removedms@2.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedsupports-color@3.1.2(transitive)
- Removedtype-detect@0.1.11.0.0(transitive)
- Removedwrappy@1.0.2(transitive)