@acryldev/blends-frame 0.2.11 → 0.2.12

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/lib/index.js CHANGED
@@ -1084,6 +1084,10 @@ function githubReadiness(login) {
1084
1084
  /** A share that could not be planned or sent, in words a person can act on. */
1085
1085
  function plainShareProblem(cause) {
1086
1086
  const message = cause instanceof Error ? cause.message : String(cause);
1087
+ if (/npm whoami failed|sign in with: npm login/iu.test(message)) return {
1088
+ say: "npm is not signed in on this computer. Open a terminal, run npm login, then press Publish to npm again. Nothing was sent.",
1089
+ details: message
1090
+ };
1087
1091
  const setup = githubProblemOf(message);
1088
1092
  if (setup === "missing") return /\bgit is not available/iu.test(message) ? {
1089
1093
  say: `Sharing needs a free program called git, and it is not installed on this computer. Install it from git-scm.com and try again. ${KEEP_HERE}`,
@@ -4243,7 +4247,13 @@ function apply(ctx, config = {}) {
4243
4247
  ...visibility === void 0 ? {} : { visibility },
4244
4248
  ...registry === true ? { registry } : {}
4245
4249
  }, githubSharePorts()),
4246
- share: async (name, confirmed, owner) => confirmed.npm !== void 0 ? shareNpm(npmShareOf(() => ctx.get("pluginShare")), name, confirmed, owner) : shareAppPlugin(root, ctx.appInstance.home, name, confirmed, {
4250
+ share: async (name, confirmed, owner) => confirmed.npm !== void 0 ? shareNpm(npmShareOf(() => ctx.get("pluginShare")), name, confirmed, owner).then(async (shared) => {
4251
+ await recordShare(join(ctx.appInstance.home, "shared-plugins.json"), name, {
4252
+ url: shared.url,
4253
+ version: shared.version
4254
+ });
4255
+ return shared;
4256
+ }) : shareAppPlugin(root, ctx.appInstance.home, name, confirmed, {
4247
4257
  ...shareTo,
4248
4258
  ...owner === void 0 ? {} : { owner }
4249
4259
  }, githubSharePorts()),