Socket
Socket
Sign inDemoInstall

@oridune/epic-odm

Package Overview
Dependencies
2
Maintainers
2
Versions
81
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.30 to 1.0.31

2

package.json
{
"name": "@oridune/epic-odm",
"version": "1.0.30",
"version": "1.0.31",
"description": "Install 1 ODM and code once with any database driver.",

@@ -5,0 +5,0 @@ "main": "./src/index.js",

@@ -16,3 +16,3 @@ import { Operator, TComparisonOperators, TRangeOperators, TMutationOperators, TCheckOperators, TOtherOperators, ValueType } from "../operators";

export declare type MutableFrom<T extends ModelToObject<any>> = {
[key in keyof T]?: T[key] extends ValueType ? T[key] | Operator<TMutationOperators, T[key]> : MutableFrom<T[key]>;
[key in keyof T]?: T[key] extends ValueType ? T[key] | Operator<TMutationOperators | TOtherOperators, T[key]> : MutableFrom<T[key]>;
};

@@ -19,0 +19,0 @@ export declare type ModelToObject<T extends BaseModel> = {

export declare type TComparisonOperators = "EQ" | "NE" | "GT" | "ST" | "GE" | "SE" | "NG" | "NS" | "RG" | "QF";
export declare type TRangeOperators = "BT" | "NB" | "IN" | "NI";
export declare type TMutationOperators = "SetTo" | "ReplaceWith";
export declare type TMutationOperators = "SetTo" | "ReplaceWith" | "Increment";
export declare type TCheckOperators = "NULL" | "NOT_NULL" | "IsArrayEmpty" | "NotArrayEmpty";

@@ -27,2 +27,3 @@ export declare type TOtherOperators = "Raw";

export declare const SetTo: <T extends unknown>(value: T) => Operator<"SetTo", T>;
export declare const Increment: <T extends number>(value: T) => Operator<"Increment", T>;
export declare const ReplaceWith: <T extends unknown>(value: T) => Operator<"ReplaceWith", T>;

@@ -29,0 +30,0 @@ export declare const IsNull: () => Operator<"EQ", null>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Raw = exports.NotArrayEmpty = exports.IsArrayEmpty = exports.NotNull = exports.IsNull = exports.ReplaceWith = exports.SetTo = exports.NotBetween = exports.Between = exports.NotIn = exports.In = exports.Matches = exports.SmallerEqual = exports.GreaterEqual = exports.NotSmaller = exports.Smaller = exports.NotGreater = exports.Greater = exports.NotEqual = exports.IsEqual = exports.Operator = void 0;
exports.Raw = exports.NotArrayEmpty = exports.IsArrayEmpty = exports.NotNull = exports.IsNull = exports.ReplaceWith = exports.Increment = exports.SetTo = exports.NotBetween = exports.Between = exports.NotIn = exports.In = exports.Matches = exports.SmallerEqual = exports.GreaterEqual = exports.NotSmaller = exports.Smaller = exports.NotGreater = exports.Greater = exports.NotEqual = exports.IsEqual = exports.Operator = void 0;
class Operator {

@@ -39,2 +39,4 @@ constructor(Type, Value) {

exports.SetTo = SetTo;
const Increment = (value) => new Operator("Increment", value);
exports.Increment = Increment;
const ReplaceWith = (value) => new Operator("ReplaceWith", value);

@@ -41,0 +43,0 @@ exports.ReplaceWith = ReplaceWith;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc