@fixefy/fixefy-ui-utils 0.0.7 → 0.0.9

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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.setJToken = exports.isResultValid = exports.isNested = exports.isJson = exports.isHasKey = exports.getJPart = exports.getJToken = void 0;
4
- const __1 = require("../");
4
+ const __1 = require("..");
5
5
  const getJToken = (jToken, jsonPath, defaultValue) => {
6
6
  if ((0, __1.isObjectValid)(jToken) === false)
7
7
  return defaultValue;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isObjectId = exports.isStringValid = exports.isObjectValid = exports.isArrayValid = void 0;
3
+ exports.isObjectId = exports.isStringValid = exports.isObjectValid = exports.isDateValid = exports.isArrayValid = void 0;
4
4
  const isArrayValid = (arr, minLength = 1, maxLength = 0) => {
5
5
  let rv = Object.prototype.toString.call(arr) == '[object Array]' && (0, exports.isObjectValid)(arr) && arr.length >= minLength;
6
6
  if (maxLength > 0) {
@@ -9,6 +9,10 @@ const isArrayValid = (arr, minLength = 1, maxLength = 0) => {
9
9
  return rv;
10
10
  };
11
11
  exports.isArrayValid = isArrayValid;
12
+ const isDateValid = (date) => {
13
+ return false;
14
+ };
15
+ exports.isDateValid = isDateValid;
12
16
  const isObjectValid = (obj, isCheckKeys = false) => {
13
17
  let rv = typeof obj !== 'undefined' && obj !== null;
14
18
  if (isCheckKeys) {
@@ -1,4 +1,4 @@
1
- import { isArrayValid, isObjectValid, isStringValid } from '../';
1
+ import { isArrayValid, isObjectValid, isStringValid } from '..';
2
2
  export const getJToken = (jToken, jsonPath, defaultValue) => {
3
3
  if (isObjectValid(jToken) === false)
4
4
  return defaultValue;
@@ -5,6 +5,9 @@ export const isArrayValid = (arr, minLength = 1, maxLength = 0) => {
5
5
  }
6
6
  return rv;
7
7
  };
8
+ export const isDateValid = (date) => {
9
+ return false;
10
+ };
8
11
  export const isObjectValid = (obj, isCheckKeys = false) => {
9
12
  let rv = typeof obj !== 'undefined' && obj !== null;
10
13
  if (isCheckKeys) {
@@ -1,4 +1,5 @@
1
1
  export declare const isArrayValid: (arr: Array<any>, minLength?: number, maxLength?: number) => boolean;
2
+ export declare const isDateValid: (date: any) => boolean;
2
3
  export declare const isObjectValid: (obj: any, isCheckKeys?: boolean) => boolean;
3
4
  export declare const isStringValid: (str: string, minLength?: number | null, maxLength?: number | null, isValidateType?: boolean) => boolean;
4
5
  export declare const isObjectId: (value: string) => boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "fs": false
5
5
  },
6
6
  "dependencies": {
7
- "@fixefy/fixefy-ui-components": "^0.0.8",
7
+ "@fixefy/fixefy-ui-components": "^0.0.9",
8
8
  "@mui/material": "^5.14.11",
9
9
  "@mui/styled-engine": "^5.14.11",
10
10
  "@mui/styles": "^5.14.11",
@@ -62,5 +62,5 @@
62
62
  }
63
63
  },
64
64
  "types": "./dist-types/index.d.ts",
65
- "version": "0.0.7"
65
+ "version": "0.0.9"
66
66
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes