@web/test-runner-core
Advanced tools
Comparing version 0.10.6 to 0.10.7
# @web/test-runner-core | ||
## 0.10.7 | ||
### Patch Changes | ||
- 6a62b4ee: filter out internal stack traces | ||
- Updated dependencies [6a62b4ee] | ||
- @web/browser-logs@0.2.1 | ||
## 0.10.6 | ||
@@ -4,0 +12,0 @@ |
@@ -11,3 +11,2 @@ "use strict"; | ||
const TEST_FRAMEWORK_IMPORT_ROOT = '/__web-test-runner__/test-framework/'; | ||
const REGEXP_SOURCE_MAP = /\/\/# sourceMappingURL=.*/; | ||
async function readFile(codePath) { | ||
@@ -18,3 +17,3 @@ if (!fs_1.default.existsSync(codePath)) { | ||
} | ||
return (await util_1.promisify(fs_1.default.readFile)(codePath, 'utf-8')).replace(REGEXP_SOURCE_MAP, ''); | ||
return await util_1.promisify(fs_1.default.readFile)(codePath, 'utf-8'); | ||
} | ||
@@ -21,0 +20,0 @@ /** |
{ | ||
"name": "@web/test-runner-core", | ||
"version": "0.10.6", | ||
"version": "0.10.7", | ||
"publishConfig": { | ||
@@ -54,3 +54,3 @@ "access": "public" | ||
"@babel/code-frame": "^7.12.11", | ||
"@web/browser-logs": "^0.2.0", | ||
"@web/browser-logs": "^0.2.1", | ||
"@web/dev-server-core": "^0.3.4", | ||
@@ -57,0 +57,0 @@ "chalk": "^4.1.0", |
@@ -8,3 +8,2 @@ import fs from 'fs'; | ||
const TEST_FRAMEWORK_IMPORT_ROOT = '/__web-test-runner__/test-framework/'; | ||
const REGEXP_SOURCE_MAP = /\/\/# sourceMappingURL=.*/; | ||
@@ -19,3 +18,3 @@ async function readFile(codePath: string) { | ||
return (await promisify(fs.readFile)(codePath, 'utf-8')).replace(REGEXP_SOURCE_MAP, ''); | ||
return await promisify(fs.readFile)(codePath, 'utf-8'); | ||
} | ||
@@ -44,2 +43,3 @@ | ||
} | ||
const body = await readFile(filePath); | ||
@@ -46,0 +46,0 @@ return { body, type: 'js', headers: { 'cache-control': 'public, max-age=31536000' } }; |
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
403185
6872
Updated@web/browser-logs@^0.2.1