Socket
Socket
Sign inDemoInstall

@medable/mdctl-import-adapter

Package Overview
Dependencies
316
Maintainers
5
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.67 to 1.0.68-alpha.0

__tests__/MIG-121/index.js

17

index.js

@@ -25,3 +25,3 @@ const EventEmitter = require('events'),

constructor(inputDir, format = 'json', manifest = null, cache) {
constructor(inputDir, format = 'json', manifest = null, cache, preserveTemplateStatus = false) {
super()

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

this.loadMetadata()
this.readPackageFile()
this.readPackageFile(preserveTemplateStatus)
this.readManifest()

@@ -179,3 +179,3 @@ }

readPackageFile() {
readPackageFile(preserveTemplateStatus = false) {

@@ -231,2 +231,5 @@ let packageData,

packageData.pipes.ingest = fs.readFileSync(ingestPipe).toString()
if (preserveTemplateStatus) {
packageData.pipes.ingest = `const preserveTemplateStatus = true\n${packageData.pipes.ingest}`
}
}

@@ -266,6 +269,6 @@ }

if (includes[0] === '*') {
paths.push(`data/${pluralize(k)}/*.{json,yaml}`)
paths.push(`data/${pluralize(k)}/**/*.{json,yaml}`)
} else {
includes.forEach((inc) => {
paths.push(`data/${pluralize(k)}/${inc}.{json,yaml}`)
paths.push(`data/${pluralize(k)}/**/${inc}.{json,yaml}`)
})

@@ -275,3 +278,3 @@ }

includes.forEach((inc) => {
paths.push(`env/${k}/${inc}.{json,yaml}`)
paths.push(`env/${k}/**/${inc}.{json,yaml}`)
})

@@ -281,3 +284,3 @@ }

manifestData[k].forEach((o) => {
paths.push(`env/${k}/${o.name}.{json,yaml}`)
paths.push(`env/${k}/**/${o.name}.{json,yaml}`)
})

@@ -284,0 +287,0 @@ }

{
"name": "@medable/mdctl-import-adapter",
"version": "1.0.67",
"version": "1.0.68-alpha.0",
"description": "Medable Developer Client Tools :: Import Adapter",

@@ -18,6 +18,11 @@ "repository": {

"license": "MIT",
"jest": {
"testPathIgnorePatterns": [
"template-export"
]
},
"scripts": {
"test": "npm run lint && npm run cover",
"test": "jest",
"test:prod": "npm run test",
"test:only": "mocha --recursive",
"test:only": "npm run test",
"test:watch": "npm run test:only -- --watch",

@@ -29,5 +34,5 @@ "test:examples": "node examples/",

"dependencies": {
"@medable/mdctl-core": "^1.0.67",
"@medable/mdctl-core-utils": "^1.0.67",
"@medable/mdctl-node-utils": "^1.0.67",
"@medable/mdctl-core": "^1.0.68-alpha.0",
"@medable/mdctl-core-utils": "^1.0.68-alpha.0",
"@medable/mdctl-node-utils": "^1.0.68-alpha.0",
"clone": "^2.1.2",

@@ -52,6 +57,8 @@ "globby": "^9.1.0",

"istanbul": "^1.0.0-alpha",
"jest": "^27.4.5",
"mocha": "^5.0.0",
"nock": "^10.0.6",
"sinon": "^7.2.2"
},
"gitHead": "4b11d698fee9710cac10af30e44556e856cbb1e1"
"gitHead": "af10e33af08f31f2777ac5cab00ee08f433c2a58"
}
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