@labdigital/commercetools-mock 1.1.2 → 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/dist/index.global.js +670 -5416
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/repositories/shipping-method.ts +8 -0
- package/src/repositories/type.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -3933,6 +3933,9 @@ var ShippingMethodRepository = class extends AbstractResourceRepository {
|
|
|
3933
3933
|
setLocalizedDescription: (_context, resource, { localizedDescription }) => {
|
|
3934
3934
|
resource.localizedDescription = localizedDescription;
|
|
3935
3935
|
},
|
|
3936
|
+
setLocalizedName: (_context, resource, { localizedName }) => {
|
|
3937
|
+
resource.localizedName = localizedName;
|
|
3938
|
+
},
|
|
3936
3939
|
setPredicate: (_context, resource, { predicate }) => {
|
|
3937
3940
|
resource.predicate = predicate;
|
|
3938
3941
|
},
|
|
@@ -4318,7 +4321,7 @@ var TaxCategoryRepository = class extends AbstractResourceRepository {
|
|
|
4318
4321
|
};
|
|
4319
4322
|
|
|
4320
4323
|
// src/repositories/type.ts
|
|
4321
|
-
var import_lodash = require("lodash");
|
|
4324
|
+
var import_lodash = __toESM(require("lodash.isequal"));
|
|
4322
4325
|
var TypeRepository = class extends AbstractResourceRepository {
|
|
4323
4326
|
constructor() {
|
|
4324
4327
|
super(...arguments);
|
|
@@ -4351,7 +4354,7 @@ var TypeRepository = class extends AbstractResourceRepository {
|
|
|
4351
4354
|
result.push(field);
|
|
4352
4355
|
current = current.filter((f) => f.name !== fieldName);
|
|
4353
4356
|
});
|
|
4354
|
-
if ((0, import_lodash.
|
|
4357
|
+
if ((0, import_lodash.default)(
|
|
4355
4358
|
fieldNames,
|
|
4356
4359
|
resource.fieldDefinitions.map((item) => item.name)
|
|
4357
4360
|
)) {
|