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

@contember/schema

Package Overview
Dependencies
Maintainers
5
Versions
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contember/schema - npm Package Compare versions

Comparing version 0.8.0-alpha.3 to 0.8.0-alpha.4

15

dist/src/schema/input.d.ts

@@ -69,2 +69,3 @@ import Value from './value';

by: UniqueWhere<E>;
filter?: Where<Condition<Value.FieldValue<E>>>;
data: UpdateDataInput<E>;

@@ -77,2 +78,3 @@ }

by: UniqueWhere<E>;
filter?: Where<Condition<Value.FieldValue<E>>>;
}

@@ -103,6 +105,10 @@ interface UniqueQueryInput<E = never> {

}
type FieldOrderBy<T = OrderDirection> = T | OrderBy<T>;
interface OrderBy<T = OrderDirection> {
[fieldName: string]: FieldOrderBy<T>;
type FieldOrderBy = OrderDirection | OrderBy;
interface OrderByFields {
[fieldName: string]: FieldOrderBy;
}
type OrderBy = OrderByFields & {
_random?: boolean;
_randomSeeded?: number;
};
interface Condition<T = Value.FieldValue> {

@@ -124,2 +130,5 @@ and?: Array<Condition<T>>;

always?: true;
contains?: string;
startsWith?: string;
endsWith?: string;
}

@@ -126,0 +135,0 @@ interface UniqueWhere<E = never> {

4

package.json
{
"name": "@contember/schema",
"version": "0.8.0-alpha.3",
"version": "0.8.0-alpha.4",
"license": "Apache-2.0",

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

},
"gitHead": "8c72aa88a27d3120a52e6968fe0e188490005b39"
"gitHead": "4c622600158ead6c971b56393b2716625ac657dc"
}

@@ -78,2 +78,3 @@ import Value from './value'

by: UniqueWhere<E>
filter?: Where<Condition<Value.FieldValue<E>>>
data: UpdateDataInput<E>

@@ -88,2 +89,3 @@ }

by: UniqueWhere<E>
filter?: Where<Condition<Value.FieldValue<E>>>
}

@@ -133,8 +135,10 @@

export type FieldOrderBy<T = OrderDirection> = T | OrderBy<T>
export type FieldOrderBy = OrderDirection | OrderBy
export interface OrderBy<T = OrderDirection> {
[fieldName: string]: FieldOrderBy<T>
export interface OrderByFields {
[fieldName: string]: FieldOrderBy
}
export type OrderBy = OrderByFields & { _random?: boolean; _randomSeeded?: number }
export interface Condition<T = Value.FieldValue> {

@@ -157,2 +161,5 @@ and?: Array<Condition<T>>

always?: true
contains?: string
startsWith?: string
endsWith?: string
}

@@ -159,0 +166,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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