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

inspect-parameters-declaration

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inspect-parameters-declaration - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

6

lib/inspect-parameters-declaration.js

@@ -165,2 +165,6 @@ 'use strict';

function getParametersNamesFromInspection(inspectedParameters) {
return getAllInspectedParametersNames(inspectedParameters);
}
function inspectParameters(source) {

@@ -180,2 +184,2 @@ if (!source) {

module.exports = { inspectParameters, getParametersNames };
module.exports = { inspectParameters, getParametersNames, getParametersNamesFromInspection };

2

package.json
{
"name": "inspect-parameters-declaration",
"version": "0.0.7",
"version": "0.0.8",
"description": "Inspects function's parameters declaration and returns information about it (e.g. names, default values, if needs destructuring, destructured parameters names and default values)",

@@ -5,0 +5,0 @@ "main": "./lib/inspect-parameters-declaration.js",

@@ -24,4 +24,8 @@ # inspect-parameters-declaration

Where **source** is a *function* reference or a string containing the parameters declaration (e.g. 'a = "z, b = [1,2,3], c, {d,e: {f}, g} = {}')
* **source** is a *function* reference or a string containing the parameters declaration (e.g. 'a = "z, b = [1,2,3], c, {d,e: {f}, g} = {}')
`getParametersNames(inspectedParameters);`
* **inspectedParameters** expects the result from `inspectParameters(source)`;
```javascript

@@ -28,0 +32,0 @@ const { getParametersNames, inspectParameters } = require('inspect-parameters-declaration');

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