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

@laconia/core

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laconia/core - npm Package Compare versions

Comparing version

to
0.14.0

2

package.json
{
"name": "@laconia/core",
"version": "0.13.0",
"version": "0.14.0",
"description": "Micro dependency injection framework",

@@ -5,0 +5,0 @@ "keywords": [

const CoreLaconiaContext = require("./CoreLaconiaContext");
const checkFunction = fn => {
if (!fn)
throw new TypeError(
`laconia() expects to be passed a function, you passed: ${fn}`
);
if (typeof fn !== "function")
throw new TypeError(
`laconia() expects to be passed a function, you passed a non function: ${fn}`
);
};
module.exports = fn => {
checkFunction(fn);
const laconiaContext = new CoreLaconiaContext();

@@ -5,0 +17,0 @@