File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,8 @@ export class ProjectClient {
73
73
} ;
74
74
75
75
// This can write small text files in one message.
76
- public async write_text_file ( {
77
- project_id,
78
- path,
79
- content,
80
- } : {
81
- project_id : string ;
82
- path : string ;
83
- content : string ;
84
- } ) : Promise < void > {
85
- await this . natsApi ( project_id ) . system . writeTextFileToProject ( {
86
- path,
87
- content,
88
- } ) ;
76
+ public async write_text_file ( opts ) : Promise < void > {
77
+ await this . writeFile ( opts ) ;
89
78
}
90
79
91
80
// writeFile -- easily write **arbitrarily large text or binary files**
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const system = {
21
21
realpath : true ,
22
22
canonicalPaths : true ,
23
23
24
+ // these should be completel deprecated -- the new streaming writeFile and readFile in nats/files are much better.
24
25
writeTextFileToProject : true ,
25
26
readTextFileFromProject : true ,
26
27
You can’t perform that action at this time.
0 commit comments