File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- import fs from 'fs/promises'
1
+ import fs from 'node: fs/promises'
2
2
import path from 'node:path'
3
+ import process from 'node:process'
3
4
4
5
import spawn from '@npmcli/promise-spawn'
5
6
import meow from 'meow'
Original file line number Diff line number Diff line change 1
1
import fs from 'node:fs'
2
- import homedir from 'node:os'
2
+ import os from 'node:os'
3
+ import process from 'node:process'
3
4
import readline from 'node:readline'
4
5
5
6
import meow from 'meow'
@@ -9,8 +10,8 @@ import { getFlagListOutput } from '../utils/formatting'
9
10
10
11
import type { CliSubcommand } from '../utils/meow-with-subcommands'
11
12
12
- const BASH_FILE = `${ homedir . homedir ( ) } /.bashrc`
13
- const ZSH_BASH_FILE = `${ homedir . homedir ( ) } /.zshrc`
13
+ const BASH_FILE = `${ os . homedir ( ) } /.bashrc`
14
+ const ZSH_BASH_FILE = `${ os . homedir ( ) } /.zshrc`
14
15
15
16
export const wrapper : CliSubcommand = {
16
17
description : 'Enable or disable the Socket npm/npx wrapper' ,
Original file line number Diff line number Diff line change 1
1
import { realpathSync } from 'node:fs'
2
2
import path from 'node:path'
3
+ import process from 'node:process'
3
4
4
5
import registryConstants from '@socketsecurity/registry/lib/constants'
5
6
import { envAsBoolean } from '@socketsecurity/registry/lib/env'
Original file line number Diff line number Diff line change 1
1
import path from 'node:path'
2
+ import process from 'node:process'
2
3
3
4
import { fork } from './promise-fork'
4
5
import constants from '../constants'
You can’t perform that action at this time.
0 commit comments