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

@zodash/to-path

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zodash/to-path - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

LICENSE

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.1.4](https://github.com/zcorky/zodash/compare/@zodash/to-path@0.1.3...@zodash/to-path@0.1.4) (2021-03-23)
**Note:** Version bump only for package @zodash/to-path
## 0.1.3 (2020-11-11)

@@ -8,0 +16,0 @@

@@ -0,1 +1,21 @@

/**
* Transform path string to path array
*
* @param pathString path string
* @returns path array
*
* @example
*
* toPath('a.b.c')
* // => ['a', 'b', 'c']
*
* toPath('a[0].b.c')
* // => ['a', '0', 'b', 'c']
*
* toPath('a.0.b.c')
* // => ['a', '0', 'b', 'c']
*
* toPath('a[].b.c')
* // => ['a', '[]', 'b', 'c']
*/
export declare function toPath(pathString: string): string[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toPath = void 0;
/**
* Transform path string to path array
*
* @param pathString path string
* @returns path array
*
* @example
*
* toPath('a.b.c')
* // => ['a', 'b', 'c']
*
* toPath('a[0].b.c')
* // => ['a', '0', 'b', 'c']
*
* toPath('a.0.b.c')
* // => ['a', '0', 'b', 'c']
*
* toPath('a[].b.c')
* // => ['a', '[]', 'b', 'c']
*/
function toPath(pathString) {

@@ -5,0 +25,0 @@ if (!pathString)

4

package.json
{
"name": "@zodash/to-path",
"version": "0.1.3",
"version": "0.1.4",
"description": "Transform path string to path array",

@@ -69,3 +69,3 @@ "keywords": [

},
"gitHead": "fb0b997fc51fbad9866a754bf8609d0bcc962700"
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b"
}

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