@universis/janitor 2.4.2 → 2.4.4

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.
@@ -5,7 +5,7 @@ const {TraceUtils} = require('@themost/common');
5
5
  * @param {import('@themost/data').DataEventArgs} event
6
6
  * @param {Function} callback
7
7
  */
8
- export function afterChange(event, callback) {
8
+ function afterChange(event, callback) {
9
9
  try {
10
10
  if (event.previous == null) {
11
11
  return callback();
@@ -49,7 +49,7 @@ function afterRemove(event, callback) {
49
49
  return afterChange(event, callback);
50
50
  }
51
51
 
52
- export {
52
+ module.exports = {
53
53
  afterSave,
54
54
  afterRemove
55
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universis/janitor",
3
- "version": "2.4.2",
3
+ "version": "2.4.4",
4
4
  "description": "Universis api plugin for handling user authorization and rate limiting",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",