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

@dataui/crud-request

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dataui/crud-request - npm Package Compare versions

Comparing version 5.1.3 to 5.1.4-alpha.0

2

lib/interfaces/parsed-request.interface.d.ts
import { ObjectLiteral } from '@dataui/crud-util';
import { ClassTransformOptions } from 'class-transformer';
import { QueryFields, QueryFilter, QueryJoin, QuerySort, SCondition } from '../types';

@@ -7,2 +8,3 @@ export interface ParsedRequestParams {

authPersist: ObjectLiteral;
classTransformOptions: ClassTransformOptions;
search: SCondition;

@@ -9,0 +11,0 @@ filter: QueryFilter[];

import { ObjectLiteral } from '@dataui/crud-util';
import { ClassTransformOptions } from 'class-transformer';
import { CustomOperators, ParamsOptions, ParsedRequestParams } from './interfaces';

@@ -8,2 +9,3 @@ import { QueryFields, QueryFilter, QueryJoin, QuerySort, SCondition, SConditionAND, SFields } from './types';

authPersist: ObjectLiteral;
classTransformOptions: ClassTransformOptions;
search: SCondition;

@@ -29,2 +31,3 @@ filter: QueryFilter[];

setAuthPersist(persist?: ObjectLiteral): void;
setClassTransformOptions(options?: ClassTransformOptions): void;
convertFilterToSearch(filter: QueryFilter): SFields | SConditionAND;

@@ -31,0 +34,0 @@ private getParamNames;

@@ -13,2 +13,3 @@ "use strict";

this.authPersist = undefined;
this.classTransformOptions = undefined;
this.filter = [];

@@ -30,2 +31,3 @@ this.or = [];

authPersist: this.authPersist,
classTransformOptions: this.classTransformOptions,
search: this.search,

@@ -84,2 +86,5 @@ filter: this.filter,

}
setClassTransformOptions(options = {}) {
this.classTransformOptions = options || {};
}
convertFilterToSearch(filter) {

@@ -86,0 +91,0 @@ const isEmptyValue = {

6

package.json
{
"name": "@dataui/crud-request",
"description": "NestJs CRUD for RESTful APIs - request query builder",
"version": "5.1.3",
"version": "5.1.4-alpha.0",
"license": "MIT",

@@ -51,6 +51,6 @@ "main": "lib/index.js",

"dependencies": {
"@dataui/crud-util": "^5.1.3",
"@dataui/crud-util": "^5.1.4-alpha.0",
"qs": "^6.8.0"
},
"gitHead": "aeefa76a24fa7d1753e73db9bd0dde246faa8cd2"
"gitHead": "15c1e1794f6b1591c69060224861d9ab7a39ed63"
}

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