File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515 signRequest ,
1616} from './index.js' ;
1717
18- /** Works both in node and the browser */
18+ // Works both in node and the browser
1919import fetch from 'cross-fetch' ;
2020
2121/**
@@ -101,8 +101,8 @@ export class Client {
101101
102102 /**
103103 * Fetches and Parses a Resource. Can fetch through another atomic server if you
104- * pass the `from` argument, which should be the baseURL of an Atomic Server. If
105- * you need to add the resources to the Store or authenticate, pass a Store .
104+ * pass the `from` argument, which should be the baseURL of an Atomic Server.
105+ * Returns a tuple of the requested resource and a list of all resources found in the response .
106106 */
107107 public async fetchResourceHTTP (
108108 subject : string ,
@@ -211,8 +211,8 @@ export class Client {
211211
212212 /**
213213 * Uploads files to the `/upload` endpoint of the Store. Signs the Headers using
214- * the Store's Default Agent. Adds the created File resources to the Store .
215- * Returns the subjects of these newly created File resources.
214+ * the given agent .
215+ * Returns the newly created resources
216216 */
217217 public async uploadFiles (
218218 files : File [ ] ,
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ function execPushCommit(
498498 const current = ( resource . get ( key ) as JSONArray ) || [ ] ;
499499 const newArr = value as JSONArray ;
500500 // The `push` arrays may contain full resources.
501- // We parse these here, add them to the store, and turn them into Subjects .
501+ // We parse these here and add them to a list of resources to add to the store .
502502 const stringArr = newArr . map ( val => {
503503 const [ result , foundResources ] = parser . parseValue ( val , key ) ;
504504 parsedResources . push ( ...foundResources ) ;
You can’t perform that action at this time.
0 commit comments