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.226 to 1.0.227

build/prepopulate/prepopulate.d.ts

6

build/schema/introspector.d.ts

@@ -56,2 +56,8 @@ /**

$database_type: SupportedDatabases;
$prepopulate?: {
supercede: boolean;
rows: {
[x: string]: any;
}[];
} | undefined;
$fields: {

@@ -58,0 +64,0 @@ [x: string]: {

@@ -17,4 +17,9 @@ import { Edge } from '../../helpers/schema_helpers';

type OrmaIndex = Optional<Omit<IndexDefinition, '$constraint' | '$data_type'>, '$index'>;
type Prepopulate = {
supercede: boolean;
rows: readonly Record<string, any>[];
};
type OrmaEntitySchema = Omit<RegularCreateStatement, '$definitions' | '$create_table' | '$if_not_exists' | '$temporary'> & {
readonly $database_type: SupportedDatabases;
readonly $prepopulate?: Prepopulate;
readonly $fields: {

@@ -21,0 +26,0 @@ readonly [field_name: string]: Omit<FieldDefinition, '$constraint' | '$index' | '$name'>;

2

package.json
{
"name": "orma",
"version": "1.0.226",
"version": "1.0.227",
"description": "A declarative relational syncronous orm",

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

import { Edge } from '../../helpers/schema_helpers'
import { Optional } from '../helper_types'
import { OrmaMutation } from '../mutation/mutation_types'
import {

@@ -35,2 +36,7 @@ ConstraintDefinition,

type Prepopulate = {
supercede: boolean
rows: readonly Record<string, any>[] // OrmaMutation<Schema>[Entity]
}
type OrmaEntitySchema = Omit<

@@ -41,2 +47,3 @@ RegularCreateStatement,

readonly $database_type: SupportedDatabases
readonly $prepopulate?: Prepopulate
readonly $fields: {

@@ -62,2 +69,2 @@ readonly [field_name: string]: Omit<

export type SupportedDatabases = 'mysql' | 'postgres' | 'sqlite'
export type SupportedDatabases = 'mysql' | 'postgres' | 'sqlite'
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