Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "joycon", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Load config with ease.", | ||
@@ -9,9 +9,11 @@ "repository": { | ||
}, | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"index.js" | ||
"lib" | ||
], | ||
"scripts": { | ||
"test": "npm run lint && jest", | ||
"lint": "xo" | ||
"lint": "xo", | ||
"build": "babel src -d lib", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -24,6 +26,13 @@ "author": "egoist <0x142857@gmail.com>", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.44", | ||
"@babel/core": "^7.0.0-beta.44", | ||
"@babel/preset-env": "^7.0.0-beta.44", | ||
"@types/json5": "^0.0.29", | ||
"@types/node": "^9.6.5", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-jest": "^22.4.3", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-sync": "^0.1.0", | ||
"eslint-config-rem": "^3.0.0", | ||
"jest-cli": "^19.0.0", | ||
"jest-cli": "^22.4.3", | ||
"xo": "^0.18.0" | ||
@@ -35,6 +44,9 @@ }, | ||
"jest" | ||
], | ||
"ignores": [ | ||
"lib/**" | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=7.6.0" | ||
"node": ">=6" | ||
}, | ||
@@ -41,0 +53,0 @@ "dependencies": { |
@@ -6,2 +6,6 @@ | ||
## Differences with [cosmiconfig](https://github.com/davidtheclark/cosmiconfig)? | ||
JoyCon is much more lightweight while being feature-complete. | ||
## Install | ||
@@ -68,2 +72,4 @@ | ||
There's also `.resolveSync` method. | ||
### load(...args) | ||
@@ -75,2 +81,4 @@ | ||
There's also `.loadSync` method. | ||
### addLoader(Loader) | ||
@@ -81,6 +89,9 @@ | ||
test: RegExp | ||
load(filepath: string): any | ||
load(filepath: string)?: Promise<any> | ||
loadSync(filepath: string)?: any | ||
} | ||
``` | ||
At least one of `load` and `loadSync` is required, depending on where you're calling the synchonous methods or not. | ||
### clearCache() | ||
@@ -87,0 +98,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
12846
244
111
12
5
1