ismx-nexo-node-app 0.4.11 → 0.4.13

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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class ArrayUtils {
4
+ static equals(first, second) {
5
+ if (first === undefined || second === undefined)
6
+ return false;
7
+ if (first.length !== second.length)
8
+ return false;
9
+ return first.every((value, index) => value === second[index]);
10
+ }
11
+ }
12
+ exports.default = ArrayUtils;
package/dist/js/index.js CHANGED
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.RestUtils = exports.QueryUtils = exports.RepositoryRestFormalTemplate = exports.RepositoryRestFormal = exports.RepositoryRest = exports.RepositoryDatabasePostgres = exports.RepositoryDatabase = exports.Repository = exports.StringUtils = exports.NumberUtils = exports.CryptoUtils = exports.DateUtils = exports.BusinessLogger = exports.FormalError = exports.BusinessErrors = exports.BusinessThread = exports.BusinessServer = exports.BusinessProxy = exports.BusinessState = exports.Business = exports.ColorUtils = exports.ServiceRestFormalTemplate = exports.ServiceRestFormal = exports.ServiceRest = exports.HttpResponse = exports.Service = void 0;
29
+ exports.RestUtils = exports.QueryUtils = exports.RepositoryRestFormalTemplate = exports.RepositoryRestFormal = exports.RepositoryRest = exports.RepositoryDatabasePostgres = exports.RepositoryDatabase = exports.Repository = exports.ArrayUtils = exports.StringUtils = exports.NumberUtils = exports.CryptoUtils = exports.DateUtils = exports.BusinessLogger = exports.FormalError = exports.BusinessErrors = exports.BusinessThread = exports.BusinessServer = exports.BusinessProxy = exports.BusinessState = exports.Business = exports.ColorUtils = exports.ServiceRestFormalTemplate = exports.ServiceRestFormal = exports.ServiceRest = exports.HttpResponse = exports.Service = void 0;
30
30
  const Service_1 = __importStar(require("./api/Service"));
31
31
  class Service extends Service_1.default {
32
32
  }
@@ -98,6 +98,10 @@ const StringUtils_1 = __importDefault(require("./business/utils/StringUtils"));
98
98
  class StringUtils extends StringUtils_1.default {
99
99
  }
100
100
  exports.StringUtils = StringUtils;
101
+ const ArrayUtils_1 = __importDefault(require("./business/utils/ArrayUtils"));
102
+ class ArrayUtils extends ArrayUtils_1.default {
103
+ }
104
+ exports.ArrayUtils = ArrayUtils;
101
105
  /**************************************************************/
102
106
  const Repository_1 = __importDefault(require("./repository/Repository"));
103
107
  class Repository extends Repository_1.default {
@@ -0,0 +1,3 @@
1
+ export default abstract class ArrayUtils {
2
+ static equals(first?: any[], second?: any[]): boolean;
3
+ }
@@ -59,6 +59,9 @@ export declare abstract class NumberUtils extends _NumberUtils {
59
59
  import _StringUtils from "./business/utils/StringUtils";
60
60
  export declare abstract class StringUtils extends _StringUtils {
61
61
  }
62
+ import _ArrayUtils from "./business/utils/ArrayUtils";
63
+ export declare abstract class ArrayUtils extends _ArrayUtils {
64
+ }
62
65
  /**************************************************************/
63
66
  import BaseRepository, { Pagination as _Pagination } from "./repository/Repository";
64
67
  export declare class Repository extends BaseRepository {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ismx-nexo-node-app",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "build": "rm -rf ./dist && npx tsc",
@@ -0,0 +1,8 @@
1
+ export default abstract class ArrayUtils {
2
+
3
+ static equals(first?: any[], second?: any[]): boolean {
4
+ if (first === undefined || second === undefined) return false;
5
+ if (first.length !== second.length) return false;
6
+ return first.every((value, index) => value === second[index]);
7
+ }
8
+ }
@@ -54,6 +54,9 @@ export abstract class NumberUtils extends _NumberUtils {}
54
54
  import _StringUtils from "./business/utils/StringUtils";
55
55
  export abstract class StringUtils extends _StringUtils {}
56
56
 
57
+ import _ArrayUtils from "./business/utils/ArrayUtils";
58
+ export abstract class ArrayUtils extends _ArrayUtils {}
59
+
57
60
  /**************************************************************/
58
61
 
59
62
  import BaseRepository, { Pagination as _Pagination } from "./repository/Repository";