New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

solution-remove

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solution-remove - npm Package Compare versions

Comparing version
2.1.2
to
2.2.0
solution-remove-2.2.0.tgz

Sorry, the diff of this file is not supported yet

+1
-1
#!/usr/bin/env node
import removeSolutions from '../lib/solution-remove.js';
import { removeSolutions } from '../lib/solution-remove.js';
removeSolutions();

@@ -12,12 +12,14 @@ import { readdirSync, readFile, writeFile, existsSync, unlinkSync, renameSync, readFileSync } from 'fs';

const SR_SAVED_FILE_EXT = '.srsaved';
const FILE_EXTENSIONS = ['.js', '.jsx', '.html', '.htm', '.java', '.rest', '.md'];
let FILE_EXTENSIONS = ['.js', '.jsx', '.html', '.htm', '.css', '.java', '.rest', '.md'];
function removeSolutions() {
program
.name('solution-remove')
.argument('<string>', 'path for solution')
.argument('<path>', 'path for solution')
.option('-r, --revert', 'reverts the removal and restores original file(s)')
program.version('solution-remover 2.1.2', '-v, --vers', 'output the current version');
.option(
'-f, --fileExtensions <fileExtensions...>',
'file extensions, e.g.: .js .jsx .java'
)
.version('2.2.0', '-v', '--version', 'output current version');
program.parse();

@@ -28,2 +30,6 @@

if (options.fileExtensions) {
FILE_EXTENSIONS = options.fileExtensions;
}
if (options.revert) {

@@ -138,6 +144,2 @@ const files = getAllFileNames(PATH, [SR_SAVED_FILE_EXT]);

export default removeSolutions;
export { removeSolutions };
{
"name": "solution-remove",
"version": "2.1.2",
"version": "2.2.0",
"description": "",

@@ -16,4 +16,4 @@ "main": "./lib/solution-remove.js",

"dependencies": {
"commander": "^12.1.0"
"commander": "^14.0.0"
}
}

@@ -27,8 +27,8 @@ # solution-remove

Arguments:
string path for solution
string path for solution
Options:
-r, --revert reverts the removal and restores original file(s)
-f, --file-extensions [file-extensions...] file-extensions sep by comma - example : .js, .jsx, .java, ... , .lastExt --
-h, --help display help for command
-r, --revert reverts the removal and restores original file(s)
-f, --fileExtensions fileExtensions sep by comma - example : .js, .jsx, .java
-h, --help display help for command
```

@@ -48,3 +48,3 @@

All codelines between `/* UNCOM_START ` and `UNCOM_END */` will be uncommented.
All codelines between `/* UNCOM_START` and `UNCOM_END */` will be uncommented.
Both lines will be deleted.

@@ -57,3 +57,3 @@

``` console
version: 2.0.0 path: . file-extensions: .js,.jsx,.html,.htm,.java,.rest,.md
version: 2.2.0 path: . file-extensions: .js,.jsx,.html,.htm,.java,.rest,.md
try to remove all solutions from these files now

@@ -72,3 +72,3 @@

```shell
solution-remove -r "your-path-here"
solution-remove -r "your-path-here"
```

@@ -87,1 +87,10 @@

```
## Run in DEV-Mode
Start a JavaScript Debug Terminal Session
```terminal
cd bin
node .\index.js . -f *.jsx
```

Sorry, the diff of this file is not supported yet