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.11.1 to 3.12.0

49

dist/fontoxpath.d.ts

@@ -169,7 +169,7 @@

*/
ANY_TYPE: ReturnType.ANY;
ANY_TYPE: ReturnType_2.ANY;
/**
* Resolve to a number, like count((1,2,3)) resolves to 3.
*/
NUMBER_TYPE: ReturnType.NUMBER;
NUMBER_TYPE: ReturnType_2.NUMBER;
/**

@@ -179,3 +179,3 @@ * Resolve to a string, like //someElement[1] resolves to the text

*/
STRING_TYPE: ReturnType.STRING;
STRING_TYPE: ReturnType_2.STRING;
/**

@@ -186,3 +186,3 @@ * Resolves to true or false, uses the effective boolean value to

*/
BOOLEAN_TYPE: ReturnType.BOOLEAN;
BOOLEAN_TYPE: ReturnType_2.BOOLEAN;
/**

@@ -194,17 +194,17 @@ * Resolve to all nodes the XPath resolves to. Returns nodes in the

*/
NODES_TYPE: ReturnType.NODES;
NODES_TYPE: ReturnType_2.NODES;
/**
* Resolves to the first node.NODES_TYPE would have resolved to.
*/
FIRST_NODE_TYPE: ReturnType.FIRST_NODE;
FIRST_NODE_TYPE: ReturnType_2.FIRST_NODE;
/**
* Resolve to an array of strings
*/
STRINGS_TYPE: ReturnType.STRINGS;
STRINGS_TYPE: ReturnType_2.STRINGS;
/**
* Resolve to an object, as a map
*/
MAP_TYPE: ReturnType.MAP;
ARRAY_TYPE: ReturnType.ARRAY;
ASYNC_ITERATOR_TYPE: ReturnType.ASYNC_ITERATOR;
MAP_TYPE: ReturnType_2.MAP;
ARRAY_TYPE: ReturnType_2.ARRAY;
ASYNC_ITERATOR_TYPE: ReturnType_2.ASYNC_ITERATOR;
/**

@@ -214,3 +214,3 @@

*/
NUMBERS_TYPE: ReturnType.NUMBERS;
NUMBERS_TYPE: ReturnType_2.NUMBERS;
};

@@ -529,15 +529,15 @@

export declare interface IReturnTypes<T extends Node> {
[ReturnType.ANY]: any;
[ReturnType.NUMBER]: number;
[ReturnType.STRING]: string;
[ReturnType.BOOLEAN]: boolean;
[ReturnType.NODES]: T[];
[ReturnType.FIRST_NODE]: T | null;
[ReturnType.STRINGS]: string[];
[ReturnType.MAP]: {
[ReturnType_2.ANY]: any;
[ReturnType_2.NUMBER]: number;
[ReturnType_2.STRING]: string;
[ReturnType_2.BOOLEAN]: boolean;
[ReturnType_2.NODES]: T[];
[ReturnType_2.FIRST_NODE]: T | null;
[ReturnType_2.STRINGS]: string[];
[ReturnType_2.MAP]: {
[s: string]: any;
};
[ReturnType.ARRAY]: any[];
[ReturnType.NUMBERS]: number[];
[ReturnType.ASYNC_ITERATOR]: AsyncIterableIterator<any>;
[ReturnType_2.ARRAY]: any[];
[ReturnType_2.NUMBERS]: number[];
[ReturnType_2.ASYNC_ITERATOR]: AsyncIterableIterator<any>;
}

@@ -692,3 +692,3 @@

*/
export declare enum ReturnType {
declare enum ReturnType_2 {
ANY = 0,

@@ -706,2 +706,3 @@ NUMBER = 1,

}
export { ReturnType_2 as ReturnType }

@@ -726,5 +727,5 @@ /**

nodesFactory?: INodesFactory;
returnType?: ReturnType;
returnType?: ReturnType_2;
};
export { }
{
"name": "fontoxpath",
"version": "3.11.1",
"version": "3.12.0",
"description": "A minimalistic XPath 3.1 engine in JavaScript",

@@ -21,5 +21,7 @@ "main": "dist/fontoxpath.js",

"prepare": "npm run build",
"performance": "ts-node -P ./performance/tsconfig.json ./performance/runBenchmarks.ts",
"performance-server": "rimraf ./performance/lib && tsc -p ./performance/web.tsconfig.json && concurrently -k -p \"[{name}]\" -n \"tsc,rollup,server\" \"tsc -p ./performance/web.tsconfig.json -w\" \"rollup -c ./performance/rollup.config.js -w \" \"ts-node -P ./performance/tsconfig.json ./performance/server.ts\"",
"qt3performance": "ts-node -P test/tsconfig.json -r tsconfig-paths/register test/qt3testsBenchmark.ts",
"qt3tests": "ts-mocha --paths -p test/tsconfig.json test/qt3tests.ts",
"qt3testsxqueryx": "ts-mocha --paths -p test/tsconfig.json test/qt3testsXQueryX.ts",
"start": "concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" \"tsc -p ./demo/tsconfig.json -w\" \"ts-node ./demo/server.ts --dist\"",
"test": "ts-mocha --require test/testhook.js \"test/specs/**/*.ts\" --extension ts",

@@ -63,33 +65,46 @@ "xqutstests": "ts-mocha --paths -p test/tsconfig.json test/xqutsTests.ts",

"devDependencies": {
"@microsoft/api-extractor": "^7.7.7",
"@microsoft/api-extractor": "^7.8.0",
"@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-node-resolve": "^7.1.3",
"@tscc/tscc": "^0.4.8",
"@types/chai": "^4.2.7",
"@types/mocha": "^7.0.0",
"@types/node": "^13.5.0",
"@types/benchmark": "^1.0.31",
"@types/chai": "^4.2.11",
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.1",
"@types/node-static": "^0.7.3",
"@types/sinon": "^7.5.1",
"@types/sinon": "^9.0.0",
"benchmark": "^2.1.4",
"chai": "^4.2.0",
"concurrently": "^5.1.0",
"coveralls": "^3.0.9",
"cross-env": "^7.0.0",
"fs-extra": "^8.1.0",
"mocha": "^7.0.1",
"coveralls": "^3.0.11",
"cross-env": "^7.0.2",
"fs-extra": "^9.0.0",
"glob": "^7.1.6",
"mocha": "^7.1.1",
"node-static": "^0.7.11",
"nyc": "^15.0.0",
"pegjs": "^0.10.0",
"prettier": "^1.19.1",
"sinon": "^8.1.1",
"sinon-chai": "^3.4.0",
"prettier": "^2.0.5",
"rollup": "^2.6.1",
"sinon": "^9.0.2",
"sinon-chai": "^3.5.0",
"slimdom": "^2.3.2",
"slimdom-sax-parser": "^1.3.0",
"source-map-support": "^0.5.16",
"ts-mocha": "^6.0.0",
"ts-node": "^8.6.2",
"ts-mocha": "^7.0.0",
"ts-node": "^8.10.1",
"ts-transform-import-path-rewrite": "^0.2.1",
"tscc": "0.0.2",
"tsconfig-paths": "^3.9.0",
"tslint": "^6.0.0",
"tslib": "^1.11.1",
"tslint": "^6.1.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.5",
"uglify-js": "^3.7.6"
"ttypescript": "^1.5.10",
"typescript": "^3.8.3",
"uglify-js": "^3.8.0"
},
"dependencies": {
"xspattern": "^1.2.1"
}
}

@@ -1,2 +0,2 @@

# 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) [![Greenkeeper badge](https://badges.greenkeeper.io/FontoXML/fontoxpath.svg)](https://greenkeeper.io/) [![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)
# 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)

@@ -189,3 +189,2 @@ A minimalistic [XPath 3.1](https://www.w3.org/TR/xpath-31/) and [XQuery 3.1](https://www.w3.org/TR/xquery-31/) engine for (XML) nodes with [XQuery Update Facility 3.0](https://www.w3.org/TR/xquery-update-30/#id-update-primitives) support.

* Collation related functions (`fn:compare#3`)
* functions using patterns
* Some other miscellaneous functions

@@ -192,0 +191,0 @@ * XML parsing

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