Skip to content

Commit

Permalink
remove console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Dec 12, 2024
1 parent 7972cc9 commit fb82cd4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/solid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@ function hookGetItemURL (rs): void {
if (rs._origBaseClientGetItemURL) { return; }
rs._origBaseClientGetItemURL = BaseClient.prototype.getItemURL;
BaseClient.prototype.getItemURL = function (path: string): string {
console.log('getItemURL from', path);
if (typeof path !== 'string') {
throw 'Argument \'path\' of baseClient.getItemURL must be a string';
}
if (this.storage.connected) {
if (path.startsWith('/')) {
path = path.substring(1);
}
console.log('getItemURL to', this.selectedPodURL + cleanPath(path));
return this.selectedPodURL + cleanPath(path);
} else {
return undefined;
Expand Down Expand Up @@ -129,7 +127,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {

constructor(remoteStorage) {
super(remoteStorage);
console.log('Solid constructor');
this.online = true;
this.addEvents(['connected', 'not-connected', 'pod-not-selected']);

Expand Down Expand Up @@ -400,12 +397,10 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
* @protected
*/
get (path: string, options: { ifNoneMatch?: string } = {}): Promise<RemoteResponse> {
console.log('Solid get', path, options);
const fileURL = this.getFileURL(path);

if (path.slice(-1) === '/') {
return getSolidDataset(fileURL, { fetch: this.session.fetch }).then(containerDataset => {
console.log('container data set', containerDataset);
const URLs: UrlString[] = getContainedResourceUrlAll(containerDataset);
const listing = URLs.reduce((map, item) => {
const itemName = item.substring(fileURL.length);
Expand Down Expand Up @@ -479,8 +474,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
* @protected
*/
put (path: string, body: XMLHttpRequestBodyInit, contentType: string, options: { ifMatch?: string; ifNoneMatch?: string } = {}): Promise<RemoteResponse> {
console.log('Solid put', path, contentType);

const fileURL = this.getFileURL(path);
const fetch = this.session.fetch;

Expand Down Expand Up @@ -527,7 +520,6 @@ class Solid extends RemoteBase implements Remote, ConfigObserver {
* @protected
*/
delete (path: string, options: { ifMatch?: string } = {}): Promise<RemoteResponse> {
console.log('Solid delete', path);
const fileURL = this.getFileURL(path);

return deleteFile(fileURL, { fetch: this.session.fetch }).then(() => {
Expand Down

0 comments on commit fb82cd4

Please sign in to comment.