@web/config-loader
Advanced tools
Comparing version 0.1.2 to 0.1.3
# @web/config-loader | ||
## 0.1.3 | ||
### Patch Changes | ||
- 6e313c18: improve error message | ||
## 0.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -7,8 +7,4 @@ /** | ||
export function readConfig(name: string, customPath?: string | undefined, basedir?: string | undefined): Promise<any>; | ||
export const ConfigLoaderError: { | ||
new (message?: string | undefined): import("./ConfigLoaderError"); | ||
captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; | ||
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; | ||
stackTraceLimit: number; | ||
}; | ||
import ConfigLoaderError = require("./ConfigLoaderError"); | ||
export { ConfigLoaderError }; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@web/config-loader", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"publishConfig": { | ||
@@ -42,3 +42,3 @@ "access": "public" | ||
"dependencies": { | ||
"semver": "^7.3.2" | ||
"semver": "^7.3.4" | ||
}, | ||
@@ -45,0 +45,0 @@ "types": "dist/index.d.ts", |
@@ -40,3 +40,3 @@ const semver = require('semver'); | ||
throw new ConfigLoaderError( | ||
'You are using CommonJS syntax in a config loaded as es module. ' + | ||
'You are using CommonJS syntax such as "require" or "module.exports" in a config loaded as es module. ' + | ||
'Use import/export syntax, or load the file as a CommonJS module by ' + | ||
@@ -43,0 +43,0 @@ 'using the .cjs file extension or by removing type="module" from your package.json.', |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
12593
210
Updatedsemver@^7.3.4