src/state/REPLState.js
/**
   * Save updates the corresponding blob with the current REPLState
   * @returns {Promise<Object>} Blob representing the current state.
   */
Save updates the corresponding blob with the current REPLState
@returns {Promise} Blob representing the current state.
Save updates the corresponding blob with the current REPLState @returns { Promise } Blob representing the current state .
async Save(ID) {
    const url = baseURL + `/api/v1/blobs/update/${ID}`;
    try {
      const resp = await fetch(url, {
        method: "PUT",
        headers: {
          Accept: "application/json",
          "Content-Type": "application/json",
        },
        body: this.Encode(),
      });
      const json = resp.json();
      return json;
    } catch (err) {
      console.error(err);
      return err;
    }
  }
async Save ( ID ) { const url = baseURL + ` ${ ID } ` ; try { const resp = await fetch ( url , { method : "PUT" , headers : { Accept : "application/json" , "Content-Type" : "application/json" , } , body : this . Encode ( ) , } ) ; const json = resp . json ( ) ; return json ; } catch ( err ) { console . error ( err ) ; return err ; } }
Save updates the corresponding blob with the current REPLState
 @returns {Promise<Object>} Blob representing the current state.
Save updates the corresponding blob with the current REPLState @returns { Promise<Object > } Blob representing the current state .