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

deep-props.get

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-props.get - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

22

CHANGELOG.md
Changelog
=========
<a name="0.1.2"></a>
## [0.1.2](https://github.com/jpcx/deep-props.get/tree/0.1.2) (2018-05-11)
__Since: [deep-props 0.2.3](https://github.com/jpcx/deep-props/blob/master/CHANGELOG.md#0.2.3)__
| __[Changes since 0.1.1](https://github.com/jpcx/deep-props.get/compare/0.1.1...0.1.2)__ | [Release Notes](https://github.com/jpcx/deep-props.get/releases/tag/0.1.2) | [README](https://github.com/jpcx/deep-props.get/tree/0.1.2/README.md) |
| --- | --- | --- |
| [Source Code (zip)](https://github.com/jpcx/deep-props.get/archive/0.1.2.zip) | [Source Code (tar.gz)](https://github.com/jpcx/deep-props.get/archive/0.1.2.tar.gz) |
| --- | --- |
#### Bugfixes
+ __docs:__ Clarified Map insertion order documentation.
+ __docs:__ Changed parent tag references to master in changelog.
+ __docs:__ Re-classified package-lock addition to bugfix in changelog.
<a name="0.1.1"></a>
## [0.1.1](https://github.com/jpcx/deep-props.get/tree/0.1.1) (2018-05-10)
__Since: [deep-props 0.2.1](https://github.com/jpcx/deep-props/blob/0.2.1/CHANGELOG.md#0.2.1)__
__Since: [deep-props 0.2.1](https://github.com/jpcx/deep-props/blob/master/CHANGELOG.md#0.2.1)__

@@ -21,4 +37,2 @@ | __[Changes since 0.1.0](https://github.com/jpcx/deep-props.get/compare/0.1.0...0.1.1)__ | [Release Notes](https://github.com/jpcx/deep-props.get/releases/tag/0.1.1) | [README](https://github.com/jpcx/deep-props.get/tree/0.1.1/README.md) |

+ __NPM:__ Added newline to end of package.json.
#### Features
+ __NPM:__ Added package-lock.json.

@@ -29,3 +43,3 @@

__Since: [deep-props 0.2.0](https://github.com/jpcx/deep-props/blob/0.2.0/CHANGELOG.md#0.2.0)__
__Since: [deep-props 0.2.0](https://github.com/jpcx/deep-props/blob/master/CHANGELOG.md#0.2.0)__

@@ -32,0 +46,0 @@ | [Release Notes](https://github.com/jpcx/deep-props.get/releases/tag/0.1.0) | [README](https://github.com/jpcx/deep-props.get/blob/0.1.0/README.md)

2

package.json
{
"name": "deep-props.get",
"version": "0.1.1",
"version": "0.1.2",
"description": "Retrieves a nested property from a data source by iterating over a supplied path. Supports Objects, Arrays, Maps, Sets, WeakMaps, and JSON strings automatically. Supports the use of a custom extraction function to handle unsupported datasets.",

@@ -5,0 +5,0 @@ "engines": {

@@ -41,3 +41,3 @@ # [deep-props](https://github.com/jpcx/deep-props/blob/master/README.md).get

***Note:*** For string paths using standard settings, '.' is considered the same as '[' and ']'. See [<code>Options</code>](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Options) for instructions for customizing this behavior.
***Note:*** For string paths using standard settings, '.' is considered the same as '[' and ']'. See [<code>Options</code>](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Options) for instructions for customizing this behavior.

@@ -74,5 +74,9 @@ **Nested Object Extraction**

// Both return 'quz'
// All return 'quz'
// Note: either strict keys or insertion order may be used.
get(nest, 'foo.bar.baz.qux')
get(nest, [ 'foo', 'bar', 'baz', 'qux' ])
get(nest, 'foo.bar.baz.0')
get(nest, '0.0.0.0')
get(nest, [ 0, 0, 0, 0 ])
```

@@ -94,5 +98,7 @@

// Returns 'thud'
// Note: this path must be an array of Object references.
// All return 'thud'
// Note: this path must either be an array of Object references or descriptions of insertion order.
get(nest, [ keyA, keyB, keyC ])
get(nest, '0.0.0')
get(nest, [ 0, 0, 0 ])
```

@@ -176,3 +182,3 @@

**Usage of a custom extraction function (see [<code>Options</code>](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Options) and [<code>GetCustomizer</code>](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~GetCustomizer))**
**Usage of a custom extraction function (see [<code>Options</code>](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Options) and [<code>GetCustomizer</code>](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~GetCustomizer))**
```js

@@ -212,4 +218,4 @@ // Creation of a sample custom data structure which uses a 'retrieve' method for data access.

### See:
+ [API Docs](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/API.md)
+ [Global Docs](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md)
+ [API Docs](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/API.md)
+ [Global Docs](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md)

@@ -224,9 +230,9 @@ ### Module: get

| --- | --- | --- | --- | --- |
| `host` | [deep-props.get~Host](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Host) | | | Container to search within. |
| `path` | [deep-props.get~Path](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Path) | | | Path to desired property. |
| `opt` | [deep-props.get~Options](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Options) | \<optional> | {} | Execution settings. |
| `host` | [deep-props.get~Host](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Host) | | | Container to search within. |
| `path` | [deep-props.get~Path](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Path) | | | Path to desired property. |
| `opt` | [deep-props.get~Options](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Options) | \<optional> | {} | Execution settings. |
Source:
* [deep-props.get/index.js](https://github.com/jpcx/deep-props.get/blob/0.1.1/index.js), [line 282](https://github.com/jpcx/deep-props.get/blob/0.1.1/index.js#L282)
* [deep-props.get/index.js](https://github.com/jpcx/deep-props.get/blob/0.1.2/index.js), [line 282](https://github.com/jpcx/deep-props.get/blob/0.1.2/index.js#L282)

@@ -239,3 +245,3 @@ ##### Returns:

[deep-props.get~Target](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~Target) | [deep-props.get~ResultGenerator](https://github.com/jpcx/deep-props.get/blob/0.1.1/docs/global.md#~ResultGenerator)
[deep-props.get~Target](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~Target) | [deep-props.get~ResultGenerator](https://github.com/jpcx/deep-props.get/blob/0.1.2/docs/global.md#~ResultGenerator)

@@ -246,3 +252,3 @@ #

Versioned using [SemVer](http://semver.org/). For available versions, see the [Changelog](https://github.com/jpcx/deep-props.get/blob/0.1.1/CHANGELOG.md).
Versioned using [SemVer](http://semver.org/). For available versions, see the [Changelog](https://github.com/jpcx/deep-props.get/blob/0.1.2/CHANGELOG.md).

@@ -259,2 +265,2 @@ ## Contribution

This project is licensed under the MIT License - see the [LICENSE](https://github.com/jpcx/deep-props.get/blob/0.1.1/LICENSE) file for details
This project is licensed under the MIT License - see the [LICENSE](https://github.com/jpcx/deep-props.get/blob/0.1.2/LICENSE) file for details
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