File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
recipes/createCredentials-to-createSecureContext/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import * as os from 'node:os' ;
1
+ import { EOL } from 'node:os' ;
2
2
import type { SgRoot , Edit , SgNode } from "@codemod.com/jssg-types/main" ;
3
3
4
4
type TlsImportState = {
@@ -86,7 +86,7 @@ function ensureTlsImport(
86
86
}
87
87
88
88
const tlsIdentifier = currentState . identifier ;
89
- const newImportText = `${ helpers . createNamespaceImport ( tlsIdentifier , 'node:tls' ) } ;${ os . EOL } ` ;
89
+ const newImportText = `${ helpers . createNamespaceImport ( tlsIdentifier , 'node:tls' ) } ;${ EOL } ` ;
90
90
const edit : Edit = {
91
91
startPos : firstNode . range ( ) . start . index ,
92
92
endPos : firstNode . range ( ) . start . index ,
@@ -146,7 +146,7 @@ function handleDestructuredImport(
146
146
const newEdit = {
147
147
startPos : statement . range ( ) . end . index ,
148
148
endPos : statement . range ( ) . end . index ,
149
- insertedText : `${ os . EOL } ${ newImportStatement } ` ,
149
+ insertedText : `${ EOL } ${ newImportStatement } ` ,
150
150
} ;
151
151
localEdits . push ( newEdit ) ;
152
152
finalState = { ...currentState , added : true } ;
You can’t perform that action at this time.
0 commit comments