repository-provider
Advanced tools
Comparing version 8.6.0 to 8.6.1
@@ -705,3 +705,19 @@ 'use strict'; | ||
/** | ||
* brings Directory attributes | ||
*/ | ||
function DirectoryEntryMixin(superclass) { | ||
return class DirectoryEntryMixin extends superclass { | ||
get isDirectory() { | ||
return true; | ||
} | ||
async getTypes() { | ||
return ["public.directory"]; | ||
} | ||
}; | ||
} | ||
const BaseDirectoryEntry = DirectoryEntryMixin(BaseEntry); | ||
/** | ||
@@ -1442,9 +1458,12 @@ * Representation of one file or directory entry | ||
static get defaultOptions() { | ||
return Object.assign({ | ||
/** | ||
* in case there are several provider able to support a given source which one sould be used ? | ||
* this defines the order | ||
*/ | ||
priority: 0 | ||
}, super.defaultOptions); | ||
return Object.assign( | ||
{ | ||
/** | ||
* in case there are several provider able to support a given source which one sould be used ? | ||
* this defines the order | ||
*/ | ||
priority: 0 | ||
}, | ||
super.defaultOptions | ||
); | ||
} | ||
@@ -1455,11 +1474,7 @@ | ||
definePropertiesFromOptions( | ||
this, | ||
options, | ||
{ | ||
repositoryGroups: { value: new Map() } | ||
} | ||
); | ||
definePropertiesFromOptions(this, options, { | ||
repositoryGroups: { value: new Map() } | ||
}); | ||
this.trace( level => options); | ||
this.trace(level => options); | ||
} | ||
@@ -1589,3 +1604,3 @@ | ||
Object.keys(this.constructor.defaultOptions).forEach(k => { | ||
if(this[k] !== undefined && typeof this[k] !== 'function') { | ||
if (this[k] !== undefined && typeof this[k] !== "function") { | ||
json[k] = this[k]; | ||
@@ -1606,3 +1621,5 @@ } | ||
exports.Entry = Entry; | ||
exports.BaseDirectoryEntry = BaseDirectoryEntry; | ||
exports.DirectoryEntryMixin = DirectoryEntryMixin; | ||
exports.emptyEntry = emptyEntry; | ||
exports.Provider = Provider; |
{ | ||
"name": "repository-provider", | ||
"version": "8.6.0", | ||
"version": "8.6.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
80298
2702