@websolutespa/payload-plugin-bowl 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1782,7 +1782,7 @@ var collectionIndexGet = /* @__PURE__ */ __name((slug) => ({
|
|
|
1782
1782
|
}
|
|
1783
1783
|
return next();
|
|
1784
1784
|
} catch (error) {
|
|
1785
|
-
console.error(
|
|
1785
|
+
console.error(`CollectionService.collectionIndexGet.${slug}.error`, error);
|
|
1786
1786
|
return res.status(error.status || 500).json({
|
|
1787
1787
|
errors: [{
|
|
1788
1788
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -1807,7 +1807,7 @@ var collectionDetailGet = /* @__PURE__ */ __name((slug) => ({
|
|
|
1807
1807
|
const context = await setMixerContext(req, market, locale);
|
|
1808
1808
|
return next();
|
|
1809
1809
|
} catch (error) {
|
|
1810
|
-
console.error(
|
|
1810
|
+
console.error(`CollectionService.collectionDetailGet.${slug}.error`, error);
|
|
1811
1811
|
return res.status(error.status || 500).json({
|
|
1812
1812
|
errors: [{
|
|
1813
1813
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -1871,7 +1871,7 @@ var collectionBulkPatch = /* @__PURE__ */ __name((slug) => ({
|
|
|
1871
1871
|
const items = await getCollectionItems(req, slug);
|
|
1872
1872
|
return res.status(200).send(items);
|
|
1873
1873
|
} catch (error) {
|
|
1874
|
-
console.error(
|
|
1874
|
+
console.error(`CollectionService.collectionBulkPatch.${slug}.error`, error);
|
|
1875
1875
|
return res.status(error.status || 500).json({
|
|
1876
1876
|
errors: [{
|
|
1877
1877
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -1922,7 +1922,7 @@ var collectionUpdatePatch = /* @__PURE__ */ __name((slug) => ({
|
|
|
1922
1922
|
const items = await getCollectionItems(req, slug);
|
|
1923
1923
|
return res.status(200).send(items);
|
|
1924
1924
|
} catch (error) {
|
|
1925
|
-
console.error(
|
|
1925
|
+
console.error(`CollectionService.collectionUpdatePatch.${slug}.error`, error);
|
|
1926
1926
|
return res.status(error.status || 500).json({
|
|
1927
1927
|
errors: [{
|
|
1928
1928
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -1943,7 +1943,7 @@ var collectionExportGet = /* @__PURE__ */ __name((slug) => ({
|
|
|
1943
1943
|
"Content-Disposition": `attachment; filename="${slug}.csv"`
|
|
1944
1944
|
}).status(200).send(csv);
|
|
1945
1945
|
} catch (error) {
|
|
1946
|
-
console.error(
|
|
1946
|
+
console.error(`CollectionService.collectionExportGet.${slug}.error`, error);
|
|
1947
1947
|
return res.status(error.status || 500).json({
|
|
1948
1948
|
errors: [{
|
|
1949
1949
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -2032,7 +2032,7 @@ var collectionImportPost = /* @__PURE__ */ __name((slug) => ({
|
|
|
2032
2032
|
}
|
|
2033
2033
|
return res.status(200).send(items);
|
|
2034
2034
|
} catch (error) {
|
|
2035
|
-
console.error(
|
|
2035
|
+
console.error(`CollectionService.collectionImportPost.${slug}.error`, error);
|
|
2036
2036
|
return res.status(error.status || 500).json({
|
|
2037
2037
|
errors: [{
|
|
2038
2038
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -2043,7 +2043,7 @@ var collectionImportPost = /* @__PURE__ */ __name((slug) => ({
|
|
|
2043
2043
|
return res.sendStatus(400);
|
|
2044
2044
|
}
|
|
2045
2045
|
} catch (error) {
|
|
2046
|
-
console.error(
|
|
2046
|
+
console.error(`CollectionService.collectionImportPost.${slug}.error`, error);
|
|
2047
2047
|
return res.status(error.status || 500).json({
|
|
2048
2048
|
errors: [{
|
|
2049
2049
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -4716,7 +4716,7 @@ var pageIndexGet = /* @__PURE__ */ __name((slug) => ({
|
|
|
4716
4716
|
}
|
|
4717
4717
|
return next();
|
|
4718
4718
|
} catch (error) {
|
|
4719
|
-
console.error(
|
|
4719
|
+
console.error(`PageService.pageIndexGet.${slug}.error`, error);
|
|
4720
4720
|
return res.status(error.status || 500).json({
|
|
4721
4721
|
errors: [{
|
|
4722
4722
|
message: error.message || error.name || error.statusText || "An error occurred"
|
|
@@ -4748,7 +4748,7 @@ var pageDetailGet = /* @__PURE__ */ __name((slug) => ({
|
|
|
4748
4748
|
const context = await setMixerContext(req, market, locale);
|
|
4749
4749
|
return next();
|
|
4750
4750
|
} catch (error) {
|
|
4751
|
-
console.error(
|
|
4751
|
+
console.error(`PageService.pageDetailGet.${slug}.error`, error);
|
|
4752
4752
|
return res.status(error.status || 500).json({
|
|
4753
4753
|
errors: [{
|
|
4754
4754
|
message: error.message || error.name || error.statusText || "An error occurred"
|