@penvhq/provider-github 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -15057,7 +15057,7 @@ var GithubProvider = class {
15057
15057
  /**
15058
15058
  * The `owner/repo` the API paths below need. `gh secret` resolves the repo
15059
15059
  * from the working directory on its own, but `gh api` takes a literal path —
15060
- * so when no `location` named one, ask `gh` once and keep the answer.
15060
+ * so when no `repository` named one, ask `gh` once and keep the answer.
15061
15061
  */
15062
15062
  #targetRepo() {
15063
15063
  if (this.#repo !== void 0) {
@@ -15074,7 +15074,7 @@ var GithubProvider = class {
15074
15074
  if (repo === "") {
15075
15075
  throw commandFailed(
15076
15076
  "resolve the repository this directory belongs to",
15077
- "gh reported no repository. Set `location` to `owner/repo` in the provider entry."
15077
+ "gh reported no repository. Set `repository` to `owner/repo` in the environment's entry."
15078
15078
  );
15079
15079
  }
15080
15080
  this.#resolvedRepo = repo;
@@ -15120,8 +15120,8 @@ function createGithubProvider(options = {}) {
15120
15120
 
15121
15121
  // src/factory.ts
15122
15122
  function penvProviderFactory(context) {
15123
- const location = context.providerConfig?.location;
15124
- return createGithubProvider(location === void 0 ? {} : { repo: location });
15123
+ const repository = context.providerConfig?.["repository"];
15124
+ return createGithubProvider(typeof repository === "string" ? { repo: repository } : {});
15125
15125
  }
15126
15126
  // Annotate the CommonJS export names for ESM import in node:
15127
15127
  0 && (module.exports = {