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

@ronin/compiler

Package Overview
Dependencies
Maintainers
0
Versions
157
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.5.1 to 0.5.2-leo-ron-1083-1-experimental.0

17

dist/index.js

@@ -506,3 +506,4 @@ // src/utils/helpers.ts

{ slug: "unique", type: "boolean" },
{ slug: "filter", type: "json" }
{ slug: "filter", type: "json" },
{ slug: "fields", type: "json", required: true }
]

@@ -701,6 +702,18 @@ },

const filterQuery = instructionList?.filter;
const fields = instructionList?.fields;
const params = [];
let statement2 = `${tableAction}${unique ? " UNIQUE" : ""} INDEX "${indexName}"`;
if (queryType === "create") {
statement2 += ` ON "${tableName}"`;
const columns = fields.map((field) => {
let fieldSelector = "";
if ("slug" in field) {
({ fieldSelector } = getFieldFromSchema(
targetSchema,
field.slug,
"to"
));
}
return fieldSelector;
});
statement2 += ` ON "${tableName}" (${columns.join(", ")})`;
if (filterQuery) {

@@ -707,0 +720,0 @@ const withStatement = handleWith(

2

package.json
{
"name": "@ronin/compiler",
"version": "0.5.1",
"version": "0.5.2-leo-ron-1083-1-experimental.0",
"type": "module",

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

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