🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

enonic-wizardry

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-wizardry - npm Package Compare versions

Comparing version

to
0.2.13

2

lib/menu.d.ts
import { IOEither } from "fp-ts/lib/IOEither";
import { MenuItem } from "enonic-types/lib/menu";
import { EnonicError } from "enonic-fp/lib/errors";
export declare function getSubMenuByKey(key?: string): IOEither<EnonicError, ReadonlyArray<MenuItem>>;
export declare function getSubMenuByKey(levels: number, key?: string): IOEither<EnonicError, ReadonlyArray<MenuItem>>;

@@ -6,7 +6,7 @@ "use strict";

var menu_1 = require("enonic-fp/lib/menu");
function getSubMenuByKey(key) {
function getSubMenuByKey(levels, key) {
return key
? IOEither_1.chain(menu_1.getSubMenus(2))(content_1.get({ key: key }))
? IOEither_1.chain(menu_1.getSubMenus(levels))(content_1.get({ key: key }))
: IOEither_1.right([]);
}
exports.getSubMenuByKey = getSubMenuByKey;
{
"name": "enonic-wizardry",
"version": "0.2.12",
"version": "0.2.13",
"description": "Functional utility library for Enonic XP",

@@ -29,9 +29,9 @@ "main": "lib/index.js",

"enonic-fp": "^0.2.12",
"enonic-types": "^0.0.15",
"enonic-types": "^0.0.16",
"fp-ts": "^2.3.1",
"io-ts": "^2.0.2"
"io-ts": "^2.0.3"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@typescript-eslint/parser": "^2.12.0",
"@typescript-eslint/eslint-plugin": "^2.14.0",
"@typescript-eslint/parser": "^2.14.0",
"eslint": "^6.8.0",

@@ -38,0 +38,0 @@ "husky": "^3.1.0",