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

@ronin/compiler

Package Overview
Dependencies
Maintainers
0
Versions
348
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ronin/compiler - npm Package Compare versions

Comparing version 0.12.8-leo-ron-1071-experimental-262 to 0.12.8-leo-ron-1071-experimental-263

80

dist/index.d.ts

@@ -0,1 +1,40 @@

/**
* A list of placeholders that can be located inside queries after those queries were
* serialized into JSON objects.
*
* These placeholders are used to represent special keys and values. For example, if a
* query is nested into a query, the nested query will be marked with `__RONIN_QUERY`,
* which allows for distinguishing that nested query from an object of instructions.
*/
declare const QUERY_SYMBOLS: {
readonly QUERY: "__RONIN_QUERY";
readonly EXPRESSION: "__RONIN_EXPRESSION";
readonly FIELD: "__RONIN_FIELD_";
readonly FIELD_PARENT: "__RONIN_FIELD_PARENT_";
readonly FIELD_PARENT_OLD: "__RONIN_FIELD_PARENT_OLD_";
readonly FIELD_PARENT_NEW: "__RONIN_FIELD_PARENT_NEW_";
readonly VALUE: "__RONIN_VALUE";
};
type RoninErrorCode = 'MODEL_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'INDEX_NOT_FOUND' | 'TRIGGER_NOT_FOUND' | 'PRESET_NOT_FOUND' | 'INVALID_WITH_VALUE' | 'INVALID_TO_VALUE' | 'INVALID_INCLUDING_VALUE' | 'INVALID_FOR_VALUE' | 'INVALID_BEFORE_OR_AFTER_INSTRUCTION' | 'INVALID_MODEL_VALUE' | 'MUTUALLY_EXCLUSIVE_INSTRUCTIONS' | 'MISSING_INSTRUCTION' | 'MISSING_FIELD';
interface Issue {
message: string;
path: Array<string | number>;
}
interface Details {
message: string;
code: RoninErrorCode;
field?: string;
fields?: Array<string>;
issues?: Array<Issue>;
queries?: Array<Query> | null;
}
declare class RoninError extends Error {
code: Details['code'];
field?: Details['field'];
fields?: Details['fields'];
issues?: Details['issues'];
queries?: Details['queries'];
constructor(details: Details);
}
type QueryTypeEnum = 'get' | 'set' | 'add' | 'remove' | 'count';

@@ -7,3 +46,3 @@ type ModelQueryTypeEnum = 'create' | 'alter' | 'drop';

type Expression = {
__RONIN_EXPRESSION: string;
[QUERY_SYMBOLS.EXPRESSION]: string;
};

@@ -286,41 +325,2 @@ type WithInstructionRefinement = FieldValue | {

/**
* A list of placeholders that can be located inside queries after those queries were
* serialized into JSON objects.
*
* These placeholders are used to represent special keys and values. For example, if a
* query is nested into a query, the nested query will be marked with `__RONIN_QUERY`,
* which allows for distinguishing that nested query from an object of instructions.
*/
declare const QUERY_SYMBOLS: {
readonly QUERY: "__RONIN_QUERY";
readonly EXPRESSION: "__RONIN_EXPRESSION";
readonly FIELD: "__RONIN_FIELD_";
readonly FIELD_PARENT: "__RONIN_FIELD_PARENT_";
readonly FIELD_PARENT_OLD: "__RONIN_FIELD_PARENT_OLD_";
readonly FIELD_PARENT_NEW: "__RONIN_FIELD_PARENT_NEW_";
readonly VALUE: "__RONIN_VALUE";
};
type RoninErrorCode = 'MODEL_NOT_FOUND' | 'FIELD_NOT_FOUND' | 'INDEX_NOT_FOUND' | 'TRIGGER_NOT_FOUND' | 'PRESET_NOT_FOUND' | 'INVALID_WITH_VALUE' | 'INVALID_TO_VALUE' | 'INVALID_INCLUDING_VALUE' | 'INVALID_FOR_VALUE' | 'INVALID_BEFORE_OR_AFTER_INSTRUCTION' | 'INVALID_MODEL_VALUE' | 'MUTUALLY_EXCLUSIVE_INSTRUCTIONS' | 'MISSING_INSTRUCTION' | 'MISSING_FIELD';
interface Issue {
message: string;
path: Array<string | number>;
}
interface Details {
message: string;
code: RoninErrorCode;
field?: string;
fields?: Array<string>;
issues?: Array<Issue>;
queries?: Array<Query> | null;
}
declare class RoninError extends Error {
code: Details['code'];
field?: Details['field'];
fields?: Details['fields'];
issues?: Details['issues'];
queries?: Details['queries'];
constructor(details: Details);
}
interface TransactionOptions {

@@ -327,0 +327,0 @@ /** A list of models that already exist in the database. */

{
"name": "@ronin/compiler",
"version": "0.12.8-leo-ron-1071-experimental-262",
"version": "0.12.8-leo-ron-1071-experimental-263",
"type": "module",

@@ -40,5 +40,4 @@ "description": "Compiles RONIN queries to SQL statements.",

"tsup": "8.3.0",
"typescript": "5.6.2",
"zod": "3.23.8"
"typescript": "5.6.2"
}
}

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