@web/config-loader
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "@web/config-loader", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -38,3 +38,3 @@ const semver = require('semver'); | ||
} catch (e) { | ||
if (CJS_ERRORS.some(msg => e.stack.includes(msg))) { | ||
if (CJS_ERRORS.some(msg => /** @type {Error} */(e).stack?.includes(msg))) { | ||
throw new ConfigLoaderError( | ||
@@ -41,0 +41,0 @@ 'You are using CommonJS syntax such as "require" or "module.exports" in a config loaded as es module. ' + |
@@ -17,3 +17,3 @@ const ConfigLoaderError = require('./ConfigLoaderError'); | ||
} catch (e) { | ||
if (ESM_ERRORS.some(msg => e.stack.includes(msg))) { | ||
if (ESM_ERRORS.some(msg => /** @type {Error} **/(e).stack?.includes(msg))) { | ||
throw new ConfigLoaderError( | ||
@@ -20,0 +20,0 @@ 'You are using es module syntax in a config loaded as CommonJS module. ' + |
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
11519