Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@empathyco/x-get-safe-property-chain

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@empathyco/x-get-safe-property-chain - npm Package Compare versions

Comparing version 1.2.1-alpha.4 to 1.2.1-alpha.5

9

CHANGELOG.md

@@ -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 @@

5

dist/cjs/get-safe-property-chain.js
"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

6

dist/esm/get-safe-property-chain.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc