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

@neo4j/cypher-builder

Package Overview
Dependencies
Maintainers
7
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neo4j/cypher-builder - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dist/expressions/functions/CypherFunctions.d.ts

7

dist/Cypher.d.ts

@@ -29,6 +29,7 @@ export { Match, OptionalMatch } from "./clauses/Match";

export { or, and, not, xor } from "./expressions/operations/boolean";
export { eq, gt, gte, lt, lte, isNull, isNotNull, inOp as in, contains, startsWith, endsWith, matches, } from "./expressions/operations/comparison";
export { eq, gt, gte, lt, lte, isNull, isNotNull, inOp as in, contains, startsWith, endsWith, matches } from "./expressions/operations/comparison";
export { plus, minus } from "./expressions/operations/math";
export { CypherFunction as Function } from "./expressions/functions/CypherFunction";
export { coalesce, point, distance, pointDistance, cypherDatetime as datetime, cypherDate as date, cypherLocalTime as localtime, cypherLocalDatetime as localdatetime, cypherTime as time, labels, count, min, max, avg, sum, randomUUID, } from "./expressions/functions/CypherFunction";
export { CypherFunction as Function } from "./expressions/functions/CypherFunctions";
export { coalesce, point, distance, pointDistance, labels, count, min, max, avg, sum, randomUUID, id, elementId } from "./expressions/functions/CypherFunctions";
export { cypherDatetime as datetime, cypherDate as date, cypherLocalTime as localtime, cypherLocalDatetime as localdatetime, cypherTime as time } from "./expressions/functions/TemporalFunctions";
export * from "./expressions/functions/StringFunctions";

@@ -35,0 +36,0 @@ export * from "./expressions/functions/ListFunctions";

@@ -48,3 +48,3 @@ "use strict";

exports.minus = exports.plus = exports.matches = exports.endsWith = exports.startsWith = exports.contains = exports.in = exports.isNotNull = exports.isNull = exports.lte = exports.lt = exports.gte = exports.gt = exports.eq = exports.xor = exports.not = exports.and = exports.or = exports.MapProjection = exports.Map = exports.List = exports.PatternComprehension = exports.ListComprehension = exports.apoc = exports.db = exports.Case = exports.Exists = exports.Null = exports.Literal = exports.Variable = exports.NamedVariable = exports.NamedParam = exports.Param = exports.Relationship = exports.NamedNode = exports.Node = exports.Pattern = exports.concat = exports.Foreach = exports.Union = exports.Unwind = exports.With = exports.RawCypher = exports.Return = exports.CallProcedure = exports.Call = exports.Merge = exports.Create = exports.OptionalMatch = exports.Match = void 0;
exports.utils = exports.single = exports.exists = exports.all = exports.any = exports.randomUUID = exports.sum = exports.avg = exports.max = exports.min = exports.count = exports.labels = exports.time = exports.localdatetime = exports.localtime = exports.date = exports.datetime = exports.pointDistance = exports.distance = exports.point = exports.coalesce = exports.Function = void 0;
exports.utils = exports.single = exports.exists = exports.all = exports.any = exports.time = exports.localdatetime = exports.localtime = exports.date = exports.datetime = exports.elementId = exports.id = exports.randomUUID = exports.sum = exports.avg = exports.max = exports.min = exports.count = exports.labels = exports.pointDistance = exports.distance = exports.point = exports.coalesce = exports.Function = void 0;
// Clauses

@@ -138,21 +138,24 @@ var Match_1 = require("./clauses/Match");

// --Functions
var CypherFunction_1 = require("./expressions/functions/CypherFunction");
Object.defineProperty(exports, "Function", { enumerable: true, get: function () { return CypherFunction_1.CypherFunction; } });
var CypherFunction_2 = require("./expressions/functions/CypherFunction");
Object.defineProperty(exports, "coalesce", { enumerable: true, get: function () { return CypherFunction_2.coalesce; } });
Object.defineProperty(exports, "point", { enumerable: true, get: function () { return CypherFunction_2.point; } });
Object.defineProperty(exports, "distance", { enumerable: true, get: function () { return CypherFunction_2.distance; } });
Object.defineProperty(exports, "pointDistance", { enumerable: true, get: function () { return CypherFunction_2.pointDistance; } });
Object.defineProperty(exports, "datetime", { enumerable: true, get: function () { return CypherFunction_2.cypherDatetime; } });
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return CypherFunction_2.cypherDate; } });
Object.defineProperty(exports, "localtime", { enumerable: true, get: function () { return CypherFunction_2.cypherLocalTime; } });
Object.defineProperty(exports, "localdatetime", { enumerable: true, get: function () { return CypherFunction_2.cypherLocalDatetime; } });
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return CypherFunction_2.cypherTime; } });
Object.defineProperty(exports, "labels", { enumerable: true, get: function () { return CypherFunction_2.labels; } });
Object.defineProperty(exports, "count", { enumerable: true, get: function () { return CypherFunction_2.count; } });
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return CypherFunction_2.min; } });
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return CypherFunction_2.max; } });
Object.defineProperty(exports, "avg", { enumerable: true, get: function () { return CypherFunction_2.avg; } });
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return CypherFunction_2.sum; } });
Object.defineProperty(exports, "randomUUID", { enumerable: true, get: function () { return CypherFunction_2.randomUUID; } });
var CypherFunctions_1 = require("./expressions/functions/CypherFunctions");
Object.defineProperty(exports, "Function", { enumerable: true, get: function () { return CypherFunctions_1.CypherFunction; } });
var CypherFunctions_2 = require("./expressions/functions/CypherFunctions");
Object.defineProperty(exports, "coalesce", { enumerable: true, get: function () { return CypherFunctions_2.coalesce; } });
Object.defineProperty(exports, "point", { enumerable: true, get: function () { return CypherFunctions_2.point; } });
Object.defineProperty(exports, "distance", { enumerable: true, get: function () { return CypherFunctions_2.distance; } });
Object.defineProperty(exports, "pointDistance", { enumerable: true, get: function () { return CypherFunctions_2.pointDistance; } });
Object.defineProperty(exports, "labels", { enumerable: true, get: function () { return CypherFunctions_2.labels; } });
Object.defineProperty(exports, "count", { enumerable: true, get: function () { return CypherFunctions_2.count; } });
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return CypherFunctions_2.min; } });
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return CypherFunctions_2.max; } });
Object.defineProperty(exports, "avg", { enumerable: true, get: function () { return CypherFunctions_2.avg; } });
Object.defineProperty(exports, "sum", { enumerable: true, get: function () { return CypherFunctions_2.sum; } });
Object.defineProperty(exports, "randomUUID", { enumerable: true, get: function () { return CypherFunctions_2.randomUUID; } });
Object.defineProperty(exports, "id", { enumerable: true, get: function () { return CypherFunctions_2.id; } });
Object.defineProperty(exports, "elementId", { enumerable: true, get: function () { return CypherFunctions_2.elementId; } });
var TemporalFunctions_1 = require("./expressions/functions/TemporalFunctions");
Object.defineProperty(exports, "datetime", { enumerable: true, get: function () { return TemporalFunctions_1.cypherDatetime; } });
Object.defineProperty(exports, "date", { enumerable: true, get: function () { return TemporalFunctions_1.cypherDate; } });
Object.defineProperty(exports, "localtime", { enumerable: true, get: function () { return TemporalFunctions_1.cypherLocalTime; } });
Object.defineProperty(exports, "localdatetime", { enumerable: true, get: function () { return TemporalFunctions_1.cypherLocalDatetime; } });
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return TemporalFunctions_1.cypherTime; } });
__exportStar(require("./expressions/functions/StringFunctions"), exports);

@@ -159,0 +162,0 @@ __exportStar(require("./expressions/functions/ListFunctions"), exports);

import type { Variable } from "../..";
import type { Expr } from "../../types";
import { CypherFunction } from "./CypherFunction";
import { CypherFunction } from "./CypherFunctions";
/**

@@ -5,0 +5,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-size)

@@ -22,3 +22,3 @@ "use strict";

exports.reduce = exports.last = exports.head = exports.collect = exports.size = void 0;
const CypherFunction_1 = require("./CypherFunction");
const CypherFunctions_1 = require("./CypherFunctions");
/**

@@ -30,3 +30,3 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/scalar/#functions-size)

function size(expr) {
return new CypherFunction_1.CypherFunction("size", [expr]);
return new CypherFunctions_1.CypherFunction("size", [expr]);
}

@@ -40,3 +40,3 @@ exports.size = size;

function collect(expr) {
return new CypherFunction_1.CypherFunction("collect", [expr]);
return new CypherFunctions_1.CypherFunction("collect", [expr]);
}

@@ -50,3 +50,3 @@ exports.collect = collect;

function head(expr) {
return new CypherFunction_1.CypherFunction("head", [expr]);
return new CypherFunctions_1.CypherFunction("head", [expr]);
}

@@ -60,6 +60,6 @@ exports.head = head;

function last(expr) {
return new CypherFunction_1.CypherFunction("last", [expr]);
return new CypherFunctions_1.CypherFunction("last", [expr]);
}
exports.last = last;
class ReducerFunction extends CypherFunction_1.CypherFunction {
class ReducerFunction extends CypherFunctions_1.CypherFunction {
constructor({ accVariable, defaultValue, variable, listExpr, mapExpr, }) {

@@ -66,0 +66,0 @@ super("reduce");

import type { Pattern } from "../../pattern/Pattern";
import type { Expr, Predicate } from "../../types";
import type { Variable } from "../../references/Variable";
import { CypherFunction } from "./CypherFunction";
import { CypherFunction } from "./CypherFunctions";
/** Represents a predicate function that can be used in a WHERE statement

@@ -6,0 +6,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/predicate/)

@@ -24,3 +24,3 @@ "use strict";

const compile_cypher_if_exists_1 = require("../../utils/compile-cypher-if-exists");
const CypherFunction_1 = require("./CypherFunction");
const CypherFunctions_1 = require("./CypherFunctions");
/** Represents a predicate function that can be used in a WHERE statement

@@ -30,3 +30,3 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/predicate/)

*/
class PredicateFunction extends CypherFunction_1.CypherFunction {
class PredicateFunction extends CypherFunctions_1.CypherFunction {
}

@@ -33,0 +33,0 @@ exports.PredicateFunction = PredicateFunction;

import type { Expr } from "../../types";
import { CypherFunction } from "./CypherFunction";
import { CypherFunction } from "./CypherFunctions";
/**

@@ -4,0 +4,0 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/string/)

@@ -23,3 +23,3 @@ "use strict";

const filter_truthy_1 = require("../../utils/filter-truthy");
const CypherFunction_1 = require("./CypherFunction");
const CypherFunctions_1 = require("./CypherFunctions");
/**

@@ -31,3 +31,3 @@ * @see [Cypher Documentation](https://neo4j.com/docs/cypher-manual/current/functions/string/)

function left(original, length) {
return new CypherFunction_1.CypherFunction("left", [original, length]);
return new CypherFunctions_1.CypherFunction("left", [original, length]);
}

@@ -41,3 +41,3 @@ exports.left = left;

function lTrim(original) {
return new CypherFunction_1.CypherFunction("lTrim", [original]);
return new CypherFunctions_1.CypherFunction("lTrim", [original]);
}

@@ -51,3 +51,3 @@ exports.lTrim = lTrim;

function replace(original, search, replace) {
return new CypherFunction_1.CypherFunction("replace", [original, search, replace]);
return new CypherFunctions_1.CypherFunction("replace", [original, search, replace]);
}

@@ -61,3 +61,3 @@ exports.replace = replace;

function reverse(original) {
return new CypherFunction_1.CypherFunction("reverse", [original]);
return new CypherFunctions_1.CypherFunction("reverse", [original]);
}

@@ -71,3 +71,3 @@ exports.reverse = reverse;

function right(original, length) {
return new CypherFunction_1.CypherFunction("right", [original, length]);
return new CypherFunctions_1.CypherFunction("right", [original, length]);
}

@@ -81,3 +81,3 @@ exports.right = right;

function rTrim(original) {
return new CypherFunction_1.CypherFunction("rTrim", [original]);
return new CypherFunctions_1.CypherFunction("rTrim", [original]);
}

@@ -91,3 +91,3 @@ exports.rTrim = rTrim;

function split(original, delimiter) {
return new CypherFunction_1.CypherFunction("split", [original, delimiter]);
return new CypherFunctions_1.CypherFunction("split", [original, delimiter]);
}

@@ -101,3 +101,3 @@ exports.split = split;

function substring(original, start, length) {
return new CypherFunction_1.CypherFunction("substring", (0, filter_truthy_1.filterTruthy)([original, start, length]));
return new CypherFunctions_1.CypherFunction("substring", (0, filter_truthy_1.filterTruthy)([original, start, length]));
}

@@ -111,3 +111,3 @@ exports.substring = substring;

function toLower(original) {
return new CypherFunction_1.CypherFunction("toLower", [original]);
return new CypherFunctions_1.CypherFunction("toLower", [original]);
}

@@ -121,3 +121,3 @@ exports.toLower = toLower;

function toString(expression) {
return new CypherFunction_1.CypherFunction("toString", [expression]);
return new CypherFunctions_1.CypherFunction("toString", [expression]);
}

@@ -131,3 +131,3 @@ exports.toString = toString;

function toStringOrNull(expression) {
return new CypherFunction_1.CypherFunction("toStringOrNull", [expression]);
return new CypherFunctions_1.CypherFunction("toStringOrNull", [expression]);
}

@@ -141,3 +141,3 @@ exports.toStringOrNull = toStringOrNull;

function toUpper(original) {
return new CypherFunction_1.CypherFunction("toUpper", [original]);
return new CypherFunctions_1.CypherFunction("toUpper", [original]);
}

@@ -151,5 +151,5 @@ exports.toUpper = toUpper;

function trim(original) {
return new CypherFunction_1.CypherFunction("trim", [original]);
return new CypherFunctions_1.CypherFunction("trim", [original]);
}
exports.trim = trim;
//# sourceMappingURL=StringFunctions.js.map
import type { PropertyRef } from "./references/PropertyRef";
import type { CypherFunction } from "./expressions/functions/CypherFunction";
import type { CypherFunction } from "./expressions/functions/CypherFunctions";
import type { Literal } from "./references/Literal";

@@ -4,0 +4,0 @@ import type { Exists } from "./expressions/Exists";

{
"name": "@neo4j/cypher-builder",
"version": "0.2.0",
"version": "0.2.1",
"description": "Neo4j Cypher query builder",

@@ -39,3 +39,3 @@ "exports": "./dist/index.js",

"expect-type": "0.15.0",
"jest": "29.4.2",
"jest": "29.4.3",
"ts-jest": "29.0.5",

@@ -42,0 +42,0 @@ "typedoc": "0.23.25",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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