speedly 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,14 +7,14 @@ const path_1 = __importDefault(require("path"));
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const multer_1 = __importDefault(require("multer"));
9
9
  const mongoose_1 = __importDefault(require("mongoose"));
10
- const getConfig = require("../util/getConfig");
10
+ const getConfig_1 = __importDefault(require("../util/getConfig"));
11
11
  const relativePath = '../../../public';
12
12
  let configs = {
13
13
  saveInDb: false,
14
14
  prefix: "",
15
15
  limit: 5,
16
16
  format: /png|jpg|webp|jpeg/i,
17
- ...getConfig("uploader")
17
+ ...(0, getConfig_1.default)("uploader")
18
18
  };
19
19
  console.log('uploader', 15, configs);
20
20
  module.exports = (destination = "/image", config = configs) => {
@@ -7,14 +7,14 @@ const path_1 = __importDefault(require("path"));
7
7
  const fs_1 = __importDefault(require("fs"));
8
8
  const multer_1 = __importDefault(require("multer"));
9
9
  const mongoose_1 = __importDefault(require("mongoose"));
10
- const getConfig = require("../util/getConfig");
10
+ const getConfig_1 = __importDefault(require("../util/getConfig"));
11
11
  const relativePath = '../../../public';
12
12
  let configs = {
13
13
  saveInDb: false,
14
14
  prefix: "",
15
15
  limit: 5,
16
16
  format: /png|jpg|webp|jpeg/i,
17
- ...getConfig("uploader")
17
+ ...(0, getConfig_1.default)("uploader")
18
18
  };
19
19
  console.log('uploader', 15, configs);
20
20
  module.exports = (destination = "/image", config = configs) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "speedly",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",