(s: string)
| 2 | import {CONFIG} from "../config.ts"; |
| 3 | |
| 4 | function percentEncode(s: string): string { |
| 5 | return encodeURIComponent(s).replace(/['()*!]/g, c => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); |
| 6 | } |
| 7 | |
| 8 | async function buildHmacKey(consumerSecret: string, accessTokenSecret: string): Promise<CryptoKey> { |
| 9 | const string = percentEncode(consumerSecret) + '&' + percentEncode(accessTokenSecret); |
no outgoing calls
no test coverage detected