Comparing version 0.2.43 to 0.2.44
import { IOEither } from "fp-ts/lib/IOEither"; | ||
import { EnonicError } from "./errors"; | ||
import { DiffParams, DiffResponse, FindVersionsParams, MultiRepoConnection, MultiRepoConnectParams, NodeCreateParams, NodeFindChildrenParams, NodeModifyParams, NodeQueryParams, NodeQueryResponse, NodeVersionQueryResult, RepoConnection, RepoNode, Source } from "enonic-types/lib/node"; | ||
import { DiffParams, DiffResponse, FindVersionsParams, MultiRepoConnection, MultiRepoConnectParams, NodeCreateParams, NodeFindChildrenParams, NodeGetParams, NodeModifyParams, NodeQueryParams, NodeQueryResponse, NodeVersionQueryResult, RepoConnection, RepoNode, Source } from "enonic-types/lib/node"; | ||
/** | ||
@@ -36,4 +36,4 @@ * Creates a connection to a repository with a given branch and authentication info. | ||
*/ | ||
export declare function get<A>(repo: RepoConnection, key: string): IOEither<EnonicError, A & RepoNode>; | ||
export declare function get<A>(repo: RepoConnection, keys: ReadonlyArray<string>): IOEither<EnonicError, ReadonlyArray<A & RepoNode>>; | ||
export declare function get<A>(repo: RepoConnection, key: string | NodeGetParams): IOEither<EnonicError, A & RepoNode>; | ||
export declare function get<A>(repo: RepoConnection, keys: ReadonlyArray<string | NodeGetParams>): IOEither<EnonicError, ReadonlyArray<A & RepoNode>>; | ||
/** | ||
@@ -40,0 +40,0 @@ * This command queries nodes. |
@@ -57,5 +57,3 @@ "use strict"; | ||
function get(repo, keys) { | ||
return utils_1.isString(keys) | ||
? utils_1.catchEnonicError(function () { return repo.get(keys); }) | ||
: utils_1.catchEnonicError(function () { return repo.get(keys); }); | ||
return utils_1.catchEnonicError(function () { return repo.get(keys); }); | ||
} | ||
@@ -62,0 +60,0 @@ exports.get = get; |
{ | ||
"name": "enonic-fp", | ||
"version": "0.2.43", | ||
"version": "0.2.44", | ||
"description": "Functional programming helpers for Enonic XP", | ||
@@ -28,12 +28,12 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"enonic-types": "^0.0.63", | ||
"enonic-types": "^0.0.66", | ||
"fp-ts": "^2.6.2" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^3.1.0", | ||
"@typescript-eslint/parser": "^3.1.0", | ||
"eslint": "^7.0.0", | ||
"@typescript-eslint/eslint-plugin": "^3.2.0", | ||
"@typescript-eslint/parser": "^3.2.0", | ||
"eslint": "^7.2.0", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^3.9.3" | ||
"typescript": "^3.9.5" | ||
} | ||
} |
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
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
73984
1346
+ Addedenonic-types@0.0.66(transitive)
- Removedenonic-types@0.0.63(transitive)
Updatedenonic-types@^0.0.66