Comparing version 6.0.0 to 6.0.1
@@ -46,3 +46,5 @@ 'use strict' | ||
// Default is 5000 in socket.io v2.x and v3.x. | ||
pingTimeout: config.pingTimeout || 5000 | ||
pingTimeout: config.pingTimeout || 5000, | ||
// Default in v2 is 1e8 and coverage results can fail at 1e6 | ||
maxHttpBufferSize: 1e8 | ||
}) | ||
@@ -86,2 +88,4 @@ | ||
executor: ['factory', Executor.factory], | ||
// TODO: Deprecated. Remove in the next major | ||
customFileHandlers: ['value', []], | ||
reporter: ['factory', reporter.createReporters], | ||
@@ -88,0 +92,0 @@ capturedBrowsers: ['factory', BrowserCollection.factory], |
@@ -19,2 +19,21 @@ 'use strict' | ||
function createCustomHandler (customFileHandlers, config) { | ||
let warningDone = false | ||
return function (request, response, next) { | ||
const handler = customFileHandlers.find((handler) => handler.urlRegex.test(request.url)) | ||
if (customFileHandlers.length > 0 && !warningDone) { | ||
warningDone = true | ||
log.warn('The `customFileHandlers` is deprecated and will be removed in Karma 7. Please upgrade plugins relying on this provider.') | ||
} | ||
return handler | ||
? handler.handler(request, response, 'fake/static', 'fake/adapter', config.basePath, 'fake/root') | ||
: next() | ||
} | ||
} | ||
createCustomHandler.$inject = ['customFileHandlers', 'config'] | ||
function createFilesPromise (emitter, fileList) { | ||
@@ -62,2 +81,4 @@ // Set an empty list of files to avoid race issues with | ||
handler.use(proxyMiddlewareInstance) | ||
// TODO: Deprecated. Remove in the next major | ||
handler.use(injector.invoke(createCustomHandler)) | ||
@@ -64,0 +85,0 @@ if (config.middleware) { |
@@ -452,5 +452,2 @@ { | ||
"eslint-plugin-standard": "^4.0.1", | ||
"grunt": "^1.2.1", | ||
"grunt-cli": "^1.1.0", | ||
"grunt-mocha-test": "^0.13.2", | ||
"http2": "^3.3.6", | ||
@@ -489,3 +486,3 @@ "husky": "^4.2.5", | ||
}, | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"license": "MIT", | ||
@@ -501,3 +498,3 @@ "husky": { | ||
"lint:fix": "eslint . --ext js --ignore-pattern *.tpl.js --fix", | ||
"test:unit": "grunt", | ||
"test:unit": "mocha \"test/unit/**/*.spec.js\"", | ||
"test:e2e": "cucumber-js test/e2e/*.feature", | ||
@@ -504,0 +501,0 @@ "test:client": "node bin/karma start test/client/karma.conf.js", |
Sorry, the diff of this file is too big to display
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
507682
41
89