From 5ce13bb9b40e59316aa282a5a00bdd9b9a2f48e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Polg=C3=A1r=20M=C3=A1rton?= Date: Sat, 6 Mar 2021 02:57:52 +0100 Subject: [PATCH 1/2] Changing platform target to be async friendly --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 5fb6804..921420d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, + "target": "es2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, // "lib": [], /* Specify library files to be included in the compilation. */ // "allowJs": true, /* Allow javascript files to be compiled. */ From 52c64ed01ace945f28f77e9349c0505051be6a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Polg=C3=A1r=20M=C3=A1rton?= Date: Sat, 6 Mar 2021 02:58:39 +0100 Subject: [PATCH 2/2] Adding api_paste_name to paste creation --- src/PasteClient.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PasteClient.ts b/src/PasteClient.ts index d02ae0f..44899ea 100644 --- a/src/PasteClient.ts +++ b/src/PasteClient.ts @@ -32,6 +32,7 @@ class PasteClient { body: this.encode({ api_dev_key: this.apiKey, api_option: "paste", + api_paste_name: options.name ?? "Untitled", api_paste_code: options.code, api_paste_format: options.format ?? "javascript", api_paste_private: options.publicity ?? 0,