@myparcel-dev/pdk-checkout-js 1.7.0 → 1.7.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9270,10 +9270,13 @@ const _l = "autocomplete", k0 = /(.*?)\s?(\d{1,4})[/\s-]{0,2}([A-z]\d{1,3}|-\d{1
9270
9270
  }, kl = (e) => {
9271
9271
  rd(e.target, "value") && md(vd(e.target.value));
9272
9272
  }, C0 = (e, t) => {
9273
- const n = ge(fe.FieldsEqual), r = ge(fe.SetFieldValue), s = ge(fe.GetAddressFieldValue), i = qe().state.addressTypes.filter((a) => hd.some((l) => t && n(e.form, t.form, l, a)));
9273
+ const n = ge(fe.FieldsEqual), r = ge(fe.SetFieldValue), s = ge(fe.GetAddressFieldValue), i = qe().state.addressTypes.filter((a) => hd.some((l) => t && !n(e.form, t.form, l, a)));
9274
9274
  i.forEach((a) => {
9275
- const l = yd(a);
9276
- !s(Ae.Address1, a) && (!l.number || !l.street) || r(Ae.Address1, na(a), a, !1);
9275
+ const l = yd(a), c = s(Ae.Address1, a);
9276
+ if (!c && (!l.number || !l.street))
9277
+ return;
9278
+ const u = na(a);
9279
+ c !== u && r(Ae.Address1, u, a, !1);
9277
9280
  }), i.length && yo();
9278
9281
  }, D0 = (e, t) => {
9279
9282
  const n = ge(fe.FieldsEqual);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myparcel-dev/pdk-checkout-js",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/myparcelnl/js-pdk.git",
@@ -20,7 +20,7 @@
20
20
  "test:update": "run ws:test:update \"$(pwd)\""
21
21
  },
22
22
  "dependencies": {
23
- "@myparcel-dev/pdk-checkout": "^1.7.0"
23
+ "@myparcel-dev/pdk-checkout": "^1.7.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@myparcel-dev/pdk-build-vite": "1.0.0-alpha.0",