@userfrosting/gulp-bundle-assets
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -10,2 +10,8 @@ # Changelog | ||
## [5.0.3] - 2022-03-16 | ||
### Changed | ||
- All caught and forwarded errors will now be an instance of `Error`, if they were not already. | ||
- Error message emitted when non-Vinyl chunk is encountered has changed to fix a typo. | ||
## [5.0.2] - 2021-07-10 | ||
@@ -12,0 +18,0 @@ |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -8,2 +8,3 @@ import Vinyl from "vinyl"; | ||
import { Bundle } from "./bundle.js"; | ||
import { errorCaster } from "./error-caster.js"; | ||
const PluginName = "@userfrosting/gulp-bundle-assets"; | ||
@@ -135,4 +136,5 @@ /** | ||
} | ||
/* c8 ignore next 4 */ | ||
catch (error) { | ||
/* c8 ignore next 5 */ | ||
catch (e) { | ||
const error = errorCaster(e); | ||
this.logger.error("_transform completed with error", { error }); | ||
@@ -162,3 +164,4 @@ callback(new PluginError(PluginName, error)); | ||
} | ||
catch (error) { | ||
catch (e) { | ||
const error = errorCaster(e); | ||
this.logger.error("_flush completed with error", { error: error.toString() }); | ||
@@ -165,0 +168,0 @@ callback(new PluginError(PluginName, error)); |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -78,3 +78,3 @@ import Vinyl from "vinyl"; | ||
}); | ||
throw new Error(`Non-Vinyl chunk returned bu bundle stream for bundle '${this.name}'`); | ||
throw new Error(`Non-Vinyl chunk returned by bundle stream for bundle '${this.name}'`); | ||
} | ||
@@ -81,0 +81,0 @@ } |
@@ -0,0 +0,0 @@ import TsLog from "ts-log"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { Bundle } from "./config.js"; |
@@ -0,0 +0,0 @@ import { CollisionReactions } from "./config.js"; |
@@ -0,0 +0,0 @@ import { Config } from "./config.js"; |
import { MergeBundle } from "./merge-bundle.js"; | ||
import extend from "just-extend"; | ||
import ono from "@jsdevtools/ono"; | ||
import { errorCaster } from "../error-caster.js"; | ||
/** | ||
@@ -32,4 +33,4 @@ * Merges a collection of configurations. | ||
} | ||
catch (exception) { | ||
throw ono(exception, `Exception raised while merging bundle '${bundleName}' in the raw configuration at index '${rawConfigs.indexOf(config)}'.`); | ||
catch (e) { | ||
throw ono(errorCaster(e), `Exception raised while merging bundle '${bundleName}' in the raw configuration at index '${rawConfigs.indexOf(config)}'.`); | ||
} | ||
@@ -36,0 +37,0 @@ } |
@@ -0,0 +0,0 @@ import { Bundle } from "./config.js"; |
@@ -0,0 +0,0 @@ import { CollisionReactions } from "./config.js"; |
@@ -0,0 +0,0 @@ import { Config } from "./config.js"; |
@@ -0,0 +0,0 @@ import { ValidateBundle } from "./validate-bundle.js"; |
@@ -0,0 +0,0 @@ export { MergeConfigs as MergeRawConfigs } from "./config/merge-configs.js"; |
@@ -0,0 +0,0 @@ export { MergeConfigs as MergeRawConfigs } from "./config/merge-configs.js"; |
{ | ||
"name": "@userfrosting/gulp-bundle-assets", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Orchestrates JS and CSS bundle creation in an efficient and configurable manner.", | ||
@@ -54,3 +54,3 @@ "funding": "https://opencollective.com/userfrosting", | ||
"into-stream": "^7.0.0", | ||
"just-extend": "^4.1.1", | ||
"just-extend": "^6.0.1", | ||
"plugin-error": "^1.0.1", | ||
@@ -63,6 +63,6 @@ "ts-log": "^2.2.3", | ||
"@microsoft/api-extractor": "^7.13.1", | ||
"@types/node": "^16.0.0", | ||
"@types/node": "^17.0.1", | ||
"@types/vinyl": "^2.0.4", | ||
"@userfrosting/ts-log-adapter-ava": "^0.1.0", | ||
"ava": "^3.15.0", | ||
"ava": "^4.1.0", | ||
"c8": "^7.5.0", | ||
@@ -72,5 +72,5 @@ "changelog-updater": "^2.0.2", | ||
"del-cli": "^4.0.0", | ||
"is-npm-cli": "^1.0.0", | ||
"is-npm-cli": "^2.0.0", | ||
"p-defer": "^4.0.0", | ||
"sort-on": "^4.1.0", | ||
"sort-on": "^5.0.0", | ||
"typescript": "^4.1.3" | ||
@@ -77,0 +77,0 @@ }, |
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
80822
64
740
+ Addedjust-extend@6.2.0(transitive)
- Removedjust-extend@4.2.1(transitive)
Updatedjust-extend@^6.0.1