@lancom/shared 0.0.130 → 0.0.133

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.
@@ -46,6 +46,9 @@ export default {
46
46
  savePurchaseOrder(purchaseOrder) {
47
47
  return purchaseOrder._id ? _put(`admin/purchase-order/${purchaseOrder._id}`, purchaseOrder) : _post('admin/purchase-order', purchaseOrder);
48
48
  },
49
+ savePurchaseOrderShipment(purchaseOrder, shipment) {
50
+ return _put(`admin/purchase-order/${purchaseOrder._id}/shipments/${shipment._id}`, shipment);
51
+ },
49
52
  fetchPurchaseOrderWoTasks(purchaseOrderId) {
50
53
  return _get(`admin/purchase-order/${purchaseOrderId}/wo-tasks`);
51
54
  },
@@ -160,23 +160,23 @@
160
160
  name="Address line 2"
161
161
  class="form-row">
162
162
  <label
163
- for="address_line2"
163
+ for="addressLine2"
164
164
  class="form-label">
165
165
  Address line 2
166
166
  </label>
167
167
  <input
168
- id="address_line2"
169
- ref="address_line2"
170
- v-model="address.address_line2"
171
- name="address_line2"
168
+ id="addressLine2"
169
+ ref="addressLine2"
170
+ v-model="address.addressLine2"
171
+ name="addressLine2"
172
172
  type="text"
173
173
  class="form-field labelless"
174
174
  placeholder="Address line 2"
175
175
  :class="{
176
176
  'is-danger': errors.length,
177
- filled: address.address_line2
177
+ filled: address.addressLine2
178
178
  }"
179
- @keyup.enter="$refs.address_line2.focus()" />
179
+ @keyup.enter="$refs.addressLine2.focus()" />
180
180
  <span
181
181
  v-if="errors.length"
182
182
  class="form-help is-danger">
@@ -192,19 +192,19 @@
192
192
  name="Address line 2"
193
193
  class="form-row">
194
194
  <input
195
- id="address_line2"
196
- ref="address_line2"
197
- v-model="form.address_line2"
198
- name="address_line2"
195
+ id="addressLine2"
196
+ ref="addressLine2"
197
+ v-model="form.addressLine2"
198
+ name="addressLine2"
199
199
  type="text"
200
200
  class="form-field"
201
201
  :class="{
202
202
  'is-danger': errors.length,
203
- filled: form.address_line2
203
+ filled: form.addressLine2
204
204
  }"
205
- @keyup.enter="$refs.address_line2.focus()" />
205
+ @keyup.enter="$refs.addressLine2.focus()" />
206
206
  <label
207
- for="address_line2"
207
+ for="addressLine2"
208
208
  class="form-label label-inner">
209
209
  Address line 2
210
210
  </label>
@@ -306,7 +306,7 @@ export default {
306
306
  city: this.orderData.city,
307
307
  phone: this.orderData.phone,
308
308
  addressLine1: this.orderData.addressLine1,
309
- address_line2: this.orderData.addressLine2,
309
+ addressLine2: this.orderData.addressLine2,
310
310
  email: this.orderData.email,
311
311
  fullName: this.orderData.fullName,
312
312
  company: this.orderData.company,
package/nuxt.config.js CHANGED
@@ -1,4 +1,4 @@
1
- module.exports = (config, axios) => ({
1
+ module.exports = (config, axios, { raygunClient } = {}) => ({
2
2
  mode: 'universal',
3
3
  head: {
4
4
  title: config.npm_package_name || '',
@@ -79,6 +79,15 @@ module.exports = (config, axios) => ({
79
79
  }
80
80
  }
81
81
  },
82
+ hooks: {
83
+ render: {
84
+ errorMiddleware(app) {
85
+ if (raygunClient) {
86
+ app.use(raygunClient.expressHandler);
87
+ }
88
+ }
89
+ },
90
+ },
82
91
  feed: [{
83
92
  path: '/google-shopping.xml',
84
93
  async get() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancom/shared",
3
- "version": "0.0.130",
3
+ "version": "0.0.133",
4
4
  "description": "lancom common scripts",
5
5
  "author": "e.tokovenko <e.tokovenko@gmail.com>",
6
6
  "repository": {