@mcma/api
Advanced tools
Comparing version 0.14.8 to 0.15.0
@@ -6,4 +6,4 @@ "use strict"; | ||
function getPublicUrl(configVariables = core_1.ConfigVariables.getInstance()) { | ||
return configVariables.get("PublicUrl"); | ||
return configVariables.get("MCMA_PUBLIC_URL"); | ||
} | ||
exports.getPublicUrl = getPublicUrl; |
@@ -10,9 +10,9 @@ import { McmaResource, McmaResourceType } from "@mcma/core"; | ||
export declare class DefaultRouteCollection<T extends McmaResource> extends McmaApiRouteCollection { | ||
query: DefaultQueryRoute<T>; | ||
create: DefaultCreateRoute<T>; | ||
get: DefaultGetRoute<T>; | ||
update: DefaultUpdateRoute<T>; | ||
delete: DefaultDeleteRoute<T>; | ||
query?: DefaultQueryRoute<T>; | ||
create?: DefaultCreateRoute<T>; | ||
get?: DefaultGetRoute<T>; | ||
update?: DefaultUpdateRoute<T>; | ||
delete?: DefaultDeleteRoute<T>; | ||
constructor(dbTableProvider: DocumentDatabaseTableProvider, resourceType: McmaResourceType<T>, root?: string); | ||
remove(key: "query" | "create" | "get" | "update" | "delete"): void; | ||
} |
@@ -41,21 +41,5 @@ "use strict"; | ||
} | ||
switch (key) { | ||
case "query": | ||
this.query = null; | ||
break; | ||
case "create": | ||
this.create = null; | ||
break; | ||
case "get": | ||
this.get = null; | ||
break; | ||
case "update": | ||
this.update = null; | ||
break; | ||
case "delete": | ||
this.delete = null; | ||
break; | ||
} | ||
delete this[key]; | ||
} | ||
} | ||
exports.DefaultRouteCollection = DefaultRouteCollection; |
{ | ||
"name": "@mcma/api", | ||
"version": "0.14.8", | ||
"version": "0.15.0", | ||
"description": "Node module for building APIs based on the EBU MCMA framework", | ||
"engines": { | ||
"node": "^14.17.0" | ||
"node": "^16.0.0" | ||
}, | ||
@@ -40,13 +40,13 @@ "type": "commonjs", | ||
"peerDependencies": { | ||
"@mcma/client": "0.14.8", | ||
"@mcma/core": "0.14.8", | ||
"@mcma/data": "0.14.8", | ||
"@mcma/worker-invoker": "0.14.8" | ||
"@mcma/client": "0.15.0", | ||
"@mcma/core": "0.15.0", | ||
"@mcma/data": "0.15.0", | ||
"@mcma/worker-invoker": "0.15.0" | ||
}, | ||
"devDependencies": { | ||
"@mcma/client": "0.14.8", | ||
"@mcma/core": "0.14.8", | ||
"@mcma/data": "0.14.8", | ||
"@mcma/worker-invoker": "0.14.8", | ||
"@types/node": "^14.17.22", | ||
"@mcma/client": "0.15.0", | ||
"@mcma/core": "0.15.0", | ||
"@mcma/data": "0.15.0", | ||
"@mcma/worker-invoker": "0.15.0", | ||
"@types/node": "^16.11.60", | ||
"@types/pluralize": "0.0.29", | ||
@@ -53,0 +53,0 @@ "@types/uuid": "^7.0.3", |
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
62429
1303