text: const AdvancedShipping = require("./advancedShipping");
  
  function ShippingAdapter(credentials) {
    var shipping = new AdvancedShipping();
  
    shipping.login(credentials);
  
    return {
      request: function (zipStart, zipEnd, weight) {
        shipping.setStart(zipStart);
        shipping.setDestination(zipEnd);
        return shipping.calculate(weight);
      },
    };
  }
  
  module.exports = ShippingAdapter;
  