@autofleet/sheilta 1.0.4 → 1.0.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.
@@ -1,5 +1,3 @@
1
1
  export declare const OPERATORS: string[];
2
2
  export declare const OPERATOR_PREFIX = "$";
3
- export declare const formatOperators: (Sequelize: any) => {
4
- [x: string]: any;
5
- }[];
3
+ export declare const formatOperators: (Sequelize: any) => {};
@@ -21,7 +21,9 @@ exports.OPERATORS = [
21
21
  exports.OPERATOR_PREFIX = '$';
22
22
  exports.formatOperators = (Sequelize) => {
23
23
  const { Op } = Sequelize;
24
- return exports.OPERATORS.map(o => ({
25
- [`${exports.OPERATOR_PREFIX + o}`]: Op[o],
26
- }));
24
+ return exports.OPERATORS.reduce((map, o) => {
25
+ // eslint-disable-next-line no-param-reassign
26
+ map[`${exports.OPERATOR_PREFIX + o}`] = Op[o];
27
+ return map;
28
+ }, {});
27
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sheilta",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "manage cache",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",