openrosa-xpath-evaluator
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0-beta.2
{ | ||
"name": "openrosa-xpath-evaluator", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0-beta.2", | ||
"description": "Wrapper for browsers' XPath evaluator with added support for OpenRosa extensions.", | ||
@@ -5,0 +5,0 @@ "main": "src/orxe.js", |
@@ -482,23 +482,4 @@ var config = require('./config'); | ||
}; | ||
this.customXPathFunction = { | ||
type: { | ||
StringType: xpr.string, | ||
NumberType: xpr.number, | ||
BooleanType: xpr.boolean, | ||
DateType: xpr.date | ||
}, | ||
add: function(name, fnObj) { | ||
extendedFuncs[name] = fnObj; | ||
}, | ||
remove: function(name) { | ||
delete extendedFuncs[name]; | ||
}, | ||
all: function() { | ||
return extendedFuncs; | ||
} | ||
}; | ||
}; | ||
module.exports = ExtendedXPathEvaluator; |
@@ -552,3 +552,21 @@ var {area, distance, areaOrDistance} = require('./geo'); | ||
}; | ||
ret.customXPathFunction = { | ||
type: { | ||
StringType: xpr.string, | ||
NumberType: xpr.number, | ||
BooleanType: xpr.boolean, | ||
DateType: xpr.date | ||
}, | ||
add: function(name, fnObj) { | ||
func[name] = fnObj; | ||
}, | ||
remove: function(name) { | ||
delete func[name]; | ||
}, | ||
all: function() { | ||
return func; | ||
} | ||
}; | ||
return ret; | ||
@@ -555,0 +573,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
617555