@apigames/json
Advanced tools
Comparing version 1.0.47 to 1.0.48
@@ -1,1 +0,1 @@ | ||
export { append, areEqual, clone, extractAndRedact, hasProperty, isArray, isBoolean, isDate, isEmpty, isError, isNumber, isObject, isRegExp, isString, isDefined, isUndefined, stringify, } from './utils'; | ||
export { append, areEqual, clone, extractAndRedact, hasProperty, isArray, isBoolean, isDate, isEmpty, isError, isNumber, isObject, isRegExp, isString, isDefined, isDefinedAndNotNull, isUndefined, isUndefinedOrNull, stringify, } from './utils'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stringify = exports.isUndefined = exports.isDefined = exports.isString = exports.isRegExp = exports.isObject = exports.isNumber = exports.isError = exports.isEmpty = exports.isDate = exports.isBoolean = exports.isArray = exports.hasProperty = exports.extractAndRedact = exports.clone = exports.areEqual = exports.append = void 0; | ||
exports.stringify = exports.isUndefinedOrNull = exports.isUndefined = exports.isDefinedAndNotNull = exports.isDefined = exports.isString = exports.isRegExp = exports.isObject = exports.isNumber = exports.isError = exports.isEmpty = exports.isDate = exports.isBoolean = exports.isArray = exports.hasProperty = exports.extractAndRedact = exports.clone = exports.areEqual = exports.append = void 0; | ||
var utils_1 = require("./utils"); | ||
@@ -20,3 +20,5 @@ Object.defineProperty(exports, "append", { enumerable: true, get: function () { return utils_1.append; } }); | ||
Object.defineProperty(exports, "isDefined", { enumerable: true, get: function () { return utils_1.isDefined; } }); | ||
Object.defineProperty(exports, "isDefinedAndNotNull", { enumerable: true, get: function () { return utils_1.isDefinedAndNotNull; } }); | ||
Object.defineProperty(exports, "isUndefined", { enumerable: true, get: function () { return utils_1.isUndefined; } }); | ||
Object.defineProperty(exports, "isUndefinedOrNull", { enumerable: true, get: function () { return utils_1.isUndefinedOrNull; } }); | ||
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return utils_1.stringify; } }); |
@@ -11,3 +11,5 @@ export declare function isArray(value: any): boolean; | ||
export declare function isDefined(value: any): boolean; | ||
export declare function isDefinedAndNotNull(value: any): boolean; | ||
export declare function isUndefined(value: any): boolean; | ||
export declare function isUndefinedOrNull(value: any): boolean; | ||
export declare function hasProperty(obj: any, property: string): boolean; | ||
@@ -14,0 +16,0 @@ export declare function append(document: any, extensionDocument: any): any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractAndRedact = exports.stringify = exports.clone = exports.redactUndefinedValues = exports.areEqual = exports.append = exports.hasProperty = exports.isUndefined = exports.isDefined = exports.isString = exports.isRegExp = exports.isObject = exports.isNumber = exports.isError = exports.isEmpty = exports.isDate = exports.isBoolean = exports.isArray = void 0; | ||
exports.extractAndRedact = exports.stringify = exports.clone = exports.redactUndefinedValues = exports.areEqual = exports.append = exports.hasProperty = exports.isUndefinedOrNull = exports.isUndefined = exports.isDefinedAndNotNull = exports.isDefined = exports.isString = exports.isRegExp = exports.isObject = exports.isNumber = exports.isError = exports.isEmpty = exports.isDate = exports.isBoolean = exports.isArray = void 0; | ||
const deepEqual = require('deep-equal'); | ||
@@ -46,2 +46,6 @@ const clonedeep = require('lodash.clonedeep'); | ||
exports.isDefined = isDefined; | ||
function isDefinedAndNotNull(value) { | ||
return (value !== undefined) && (value !== null); | ||
} | ||
exports.isDefinedAndNotNull = isDefinedAndNotNull; | ||
function isUndefined(value) { | ||
@@ -51,2 +55,6 @@ return (value === undefined); | ||
exports.isUndefined = isUndefined; | ||
function isUndefinedOrNull(value) { | ||
return (value === undefined) || (value === null); | ||
} | ||
exports.isUndefinedOrNull = isUndefinedOrNull; | ||
function hasProperty(obj, property) { | ||
@@ -53,0 +61,0 @@ return isDefined(obj) && isObject(obj) && Object.prototype.hasOwnProperty.call(obj, property); |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"main": "lib/index.js", | ||
@@ -23,20 +23,20 @@ "types": "lib/index.d.ts", | ||
"dependencies": { | ||
"deep-equal": "^2.0.5", | ||
"es6-promise": "^4.2.8", | ||
"lodash.clonedeep": "^4.5.0" | ||
"deep-equal": "2.0.5", | ||
"es6-promise": "4.2.8", | ||
"lodash.clonedeep": "4.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^26.0.23", | ||
"@types/node": "^14.14.43", | ||
"@typescript-eslint/eslint-plugin": "^4.22.0", | ||
"@typescript-eslint/parser": "^4.22.0", | ||
"eslint": "^7.25.0", | ||
"eslint-config-airbnb": "^18.2.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-jsx-a11y": "^6.4.1", | ||
"eslint-plugin-react": "^7.23.2", | ||
"eslint-plugin-react-hooks": "^4.2.0", | ||
"jest": "^26.6.3", | ||
"ts-jest": "^26.5.5", | ||
"typescript": "^4.2.4" | ||
"@types/jest": "26.0.23", | ||
"@types/node": "14.14.45", | ||
"@typescript-eslint/eslint-plugin": "4.23.0", | ||
"@typescript-eslint/parser": "4.23.0", | ||
"eslint": "7.26.0", | ||
"eslint-config-airbnb": "18.2.1", | ||
"eslint-plugin-import": "2.23.2", | ||
"eslint-plugin-jsx-a11y": "6.4.1", | ||
"eslint-plugin-react": "7.23.2", | ||
"eslint-plugin-react-hooks": "4.2.0", | ||
"jest": "26.6.3", | ||
"ts-jest": "26.5.6", | ||
"typescript": "4.2.4" | ||
}, | ||
@@ -43,0 +43,0 @@ "eslintConfig": {}, |
14823
206
+ Addeddeep-equal@2.0.5(transitive)
+ Addedfor-each@0.3.5(transitive)
+ Addedpossible-typed-array-names@1.1.0(transitive)
- Removedarray-buffer-byte-length@1.0.2(transitive)
- Removeddeep-equal@2.2.3(transitive)
- Removedfor-each@0.3.4(transitive)
- Removedis-array-buffer@3.0.5(transitive)
- Removedis-shared-array-buffer@1.0.4(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
Updateddeep-equal@2.0.5
Updatedes6-promise@4.2.8
Updatedlodash.clonedeep@4.5.0