Socket
Socket
Sign inDemoInstall

@medable/mdctl-import-adapter

Package Overview
Dependencies
173
Maintainers
3
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.0.10

22

index.js

@@ -52,3 +52,3 @@ const { Transform } = require('stream'),

constructor(inputDir, cache, format) {
constructor(inputDir, format, cache) {
super()

@@ -82,3 +82,9 @@ Object.assign(privatesAccessor(this), {

})
return ef.data.pipe(outS)
return new Promise((resolve, reject) => {
const lines = []
ef.data.pipe(outS)
.on('data', d => lines.push(d))
.on('error', e => reject(e))
.on('end', () => resolve(lines))
})
}

@@ -112,6 +118,8 @@

if (section.extraFiles && section.extraFiles.length) {
// const blobs = this.getBlobData(section.extraFiles)
blobResults = _.concat(blobResults, _.map(section.extraFiles, (ef) => {
return ImportFileTreeAdapter.getAssetStream(ef)
}))
const blobs = []
/* eslint-disable no-restricted-syntax */
for (const ef of section.extraFiles) {
blobs.push(ImportFileTreeAdapter.getAssetStream(ef))
}
blobResults = _.concat(blobResults, _.flatten(await Promise.all(blobs)))
}

@@ -162,3 +170,3 @@ }

if (existsManifest === -1) {
throw Fault.create({ code: 'KMissingManifest', reason: 'There is no manifest file present on folder' })
throw new Error('There is no manifest file present on folder')
}

@@ -165,0 +173,0 @@ privatesAccessor(this, 'files', mappedFiles)

{
"name": "@medable/mdctl-import-adapter",
"version": "1.0.9",
"version": "1.0.10",
"description": "Medable Developer Client Tools :: Import Adapter",

@@ -18,14 +18,5 @@ "repository": {

"license": "MIT",
"scripts": {
"test": "npm run lint && npm run cover",
"test:prod": "npm run test",
"test:only": "mocha --recursive",
"test:watch": "npm run test:only -- --watch",
"test:examples": "node examples/",
"cover": "istanbul cover ../../node_modules/mocha/bin/_mocha -- --recursive --timeout 10000",
"lint": "eslint *.js test"
},
"dependencies": {
"@medable/mdctl-core": "^1.0.9",
"@medable/mdctl-core-utils": "^1.0.4",
"@medable/mdctl-core": "^1.0.10",
"@medable/mdctl-core-utils": "^1.0.10",
"clone": "^2.1.2",

@@ -52,3 +43,3 @@ "globby": "^9.1.0",

},
"gitHead": "253d834735f336e7e76e6556d947db8c7943ddda"
"gitHead": "36a1e90e3b880f0236a086f20908fec9857624c2"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc