Comparing version 2.0.1 to 2.0.2
@@ -0,1 +1,6 @@ | ||
<a name="2.0.2"></a> | ||
## [2.0.2](https://github.com/poppinss/haye/compare/v2.0.1...v2.0.2) (2018-06-18) | ||
<a name="2.0.1"></a> | ||
@@ -2,0 +7,0 @@ ## [2.0.1](https://github.com/poppinss/haye/compare/v2.0.0...v2.0.1) (2017-12-08) |
@@ -1,1 +0,1 @@ | ||
var hayeArrayPresenter=function(){"use strict";return function(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}}(); | ||
var hayeArrayPresenter=function(){"use strict";return function(){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}}}}(); |
@@ -1,1 +0,1 @@ | ||
function ArrayPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}export default ArrayPresenter; | ||
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; |
@@ -1,1 +0,1 @@ | ||
"use strict";function ArrayPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}module.exports=ArrayPresenter; | ||
"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; |
@@ -1,1 +0,1 @@ | ||
var hayeJsonPresenter=function(){"use strict";return function(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,r)=>(e[r.name]=r.args,e),{})}}}}(); | ||
var hayeJsonPresenter=function(){"use strict";return function(){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},{})}}}}(); |
@@ -1,1 +0,1 @@ | ||
function JsonPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,r)=>(e[r.name]=r.args,e),{})}}}export default JsonPresenter; | ||
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; |
@@ -1,1 +0,1 @@ | ||
"use strict";function JsonPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,r)=>(e[r.name]=r.args,e),{})}}}module.exports=JsonPresenter; | ||
"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; |
@@ -1,1 +0,1 @@ | ||
var hayePipe=function(){"use strict";return function(e,a){a.add();const n=e.length;let t=0,r="name";for(;t<n;){const n=e[t++],d=n.charCodeAt(0);58===d||44===d?(r="arg",a.shiftValue()):124===d?(r="name",a.add()):"arg"===r?a.appendValue(n):a.appendKey(n,d)}return a.toJSON()}}(); | ||
var hayePipe=function(){"use strict";return function(a,e){e.add();for(var r=a.length,n=0,t="name";n<r;){var d=a[n++],u=d.charCodeAt(0);58===u||44===u?(t="arg",e.shiftValue()):124===u?(t="name",e.add()):"arg"===t?e.appendValue(d):e.appendKey(d,u)}return e.toJSON()}}(); |
@@ -1,1 +0,1 @@ | ||
function Pipe(e,a){a.add();const t=e.length;let n=0,d="name";for(;n<t;){const t=e[n++],o=t.charCodeAt(0);58===o||44===o?(d="arg",a.shiftValue()):124===o?(d="name",a.add()):"arg"===d?a.appendValue(t):a.appendKey(t,o)}return a.toJSON()}export default Pipe; | ||
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; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Pipe(e,t){t.add();const a=e.length;let n=0,d="name";for(;n<a;){const a=e[n++],o=a.charCodeAt(0);58===o||44===o?(d="arg",t.shiftValue()):124===o?(d="name",t.add()):"arg"===d?t.appendValue(a):t.appendKey(a,o)}return t.toJSON()}module.exports=Pipe; | ||
"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; |
@@ -1,1 +0,1 @@ | ||
var hayeQs=function(){"use strict";return function(e,a){a.add();const n=e.length;let t=0,r="name",d=!1;for(;t<n;){const n=e[t++],o=n.charCodeAt(0);91===o?d=!0:93===o?d=!1:61===o||44===o&&d?(r="arg",a.shiftValue()):44===o?(r="name",a.add()):"arg"===r?a.appendValue(n):a.appendKey(n,o)}return a.toJSON()}}(); | ||
var hayeQs=function(){"use strict";return function(a,e){e.add();for(var r=a.length,n=0,t="name",d=!1;n<r;){var u=a[n++],o=u.charCodeAt(0);91===o?d=!0:93===o?d=!1:61===o||44===o&&d?(t="arg",e.shiftValue()):44===o?(t="name",e.add()):"arg"===t?e.appendValue(u):e.appendKey(u,o)}return e.toJSON()}}(); |
@@ -1,1 +0,1 @@ | ||
function Qs(e,a){a.add();const t=e.length;let n=0,d="name",o=!1;for(;n<t;){const t=e[n++],r=t.charCodeAt(0);91===r?o=!0:93===r?o=!1:61===r||44===r&&o?(d="arg",a.shiftValue()):44===r?(d="name",a.add()):"arg"===d?a.appendValue(t):a.appendKey(t,r)}return a.toJSON()}export default Qs; | ||
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; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Qs(e,t){t.add();const a=e.length;let n=0,d="name",o=!1;for(;n<a;){const a=e[n++],r=a.charCodeAt(0);91===r?o=!0:93===r?o=!1:61===r||44===r&&o?(d="arg",t.shiftValue()):44===r?(d="name",t.add()):"arg"===d?t.appendValue(a):t.appendKey(a,r)}return t.toJSON()}module.exports=Qs; | ||
"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; |
@@ -1,1 +0,1 @@ | ||
var haye=function(){"use strict";function e(e,n){n.add();const r=e.length;let t=0,a="name";for(;t<r;){const r=e[t++],s=r.charCodeAt(0);58===s||44===s?(a="arg",n.shiftValue()):124===s?(a="name",n.add()):"arg"===a?n.appendValue(r):n.appendKey(r,s)}return n.toJSON()}function n(e,n){n.add();const r=e.length;let t=0,a="name",s=!1;for(;t<r;){const r=e[t++],d=r.charCodeAt(0);91===d?s=!0:93===d?s=!1:61===d||44===d&&s?(a="arg",n.shiftValue()):44===d?(a="name",n.add()):"arg"===a?n.appendValue(r):n.appendKey(r,d)}return n.toJSON()}function r(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,n){32!==n&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}function t(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,n){32!==n&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,n)=>(e[n.name]=n.args,e),{})}}}return{fromPipe:n=>({toArray:()=>e(n,new r),toJSON:()=>e(n,new t)}),fromQS:e=>({toArray:()=>n(e,new r),toJSON:()=>n(e,new t)})}}(); | ||
var haye=function(){"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++],i=a.charCodeAt(0);91===i?o=!0:93===i?o=!1:61===i||44===i&&o?(u="arg",e.shiftValue()):44===i?(u="name",e.add()):"arg"===u?e.appendValue(a):e.appendKey(a,i)}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},{})}}}return{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)}}}}}(); |
@@ -1,1 +0,1 @@ | ||
function Pipe(e,r){r.add();const n=e.length;let t=0,s="name";for(;t<n;){const n=e[t++],a=n.charCodeAt(0);58===a||44===a?(s="arg",r.shiftValue()):124===a?(s="name",r.add()):"arg"===s?r.appendValue(n):r.appendKey(n,a)}return r.toJSON()}function Qs(e,r){r.add();const n=e.length;let t=0,s="name",a=!1;for(;t<n;){const n=e[t++],d=n.charCodeAt(0);91===d?a=!0:93===d?a=!1:61===d||44===d&&a?(s="arg",r.shiftValue()):44===d?(s="name",r.add()):"arg"===s?r.appendValue(n):r.appendKey(n,d)}return r.toJSON()}function ArrayPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}function JsonPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,r)=>(e[r.name]=r.args,e),{})}}}var index={fromPipe:e=>({toArray:()=>Pipe(e,new ArrayPresenter),toJSON:()=>Pipe(e,new JsonPresenter)}),fromQS:e=>({toArray:()=>Qs(e,new ArrayPresenter),toJSON:()=>Qs(e,new JsonPresenter)})};export default index; | ||
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; |
@@ -1,1 +0,1 @@ | ||
"use strict";function Pipe(e,r){r.add();const n=e.length;let t=0,s="name";for(;t<n;){const n=e[t++],a=n.charCodeAt(0);58===a||44===a?(s="arg",r.shiftValue()):124===a?(s="name",r.add()):"arg"===s?r.appendValue(n):r.appendKey(n,a)}return r.toJSON()}function Qs(e,r){r.add();const n=e.length;let t=0,s="name",a=!1;for(;t<n;){const n=e[t++],o=n.charCodeAt(0);91===o?a=!0:93===o?a=!1:61===o||44===o&&a?(s="arg",r.shiftValue()):44===o?(s="name",r.add()):"arg"===s?r.appendValue(n):r.appendKey(n,o)}return r.toJSON()}function ArrayPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes}}}function JsonPresenter(){return{nodes:[],currentNode:null,add(){this.currentNode={name:"",args:[]},this.nodes.push(this.currentNode)},appendKey(e,r){32!==r&&(this.currentNode.name+=e)},appendValue(e){this.currentNode.args[this.currentNode.args.length-1]+=e},shiftValue(){this.currentNode.args.push("")},toJSON(){return this.nodes.reduce((e,r)=>(e[r.name]=r.args,e),{})}}}var index={fromPipe:e=>({toArray:()=>Pipe(e,new ArrayPresenter),toJSON:()=>Pipe(e,new JsonPresenter)}),fromQS:e=>({toArray:()=>Qs(e,new ArrayPresenter),toJSON:()=>Qs(e,new JsonPresenter)})};module.exports=index; | ||
"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; |
{ | ||
"name": "haye", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Haye is a super fast string based expression parser for Node.js", | ||
@@ -8,5 +8,7 @@ "main": "dist/haye.js", | ||
"browser": "dist/haye.browser.js", | ||
"files": ["dist"], | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"prepublishOnly": "npm run build", | ||
"pretest": "npm run lint && npm run build", | ||
@@ -28,11 +30,15 @@ "test": "japa", | ||
"devDependencies": { | ||
"babel-core": "^6.26.3", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-preset-env": "^1.7.0", | ||
"benchmark": "^2.1.4", | ||
"coveralls": "^3.0.0", | ||
"coveralls": "^3.0.1", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"japa": "^1.0.5", | ||
"japa": "^1.0.6", | ||
"japa-cli": "^1.0.1", | ||
"rollup": "^0.52.0", | ||
"rollup-plugin-uglify": "^2.0.1", | ||
"standard": "^10.0.3", | ||
"uglify-es": "^3.2.0" | ||
"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" | ||
}, | ||
@@ -39,0 +45,0 @@ "config": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14662
42
0
13