@commercetools/category-exporter
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -7,3 +7,3 @@ { | ||
"name": "@commercetools/category-exporter", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Exports categories from the commercetools platform.", | ||
@@ -39,6 +39,6 @@ "main": "lib/main.js", | ||
"@commercetools/api-request-builder": "^5.4.0", | ||
"@commercetools/get-credentials": "^3.0.9", | ||
"@commercetools/get-credentials": "^3.0.10", | ||
"@commercetools/sdk-client": "^2.1.1", | ||
"@commercetools/sdk-middleware-auth": "^5.1.6", | ||
"@commercetools/sdk-middleware-http": "^6.0.1", | ||
"@commercetools/sdk-middleware-http": "^6.0.2", | ||
"@commercetools/sdk-middleware-user-agent": "^2.1.2", | ||
@@ -49,3 +49,3 @@ "node-fetch": "^2.3.0", | ||
"pretty-error": "^2.1.1", | ||
"yargs": "^14.0.0" | ||
"yargs": "^15.0.0" | ||
}, | ||
@@ -55,3 +55,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "58e086636b1790dee9ceac8ef722495c1297f5ae" | ||
"gitHead": "65bfeae2388ad3e062c9da4c1f1925478efc3d50" | ||
} |
@@ -46,3 +46,6 @@ import streamtest from 'streamtest' | ||
body: { | ||
results: [{ id: 'id1', name: 'foo' }, { id: 'id2', name: 'bar' }], | ||
results: [ | ||
{ id: 'id1', name: 'foo' }, | ||
{ id: 'id2', name: 'bar' }, | ||
], | ||
}, | ||
@@ -58,9 +61,11 @@ } | ||
test('should write to outputStream', done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeFalsy() | ||
expect(data).toEqual(JSON.stringify(payload.body.results)) | ||
done() | ||
test('should write to outputStream', () => { | ||
return new Promise(done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeFalsy() | ||
expect(data).toEqual(JSON.stringify(payload.body.results)) | ||
done() | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
@@ -83,9 +88,11 @@ }) | ||
test('should throw error', done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeTruthy() | ||
expect(data).toBeFalsy() | ||
done() | ||
test('should throw error', () => { | ||
return new Promise(done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeTruthy() | ||
expect(data).toBeFalsy() | ||
done() | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
@@ -100,3 +107,6 @@ }) | ||
body: { | ||
results: [{ id: 'id1', name: 'foo' }, { id: 'id2', name: 'bar' }], | ||
results: [ | ||
{ id: 'id1', name: 'foo' }, | ||
{ id: 'id2', name: 'bar' }, | ||
], | ||
}, | ||
@@ -109,9 +119,11 @@ } | ||
test('should throw error', done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeTruthy() | ||
expect(data).toBeFalsy() | ||
done() | ||
test('should throw error', () => { | ||
return new Promise(done => { | ||
const outputStream = streamtest.v2.toText((error, data) => { | ||
expect(error).toBeTruthy() | ||
expect(data).toBeFalsy() | ||
done() | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
categoryExport.run(outputStream) | ||
}) | ||
@@ -118,0 +130,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20830
536
+ Addedansi-regex@5.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedcliui@6.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedstring-width@4.2.3(transitive)
+ Addedstrip-ansi@6.0.1(transitive)
+ Addedwrap-ansi@6.2.0(transitive)
+ Addedyargs@15.4.1(transitive)
+ Addedyargs-parser@18.1.3(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedcliui@5.0.0(transitive)
- Removedemoji-regex@7.0.3(transitive)
- Removedfind-up@3.0.0(transitive)
- Removedis-fullwidth-code-point@2.0.0(transitive)
- Removedlocate-path@3.0.0(transitive)
- Removedp-locate@3.0.0(transitive)
- Removedpath-exists@3.0.0(transitive)
- Removedstring-width@3.1.0(transitive)
- Removedstrip-ansi@5.2.0(transitive)
- Removedwrap-ansi@5.1.0(transitive)
- Removedyargs@14.2.3(transitive)
- Removedyargs-parser@15.0.3(transitive)
Updatedyargs@^15.0.0