You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@nodeart/productservice

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodeart/productservice - npm Package Compare versions

Comparing version

to
2.1.1

{
"name": "@nodeart/productservice",
"version": "1.0.11",
"version": "2.1.1",
"description": "Service that send work to DAL related to products (search, filted, get categories, attributes, tags etc.)",

@@ -12,4 +12,4 @@ "main": "index.ts",

"dependencies": {
"@nodeart/dal": "1.0.11"
"@nodeart/dal": "2.1.1"
}
}
}

@@ -6,2 +6,3 @@ import {Injectable} from "@angular/core";

private esIndex = 'firebase';

@@ -61,3 +62,3 @@ constructor(private dal: DbAbstractionLayer){

console.log(queryObject);
return this.dal.searchProducts(queryObject);
return this.dal.requestData(this.esIndex, 'product', queryObject);
}

@@ -82,3 +83,3 @@

console.log(JSON.stringify(queryObject));
return this.dal.getPriceRanges(queryObject);
return this.dal.requestFullData(this.esIndex, 'product', queryObject);
}

@@ -126,3 +127,3 @@

}
return this.dal.filterProducts(queryObject);
return this.dal.requestFullData(this.esIndex, 'product', queryObject);
}

@@ -138,3 +139,3 @@

};
return this.dal.getGeneralCategory(queryObj);
return this.dal.requestData(this.esIndex, 'general-category', queryObj);
}

@@ -150,3 +151,3 @@

};
return this.dal.getCategory(queryObj);
return this.dal.requestData(this.esIndex, 'category', queryObj);
}

@@ -160,3 +161,3 @@

};
return this.dal.getGeneralCategories(queryObj);
return this.dal.requestData(this.esIndex, 'general-category', queryObj);
}

@@ -194,3 +195,3 @@

console.log(JSON.stringify(queryObj));
return this.dal.getCategories(queryObj);
return this.dal.requestData(this.esIndex, 'category', queryObj);
}

@@ -212,3 +213,3 @@

}
return this.dal.getProductsByCategoryIds(queryObj);
return this.dal.requestData(this.esIndex, 'product', queryObj);
}

@@ -225,3 +226,3 @@

};
return this.dal.getProducts(queryObj);
return this.dal.requestData(this.esIndex, 'product', queryObj);
}

@@ -274,3 +275,3 @@

console.log(JSON.stringify(queryObject));
return this.dal.getTotalProductPages(queryObject);
return this.dal.requestItemsTotal(this.esIndex, 'product', queryObject);
}

@@ -291,3 +292,3 @@

};
return this.dal.getTotalPagesByCategoryIds(queryObj);
return this.dal.requestItemsTotal(this.esIndex, 'product', queryObj);
}

@@ -303,3 +304,3 @@

}
return this.dal.getOneAttribute(queryObj);
return this.dal.requestData(this.esIndex, 'attributes', queryObj);
}

@@ -315,4 +316,4 @@

};
return this.dal.getOneTag(queryObj);
return this.dal.requestData(this.esIndex, 'tags', queryObj);
}
}