@putout/cli-match
Advanced tools
Comparing version
@@ -1,10 +0,8 @@ | ||
import {join} from 'path'; | ||
import {join} from 'node:path'; | ||
import { | ||
readFile as _readFile, | ||
writeFile as _writeFile, | ||
} from 'fs/promises'; | ||
} from 'node:fs/promises'; | ||
import tryCatch from 'try-catch'; | ||
import tryToCatch from 'try-to-catch'; | ||
import matchErrors, { | ||
@@ -21,6 +19,3 @@ NO_PATTERN, | ||
const { | ||
parse, | ||
stringify, | ||
} = JSON; | ||
const {parse, stringify} = JSON; | ||
@@ -27,0 +22,0 @@ const superStringify = (a) => `${stringify(a, null, 4)}\n`; |
{ | ||
"name": "@putout/cli-match", | ||
"version": "2.0.0", | ||
"version": "2.2.0", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -8,3 +8,2 @@ "description": "convert \"rules\" section to \"match\" in .putout.json", | ||
"main": "lib/match.js", | ||
"commitType": "colon", | ||
"type": "module", | ||
@@ -36,11 +35,9 @@ "release": false, | ||
"devDependencies": { | ||
"@putout/test": "^5.0.0", | ||
"c8": "^7.5.0", | ||
"escover": "^2.1.0", | ||
"c8": "^8.0.0", | ||
"eslint": "^8.0.1", | ||
"eslint-plugin-n": "^15.2.4", | ||
"eslint-plugin-putout": "^16.0.0", | ||
"eslint-plugin-n": "^16.0.0", | ||
"eslint-plugin-putout": "^19.0.0", | ||
"lerna": "^6.0.1", | ||
"madrun": "^9.0.0", | ||
"nodemon": "^2.0.1", | ||
"nodemon": "^3.0.1", | ||
"putout": "*", | ||
@@ -47,0 +44,0 @@ "supertape": "^8.0.0" |
@@ -29,8 +29,7 @@ # @putout/cli-match [![NPM version][NPMIMGURL]][NPMURL] | ||
```js | ||
import {cwd} from 'process'; | ||
import {cwd} from 'node:process'; | ||
import { | ||
readFile, | ||
writeFile, | ||
} from 'fs/promises'; | ||
} from 'node:fs/promises'; | ||
import match from '@putout/cli-match'; | ||
@@ -37,0 +36,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9
-18.18%0
-100%5253
-1.39%73
-3.95%50
-1.96%