Socket
Socket
Sign inDemoInstall

orma

Package Overview
Dependencies
Maintainers
2
Versions
233
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orma - npm Package Compare versions

Comparing version 1.0.32 to 1.0.33

2

build/mutate/mutate.d.ts
import { orma_schema } from '../introspector/introspector';
export declare type mutate_function = (sql_strings: string[], sql_jsons: Record<string, unknown>[]) => Record<string, unknown>[];
export declare type mutate_function = (sql_strings: string[], sql_jsons: Record<string, unknown>[]) => Promise<Record<string, unknown>[]>;
export declare type operation = 'create' | 'update' | 'delete';

@@ -4,0 +4,0 @@ export interface mutate_functions {

@@ -13,7 +13,7 @@ "use strict";

for (const tier of mutate_plan) {
await Promise.all(tier.map(({ operation, paths }) => {
await Promise.all(tier.map(async ({ operation, paths }) => {
const command_jsons = exports.get_command_jsons(operation, paths, mutation_result, orma_schema);
const command_sqls = command_jsons.map(command_json => query_1.json_to_sql(command_jsons));
const mutate_function = mutate_functions[operation];
const results = mutate_function(command_sqls, command_jsons);
const results = await mutate_function(command_sqls, command_jsons);
paths.forEach((path, i) => {

@@ -20,0 +20,0 @@ helpers_1.deep_set(path, results[i], mutation_result);

{
"name": "orma",
"version": "1.0.32",
"version": "1.0.33",
"description": "A declarative relational syncronous orm",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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