repository-provider
Advanced tools
Comparing version 5.7.3 to 5.7.4
@@ -485,2 +485,13 @@ 'use strict'; | ||
} | ||
toString() { | ||
return `${this.name}: ${this.title}, state: ${this.state}, merged: ${this.merged}`; | ||
} | ||
toJSON() { | ||
return { | ||
name: this.name, | ||
title: this.title, | ||
merged: this.merged, | ||
state: this.state | ||
}; | ||
} | ||
} | ||
@@ -487,0 +498,0 @@ |
{ | ||
"name": "repository-provider", | ||
"version": "5.7.3", | ||
"version": "5.7.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -73,11 +73,19 @@ import { notImplementedError, propertiesFromOptions } from "./util"; | ||
properties.merged = { | ||
set(value) { merged = value; }, | ||
get() { return merged; } | ||
} | ||
set(value) { | ||
merged = value; | ||
}, | ||
get() { | ||
return merged; | ||
} | ||
}; | ||
let state = properties.state.value; | ||
properties.state = { | ||
set(value) { state = value; }, | ||
get() { return state; } | ||
} | ||
set(value) { | ||
state = value; | ||
}, | ||
get() { | ||
return state; | ||
} | ||
}; | ||
@@ -118,2 +126,17 @@ Object.defineProperties(this, properties); | ||
} | ||
toString() { | ||
return `${this.name}: ${this.title}, state: ${this.state}, merged: ${ | ||
this.merged | ||
}`; | ||
} | ||
toJSON() { | ||
return { | ||
name: this.name, | ||
title: this.title, | ||
merged: this.merged, | ||
state: this.state | ||
}; | ||
} | ||
} |
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
67132
1730