New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

object-property-extractor

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-property-extractor - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

build/extract.d.ts

@@ -1,3 +0,3 @@

import { BasicObject, InputObject } from './types';
declare const extractProperty: (inputObj: InputObject, properties: string | number | (string | number)[], fallback?: any) => BasicObject | string | number | boolean | any[] | InputObject | Function;
import { InputObject } from './types';
declare const extractProperty: (inputObj: InputObject, properties: string | number | (string | number)[], fallback?: any) => any;
export default extractProperty;

@@ -1,5 +0,5 @@

export declare type BasicObject = {
export type BasicObject = {
[key: string]: BasicObject | unknown | (BasicObject | unknown)[];
};
export declare type BasicArray = (BasicObject | unknown)[];
export declare type InputObject = BasicObject | BasicArray | unknown;
export type BasicArray = (BasicObject | unknown)[];
export type InputObject = BasicObject | BasicArray | unknown;
{
"name": "object-property-extractor",
"version": "1.0.5",
"version": "1.0.6",
"description": "A lightweight (no dependencies) tool to extract deeply nested values from JS Objects (or Arrays), with optional Fallback.",

@@ -5,0 +5,0 @@ "main": "build/extract.js",

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