Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools/category-exporter

Package Overview
Dependencies
Maintainers
9
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/category-exporter - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

10

package.json

@@ -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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc