mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-13 18:26:20 +02:00
fix: Rename use-auth.js to use-auth.jsx for JSX support
This commit is contained in:
2875 files changed
+459559
-2
No files matched your search
+28
@@ -0,0 +1,28 @@
|
||||
var parse = require('./parse')
|
||||
var walk = require('./walk')
|
||||
var stringify = require('./stringify')
|
||||
|
||||
function ValueParser(value) {
|
||||
if (this instanceof ValueParser) {
|
||||
this.nodes = parse(value)
|
||||
return this
|
||||
}
|
||||
return new ValueParser(value)
|
||||
}
|
||||
|
||||
ValueParser.prototype.toString = function () {
|
||||
return Array.isArray(this.nodes) ? stringify(this.nodes) : ''
|
||||
}
|
||||
|
||||
ValueParser.prototype.walk = function (cb, bubble) {
|
||||
walk(this.nodes, cb, bubble)
|
||||
return this
|
||||
}
|
||||
|
||||
ValueParser.unit = require('./unit')
|
||||
|
||||
ValueParser.walk = walk
|
||||
|
||||
ValueParser.stringify = stringify
|
||||
|
||||
module.exports = ValueParser
|
||||
Reference in new issue
Block a user