ts-patch-mongoose 2.9.4 → 2.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +8 -8
- package/package.json +1 -1
- package/src/hooks/delete-hooks.ts +3 -2
- package/src/hooks/update-hooks.ts +7 -6
- package/src/index.ts +2 -1
- package/src/patch.ts +4 -3
package/dist/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var isEmpty = require('lodash/isEmpty');
|
|
3
|
+
var isEmpty = require('lodash/isEmpty.js');
|
|
4
4
|
var ms = require('ms');
|
|
5
5
|
var mongoose = require('mongoose');
|
|
6
|
-
var isArray = require('lodash/isArray');
|
|
6
|
+
var isArray = require('lodash/isArray.js');
|
|
7
7
|
var jsonpatch = require('fast-json-patch');
|
|
8
|
-
var chunk = require('lodash/chunk');
|
|
9
|
-
var isFunction = require('lodash/isFunction');
|
|
8
|
+
var chunk = require('lodash/chunk.js');
|
|
9
|
+
var isFunction = require('lodash/isFunction.js');
|
|
10
10
|
var omit = require('omit-deep');
|
|
11
11
|
var EventEmitter = require('node:events');
|
|
12
|
-
var cloneDeep = require('lodash/cloneDeep');
|
|
13
|
-
var forEach = require('lodash/forEach');
|
|
14
|
-
var isObjectLike = require('lodash/isObjectLike');
|
|
15
|
-
var keys = require('lodash/keys');
|
|
12
|
+
var cloneDeep = require('lodash/cloneDeep.js');
|
|
13
|
+
var forEach = require('lodash/forEach.js');
|
|
14
|
+
var isObjectLike = require('lodash/isObjectLike.js');
|
|
15
|
+
var keys = require('lodash/keys.js');
|
|
16
16
|
var powerAssign = require('power-assign');
|
|
17
17
|
var semver = require('semver');
|
|
18
18
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import isEmpty from 'lodash/isEmpty';
|
|
1
|
+
import isEmpty from 'lodash/isEmpty.js';
|
|
2
2
|
import ms from 'ms';
|
|
3
3
|
import mongoose, { Schema, model } from 'mongoose';
|
|
4
|
-
import isArray from 'lodash/isArray';
|
|
4
|
+
import isArray from 'lodash/isArray.js';
|
|
5
5
|
import jsonpatch from 'fast-json-patch';
|
|
6
|
-
import chunk from 'lodash/chunk';
|
|
7
|
-
import isFunction from 'lodash/isFunction';
|
|
6
|
+
import chunk from 'lodash/chunk.js';
|
|
7
|
+
import isFunction from 'lodash/isFunction.js';
|
|
8
8
|
import omit from 'omit-deep';
|
|
9
9
|
import EventEmitter from 'node:events';
|
|
10
|
-
import cloneDeep from 'lodash/cloneDeep';
|
|
11
|
-
import forEach from 'lodash/forEach';
|
|
12
|
-
import isObjectLike from 'lodash/isObjectLike';
|
|
13
|
-
import keys from 'lodash/keys';
|
|
10
|
+
import cloneDeep from 'lodash/cloneDeep.js';
|
|
11
|
+
import forEach from 'lodash/forEach.js';
|
|
12
|
+
import isObjectLike from 'lodash/isObjectLike.js';
|
|
13
|
+
import keys from 'lodash/keys.js';
|
|
14
14
|
import { assign } from 'power-assign';
|
|
15
15
|
import { satisfies } from 'semver';
|
|
16
16
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
// Using CJS lodash with .js extensions for ESM compatibility
|
|
2
|
+
import isArray from 'lodash/isArray.js'
|
|
3
|
+
import isEmpty from 'lodash/isEmpty.js'
|
|
3
4
|
import { isHookIgnored } from '../helpers'
|
|
4
5
|
import { deletePatch } from '../patch'
|
|
5
6
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
// Using CJS lodash with .js extensions for ESM compatibility
|
|
2
|
+
import cloneDeep from 'lodash/cloneDeep.js'
|
|
3
|
+
import forEach from 'lodash/forEach.js'
|
|
4
|
+
import isArray from 'lodash/isArray.js'
|
|
5
|
+
import isEmpty from 'lodash/isEmpty.js'
|
|
6
|
+
import isObjectLike from 'lodash/isObjectLike.js'
|
|
7
|
+
import keys from 'lodash/keys.js'
|
|
7
8
|
import { assign } from 'power-assign'
|
|
8
9
|
import { isHookIgnored, toObjectOptions } from '../helpers'
|
|
9
10
|
import { createPatch, updatePatch } from '../patch'
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// Using CJS lodash with .js extension for ESM compatibility
|
|
2
|
+
import isEmpty from 'lodash/isEmpty.js'
|
|
2
3
|
import { toObjectOptions } from './helpers'
|
|
3
4
|
import { deleteHooksInitialize } from './hooks/delete-hooks'
|
|
4
5
|
import { saveHooksInitialize } from './hooks/save-hooks'
|
package/src/patch.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import jsonpatch from 'fast-json-patch'
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
2
|
+
// Using CJS lodash with .js extensions for ESM compatibility
|
|
3
|
+
import chunk from 'lodash/chunk.js'
|
|
4
|
+
import isEmpty from 'lodash/isEmpty.js'
|
|
5
|
+
import isFunction from 'lodash/isFunction.js'
|
|
5
6
|
import omit from 'omit-deep'
|
|
6
7
|
import em from './em'
|
|
7
8
|
import { HistoryModel } from './model'
|