From b497d195dc2df9401e2ca6f1a6ee0489ff595178 Mon Sep 17 00:00:00 2001 From: uzlopak Date: Fri, 4 Nov 2022 10:28:14 +0100 Subject: [PATCH] use strict --- dist/index.js | 13 +++++++++++-- src/githubActions.js | 2 ++ src/httpClient.js | 4 +++- src/index.js | 2 ++ 4 files changed, 18 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8f45807..77d6a91 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4967,6 +4967,9 @@ exports["default"] = _default; /***/ 8169: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; + + const core = __nccwpck_require__(2186); class GithubActions { @@ -5013,6 +5016,9 @@ module.exports = { GithubActions, LogActions } /***/ 9082: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { +"use strict"; + + const axios = __nccwpck_require__(8757); const FormData = __nccwpck_require__(4334) const fs = __nccwpck_require__(7147) @@ -5137,7 +5143,7 @@ const convertToJSON = (value) => { * @returns {FormData} */ const convertToFormData = (data, files) => { - formData = new FormData() + const formData = new FormData() for (const [key, value] of Object.entries(data)) { formData.append(key, value) @@ -9166,8 +9172,11 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":" /******/ /************************************************************************/ var __webpack_exports__ = {}; -// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +// This entry need to be wrapped in an IIFE because it need to be in strict mode. (() => { +"use strict"; + + const core = __nccwpck_require__(2186); const axios = __nccwpck_require__(8757); const https = __nccwpck_require__(5687); diff --git a/src/githubActions.js b/src/githubActions.js index cadc174..7bde98b 100644 --- a/src/githubActions.js +++ b/src/githubActions.js @@ -1,3 +1,5 @@ +'use strict' + const core = require("@actions/core"); class GithubActions { diff --git a/src/httpClient.js b/src/httpClient.js index 611eba9..0a3b0fe 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -1,3 +1,5 @@ +'use strict' + const axios = require('axios'); const FormData = require('form-data') const fs = require('fs') @@ -122,7 +124,7 @@ const convertToJSON = (value) => { * @returns {FormData} */ const convertToFormData = (data, files) => { - formData = new FormData() + const formData = new FormData() for (const [key, value] of Object.entries(data)) { formData.append(key, value) diff --git a/src/index.js b/src/index.js index 2836bfa..2752e87 100644 --- a/src/index.js +++ b/src/index.js @@ -1,3 +1,5 @@ +'use strict' + const core = require('@actions/core'); const axios = require('axios'); const https = require('https');