@contract-case/case-core
Advanced tools
Comparing version 0.15.2 to 0.15.4
{ | ||
"name": "@contract-case/case-core", | ||
"version": "0.15.2", | ||
"version": "0.15.4", | ||
"description": "Core functionality for the ContractCase contract testing suite", | ||
@@ -57,3 +57,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@contract-case/case-maintainer-config": "0.0.3", | ||
"@contract-case/case-maintainer-config": "0.0.4", | ||
"@contract-case/eslint-config-case-maintainer": "0.0.3", | ||
@@ -64,7 +64,7 @@ "@types/current-git-branch": "^1.1.6", | ||
"@types/jest": "^29.5.11", | ||
"@types/qs": "^6.9.9", | ||
"@types/qs": "^6.9.11", | ||
"@types/slug": "^5.0.7", | ||
"body-parser": "^1.20.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.55.0", | ||
"eslint": "^8.56.0", | ||
"jest": "^29.7.0", | ||
@@ -74,8 +74,8 @@ "lcov-result-merger": "^5.0.0", | ||
"rimraf": "^5.0.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "5.2.2" | ||
"ts-jest": "^29.1.2", | ||
"ts-node": "^10.9.2", | ||
"typescript": "5.3.3" | ||
}, | ||
"dependencies": { | ||
"@contract-case/case-entities-internal": "0.15.2", | ||
"@contract-case/case-entities-internal": "0.15.4", | ||
"absolute-version": "^1.0.2", | ||
@@ -82,0 +82,0 @@ "async-mutex": "^0.4.0", |
@@ -73,3 +73,3 @@ "use strict"; | ||
providerName: contract.description.providerName, | ||
specification: 'pact', | ||
specification: 'pact', // TODO: Replace this with '_case::contract' when the broker supports it | ||
contentType: 'application/json', | ||
@@ -76,0 +76,0 @@ content: Buffer.from(JSON.stringify(contract)).toString('base64'), |
@@ -17,3 +17,3 @@ "use strict"; | ||
hourCycle: 'h24', | ||
timeZoneName: 'short', | ||
timeZoneName: 'short', // TODO: Use `shortOffset` when all current node versions support it | ||
fractionalSecondDigits: 3, | ||
@@ -20,0 +20,0 @@ }); |
@@ -55,6 +55,6 @@ "use strict"; | ||
}, async (error) => { | ||
context.logger.debug(`This example failed while trying to invoke the trigger function`); | ||
context.logger.debug(`This example failed while trying to invoke the trigger function: ${error.message}`); | ||
// We still need to drain the assertable | ||
context.logger.maintainerDebug(`Draining assertable and ignoring the result`); | ||
await assertable.assert().catch(); | ||
await assertable.assert().catch(() => { }); | ||
const resultingExample = errorToFailedExample(error, example, context); | ||
@@ -61,0 +61,0 @@ context.logger.deepMaintainerDebug('The resulting failure is:', resultingExample); |
@@ -71,3 +71,3 @@ "use strict"; | ||
.request({ | ||
validateStatus: () => true, | ||
validateStatus: () => true, // This means that all status codes resolve the promise | ||
method, | ||
@@ -74,0 +74,0 @@ httpAgent, |
@@ -84,4 +84,4 @@ "use strict"; | ||
assertableData: () => new Promise((startVerify, closeReject) => { | ||
context.logger.maintainerDebug(`Closing server from ${mock.baseUrl}`, mock); | ||
server.close((err) => { | ||
context.logger.maintainerDebug(`Closing server from ${mock.baseUrl}`, mock); | ||
if (err) { | ||
@@ -92,2 +92,3 @@ context.logger.error(`There was an error shutting down the mock server. This shouldn't happen, and might be a bug`); | ||
else { | ||
context.logger.maintainerDebug(`Server at ${mock.baseUrl} closed`, mock); | ||
startVerify(); | ||
@@ -94,0 +95,0 @@ } |
{ | ||
"name": "@contract-case/case-core", | ||
"version": "0.15.2", | ||
"version": "0.15.4", | ||
"description": "Core functionality for the ContractCase contract testing suite", | ||
@@ -57,3 +57,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@contract-case/case-maintainer-config": "0.0.3", | ||
"@contract-case/case-maintainer-config": "0.0.4", | ||
"@contract-case/eslint-config-case-maintainer": "0.0.3", | ||
@@ -64,7 +64,7 @@ "@types/current-git-branch": "^1.1.6", | ||
"@types/jest": "^29.5.11", | ||
"@types/qs": "^6.9.9", | ||
"@types/qs": "^6.9.11", | ||
"@types/slug": "^5.0.7", | ||
"body-parser": "^1.20.2", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.55.0", | ||
"eslint": "^8.56.0", | ||
"jest": "^29.7.0", | ||
@@ -74,8 +74,8 @@ "lcov-result-merger": "^5.0.0", | ||
"rimraf": "^5.0.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "5.2.2" | ||
"ts-jest": "^29.1.2", | ||
"ts-node": "^10.9.2", | ||
"typescript": "5.3.3" | ||
}, | ||
"dependencies": { | ||
"@contract-case/case-entities-internal": "0.15.2", | ||
"@contract-case/case-entities-internal": "0.15.4", | ||
"absolute-version": "^1.0.2", | ||
@@ -94,3 +94,3 @@ "async-mutex": "^0.4.0", | ||
}, | ||
"gitHead": "745040a8495f2baa1612b672aa22e7244d916c69" | ||
"gitHead": "bc7ff7c7ae536ed339e7fcf7398dbee450899133" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
688852
6501
+ Added@contract-case/case-entities-internal@0.15.4(transitive)
- Removed@contract-case/case-entities-internal@0.15.2(transitive)