Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@plumier/generic-controller

Package Overview
Dependencies
Maintainers
1
Versions
204
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plumier/generic-controller - npm Package Compare versions

Comparing version 1.0.0-canary.knwelcuw.0 to 1.0.0-canary.knwgask8.0

8

lib/controllers.d.ts

@@ -9,3 +9,3 @@ import { Class, ControllerGeneric, NestedControllerGeneric, NestedRepository, Repository, SelectQuery } from "@plumier/core";

declare type NestedRepositoryFactory<P, T> = (t: EntityWithRelation<P, T> | EntityWithRelation<T | P>) => NestedRepository<P, T>;
declare class RepoBaseControllerGeneric<T = Object, TID = string> extends ControllerGeneric<T, TID> {
declare class RepoBaseControllerGeneric<T = any, TID = string> extends ControllerGeneric<T, TID> {
readonly entityType: Class<T>;

@@ -17,3 +17,3 @@ readonly repo: Repository<T>;

save(data: T, ctx: Context): Promise<IdentifierResult<TID>>;
get(id: TID, select: SelectQuery, ctx: Context): Promise<T>;
get(id: TID, select: SelectQuery, ctx: Context): Promise<any>;
modify(id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>;

@@ -23,3 +23,3 @@ replace(id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>;

}
declare class RepoBaseNestedControllerGeneric<P = Object, T = Object, PID = String, TID = String> extends NestedControllerGeneric<P, T, PID, TID> {
declare class RepoBaseNestedControllerGeneric<P = any, T = any, PID = String, TID = String> extends NestedControllerGeneric<P, T, PID, TID> {
readonly entityType: Class<T>;

@@ -33,3 +33,3 @@ readonly parentEntityType: Class<P>;

save(pid: PID, data: T, ctx: Context): Promise<IdentifierResult<TID>>;
get(pid: PID, id: TID, select: SelectQuery, ctx: Context): Promise<T>;
get(pid: PID, id: TID, select: SelectQuery, ctx: Context): Promise<any>;
modify(pid: PID, id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>;

@@ -36,0 +36,0 @@ replace(pid: PID, id: TID, data: T, ctx: Context): Promise<IdentifierResult<TID>>;

{
"name": "@plumier/generic-controller",
"version": "1.0.0-canary.knwelcuw.0+2e9dfb5",
"version": "1.0.0-canary.knwgask8.0+d348bd6",
"description": "Plumier generic controller implementation",

@@ -23,4 +23,4 @@ "main": "lib/index.js",

"dependencies": {
"@plumier/core": "1.0.0-canary.knwelcuw.0+2e9dfb5",
"@plumier/query-parser": "1.0.0-canary.knwelcuw.0+2e9dfb5"
"@plumier/core": "1.0.0-canary.knwgask8.0+d348bd6",
"@plumier/query-parser": "1.0.0-canary.knwgask8.0+d348bd6"
},

@@ -40,3 +40,3 @@ "devDependencies": {

},
"gitHead": "2e9dfb535aef20be5027aa8c61500b672a12d8b1"
"gitHead": "d348bd61859115554fa9a2d03e7b0b3fbf2de68f"
}
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