New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@forestadmin/datasource-toolkit

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestadmin/datasource-toolkit - npm Package Compare versions

Comparing version

to
1.6.0

4

dist/src/decorators/collection-decorator.d.ts

@@ -19,3 +19,5 @@ import { ActionField, ActionResult } from '../interfaces/action';

execute(caller: Caller, name: string, data: RecordData, filter?: Filter): Promise<ActionResult>;
getForm(caller: Caller, name: string, data?: RecordData, filter?: Filter): Promise<ActionField[]>;
getForm(caller: Caller, name: string, data?: RecordData, filter?: Filter, metas?: {
changedField: string;
}): Promise<ActionField[]>;
create(caller: Caller, data: RecordData[]): Promise<RecordData[]>;

@@ -22,0 +24,0 @@ list(caller: Caller, filter: PaginatedFilter, projection: Projection): Promise<RecordData[]>;

@@ -35,5 +35,5 @@ "use strict";

}
async getForm(caller, name, data, filter) {
async getForm(caller, name, data, filter, metas) {
const refinedFilter = await this.refineFilter(caller, filter);
return this.childCollection.getForm(caller, name, data, refinedFilter);
return this.childCollection.getForm(caller, name, data, refinedFilter, metas);
}

@@ -73,2 +73,2 @@ async create(caller, data) {

exports.default = CollectionDecorator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi1kZWNvcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGVjb3JhdG9ycy9jb2xsZWN0aW9uLWRlY29yYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVdBLE1BQXFCLG1CQUFtQjtJQU10QyxJQUFJLE1BQU07UUFDUixJQUFJLENBQUMsSUFBSSxDQUFDLFVBQVUsRUFBRTtZQUNwQixzRkFBc0Y7WUFDdEYsTUFBTSxTQUFTLEdBQUcsSUFBSSxDQUFDLGVB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PLElBQUksQ0FBQyxlQUFlLENBQUMsV0FBVyxDQUFDLE1BQU0sRUFBRSxJQUFJLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDbEUsQ0FBQztJQUVTLGlCQUFpQjtRQUN6QixJQUFJLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQztJQUN6QixDQUFDO0lBRVMsS0FBSyxDQUFDLFlBQVksQ0FBQyxNQUFjLEVBQUUsTUFBd0I7UUFDbkUsT0FBTyxNQUFNLENBQUM7SUFDaEIsQ0FBQztJQUVTLFlBQVksQ0FBQyxTQUEyQjtRQUNoRCxPQUFPLFNBQVMsQ0FBQztJQUNuQixDQUFDO0NBQ0Y7QUFuSEQsc0NBbUhDIn0=

@@ -22,3 +22,5 @@ import { ActionField, ActionResult } from './action';

execute(caller: Caller, name: string, formValues: RecordData, filter?: Filter): Promise<ActionResult>;
getForm(caller: Caller, name: string, formValues?: RecordData, filter?: Filter): Promise<ActionField[]>;
getForm(caller: Caller, name: string, formValues?: RecordData, filter?: Filter, metas?: {
changedField: string;
}): Promise<ActionField[]>;
create(caller: Caller, data: RecordData[]): Promise<RecordData[]>;

@@ -25,0 +27,0 @@ list(caller: Caller, filter: PaginatedFilter, projection: Projection): Promise<RecordData[]>;

{
"name": "@forestadmin/datasource-toolkit",
"version": "1.5.2",
"version": "1.6.0",
"main": "dist/src/index.js",

@@ -5,0 +5,0 @@ "license": "GPL-3.0",