New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fontoxpath

Package Overview
Dependencies
Maintainers
3
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fontoxpath - npm Package Compare versions

Comparing version 3.12.1 to 3.13.0

1

dist/fontoxpath.d.ts

@@ -583,2 +583,3 @@

debug?: boolean;
defaultFunctionNamespaceURI?: string;
disableCache?: boolean;

@@ -585,0 +586,0 @@ documentWriter?: IDocumentWriter;

5

package.json
{
"name": "fontoxpath",
"version": "3.12.1",
"version": "3.13.0",
"description": "A minimalistic XPath 3.1 engine in JavaScript",
"main": "dist/fontoxpath.js",
"module": "dist/fontoxpath.esm.js",
"directories": {

@@ -24,3 +25,3 @@ "test": "test"

"qt3testsxqueryx": "ts-mocha --paths -p test/tsconfig.json test/qt3testsXQueryX.ts",
"test": "ts-mocha --require test/testhook.js \"test/specs/**/*.ts\" --extension ts",
"test": "ts-mocha --require test/testhook.js \"test/specs/**/*.ts\" --project test/tsconfig.json",
"xqutstests": "ts-mocha --paths -p test/tsconfig.json test/xqutsTests.ts",

@@ -27,0 +28,0 @@ "xqutstestsxqueryx": "ts-mocha --paths -p test/tsconfig.json test/xqutsTestsXQueryX.ts",

@@ -80,2 +80,3 @@ # fontoxpath [![Build Status](https://travis-ci.org/FontoXML/fontoxpath.svg?branch=master)](https://travis-ci.org/FontoXML/fontoxpath) [![devDependency Status](https://david-dm.org/FontoXML/fontoxpath/dev-status.svg)](https://david-dm.org/FontoXML/fontoxpath#info=devDependencies) [![NPM version](https://badge.fury.io/js/fontoxpath.svg)](http://badge.fury.io/js/fontoxpath) [![install size](https://packagephobia.now.sh/badge?p=fontoxpath)](https://packagephobia.now.sh/result?p=fontoxpath) [![Coverage Status](https://coveralls.io/repos/github/FontoXML/fontoxpath/badge.svg?branch=master)](https://coveralls.io/github/FontoXML/fontoxpath?branch=master) [![Known Vulnerabilities](https://snyk.io/test/github/FontoXML/fontoxpath/badge.svg?targetFile=package.json)](https://snyk.io/test/github/FontoXML/fontoxpath?targetFile=package.json)

string of the original message.
* `defaultFunctionNamespaceURI` `<string>` To modify or change the default function namespaceURI. Defaults to `http://www.w3.org/2005/xpath-functions`. Defining the default function namespaceURI in the xpath expression overwrites this option.

@@ -89,4 +90,6 @@ ### Example

evaluateXPathToString,
evaluateXPathToFirstNode
evaluateXPathToFirstNode,
evaluateXPathToNumber,
} = require('fontoxpath');
const documentNode = new DOMParser().parseFromString('<xml/>', 'text/xml');

@@ -103,2 +106,6 @@

// Outputs: "<foo>bar</foo>"
// We pass the Math namespaceURI for the pi() function to be used
console.log(evaluateXPathToNumber('pi()', documentNode, undefined, {}, { language: evaluateXPath.XQUERY_3_1_LANGUAGE, defaultFunctionNamespaceURI: 'http://www.w3.org/2005/xpath-functions/math'}));
// Outputs: Math.PI (3.14...)
```

@@ -105,0 +112,0 @@

Sorry, the diff of this file is too big to display

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