Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openrosa-xpath-evaluator

Package Overview
Dependencies
Maintainers
9
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openrosa-xpath-evaluator - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

LICENSE

4

package.json
{
"name": "openrosa-xpath-evaluator",
"version": "1.5.0",
"version": "1.5.1",
"description": "Wrapper for browsers' XPath evaluator with added support for OpenRosa extensions.",

@@ -12,3 +12,3 @@ "main": "src/openrosa-xpath.js",

"author": "Alex",
"license": "MIT",
"license": "Apache-2.0",
"devDependencies": {

@@ -15,0 +15,0 @@ "chai": "^3.5.0",

@@ -141,3 +141,3 @@ var openrosa_xpath_extensions = function(translate) {

func, process, ret = {},
now_and_today = function() { return XPR.date(new Date()); };
now_and_today = function() { return XPR.date(ret._now()); };

@@ -298,2 +298,5 @@ func = {

ret.process = process;
ret._now = function() {
return new Date();
};

@@ -300,0 +303,0 @@ return ret;

@@ -127,2 +127,10 @@ define(['src/openrosa-xpath-extensions', 'src/translate', 'chai', 'lodash'],

it('supports overriding current time', () => {
const extensions = or(translate);
extensions._now = function() { return new Date('2000-01-01'); };
const actual = extensions.func.now();
assert.equal(actual.t, 'date');
assert.include(actual.v.toISOString(), '2000-01-01');
});
describe('when called with invalid strings', function() {

@@ -129,0 +137,0 @@ _.forEach([

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc