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

mongo-dot-notation

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-dot-notation - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

10

dist/array.d.ts
import { $currentDate } from './field';
declare type Union<A, B> = {
type Union<A, B> = {
[k in keyof A | keyof B]: k extends keyof A ? A[k] : k extends keyof B ? B[k] : never;

@@ -193,3 +193,3 @@ };

*/
export declare const $push: <T>(value?: T | T[] | undefined) => {
export declare const $push: <T>(value?: T | T[]) => {
/**

@@ -496,3 +496,3 @@ * Specifies that value to add is an array and that each element should be added.

*/
$sort: <S_1>(specification?: S_1 | undefined) => Union<unknown, unknown>;
$sort: <S>(specification?: S | undefined) => Union<unknown, unknown>;
}, unknown>;

@@ -517,3 +517,3 @@ }, {

*/
$sort: <S_2>(specification?: S_2 | undefined) => Union<{
$sort: <S_1>(specification?: S_1 | undefined) => Union<{
/**

@@ -551,3 +551,3 @@ * Specifies the location in the array at which the `$push` operator inserts elements.

*/
export declare const $sort: <S>(specification?: S | undefined) => Union<{
export declare const $sort: <S>(specification?: S) => Union<{
/**

@@ -554,0 +554,0 @@ * Limits the number of array elements.

@@ -12,3 +12,3 @@ /**

*/
export declare const $inc: <T>(value?: T | undefined) => import("./operator").Operator;
export declare const $inc: <T>(value?: T) => import("./operator").Operator;
/**

@@ -33,3 +33,3 @@ * Updates the value of the field to a specified value if the specified value is **greater than**

*/
export declare const $mul: <T>(value?: T | undefined) => import("./operator").Operator;
export declare const $mul: <T>(value?: T) => import("./operator").Operator;
/**

@@ -36,0 +36,0 @@ * Updates the name of a field.

/**
* Flatten options.
*/
export declare type Options = {
export type Options = {
/**

@@ -6,0 +6,0 @@ * If true, arrays will be flattened and their indexes will be used as keys.

@@ -16,2 +16,2 @@ export interface Operator {

export declare const getValue: (operator: any) => any;
export declare const create: <T, U = Operator>(type: string, value: T, obj?: U | undefined) => U;
export declare const create: <T, U = Operator>(type: string, value: T, obj?: U) => U;
{
"name": "mongo-dot-notation",
"version": "3.1.0",
"version": "3.1.1",
"description": "Transform objects to MongoDB update instructions",

@@ -41,18 +41,18 @@ "author": {

"test:e2e": "jest tests/*.e2e.ts",
"test:e2e:docker": "docker-compose up --no-log-prefix --exit-code-from node --attach node"
"test:e2e:docker": "docker compose up --no-log-prefix --exit-code-from node --attach node"
},
"devDependencies": {
"@types/jest": "^28.1.6",
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7",
"eslint": "^8.20.0",
"jest": "^28.1.3",
"mongodb": "^4.8.0",
"prettier": "^2.7.1",
"ts-jest": "^28.0.7",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
"@types/jest": "^29.5.12",
"@types/node": "^20.11.30",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0",
"jest": "^29.7.0",
"mongodb": "^6.5.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.4.3"
},
"sideEffects": false
}

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