@mcma/core
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -89,3 +89,6 @@ export abstract class Resource { | ||
export class Locator extends Resource { | ||
constructor(properties: any); | ||
constructor(); | ||
constructor(type: string); | ||
constructor(properties: object); | ||
constructor(type: string, properties: object); | ||
@@ -123,3 +126,3 @@ [key: string]: any; | ||
export abstract class JobBase extends Resource implements JobBaseProperties { | ||
constructor(properties: JobBaseProperties); | ||
protected constructor(type: string, properties: JobBaseProperties); | ||
notificationEndpoint?: NotificationEndpointProperties; | ||
@@ -126,0 +129,0 @@ status?: string; |
@@ -65,3 +65,3 @@ //"use strict"; | ||
for (const prop in properties) { | ||
if (prop !== "@type") { | ||
if (properties.hasOwnProperty(prop) && prop !== "@type") { | ||
this[prop] = properties[prop]; | ||
@@ -74,2 +74,4 @@ } | ||
this.onUpsert = (id) => onResourceUpsert(this, id); | ||
this.checkProperty = (propertyName, expectedType, required) => checkProperty(this, propertyName, expectedType, required); | ||
} | ||
@@ -138,4 +140,8 @@ } | ||
class Locator extends Resource { | ||
constructor(properties) { | ||
super("Locator", properties); | ||
constructor(type, properties) { | ||
if (typeof type === "object" && !properties) { | ||
properties = type; | ||
type = "Locator"; | ||
} | ||
super(type, properties); | ||
} | ||
@@ -142,0 +148,0 @@ } |
{ | ||
"name": "@mcma/core", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Node module with type definitions and helper utils for the EBU MCMA framework", | ||
@@ -17,6 +17,6 @@ "engines": { | ||
"keywords": [ | ||
"mcma", | ||
"awsv4" | ||
"ebu", | ||
"mcma" | ||
], | ||
"author": "Joost Rovers <joost.rovers@glookast.com>", | ||
"author": "Joost Rovers <joost@rovers.pt>", | ||
"license": "Apache-2.0", | ||
@@ -23,0 +23,0 @@ "bugs": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
23186
655
0