@trawlme/cli 4.0.1 → 4.0.2
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/lib/referral.d.ts +2 -2
- package/dist/lib/referral.js +2 -2
- package/dist/lib/tips.js +1 -1
- package/package.json +1 -1
package/dist/lib/referral.d.ts
CHANGED
package/dist/lib/referral.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const REFERRAL_REWARD = {
|
|
2
|
-
referee:
|
|
3
|
-
referrer:
|
|
2
|
+
referee: 5_000,
|
|
3
|
+
referrer: 5_000,
|
|
4
4
|
};
|
|
5
5
|
const fmt = (n) => n.toLocaleString('en-US');
|
|
6
6
|
export const REFERRAL_REWARD_SHORT = `they get ${fmt(REFERRAL_REWARD.referee)}, you get ${fmt(REFERRAL_REWARD.referrer)} compute`;
|
package/dist/lib/tips.js
CHANGED
|
@@ -4,7 +4,7 @@ import { api } from './api.js';
|
|
|
4
4
|
import { REFERRAL_REWARD_SHORT } from './referral.js';
|
|
5
5
|
const TIP_THROTTLE_MS = 7 * 24 * 60 * 60 * 1000;
|
|
6
6
|
const FLAG_CHECK_TIMEOUT_MS = 2_000;
|
|
7
|
-
const REFERRAL_TIP_TEXT = `Invite a builder
|
|
7
|
+
const REFERRAL_TIP_TEXT = `Invite a builder: ${REFERRAL_REWARD_SHORT} → run \`trawl referral\``;
|
|
8
8
|
function isOptedOut() {
|
|
9
9
|
if (process.env['TRAWL_NO_TIPS'] !== undefined)
|
|
10
10
|
return true;
|