@jsreport/jsreport-assets
Advanced tools
Comparing version 3.4.3 to 3.4.4
@@ -103,3 +103,6 @@ const fs = require('fs/promises') | ||
if (definition.options.searchOnDiskIfNotFoundInStore !== true) { | ||
throw new Error(`Asset ${name} not found`) | ||
throw reporter.createError(`Asset ${name} not found`, { | ||
statusCode: 400, | ||
weak: true | ||
}) | ||
} | ||
@@ -118,3 +121,6 @@ | ||
} catch (e) { | ||
throw new Error(`Asset ${name} not found in the store and also not on the disk: ` + e.message) | ||
throw reporter.createError(`Asset ${name} not found in the store and also not on the disk: ` + e.message, { | ||
statusCode: 400, | ||
weak: true | ||
}) | ||
} | ||
@@ -121,0 +127,0 @@ |
{ | ||
"name": "@jsreport/jsreport-assets", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"description": "jsreport extension embedding static assets like fonts or helpers into the templates", | ||
@@ -44,5 +44,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@jsreport/jsreport-core": "3.7.0", | ||
"@jsreport/jsreport-core": "3.8.0", | ||
"@jsreport/jsreport-express": "3.4.2", | ||
"@jsreport/jsreport-handlebars": "3.2.0", | ||
"@jsreport/jsreport-handlebars": "3.2.1", | ||
"@jsreport/jsreport-jsrender": "3.0.0", | ||
@@ -53,3 +53,3 @@ "@jsreport/jsreport-scripts": "3.2.1", | ||
"mocha": "8.2.1", | ||
"moment": "2.29.1", | ||
"moment": "2.29.4", | ||
"should": "13.2.3", | ||
@@ -56,0 +56,0 @@ "standard": "16.0.4", |
@@ -11,2 +11,6 @@ # @jsreport/jsreport-assets | ||
### 3.4.4 | ||
- asset not found is marked as weak error | ||
### 3.4.3 | ||
@@ -13,0 +17,0 @@ |
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
227833
3534
56