Creating a current (i.e. ^5.0.0
) CRA will result in missing polyfills.
That will make a typescript project fail to compile.
A workaround is to provide the polyfills with craco. Find the neccessary configuration snippets in the files below.
const {Server} = require("stellar-sdk"); | |
const server = new Server("https://horizon.stellar.org"); | |
server.transactions().limit(1).order("desc").call() | |
.then(({records}) => { | |
var lastCreatedAt; | |
const stop = server.transactions().cursor(records[0].paging_token).stream({ | |
onmessage: m => { | |
const createdAt = new Date(m.created_at); |
const { Keypair, Networks, Server, TransactionBuilder, Operation, BASE_FEE, Memo, Claimant, Asset, LiquidityPoolAsset} = require('stellar-sdk'); | |
const StellarHDWallet = require("stellar-hd-wallet"); | |
const random = require("@sefinek/random-emoji"); | |
const server = new Server("https://horizon-testnet.stellar.org"); | |
const friendbotAccount = "GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR"; | |
const keyChars = "234567ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
const solution = (() => { | |
if (process.env.SECRET) return Keypair.fromSecret(process.env.SECRET); |
#!/usr/bin/env bash | |
set -e | |
ORGANIZATION=${GH_ORG:?"Please set variable GH_ORG."} | |
TEAM=${GH_TEAM:?"Please set variable GH_TEAM"} | |
API_TOKEN=${GH_API_TOKEN:?"Please set variable GH_API_TOKEN."} | |
curl -s -X POST \ | |
-H"Authorization: Bearer ${API_TOKEN}" \ | |
-d"{ \"query\": \"query { \ | |
organization(login: \\\"${ORGANIZATION}\\\") { \ |
<?php | |
class ImgTools | |
{ | |
/** | |
* Calculate image dimensions from given ratio and desired new x-/y- values | |
* | |
* @param int $desired_width desired image width | |
* @param int $desired_height desired image height | |
* @param int $ratio desired ratio |
ACTION!="add|change", GOTO="yubico_end" | |
# Udev rules for letting the console user access the Yubikey USB | |
# device node, needed for challenge/response to work correctly. | |
# Yubico Yubikey II | |
SUBSYSTEMS=="usb",\ | |
ATTRS{idVendor}=="1050",\ | |
ATTRS{idProduct}=="0010|0110|0111|0114|0116", \ | |
ENV{ID_SECURITY_TOKEN}="1", GROUP="plugdev",\ |
#!/usr/bin/env python3 | |
import sys | |
import argparse | |
import time | |
import lxml | |
import requests | |
import lxml.html as lhtml |
I hereby claim:
To claim this, I am signing this object: