@lancom/shared 0.0.349 → 0.0.350

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.
@@ -92,7 +92,6 @@
92
92
  mixins: [metaInfo],
93
93
  middleware: ['page-info'],
94
94
  async fetch() {
95
- // this.setPlaceholder(true);
96
95
  await this.loadProducts();
97
96
  },
98
97
  computed: {
@@ -323,7 +322,8 @@
323
322
  setTimeout(() => this.logGtm());
324
323
  } catch ({ response }) {
325
324
  if (process.server) {
326
- this.$nuxt.context.res.statusCode = this.loadError?.statusCode || 500;
325
+ // console.log('status code: ', this.loadError, process.server, this._self.context, Object.keys(this));
326
+ this.$root.context.res.statusCode = this.loadError?.statusCode || 500;
327
327
  }
328
328
  }
329
329
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.349",
3
+ "version": "0.0.350",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {