@labdigital/commercetools-mock 1.1.3 → 1.2.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@labdigital/commercetools-mock",
3
3
  "author": "Michael van Tellingen",
4
- "version": "1.1.3",
4
+ "version": "1.2.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/commercetools--mock.esm.js",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "engines": {
20
20
  "node": ">=16",
21
- "pnpm": ">=8.1.1"
21
+ "pnpm": ">=8.6.5"
22
22
  },
23
- "packageManager": "pnpm@8.1.1",
23
+ "packageManager": "pnpm@8.6.5",
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
@@ -11,6 +11,7 @@ import {
11
11
  ShippingMethodSetDescriptionAction,
12
12
  ShippingMethodSetKeyAction,
13
13
  ShippingMethodSetLocalizedDescriptionAction,
14
+ ShippingMethodSetLocalizedNameAction,
14
15
  ShippingMethodSetPredicateAction,
15
16
  ShippingMethodUpdateAction,
16
17
  ShippingRate,
@@ -174,6 +175,13 @@ export class ShippingMethodRepository extends AbstractResourceRepository<'shippi
174
175
  ) => {
175
176
  resource.localizedDescription = localizedDescription
176
177
  },
178
+ setLocalizedName: (
179
+ _context: RepositoryContext,
180
+ resource: Writable<ShippingMethod>,
181
+ { localizedName }: ShippingMethodSetLocalizedNameAction
182
+ ) => {
183
+ resource.localizedName = localizedName
184
+ },
177
185
  setPredicate: (
178
186
  _context: RepositoryContext,
179
187
  resource: Writable<ShippingMethod>,