@uxf/resizer 10.0.0-beta.79 → 10.0.0-beta.80

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.
@@ -27,11 +27,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  return (mod && mod.__esModule) ? mod : { "default": mod };
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ const express_1 = __importDefault(require("express"));
31
+ const fs = __importStar(require("fs"));
30
32
  const process_1 = require("process");
31
33
  const yargs_1 = __importDefault(require("yargs"));
32
34
  const index_1 = require("../index");
33
- const express_1 = __importDefault(require("express"));
34
- const fs = __importStar(require("fs"));
35
35
  const uxfResizer = async () => {
36
36
  var _a;
37
37
  yargs_1.default.command("$0", "UXF Resizer", (yargs) => {
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { argv, env } from "process";
3
- import cli from "yargs";
4
- import { resizerMiddleware, Config } from "../index";
5
2
  import express from "express";
6
3
  import * as fs from "fs";
4
+ import { argv, env } from "process";
5
+ import cli from "yargs";
6
+ import { Config, resizerMiddleware } from "../index";
7
7
 
8
8
  const uxfResizer = async () => {
9
9
  cli.command("$0", "UXF Resizer", (yargs) => {
package/index.js CHANGED
@@ -28,12 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.resizerMiddleware = void 0;
30
30
  const express_1 = require("express");
31
- const node_fetch_1 = __importDefault(require("node-fetch"));
31
+ const fs = __importStar(require("fs"));
32
32
  const fs_1 = require("fs");
33
+ const node_fetch_1 = __importDefault(require("node-fetch"));
33
34
  const path_1 = require("path");
34
- const sharp_1 = __importDefault(require("sharp"));
35
35
  const path_to_regexp_1 = require("path-to-regexp");
36
- const fs = __importStar(require("fs"));
36
+ const sharp_1 = __importDefault(require("sharp"));
37
37
  const FIT_OPTIONS = {
38
38
  cv: "cover",
39
39
  f: "fill",
package/index.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Router } from "express";
2
- import fetch from "node-fetch";
2
+ import * as fs from "fs";
3
3
  import { existsSync, mkdirSync } from "fs";
4
+ import fetch from "node-fetch";
4
5
  import { dirname } from "path";
5
- import sharp, { FitEnum, ResizeOptions } from "sharp";
6
6
  import { compile } from "path-to-regexp";
7
- import * as fs from "fs";
7
+ import sharp, { FitEnum, ResizeOptions } from "sharp";
8
8
 
9
9
  const FIT_OPTIONS: Record<string, ResizeOptions["fit"]> = {
10
10
  cv: "cover",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/resizer",
3
- "version": "10.0.0-beta.79",
3
+ "version": "10.0.0-beta.80",
4
4
  "main": "index.js",
5
5
  "description": "UXF Resizer",
6
6
  "author": "UXFans <dev@uxf.cz>",
@@ -16,21 +16,17 @@
16
16
  },
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "express": "^4.17.1",
20
- "fs": "^0.0.1-security",
21
- "node-fetch": "^2.6.7",
22
- "path-to-regexp": "^6.2.0",
23
- "process": "^0.11.10",
24
- "sharp": "^0.30.2",
25
- "yargs": "^17.2.1"
19
+ "express": "4.18.2",
20
+ "node-fetch": "3.3.2",
21
+ "path-to-regexp": "6.2.1",
22
+ "process": "0.11.10",
23
+ "sharp": "0.32.6",
24
+ "yargs": "17.7.2"
26
25
  },
27
26
  "devDependencies": {
28
- "@types/express": "^4.17.13",
29
- "@types/node-fetch": "^2.5.12",
30
- "@types/path-to-regexp": "^1.7.0",
31
- "@types/sharp": "^0.29.5",
32
- "concurrently": "^7.0.0",
33
- "crypto-js": "^4.1.1"
27
+ "@types/express": "4.17.18",
28
+ "concurrently": "8.2.1",
29
+ "crypto-js": "4.1.1"
34
30
  },
35
31
  "scripts": {
36
32
  "build": "tsc -P tsconfig.json",