@devtion/devcli 0.0.0-e22d20d → 0.0.0-e312890

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.js CHANGED
@@ -637,19 +637,22 @@ const publishGist = async (token, content, ceremonyTitle, ceremonyPrefix) => {
637
637
  * @param isFinalizing <boolean> - flag to discriminate between ceremony finalization (true) and contribution (false).
638
638
  * @returns <string> - the ready to share tweet url.
639
639
  */
640
- const generateCustomUrlToTweetAboutParticipation = (ceremonyName, gistUrl, isFinalizing) => isFinalizing
641
- ? `https://twitter.com/intent/tweet?text=I%20have%20finalized%20the%20${ceremonyName}${ceremonyName.toLowerCase().includes("trusted") ||
642
- ceremonyName.toLowerCase().includes("setup") ||
643
- ceremonyName.toLowerCase().includes("phase2") ||
644
- ceremonyName.toLowerCase().includes("ceremony")
645
- ? "!"
646
- : "%20Phase%202%20Trusted%20Setup%20ceremony!"}%20You%20can%20view%20my%20final%20attestation%20here:%20${gistUrl}%20#Ethereum%20#ZKP%20#PSE`
647
- : `https://twitter.com/intent/tweet?text=I%20contributed%20to%20the%20${ceremonyName}${ceremonyName.toLowerCase().includes("trusted") ||
648
- ceremonyName.toLowerCase().includes("setup") ||
649
- ceremonyName.toLowerCase().includes("phase2") ||
650
- ceremonyName.toLowerCase().includes("ceremony")
651
- ? "!"
652
- : "%20Phase%202%20Trusted%20Setup%20ceremony!"}%20You%20can%20view%20the%20steps%20to%20contribute%20here:%20https://ceremony.pse.dev%20You%20can%20view%20my%20attestation%20here:%20${gistUrl}%20#Ethereum%20#ZKP`;
640
+ const generateCustomUrlToTweetAboutParticipation = (ceremonyName, gistUrl, isFinalizing) => {
641
+ ceremonyName = ceremonyName.replace(/ /g, "%20");
642
+ return isFinalizing
643
+ ? `https://twitter.com/intent/tweet?text=I%20have%20finalized%20the%20${ceremonyName}${ceremonyName.toLowerCase().includes("trusted") ||
644
+ ceremonyName.toLowerCase().includes("setup") ||
645
+ ceremonyName.toLowerCase().includes("phase2") ||
646
+ ceremonyName.toLowerCase().includes("ceremony")
647
+ ? "!"
648
+ : "%20Phase%202%20Trusted%20Setup%20ceremony!"}%20You%20can%20view%20my%20final%20attestation%20here:%20${gistUrl}%20#Ethereum%20#ZKP%20#PSE`
649
+ : `https://twitter.com/intent/tweet?text=I%20contributed%20to%20the%20${ceremonyName}${ceremonyName.toLowerCase().includes("trusted") ||
650
+ ceremonyName.toLowerCase().includes("setup") ||
651
+ ceremonyName.toLowerCase().includes("phase2") ||
652
+ ceremonyName.toLowerCase().includes("ceremony")
653
+ ? "!"
654
+ : "%20Phase%202%20Trusted%20Setup%20ceremony!"}%20You%20can%20view%20the%20steps%20to%20contribute%20here:%20https://ceremony.pse.dev%20You%20can%20view%20my%20attestation%20here:%20${gistUrl}%20#Ethereum%20#ZKP`;
655
+ };
653
656
  /**
654
657
  * Return a custom progress bar.
655
658
  * @param type <ProgressBarType> - the type of the progress bar.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devtion/devcli",
3
3
  "type": "module",
4
- "version": "0.0.0-e22d20d",
4
+ "version": "0.0.0-e312890",
5
5
  "description": "All-in-one interactive command-line for interfacing with zkSNARK Phase 2 Trusted Setup ceremonies",
6
6
  "repository": "git@github.com:privacy-scaling-explorations/p0tion.git",
7
7
  "homepage": "https://github.com/privacy-scaling-explorations/p0tion",
@@ -104,5 +104,5 @@
104
104
  "publishConfig": {
105
105
  "access": "public"
106
106
  },
107
- "gitHead": "815d3cb9bab3a8a184e3daedbe80306e514d5aba"
107
+ "gitHead": "523f29a0c484496e734ccd908c7bcd428ed90618"
108
108
  }
package/src/lib/utils.ts CHANGED
@@ -312,8 +312,9 @@ export const generateCustomUrlToTweetAboutParticipation = (
312
312
  ceremonyName: string,
313
313
  gistUrl: string,
314
314
  isFinalizing: boolean
315
- ) =>
316
- isFinalizing
315
+ ) => {
316
+ ceremonyName = ceremonyName.replace(/ /g, "%20")
317
+ return isFinalizing
317
318
  ? `https://twitter.com/intent/tweet?text=I%20have%20finalized%20the%20${ceremonyName}${
318
319
  ceremonyName.toLowerCase().includes("trusted") ||
319
320
  ceremonyName.toLowerCase().includes("setup") ||
@@ -330,6 +331,7 @@ export const generateCustomUrlToTweetAboutParticipation = (
330
331
  ? "!"
331
332
  : "%20Phase%202%20Trusted%20Setup%20ceremony!"
332
333
  }%20You%20can%20view%20the%20steps%20to%20contribute%20here:%20https://ceremony.pse.dev%20You%20can%20view%20my%20attestation%20here:%20${gistUrl}%20#Ethereum%20#ZKP`
334
+ }
333
335
 
334
336
  /**
335
337
  * Return a custom progress bar.