Comparing version 2.0.2 to 3.0.0
@@ -1,1 +0,1 @@ | ||
function ArrayPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}export default ArrayPresenter; | ||
function n(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}export default n; |
@@ -1,1 +0,1 @@ | ||
"use strict";function ArrayPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}module.exports=ArrayPresenter; | ||
"use strict";module.exports=function(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}; |
@@ -1,1 +0,1 @@ | ||
function JsonPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce(function(e,n){return e[n.name]=n.args,e},{})}}}export default JsonPresenter; | ||
function n(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce((function(n,e){return n[e.name]=e.args,n}),{})}}}export default n; |
@@ -1,1 +0,1 @@ | ||
"use strict";function JsonPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce(function(e,n){return e[n.name]=n.args,e},{})}}}module.exports=JsonPresenter; | ||
"use strict";module.exports=function(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce((function(e,n){return e[n.name]=n.args,e}),{})}}}; |
@@ -1,1 +0,1 @@ | ||
function Pipe(a,e){e.add();for(var r=a.length,d=0,n="name";d<r;){var t=a[d++],p=t.charCodeAt(0);58===p||44===p?(n="arg",e.shiftValue()):124===p?(n="name",e.add()):"arg"===n?e.appendValue(t):e.appendKey(t,p)}return e.toJSON()}export default Pipe; | ||
function a(a,e){e.add();for(var r=a.length,d=0,n="name";d<r;){var t=a[d++],o=t.charCodeAt(0);58===o||44===o?(n="arg",e.shiftValue()):124===o?(n="name",e.add()):"arg"===n?e.appendValue(t):e.appendKey(t,o)}return e.toJSON()}export default a; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Pipe(e,a){a.add();for(var r=e.length,t=0,d="name";t<r;){var n=e[t++],p=n.charCodeAt(0);58===p||44===p?(d="arg",a.shiftValue()):124===p?(d="name",a.add()):"arg"===d?a.appendValue(n):a.appendKey(n,p)}return a.toJSON()}module.exports=Pipe; | ||
"use strict";module.exports=function(a,e){e.add();for(var r=a.length,t=0,d="name";t<r;){var n=a[t++],o=n.charCodeAt(0);58===o||44===o?(d="arg",e.shiftValue()):124===o?(d="name",e.add()):"arg"===d?e.appendValue(n):e.appendKey(n,o)}return e.toJSON()}; |
@@ -1,1 +0,1 @@ | ||
function Qs(a,e){e.add();for(var r=a.length,d=0,n="name",t=!1;d<r;){var o=a[d++],p=o.charCodeAt(0);91===p?t=!0:93===p?t=!1:61===p||44===p&&t?(n="arg",e.shiftValue()):44===p?(n="name",e.add()):"arg"===n?e.appendValue(o):e.appendKey(o,p)}return e.toJSON()}export default Qs; | ||
function a(a,e){e.add();for(var r=a.length,d=0,n="name",t=!1;d<r;){var o=a[d++],p=o.charCodeAt(0);91===p?t=!0:93===p?t=!1:61===p||44===p&&t?(n="arg",e.shiftValue()):44===p?(n="name",e.add()):"arg"===n?e.appendValue(o):e.appendKey(o,p)}return e.toJSON()}export default a; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Qs(a,e){e.add();for(var r=a.length,t=0,d="name",n=!1;t<r;){var o=a[t++],s=o.charCodeAt(0);91===s?n=!0:93===s?n=!1:61===s||44===s&&n?(d="arg",e.shiftValue()):44===s?(d="name",e.add()):"arg"===d?e.appendValue(o):e.appendKey(o,s)}return e.toJSON()}module.exports=Qs; | ||
"use strict";module.exports=function(a,e){e.add();for(var r=a.length,t=0,d="name",n=!1;t<r;){var o=a[t++],u=o.charCodeAt(0);91===u?n=!0:93===u?n=!1:61===u||44===u&&n?(d="arg",e.shiftValue()):44===u?(d="name",e.add()):"arg"===d?e.appendValue(o):e.appendKey(o,u)}return e.toJSON()}; |
@@ -1,1 +0,1 @@ | ||
function Pipe(e,n){n.add();for(var r=e.length,t=0,u="name";t<r;){var o=e[t++],a=o.charCodeAt(0);58===a||44===a?(u="arg",n.shiftValue()):124===a?(u="name",n.add()):"arg"===u?n.appendValue(o):n.appendKey(o,a)}return n.toJSON()}function Qs(e,n){n.add();for(var r=e.length,t=0,u="name",o=!1;t<r;){var a=e[t++],s=a.charCodeAt(0);91===s?o=!0:93===s?o=!1:61===s||44===s&&o?(u="arg",n.shiftValue()):44===s?(u="name",n.add()):"arg"===u?n.appendValue(a):n.appendKey(a,s)}return n.toJSON()}function ArrayPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}function JsonPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce(function(e,n){return e[n.name]=n.args,e},{})}}}var index={fromPipe:function(e){return{toArray:function(){return Pipe(e,new ArrayPresenter)},toJSON:function(){return Pipe(e,new JsonPresenter)}}},fromQS:function(e){return{toArray:function(){return Qs(e,new ArrayPresenter)},toJSON:function(){return Qs(e,new JsonPresenter)}}}};export default index; | ||
function n(n,e){e.add();for(var r=n.length,t=0,u="name";t<r;){var o=n[t++],a=o.charCodeAt(0);58===a||44===a?(u="arg",e.shiftValue()):124===a?(u="name",e.add()):"arg"===u?e.appendValue(o):e.appendKey(o,a)}return e.toJSON()}function e(n,e){e.add();for(var r=n.length,t=0,u="name",o=!1;t<r;){var a=n[t++],d=a.charCodeAt(0);91===d?o=!0:93===d?o=!1:61===d||44===d&&o?(u="arg",e.shiftValue()):44===d?(u="name",e.add()):"arg"===u?e.appendValue(a):e.appendKey(a,d)}return e.toJSON()}function r(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}function t(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce((function(n,e){return n[e.name]=e.args,n}),{})}}}var u={fromPipe:function(e){return{toArray:function(){return n(e,new r)},toJSON:function(){return n(e,new t)}}},fromQS:function(n){return{toArray:function(){return e(n,new r)},toJSON:function(){return e(n,new t)}}}};export default u; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Pipe(e,n){n.add();for(var r=e.length,t=0,u="name";t<r;){var o=e[t++],a=o.charCodeAt(0);58===a||44===a?(u="arg",n.shiftValue()):124===a?(u="name",n.add()):"arg"===u?n.appendValue(o):n.appendKey(o,a)}return n.toJSON()}function Qs(e,n){n.add();for(var r=e.length,t=0,u="name",o=!1;t<r;){var a=e[t++],s=a.charCodeAt(0);91===s?o=!0:93===s?o=!1:61===s||44===s&&o?(u="arg",n.shiftValue()):44===s?(u="name",n.add()):"arg"===u?n.appendValue(a):n.appendKey(a,s)}return n.toJSON()}function ArrayPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}function JsonPresenter(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(e,n){32!==n&&(this.currentNode.name+=e)},appendValue:function(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce(function(e,n){return e[n.name]=n.args,e},{})}}}var index={fromPipe:function(e){return{toArray:function(){return Pipe(e,new ArrayPresenter)},toJSON:function(){return Pipe(e,new JsonPresenter)}}},fromQS:function(e){return{toArray:function(){return Qs(e,new ArrayPresenter)},toJSON:function(){return Qs(e,new JsonPresenter)}}}};module.exports=index; | ||
"use strict";function n(n,e){e.add();for(var r=n.length,t=0,u="name";t<r;){var o=n[t++],a=o.charCodeAt(0);58===a||44===a?(u="arg",e.shiftValue()):124===a?(u="name",e.add()):"arg"===u?e.appendValue(o):e.appendKey(o,a)}return e.toJSON()}function e(n,e){e.add();for(var r=n.length,t=0,u="name",o=!1;t<r;){var a=n[t++],d=a.charCodeAt(0);91===d?o=!0:93===d?o=!1:61===d||44===d&&o?(u="arg",e.shiftValue()):44===d?(u="name",e.add()):"arg"===u?e.appendValue(a):e.appendKey(a,d)}return e.toJSON()}function r(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes}}}function t(){return{nodes:[],currentNode:null,add:function(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey:function(n,e){32!==e&&(this.currentNode.name+=n)},appendValue:function(n){this.currentNode.args[this.currentNode.args.length-1]+=n},shiftValue:function(){this.currentNode.args.push("")},toJSON:function(){return this.nodes.reduce((function(n,e){return n[e.name]=e.args,n}),{})}}}var u={fromPipe:function(e){return{toArray:function(){return n(e,new r)},toJSON:function(){return n(e,new t)}}},fromQS:function(n){return{toArray:function(){return e(n,new r)},toJSON:function(){return e(n,new t)}}}};module.exports=u; |
{ | ||
"name": "haye", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"description": "Haye is a super fast string based expression parser for Node.js", | ||
@@ -14,4 +14,4 @@ "main": "dist/haye.js", | ||
"pretest": "npm run lint && npm run build", | ||
"test": "japa", | ||
"build": "rollup -c", | ||
"test": "node japaFile.js", | ||
"build": "rollup -c rollup.config.js", | ||
"lint": "standard src/**/*.js index.js test/**/*.js", | ||
@@ -30,15 +30,12 @@ "coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"devDependencies": { | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"@babel/core": "^7.13.10", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"babel-preset-env": "^1.7.0", | ||
"benchmark": "^2.1.4", | ||
"coveralls": "^3.0.1", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"japa": "^1.0.6", | ||
"japa-cli": "^1.0.1", | ||
"rollup": "^0.60.7", | ||
"rollup-plugin-babel": "^3.0.4", | ||
"rollup-plugin-uglify": "^4.0.0", | ||
"standard": "^11.0.1", | ||
"uglify-es": "^3.3.9" | ||
"coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"japa": "^3.1.1", | ||
"rollup": "^2.42.2", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"standard": "^16.0.3" | ||
}, | ||
@@ -45,0 +42,0 @@ "config": { |
10
11311
13
26