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

remult

Package Overview
Dependencies
Maintainers
2
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remult - npm Package Compare versions

Comparing version 0.8.3 to 0.9.1

4

index.d.ts

@@ -1,2 +0,2 @@

export { Field, FieldsMetadata, Entity, EntityBase, FieldRef, Fields, EntityMetadata, EntityOrderBy, EntityFilter, FindOptions, IterableResult, IterateOptions, Repository, FieldType, FindFirstOptions, ComparisonValueFilter, ValueFilter, ContainsStringValueFilter, getFields, EntityRef, getEntityRef, SortSegments, ValueListFieldType, DateOnlyField, IntegerField, CaptionTransformer } from './src/remult3';
export { Field, FieldsMetadata, Entity, EntityBase, FieldRef, Fields, EntityMetadata, EntityOrderBy, EntityFilter, FindOptions, QueryResult, QueryOptions, Repository, FieldType, FindFirstOptions, ComparisonValueFilter, ValueFilter, ContainsStringValueFilter, getFields, EntityRef, getEntityRef, SortSegments, ValueListFieldType, DateOnlyField, IntegerField, CaptionTransformer } from './src/remult3';
export { EntityOptions } from './src/entity';

@@ -14,3 +14,3 @@ export { DataProvider, EntityDataProvider, EntityDataProviderFindOptions, ErrorInfo, RestDataProviderHttpProvider } from './src/data-interfaces';

export { Controller, BackendMethodOptions, BackendMethod, ProgressListener } from './src/server-action';
export { Allowed, Allow, Remult, isBackend, AllowedForInstance, EventDispatcher, EventSource, HttpProvider, IterateToArrayOptions, Unobserve, UserInfo } from './src/context';
export { Allowed, Allow, Remult, isBackend, AllowedForInstance, EventDispatcher, EventSource, HttpProvider, Unobserve, UserInfo } from './src/context';
export { IdEntity } from './src/id-entity';

@@ -17,0 +17,0 @@ export { SortSegment, Sort } from './src/sort';

{
"name": "remult",
"version": "0.8.3",
"version": "0.9.1",
"description": "remult core lib",

@@ -5,0 +5,0 @@ "homepage": "https://remult.github.io/",

@@ -63,8 +63,4 @@ import { DataProvider } from "./data-interfaces";

}
export interface IterateToArrayOptions {
limit?: number;
page?: number;
}
export declare const iterateConfig: {
pageSize: number;
export declare const queryConfig: {
defaultPageSize: number;
};

@@ -71,0 +67,0 @@ export interface EventDispatcher {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventSource = exports.iterateConfig = exports.Allow = exports.setControllerSettings = exports.MethodHelper = exports.ClassHelper = exports.classHelpers = exports.allEntities = exports.Remult = exports.isBackend = exports.processHttpException = exports.toPromise = void 0;
exports.EventSource = exports.queryConfig = exports.Allow = exports.setControllerSettings = exports.MethodHelper = exports.ClassHelper = exports.classHelpers = exports.allEntities = exports.Remult = exports.isBackend = exports.processHttpException = exports.toPromise = void 0;
var tslib_1 = require("tslib");

@@ -326,4 +326,4 @@ var server_action_1 = require("./server-action");

exports.Allow = Allow;
exports.iterateConfig = {
pageSize: 200
exports.queryConfig = {
defaultPageSize: 200
};

@@ -330,0 +330,0 @@ var EventSource = /** @class */ (function () {

import { ClassType } from "../../classType";
import { FieldMetadata } from "../column-interfaces";
import { IterateToArrayOptions, Unobserve } from "../context";
import { Unobserve } from "../context";
import { EntityOptions as EntityOptions } from "../entity";

@@ -78,3 +78,3 @@ import { SortSegment } from "../sort";

find(options?: FindOptions<entityType>): Promise<entityType[]>;
iterate(options?: IterateOptions<entityType>): IterableResult<entityType>;
query(options?: QueryOptions<entityType>): QueryResult<entityType>;
findFirst(where?: EntityFilter<entityType>, options?: FindFirstOptions<entityType>): Promise<entityType>;

@@ -168,3 +168,3 @@ findId(id: entityType extends {

}
export interface IterateOptions<entityType> extends FindOptionsBase<entityType> {
export interface QueryOptions<entityType> extends FindOptionsBase<entityType> {
pageSize?: number;

@@ -175,7 +175,7 @@ progress?: {

}
export interface IterableResult<entityType> {
toArray(options?: IterateToArrayOptions): Promise<entityType[]>;
first(): Promise<entityType>;
export interface QueryResult<entityType> {
getArray(page?: number): Promise<entityType[]>;
count(): Promise<number>;
forEach(what: (item: entityType) => Promise<any>): Promise<number>;
paginate(): Promise<Paginator<entityType>>;
[Symbol.asyncIterator](): {

@@ -185,1 +185,7 @@ next: () => Promise<IteratorResult<entityType, entityType>>;

}
export interface Paginator<entityType> {
items: entityType[];
count(): Promise<number>;
hasNextPage: boolean;
nextPage(): Promise<Paginator<entityType>>;
}
import { FieldMetadata, FieldOptions, ValueListItem } from "../column-interfaces";
import { EntityOptions } from "../entity";
import { LookupColumn } from '../column';
import { EntityMetadata, FieldRef, Fields, EntityFilter, FindOptions, Repository, EntityRef, IterateOptions, IterableResult, EntityOrderBy, FieldsMetadata, IdMetadata, FindFirstOptionsBase, FindFirstOptions, PartialEB } from "./remult3";
import { EntityMetadata, FieldRef, Fields, EntityFilter, FindOptions, Repository, EntityRef, QueryOptions, QueryResult, EntityOrderBy, FieldsMetadata, IdMetadata, FindFirstOptionsBase, FindFirstOptions, PartialEB } from "./remult3";
import { ClassType } from "../../classType";

@@ -25,3 +25,3 @@ import { Remult } from "../context";

addEventListener(listener: entityEventListener<entityType>): () => void;
iterate(options?: IterateOptions<entityType>): IterableResult<entityType>;
query(options?: QueryOptions<entityType>): QueryResult<entityType>;
getEntityRef(entity: entityType): EntityRef<entityType>;

@@ -28,0 +28,0 @@ delete(entity: entityType): Promise<void>;

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 too big to display

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