New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@patternplate/load-config

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternplate/load-config - npm Package Compare versions

Comparing version 2.0.0-16 to 2.0.0-17

lib/load-config.js

23

index.js

@@ -1,22 +0,1 @@

const cosmiconfig = require("cosmiconfig");
const DEFAULTS = {
docs: ["docs/**/*.md"],
entry: ["lib/**/demo.js"],
render: "@patternplate/render-default/render",
mount: "@patternplate/render-default/mount"
};
module.exports = async ({ cwd }) => {
const explorer = cosmiconfig("patternplate");
const config = await explorer.load(cwd);
if (!config) {
return {
config: DEFAULTS,
filepath: null
};
}
return config;
};
module.exports = require("./lib/load-config");
{
"name": "@patternplate/load-config",
"version": "2.0.0-16",
"version": "2.0.0-17",
"description": "Load patternplate config",
"scripts": {
"start": "yarn build -w",
"build": "babel -D src -d lib --source-maps --ignore **/*.test.js",
"clean": "rimraf lib",
"watch": "yarn build -w"
},
"xo": false,

@@ -24,3 +30,13 @@ "repository": {

"cosmiconfig": "^3.1.0"
},
"babel": {
"presets": [
"module:@patternplate/babel-preset"
]
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.40",
"@patternplate/babel-preset": "^2.0.0-17",
"fixturez": "^1.1.0"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc