Comparing version 0.17.2 to 0.17.3
@@ -58,2 +58,4 @@ import { ApiEdgeRelation } from "../relations/ApiEdgeRelation"; | ||
metadata: () => ApiEdgeMetadata; | ||
get(key: string): any; | ||
set(key: string, value: any): any; | ||
} | ||
@@ -112,2 +114,5 @@ export declare abstract class ApiEdge implements ApiEdgeDefinition { | ||
entryMethod(name: string, execute: (scope: ApiQueryScope) => Promise<ApiEdgeQueryResponse>, acceptedTypes?: ApiRequestType, parameters?: string[], requiresData?: boolean): ApiEdge; | ||
private extension; | ||
get: (key: string) => any; | ||
set: (key: string, value: any) => any; | ||
} |
@@ -49,2 +49,5 @@ "use strict"; | ||
}; | ||
this.extension = {}; | ||
this.get = (key) => this.extension[key]; | ||
this.set = (key, value) => this.extension[key] = value; | ||
} | ||
@@ -51,0 +54,0 @@ edgeMethod(name, execute, acceptedTypes = ApiRequest_1.ApiRequestType.Any, parametersOrData = [], requiresData = true) { |
{ | ||
"name": "api-core", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "Model-based dynamic multi-level APIs for any provider, plus multiple consumption channels", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -59,2 +59,5 @@ import {ApiEdgeRelation} from "../relations/ApiEdgeRelation"; | ||
metadata: () => ApiEdgeMetadata | ||
get(key: string): any; | ||
set(key: string, value: any): any; | ||
} | ||
@@ -194,2 +197,6 @@ | ||
}; | ||
private extension: { [key: string]: any } = {}; | ||
get = (key: string) => this.extension[key]; | ||
set = (key: string, value: any) => this.extension[key] = value; | ||
} |
Sorry, the diff of this file is not supported yet
614468
7585