File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import fs from 'fs/promises'
1+ import fs from 'node: fs/promises'
22import path from 'node:path'
3+ import process from 'node:process'
34
45import spawn from '@npmcli/promise-spawn'
56import meow from 'meow'
Original file line number Diff line number Diff line change 11import fs from 'node:fs'
2- import homedir from 'node:os'
2+ import os from 'node:os'
3+ import process from 'node:process'
34import readline from 'node:readline'
45
56import meow from 'meow'
@@ -9,8 +10,8 @@ import { getFlagListOutput } from '../utils/formatting'
910
1011import type { CliSubcommand } from '../utils/meow-with-subcommands'
1112
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`
1415
1516export const wrapper : CliSubcommand = {
1617 description : 'Enable or disable the Socket npm/npx wrapper' ,
Original file line number Diff line number Diff line change 11import { realpathSync } from 'node:fs'
22import path from 'node:path'
3+ import process from 'node:process'
34
45import registryConstants from '@socketsecurity/registry/lib/constants'
56import { envAsBoolean } from '@socketsecurity/registry/lib/env'
Original file line number Diff line number Diff line change 11import path from 'node:path'
2+ import process from 'node:process'
23
34import { fork } from './promise-fork'
45import constants from '../constants'
You can’t perform that action at this time.
0 commit comments