Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "bsb-js", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "JS library wrapping BuckleScript build", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11
utils.js
@@ -29,3 +29,3 @@ // @flow | ||
moduleType /*: BsModuleFormat | 'js' */, | ||
src /*: string */ | ||
src /*: string */, | ||
) { | ||
@@ -39,5 +39,6 @@ const replacer = moduleType === 'es6' ? es6ReplaceRegex : commonJsReplaceRegex | ||
if (typeof err === 'string') { | ||
return (err.match( | ||
err.includes('-bs-super-errors') ? getSuperErrorRegex : getErrorRegex | ||
) || [] | ||
return ( | ||
err.match(getSuperErrorRegex) || | ||
err.match(getErrorRegex) || | ||
[] | ||
).map(e => new Error(e)) | ||
@@ -59,3 +60,3 @@ } else if (err instanceof Error) { | ||
processBsbError, | ||
processBsbWarnings | ||
processBsbWarnings, | ||
} |
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
160
6242