theprogrammablemind_4wp
Advanced tools
Comparing version 7.4.3 to 7.5.0
@@ -1257,3 +1257,3 @@ const { Semantics, Semantic } = require('./src/semantics') | ||
parser.add_argument('-qp ', '--queryParams', { help: 'Query params for the server call' }) | ||
parser.add_argument('-qd', '--queryDelete', { help: 'Delete the specified query from the tests file' }) | ||
parser.add_argument('-td', '--testDelete', { help: 'Delete the specified query from the tests file.' }) | ||
parser.add_argument('-c', '--clean', { help: 'Remove data from the test files. a === association' }) | ||
@@ -1297,7 +1297,7 @@ parser.add_argument('-od', '--objectDiff', { action: 'store_true', help: 'When showing the objects use a colour diff' }) | ||
if (args.queryDelete) { | ||
if (args.testDelete) { | ||
let tests = JSON.parse(runtime.fs.readFileSync(testConfig.name)) | ||
tests = tests.filter( (test) => test.query !== args.queryDelete ); | ||
tests = tests.filter( (test) => test.query !== args.testDelete ); | ||
writeTestFile(testConfig.name, tests) | ||
console.log(`Remove the test for "${args.queryDelete}"`) | ||
console.log(`Remove the test for "${args.testDelete}"`) | ||
return | ||
@@ -1304,0 +1304,0 @@ } |
@@ -64,4 +64,4 @@ { | ||
}, | ||
"version": "7.4.3", | ||
"version": "7.5.0", | ||
"license": "ISC" | ||
} |
@@ -127,3 +127,4 @@ const { args: contextArgs, normalizeGenerator } = require('./helpers') | ||
class Generators { | ||
constructor (generators, logs = []) { | ||
constructor (generators, logs = [], options = {}) { | ||
let index = -1 | ||
generators = (generators || []).map((generator) => { | ||
@@ -133,3 +134,4 @@ if (generator instanceof Generator) { | ||
} else { | ||
return new Generator(generator) | ||
index += 1 | ||
return new Generator({ km: options.km, index, ...normalizeGenerator(generator) }) | ||
} | ||
@@ -136,0 +138,0 @@ }) |
@@ -118,3 +118,4 @@ const { args: contextArgs, normalizeGenerator, normalizeSemantic } = require('./helpers') | ||
class Semantics { | ||
constructor (semantics, logs = []) { | ||
constructor (semantics, logs = [], options = {}) { | ||
let index = -1 | ||
semantics = semantics.map((semantic) => { | ||
@@ -124,3 +125,4 @@ if (semantic instanceof Semantic) { | ||
} else { | ||
return new Semantic(semantic) | ||
index += 1 | ||
return new Semantic({ km: options.km, index, ...normalizeSemantic(semantic) }) | ||
} | ||
@@ -127,0 +129,0 @@ }) |
Sorry, the diff of this file is too big to display
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
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
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
162973
4820
3