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

theprogrammablemind_4wp

Package Overview
Dependencies
Maintainers
1
Versions
480
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theprogrammablemind_4wp - npm Package Compare versions

Comparing version 7.5.0-beta.15 to 7.5.0-beta.16

36

client.js

@@ -681,5 +681,8 @@ const { Semantics, Semantic } = require('./src/semantics')

const objects = getObjects(config.config.objects)(config.uuid)
let objects = getObjects(config.config.objects)(config.uuid)
if (testConfig.testModuleName) {
objects = getObjects(config.config.objects)(config.getConfigs()[testConfig.testModuleName].uuid)
}
config.beforeQuery({ query: test, isModule: false, objects })
config.resetMotivations()
// config.resetMotivations()
try {

@@ -795,3 +798,3 @@ const result = await _process(config, test, { errorHandler, isTest: true })

const objects = getObjects(config.config.objects)(config.uuid)
config.resetMotivations()
//config.resetMotivations()
config.beforeQuery({ query: test, isModule: false, objects })

@@ -1265,3 +1268,3 @@ console.log(test)

parser.add_argument('-tfn', '--testFileName', { help: 'Override the test file for the module when the tests are being run' })
parser.add_argument('-tmn', '--testModuleName', { help: 'When running tests instead of using the current modules tests use the specified modules tests' })
parser.add_argument('-t', '--test', { action: 'store_true', help: 'Run the tests. Create tests by running with the --query + --save flag' })

@@ -1480,3 +1483,11 @@ parser.add_argument('-tv', '--testVerbose', { action: 'store_true', help: 'Run the tests in verbose mode. Create tests by running with the --query or --loop with the --save flag' })

}
runTests(config, args.testFileName ? `${args.testFileName}.test.json` : test, { debug: args.debug, testConfig: testConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
let useTestConfig = testConfig
if (args.testModuleName) {
useTestConfig = config.getConfigs()[args.testModuleName].getTestConfig()
useTestConfig.testModuleName = args.testModuleName
test = useTestConfig.name
}
// runTests(config, args.testFileName ? `${args.testFileName}.test.json` : test, { debug: args.debug, testConfig: testConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
runTests(config, test, { debug: args.debug, testConfig: useTestConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
if (results.length > 0 && args.vimdiff) {

@@ -1530,4 +1541,10 @@ for (const result of results) {

}
console.log(' expected checked', result.expected.checked)
console.log(' actual checked ', result.actual.checked)
const widths = [4, 18, 72]
const lines = new Lines(widths)
lines.setElement(1, 1, 'expected checked')
lines.setElement(2, 2, JSON.stringify(result.expected.checked, null, 2))
lines.log()
lines.setElement(1, 1, 'actual checked')
lines.setElement(2, 2, JSON.stringify(result.actual.checked, null, 2))
lines.log()
newError = true

@@ -1539,7 +1556,7 @@ headerShown = true

if (!headerShown) {
if (!(testConfig.check && testConfig.check.length > 0)) {
if (!(useTestConfig.check && useTestConfig.check.length > 0)) {
console.log('There are failures due to things other than paraphrases, responses and checked properties being different. They are not shown because you ran -tv or -tva which only shows difference in paraphrase and results. Usually what I do is -s and do a diff to make sure there are no other problems. If the paraphrases or results were different they would have shown here.')
}
}
if (!(testConfig.check && testConfig.check.length > 0)) {
if (!(useTestConfig.check && useTestConfig.check.length > 0)) {
console.log('use -v arg to write files expected.json and actual.json in the current directory for detailed comparison. Or do -s and then git diff the changes.')

@@ -1606,2 +1623,3 @@ // console.log(JSON.stringify(contexts))

config.addAssociationsFromTests(config.tests);
config.setTestConfig(testConfig)
//for (let query in config.tests) {

@@ -1608,0 +1626,0 @@ // config.addAssociations(config.tests[query].associations || []);

@@ -15,2 +15,5 @@ class Lines {

const values = value.toString().split('\n')
if (column >= this.widths.length) {
throw "Column out of range."
}
const width = this.widths[column]

@@ -17,0 +20,0 @@ let index = 0

@@ -64,4 +64,4 @@ {

},
"version": "7.5.0-beta.15",
"version": "7.5.0-beta.16",
"license": "ISC"
}

Sorry, the diff of this file is too big to display

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