@commercetools-test-data/core
Advanced tools
Comparing version 0.0.0-canary-202082414145 to 0.0.0-canary-20209814170
# @commercetools-test-data/core | ||
## 0.0.0-canary-202082414145 | ||
## 0.0.0-canary-20209814170 | ||
### Patch Changes | ||
- [`8384239`](https://github.com/commercetools/test-data/commit/83842397840665a59eaaf2eee7b96b21e9867067) [#12](https://github.com/commercetools/test-data/pull/12) Thanks [@emmenko](https://github.com/emmenko)! - Document how to build new models | ||
## 1.0.1 | ||
### Patch Changes | ||
- [`53fbe8d`](https://github.com/commercetools/test-data/commit/53fbe8dbd27446a4c16d293ee333bd476c7c8c90) [#4](https://github.com/commercetools/test-data/pull/4) Thanks [@emmenko](https://github.com/emmenko)! - Fix transformer types. Now the `replaceFields` option takes precedence as the return value can be of any type. | ||
If the `addFields` and `removeFields` options are also provided together with the `replaceFields` option, a warning will be logged. |
@@ -307,7 +307,6 @@ 'use strict'; | ||
function Generator({ | ||
name, | ||
fields, | ||
postBuild | ||
}) { | ||
const generate = testDataBot.build(name, { | ||
const originalGenerate = testDataBot.build({ | ||
fields, | ||
@@ -320,3 +319,3 @@ postBuild | ||
} = {}) { | ||
return generate({ | ||
return originalGenerate({ | ||
overrides: defaults | ||
@@ -323,0 +322,0 @@ }); |
@@ -295,7 +295,6 @@ import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes'; | ||
function Generator({ | ||
name, | ||
fields, | ||
postBuild | ||
}) { | ||
const generate = build(name, { | ||
const originalGenerate = build({ | ||
fields, | ||
@@ -308,3 +307,3 @@ postBuild | ||
} = {}) { | ||
return generate({ | ||
return originalGenerate({ | ||
overrides: defaults | ||
@@ -311,0 +310,0 @@ }); |
{ | ||
"name": "@commercetools-test-data/core", | ||
"version": "0.0.0-canary-202082414145", | ||
"version": "0.0.0-canary-20209814170", | ||
"description": "This package provides the core functions to define the data models", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/commercetools/test-data/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
92378
23
888
0
205