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

parse-static-imports

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

parse-static-imports - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/parseStaticImports.js

@@ -23,7 +23,7 @@ "use strict";

/** parseStaticImports
* The parseStaticImports() method returns a a list of objects whose properties
* represent significant elements of the static import.
* returns a a list of objects whose properties represent significant elements
* of the static import.
*
* @param {String} file - Contents of a file containing static imports
* @returns {Object[]} - List of static imports found in the given file contents
* @returns {Object[]} List of static imports found in the given file contents
*/

@@ -30,0 +30,0 @@ function parseStaticImports(file = "") {

{
"name": "parse-static-imports",
"description": "Gracefully parse ECMAScript static imports 💃",
"version": "1.0.2",
"version": "1.0.3",
"author": "Cody A Price <dev.cprice@gmail.com>",

@@ -6,0 +6,0 @@ "bugs": {

@@ -59,7 +59,8 @@ # parse-static-imports

Named import objects have the form:
| Attribute | Default Value | Description |
| --------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| name | N/A | The name of the named import (e.g. `{ useState }`) |
| alias | name | Will be the alias of a named import if aliased, otherwise defaults to the named import (e.g. `import { foo /* the named import */ as bar /* the alias */ } from "module-name";`) |
| Attribute | Type | Default Value | Description |
| --- | --- | --- | --- |
| name | `String` | N/A | The name of the named import (e.g. `{ useState }`) |
| alias | `String` | name | Will be the alias of a named import if aliased, otherwise defaults to the named import (e.g. `import { foo /* the named import */ as bar /* the alias */ } from "module-name";`) |
## Example

@@ -66,0 +67,0 @@

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