parse-import-specifiers
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "parse-import-specifiers", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"type": "commonjs", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"description": "Simplest possible way to parse ImportSpecifiers", | ||
"homepage": "https://github.com/putoutjs/printer#readme", | ||
"homepage": "https://github.com/putoutjs/parse-import-specifiers#readme", | ||
"main": "./lib/parse-import-specifiers.js", | ||
@@ -35,18 +35,13 @@ "repository": { | ||
"devDependencies": { | ||
"@putout/plugin-minify": "^1.8.0", | ||
"@putout/plugin-printer": "^1.0.0", | ||
"@putout/plugin-react-hooks": "^5.0.0", | ||
"@putout/test": "^6.0.1", | ||
"c8": "^7.5.0", | ||
"c8": "^9.1.0", | ||
"eslint": "^8.0.1", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-putout": "^17.0.0", | ||
"estree-to-babel": "^5.0.1", | ||
"eslint-plugin-putout": "^22.4.0", | ||
"just-kebab-case": "^4.2.0", | ||
"madrun": "^9.0.0", | ||
"madrun": "^10.0.1", | ||
"mock-require": "^3.0.3", | ||
"montag": "^1.0.0", | ||
"nodemon": "^2.0.1", | ||
"putout": "^29.0.0", | ||
"supertape": "^8.0.0", | ||
"nodemon": "^3.0.1", | ||
"putout": "^35.6.0", | ||
"supertape": "^10.3.0", | ||
"try-catch": "^3.0.0" | ||
@@ -53,0 +48,0 @@ }, |
@@ -31,3 +31,4 @@ # parse-import-specifiers [![NPM version][NPMIMGURL]][NPMURL] | ||
So: | ||
- ☝️ *When you [generate code](https://github.com/putoutjs/printer) you should remember that after code transformations `ImportDefaultSpecifier` can be not at the begining of an array.* | ||
- ☝️ *When you [generate code](https://github.com/putoutjs/printer) you should remember that after code transformations `ImportDefaultSpecifier` can be at the placce of an array.* | ||
- ☝️ *When you check [specifiers to destructure](https://github.com/coderaiser/putout/tree/master/packages/eslint-plugin-putout/lib/multiple-properties-destructuring#readme) you should distinguish Import Specifiers from each other to determine what to do next*. | ||
@@ -44,2 +45,3 @@ | ||
```js | ||
const {parseImportSpecifiers} = require('parse-imports-specifiers'); | ||
const { | ||
@@ -49,3 +51,3 @@ defaults, | ||
imports, | ||
} = parseSpecifiers(specifiers); | ||
} = parseImportSpecifiers(specifiers); | ||
@@ -52,0 +54,0 @@ for (const spec of defaults) {} |
Sorry, the diff of this file is not supported yet
5396
12
61