export default class {

  constructor(storage, validator) {
    this.storage = storage;
    this.packageValidator = validator;
  }

  /*
  * Reads dist-tags and sends them to npm-client
  * *** hasn't been tested yet***
  */
  process(httpRequest, httpResponse) {
    return new Promise((resolve, reject) => {
      this.storage.getPackageData({
        name: httpRequest.params.package,
        version: httpRequest.params.version,
      }).catch((err) => {
        reject(err);
      })
        .then((packageJson) => {
        let distTags = packageJson['dist-tags'];
        if (distTags) {
          httpResponse.send(JSON.stringify(distTags));
          resolve();
        } else {
          reject("404, could not get dist-tags");
        }
      });

    }).catch((err) => {
      httpResponse.send(err);
    });
  }
}


@@ -336,12 +336,12 @@
 kage
-Data
+Json
 (%7B%0A 
@@ -383,119 +383,17 @@
 kage
-,%0A        version: httpRequest.params.version,%0A      %7D).catch((err) =%3E %7B%0A        reject(err);%0A      %7D)%0A        
+%0A      %7D)
 .the
@@ -492,24 +492,32 @@
 %7B%0A          
+resolve(
 httpResponse
@@ -526,53 +526,17 @@
 end(
-JSON.stringify(distTags));%0A          resolve(
+distTags)
 );%0A 
@@ -642,24 +642,56 @@
 ((err) =%3E %7B%0A
+      httpResponse.status(404);%0A
       httpRe

Update package-get-dist-tags with new filesystem changes