From 8dd444e41bc99a42503acf20add2ead5cf5bfa8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?DongKeon=20Kim=20/=20=EA=B9=80=EB=8F=99=EA=B1=B4?= Date: Tue, 14 Mar 2023 13:40:35 +0900 Subject: [PATCH] fix slash import default --- dist/index.js | 16 ++-------------- index.js | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/dist/index.js b/dist/index.js index 0404cd78..6ee396dc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -28722,9 +28722,8 @@ module.exports = require("util"); /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => { "use strict"; -__nccwpck_require__.r(__webpack_exports__); /* harmony export */ __nccwpck_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ slash) +/* harmony export */ "Z": () => (/* binding */ slash) /* harmony export */ }); function slash(path) { const isExtendedLengthPath = /^\\\\\?\\/.test(path); @@ -28869,17 +28868,6 @@ module.exports = JSON.parse('{"application/1d-interleaved-parityfec":{"source":" /******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __nccwpck_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ /******/ /* webpack/runtime/compat */ /******/ /******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; @@ -28893,7 +28881,7 @@ const S3 = __nccwpck_require__(3256); const fs = __nccwpck_require__(7147); const path = __nccwpck_require__(1017); const shortid = __nccwpck_require__(794); -const slash = __nccwpck_require__(3433); +const slash = (__nccwpck_require__(3433)/* ["default"] */ .Z); const klawSync = __nccwpck_require__(9036); const { lookup } = __nccwpck_require__(3583); diff --git a/index.js b/index.js index 5a420529..dd83c95f 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ const S3 = require('aws-sdk/clients/s3'); const fs = require('fs'); const path = require('path'); const shortid = require('shortid'); -const slash = require('slash'); +const slash = require('slash').default; const klawSync = require('klaw-sync'); const { lookup } = require('mime-types');