@pinelab/vendure-plugin-anonymized-order 1.0.0 → 1.0.1

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 CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.1 (2023-12-29)
2
+
3
+ - Fixed exposed fields bug reported in [here](https://github.com/Pinelab-studio/pinelab-vendure-plugins/issues/316)
4
+
1
5
  # 1.0.0 (2023-12-28)
2
6
 
3
7
  - Created the plugin
@@ -27,6 +27,9 @@ let AnonymizeOrderService = class AnonymizeOrderService {
27
27
  order.customer = undefined;
28
28
  order.shippingAddress = {};
29
29
  order.billingAddress = {};
30
+ for (let line of order.lines) {
31
+ line.order = new core_1.Order();
32
+ }
30
33
  if (this.options?.anonymizeOrderFn) {
31
34
  this.options.anonymizeOrderFn(order);
32
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinelab/vendure-plugin-anonymized-order",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "This plugin facilitates the retrieval of anonymized customer orders",
5
5
  "icon": "incognito",
6
6
  "author": "Surafel Tariku <surafelmelese09@gmail.com>",
@@ -27,5 +27,5 @@
27
27
  "test": "vitest run",
28
28
  "generate": "graphql-codegen"
29
29
  },
30
- "gitHead": "b6d884add25e1b5a335767af35ba52b13a2037ac"
30
+ "gitHead": "4720c6183691dbf9fb027bb901f53fba18e5d3cb"
31
31
  }