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

@rsql/ast

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rsql/ast - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-canary.10.71f98a5.0

105

dist/index.d.ts
// Generated by dts-bundle v0.7.3
const EQ: "==";
const NEQ: "!=";
const LE: "<=";
const GE: ">=";
const LT: "<";
const GT: ">";
const IN: "=in=";
const OUT: "=out=";
const LE_VERBOSE: "=le=";
const GE_VERBOSE: "=ge=";
const LT_VERBOSE: "=lt=";
const GT_VERBOSE: "=gt=";
type CustomComparisonOperator = string;
const CanonicalComparisonOperators: ("==" | "!=" | "<=" | ">=" | "<" | ">" | "=in=" | "=out=")[];
type CanonicalComparisonOperator = typeof CanonicalComparisonOperators[number];
const VerboseComparisonOperators: ("=le=" | "=ge=" | "=lt=" | "=gt=")[];
type VerboseComparisonOperator = typeof VerboseComparisonOperators[number];
const ComparisonOperators: (
declare const EQ: "==";
declare const NEQ: "!=";
declare const LE: "<=";
declare const GE: ">=";
declare const LT: "<";
declare const GT: ">";
declare const IN: "=in=";
declare const OUT: "=out=";
declare const LE_VERBOSE: "=le=";
declare const GE_VERBOSE: "=ge=";
declare const LT_VERBOSE: "=lt=";
declare const GT_VERBOSE: "=gt=";
declare type CustomComparisonOperator = string;
declare const CanonicalComparisonOperators: ("==" | "!=" | "<=" | ">=" | "<" | ">" | "=in=" | "=out=")[];
declare type CanonicalComparisonOperator = typeof CanonicalComparisonOperators[number];
declare const VerboseComparisonOperators: ("=le=" | "=ge=" | "=lt=" | "=gt=")[];
declare type VerboseComparisonOperator = typeof VerboseComparisonOperators[number];
declare const ComparisonOperators: (
| "=="

@@ -34,4 +34,7 @@ | "!="

)[];
type ComparisonOperator = typeof ComparisonOperators[number] | CustomComparisonOperator;
function isComparisonOperator(candidate: string, operator?: ComparisonOperator): candidate is ComparisonOperator;
declare type ComparisonOperator = typeof ComparisonOperators[number] | CustomComparisonOperator;
declare function isComparisonOperator(
candidate: string,
operator?: ComparisonOperator
): candidate is ComparisonOperator;
export {

@@ -59,13 +62,13 @@ EQ,

const AND: ";";
const OR: ",";
const AND_VERBOSE: "and";
const OR_VERBOSE: "or";
const CanonicalLogicOperators: (";" | ",")[];
type CanonicalLogicOperator = typeof CanonicalLogicOperators[number];
const VerboseLogicOperators: ("and" | "or")[];
type VerboseLogicOperator = typeof VerboseLogicOperators[number];
const LogicOperators: (";" | "," | "and" | "or")[];
type LogicOperator = typeof LogicOperators[number];
function isLogicOperator(candidate: string, operator?: LogicOperator): candidate is LogicOperator;
declare const AND: ";";
declare const OR: ",";
declare const AND_VERBOSE: "and";
declare const OR_VERBOSE: "or";
declare const CanonicalLogicOperators: (";" | ",")[];
declare type CanonicalLogicOperator = typeof CanonicalLogicOperators[number];
declare const VerboseLogicOperators: ("and" | "or")[];
declare type VerboseLogicOperator = typeof VerboseLogicOperators[number];
declare const LogicOperators: (";" | "," | "and" | "or")[];
declare type LogicOperator = typeof LogicOperators[number];
declare function isLogicOperator(candidate: string, operator?: LogicOperator): candidate is LogicOperator;
export {

@@ -85,7 +88,7 @@ AND,

const ReservedChars: readonly ['"', "'", "(", ")", ";", ",", "=", "!", "~", "<", ">", " ", "\n", "\t", "\r"];
type ReservedChar = typeof ReservedChars[number];
declare const ReservedChars: readonly ['"', "'", "(", ")", ";", ",", "=", "!", "~", "<", ">", " ", "\n", "\t", "\r"];
declare type ReservedChar = typeof ReservedChars[number];
export { ReservedChars, ReservedChar };
const NodeType: {
declare const NodeType: {
readonly SELECTOR: "SELECTOR";

@@ -115,8 +118,8 @@ readonly VALUE: "VALUE";

}
type ComparisonNode = BinaryNode<typeof NodeType.COMPARISON, SelectorNode, ComparisonOperator, ValueNode>;
type LogicNode = BinaryNode<typeof NodeType.LOGIC, ExpressionNode, LogicOperator, ExpressionNode>;
type ExpressionNode = ComparisonNode | LogicNode;
function createSelectorNode(selector: string, skipChecks?: boolean): SelectorNode;
function createValueNode(value: string | string[], skipChecks?: boolean): ValueNode;
function createComparisonNode(
declare type ComparisonNode = BinaryNode<typeof NodeType.COMPARISON, SelectorNode, ComparisonOperator, ValueNode>;
declare type LogicNode = BinaryNode<typeof NodeType.LOGIC, ExpressionNode, LogicOperator, ExpressionNode>;
declare type ExpressionNode = ComparisonNode | LogicNode;
declare function createSelectorNode(selector: string, skipChecks?: boolean): SelectorNode;
declare function createValueNode(value: string | string[], skipChecks?: boolean): ValueNode;
declare function createComparisonNode(
selector: SelectorNode,

@@ -127,3 +130,3 @@ operator: ComparisonOperator,

): ComparisonNode;
function createLogicNode(
declare function createLogicNode(
left: ExpressionNode,

@@ -134,12 +137,12 @@ operator: LogicOperator,

): LogicNode;
function isNode(candidate: unknown): candidate is Node;
function isSelectorNode(candidate: unknown): candidate is SelectorNode;
function isValueNode(candidate: unknown): candidate is ValueNode;
function isComparisonNode(candidate: unknown, operator?: ComparisonOperator): candidate is ComparisonNode;
function isLogicNode(candidate: unknown, operator?: LogicOperator): candidate is LogicNode;
function isExpressionNode(candidate: unknown): candidate is ExpressionNode;
function getSelector(comparison: ComparisonNode): string;
function getValue(comparison: ComparisonNode): string | string[];
function getSingleValue(comparison: ComparisonNode): string;
function getMultiValue(comparison: ComparisonNode): string[];
declare function isNode(candidate: unknown): candidate is Node;
declare function isSelectorNode(candidate: unknown): candidate is SelectorNode;
declare function isValueNode(candidate: unknown): candidate is ValueNode;
declare function isComparisonNode(candidate: unknown, operator?: ComparisonOperator): candidate is ComparisonNode;
declare function isLogicNode(candidate: unknown, operator?: LogicOperator): candidate is LogicNode;
declare function isExpressionNode(candidate: unknown): candidate is ExpressionNode;
declare function getSelector(comparison: ComparisonNode): string;
declare function getValue(comparison: ComparisonNode): string | string[];
declare function getSingleValue(comparison: ComparisonNode): string;
declare function getMultiValue(comparison: ComparisonNode): string[];
export {

@@ -146,0 +149,0 @@ createSelectorNode,

@@ -7,3 +7,3 @@ {

"author": "Piotr Oleś <piotrek.oles@gmail.com>",
"version": "1.0.1",
"version": "1.0.2-canary.10.71f98a5.0",
"sideEffects": false,

@@ -25,3 +25,3 @@ "main": "dist/index.js",

"build:lib": "tsc -b tsconfig.json",
"build:dist": "rollup -c && dts-bundle --name \"@rsql/ast\" --main lib/index.d.ts --out ../dist/index.d.ts --outputAsModuleFolder && prettier --write ./dist",
"build:dist": "rollup -c && node ../../patches/dts-bundle/index.js --name \"@rsql/ast\" --main lib/index.d.ts --out ../dist/index.d.ts --outputAsModuleFolder && prettier --write ./dist",
"build": "yarn build:clean && yarn build:lib && yarn build:dist"

@@ -40,3 +40,3 @@ },

},
"gitHead": "f8ab53eab94fe1de4cde7c518dad67f57710f727"
"gitHead": "71f98a5361c36fc92d02a50ed3516416f18732ed"
}
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