Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions integration-tests/cli/__snapshots__/csv-parser-state.it.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -87,20 +87,20 @@ Array [

exports[`CSV and CLI Tests Parse with transitions without \`projectkey\` with \`continueOnProblems\` should skip rows having transition 1`] = `
"[
{\\"key\\":\\"state-key-1\\",\\"type\\":\\"OrderState\\",\\"name\\":{\\"en\\":\\"Will's state\\"},\\"initial\\":true,\\"description\\":{\\"en\\":\\"beschreibung\\"}}
{\\"name\\":{\\"en\\":\\"Will's state\\"},\\"key\\":\\"state-key-1\\",\\"description\\":{\\"en\\":\\"beschreibung\\"},\\"type\\":\\"OrderState\\",\\"initial\\":true}
,
{\\"key\\":\\"state-key-3\\",\\"type\\":\\"LineItemState\\",\\"name\\":{\\"en\\":\\"completion\\"},\\"initial\\":false,\\"description\\":{\\"en\\":\\"only used when some state is complete\\"}}
{\\"name\\":{\\"en\\":\\"completion\\"},\\"key\\":\\"state-key-3\\",\\"description\\":{\\"en\\":\\"only used when some state is complete\\"},\\"type\\":\\"LineItemState\\",\\"initial\\":false}
,
{\\"key\\":\\"state-key-4\\",\\"type\\":\\"PaymentState\\",\\"name\\":{\\"en\\":\\"auto gen\\"},\\"initial\\":true,\\"description\\":{\\"en\\":\\"this state should be auto generated\\"}}
{\\"name\\":{\\"en\\":\\"auto gen\\"},\\"key\\":\\"state-key-4\\",\\"description\\":{\\"en\\":\\"this state should be auto generated\\"},\\"type\\":\\"PaymentState\\",\\"initial\\":true}
]
"
`;

exports[`CSV and CLI Tests Parse without transitions should parse states without projectKey 1`] = `
"[
{\\"key\\":\\"state-key-1\\",\\"type\\":\\"OrderState\\",\\"name\\":{\\"en\\":\\"Will's state\\"},\\"initial\\":true,\\"description\\":{\\"en\\":\\"beschreibung\\"}}
{\\"name\\":{\\"en\\":\\"Will's state\\"},\\"key\\":\\"state-key-1\\",\\"description\\":{\\"en\\":\\"beschreibung\\"},\\"type\\":\\"OrderState\\",\\"initial\\":true}
,
{\\"key\\":\\"state-key-2\\",\\"type\\":\\"ProductState\\",\\"name\\":{\\"en\\":\\"tester\\"},\\"initial\\":false,\\"description\\":{\\"en\\":\\"uniqueness of states\\"}}
{\\"name\\":{\\"en\\":\\"tester\\"},\\"key\\":\\"state-key-2\\",\\"description\\":{\\"en\\":\\"uniqueness of states\\"},\\"type\\":\\"ProductState\\",\\"initial\\":false}
]
"
`;
2 changes: 1 addition & 1 deletion packages/csv-parser-discount-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"JSONStream": "^1.3.5",
"csv-parser": "^2.1.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"highland": "^2.13.0",
"npmlog": "^4.1.2",
"pretty-error": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parser-price/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@commercetools/sdk-middleware-user-agent": "^2.1.2",
"JSONStream": "^1.3.5",
"csv-parser": "^2.1.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"highland": "^2.13.0",
"lodash.isnil": "^4.0.0",
"lodash.mapvalues": "^4.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/csv-parser-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@commercetools/sdk-middleware-user-agent": "^2.1.2",
"JSONStream": "^1.3.5",
"csv-parser": "^2.1.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"highland": "^2.13.0",
"lodash.memoize": "^4.1.2",
"node-fetch": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/discount-code-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@commercetools/sdk-middleware-user-agent": "^2.1.2",
"JSONStream": "^1.3.5",
"fast-csv": "^3.0.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"node-fetch": "^2.3.0",
"npmlog": "^4.1.2",
"pretty-error": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/discount-code-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"csv-parser": "^2.1.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"json2csv": "^4.3.3",
"npmlog": "^4.1.2",
"pretty-error": "^2.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/price-exporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@commercetools/sdk-middleware-user-agent": "^2.1.2",
"JSONStream": "^1.3.5",
"fast-csv": "^3.0.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"lodash": "^4.17.11",
"node-fetch": "^2.3.0",
"npmlog": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/product-json-to-csv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"babel-runtime": "^6.26.0",
"bluebird": "^3.5.3",
"common-tags": "^1.8.0",
"flat": "^4.1.0",
"flat": "^5.0.0",
"highland": "^2.13.0",
"iconv-lite": "^0.5.0",
"json2csv": "^4.3.3",
Expand Down
47 changes: 10 additions & 37 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4642,7 +4642,7 @@ debug@^3.0.1, debug@^3.1.0, debug@^3.2.6:
dependencies:
ms "^2.1.1"

debuglog@*, debuglog@^1.0.1:
debuglog@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
Expand Down Expand Up @@ -5803,12 +5803,12 @@ flat-cache@^2.0.1:
rimraf "2.6.3"
write "1.0.3"

flat@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/flat/-/flat-4.1.0.tgz#090bec8b05e39cba309747f1d588f04dbaf98db2"
integrity sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==
flat@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.0.tgz#dab7d71d60413becb0ac2de9bf4304495e3af6af"
integrity sha512-6KSMM+cHHzXC/hpldXApL2S8Uz+QZv+tq5o/L0KQYleoG+GcwrnIJhTWC7tCOiKQp8D/fIvryINU1OZCCwevjA==
dependencies:
is-buffer "~2.0.3"
is-buffer "~2.0.4"

flatstr@^1.0.12:
version "1.0.12"
Expand Down Expand Up @@ -6725,7 +6725,7 @@ import-local@^2.0.0:
pkg-dir "^3.0.0"
resolve-cwd "^2.0.0"

imurmurhash@*, imurmurhash@^0.1.4:
imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
Expand Down Expand Up @@ -6945,7 +6945,7 @@ is-buffer@^1.1.5:
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==

is-buffer@~2.0.3:
is-buffer@~2.0.4:
version "2.0.4"
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.4.tgz#3e572f23c8411a5cfd9557c849e3665e0b290623"
integrity sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A==
Expand Down Expand Up @@ -8389,11 +8389,6 @@ lodash._basecreate@^3.0.0:
resolved "https://registry.yarnpkg.com/lodash._basecreate/-/lodash._basecreate-3.0.3.tgz#1bc661614daa7fc311b7d03bf16806a0213cf821"
integrity sha1-G8ZhYU2qf8MRt9A78WgGoCE8+CE=

lodash._baseindexof@*:
version "3.1.0"
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=

lodash._baseuniq@~4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
Expand All @@ -8402,29 +8397,12 @@ lodash._baseuniq@~4.6.0:
lodash._createset "~4.0.0"
lodash._root "~3.0.0"

lodash._bindcallback@*:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=

lodash._cacheindexof@*:
version "3.0.2"
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=

lodash._createcache@*:
version "3.1.2"
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
dependencies:
lodash._getnative "^3.0.0"

lodash._createset@~4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=

lodash._getnative@*, lodash._getnative@^3.0.0:
lodash._getnative@^3.0.0:
version "3.9.1"
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=
Expand Down Expand Up @@ -8587,11 +8565,6 @@ lodash.reject@^4.4.0:
resolved "https://registry.yarnpkg.com/lodash.reject/-/lodash.reject-4.6.0.tgz#80d6492dc1470864bbf583533b651f42a9f52415"
integrity sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU=

lodash.restparam@*:
version "3.6.1"
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=

lodash.set@^4.3.2:
version "4.3.2"
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
Expand Down Expand Up @@ -11183,7 +11156,7 @@ readable-stream@~1.1.10:
isarray "0.0.1"
string_decoder "~0.10.x"

readdir-scoped-modules@*, readdir-scoped-modules@^1.0.0:
readdir-scoped-modules@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309"
integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw==
Expand Down