@web/config-loader
Advanced tools
Comparing version 0.1.1 to 0.1.2
# @web/config-loader | ||
## 0.1.2 | ||
### Patch Changes | ||
- 132c43c: export map entry for import needs to be valid | ||
## 0.1.1 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@web/config-loader", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"publishConfig": { | ||
@@ -47,3 +47,3 @@ "access": "public" | ||
".": { | ||
"import": "./index.,js", | ||
"import": "./index.mjs", | ||
"require": "./src/index.js" | ||
@@ -50,0 +50,0 @@ } |
@@ -10,9 +10,9 @@ # Config Loader | ||
```bash | ||
npm i -D @web/config-loader | ||
npm i --save-dev @web/config-loader | ||
``` | ||
### CommonJS: | ||
```js | ||
const { readConfig, ConfigLoaderError } = require('@web/config-loader'); | ||
import { readConfig, ConfigLoaderError } from '@web/config-loader'; | ||
// Or as a commonjs module | ||
// const { readConfig, ConfigLoaderError } = require('@web/config-loader'); | ||
@@ -39,11 +39,2 @@ (async () => { | ||
### Es module: | ||
```js | ||
import ConfigLoader from '@web/config-loader'; | ||
const { readConfig, ConfigLoaderError } = ConfigLoader; | ||
// samve as above | ||
``` | ||
### Custom config file | ||
@@ -50,0 +41,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
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
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
12736
61
1