@empathyco/x-get-safe-property-chain
Advanced tools
Comparing version 1.2.1-alpha.4 to 1.2.1-alpha.5
@@ -6,2 +6,11 @@ # Change Log | ||
### [1.2.1-alpha.5](https://github.com/empathyco/x/compare/@empathyco/x-get-safe-property-chain@1.2.1-alpha.4...@empathyco/x-get-safe-property-chain@1.2.1-alpha.5) (2021-08-03) | ||
### Build System | ||
* Update TypeScript to 4.3.5.Update TSLib to 2.3.5. ([4cebdfc](https://github.com/empathyco/x/commit/4cebdfc11e1520552a687def3eda1bf0c132e031)), closes [EX-4435](https://searchbroker.atlassian.net/browse/EX-4435) | ||
### [1.2.1-alpha.4](https://github.com/empathyco/x/compare/@empathyco/x-get-safe-property-chain@1.2.1-alpha.3...@empathyco/x-get-safe-property-chain@1.2.1-alpha.4) (2021-07-29) | ||
@@ -8,0 +17,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSafePropertyChain = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -16,3 +17,3 @@ /** | ||
function getSafePropertyChain(obj, propertyChain, defaultReturn) { | ||
var resolved = getChain.apply(void 0, tslib_1.__spreadArrays([obj], propertyChain.split('.'))); | ||
var resolved = getChain.apply(void 0, tslib_1.__spreadArray([obj], propertyChain.split('.'))); | ||
return resolved === undefined ? defaultReturn : resolved; | ||
@@ -40,4 +41,4 @@ } | ||
? obj | ||
: getChain.apply(void 0, tslib_1.__spreadArrays([obj[property]], propertyChain)); | ||
: getChain.apply(void 0, tslib_1.__spreadArray([obj[property]], propertyChain)); | ||
} | ||
//# sourceMappingURL=get-safe-property-chain.js.map |
@@ -1,2 +0,2 @@ | ||
import { __spreadArrays } from "tslib"; | ||
import { __spreadArray } from "tslib"; | ||
/** | ||
@@ -14,3 +14,3 @@ * Safely searches for a chain of properties in an object. | ||
export function getSafePropertyChain(obj, propertyChain, defaultReturn) { | ||
var resolved = getChain.apply(void 0, __spreadArrays([obj], propertyChain.split('.'))); | ||
var resolved = getChain.apply(void 0, __spreadArray([obj], propertyChain.split('.'))); | ||
return resolved === undefined ? defaultReturn : resolved; | ||
@@ -37,4 +37,4 @@ } | ||
? obj | ||
: getChain.apply(void 0, __spreadArrays([obj[property]], propertyChain)); | ||
: getChain.apply(void 0, __spreadArray([obj[property]], propertyChain)); | ||
} | ||
//# sourceMappingURL=get-safe-property-chain.js.map |
{ | ||
"name": "@empathyco/x-get-safe-property-chain", | ||
"version": "1.2.1-alpha.4", | ||
"version": "1.2.1-alpha.5", | ||
"description": "A utility for safely retrieving nested values", | ||
@@ -34,10 +34,10 @@ "author": "Empathy Systems Corporation S.L.", | ||
"dependencies": { | ||
"tslib": "~1.11.1" | ||
"tslib": "~2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@empathyco/eslint-plugin-x": "^1.4.0-alpha.4", | ||
"@empathyco/eslint-plugin-x": "^1.4.0-alpha.5", | ||
"@types/jest": "^24.0.12", | ||
"jest": "^24.7.1", | ||
"ts-jest": "^24.0.2", | ||
"typescript": "~3.8.3" | ||
"typescript": "~4.3.5" | ||
}, | ||
@@ -48,3 +48,3 @@ "prettier": "@empathyco/eslint-plugin-x/prettier-config", | ||
}, | ||
"gitHead": "e259d186c8e62dd493fbb0555d7d8098c3c944fa" | ||
"gitHead": "4a973f9d86ff321ce62e878686c4c0d352f4f7df" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25624
100
+ Addedtslib@2.3.1(transitive)
- Removedtslib@1.11.2(transitive)
Updatedtslib@~2.3.0