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

@trapi/query

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trapi/query - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

6

dist/parameter/filters/build.js

@@ -19,3 +19,7 @@ "use strict";

[type_1.FilterOperator.LIKE]: 50,
[type_1.FilterOperator.IN]: 150
[type_1.FilterOperator.LESS_THAN_EQUAL]: 150,
[type_1.FilterOperator.LESS_THAN]: 450,
[type_1.FilterOperator.MORE_THAN_EQUAL]: 1350,
[type_1.FilterOperator.MORE_THAN]: 4050,
[type_1.FilterOperator.IN]: 13105
};

@@ -22,0 +26,0 @@ function transformOperatorConfigToValue(data) {

2

dist/parameter/filters/type.d.ts

@@ -29,3 +29,3 @@ import { ParseOutputElementBase, ParseOptionsBase } from "../../parse";

declare type FilterValueWithOperator<V> = V extends string | number | boolean ? (FilterValue<V> | FilterValueOperator<V> | Array<FilterValueOperator<V>>) : never;
declare type FilterValueOperator<V extends string | number | boolean> = `!${V}` | `!~${V}` | `~${V}`;
declare type FilterValueOperator<V extends string | number | boolean> = `!${V}` | `!~${V}` | `~${V}` | `<${V}` | `<=${V}` | `>${V}` | `>=${V}`;
export declare type FiltersBuildInput<T> = {

@@ -32,0 +32,0 @@ [K in keyof T]?: T[K] extends OnlyScalar<T[K]> ? T[K] | FilterValueWithOperator<T[K]> | FilterOperatorConfig<T[K], FilterOperator> : T[K] extends OnlyObject<T[K]> ? FiltersBuildInput<Flatten<T[K]>> : never;

{
"name": "@trapi/query",
"version": "2.0.2",
"version": "2.0.3",
"description": "An tiny library which provides utility types/functions for request and response query handling.",

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

},
"gitHead": "7f9df1564b6d986915fa819ae172e983d734df9b"
"gitHead": "e10babc473afc65c969d9b8323e4524e26164480"
}

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