repository-provider
Advanced tools
Comparing version 7.2.0 to 7.2.1
@@ -196,3 +196,3 @@ 'use strict'; | ||
*/ | ||
async content(name) { | ||
async entry(name) { | ||
throw new Error(`No such object '${name}'`); | ||
@@ -249,6 +249,2 @@ } | ||
async *list(matchingPatterns) { | ||
return this.entries(matchingPatterns); | ||
} | ||
/** | ||
@@ -267,3 +263,7 @@ * List entries of the branch | ||
async entry(name) { | ||
return (await this.entries(name).next()).value; | ||
const e = (await this.entries(name).next()).value; | ||
if(e === undefined) { | ||
throw new Error(`No such entry '${name}'`); | ||
} | ||
return e; | ||
} | ||
@@ -302,2 +302,16 @@ | ||
} | ||
async *list(...args) { | ||
console.log( | ||
`${this.constructor.name}: list is deprecated use entries instead` | ||
); | ||
return this.entries(...args); | ||
} | ||
async content(...args) { | ||
console.log( | ||
`${this.constructor.name}: content is deprecated use entry instead` | ||
); | ||
return this.entry(...args); | ||
} | ||
} | ||
@@ -304,0 +318,0 @@ ); |
{ | ||
"name": "repository-provider", | ||
"version": "7.2.0", | ||
"version": "7.2.1", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
71456
2346