Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

image-resizing

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-resizing - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

lib/main.js

@@ -50,4 +50,4 @@ "use strict";

var cacheBucket = storage.bucket(cacheBucketName);
var cacheControl = "public, max-age=31560000, immutable";
var cacheControlInitial = "public, max-age=31560000, s-maxage=0, immutable";
var cacheControl = "public, max-age=31536000, immutable";
var cacheControlInitial = "public, max-age=31536000, s-maxage=0, immutable";
var mergedParams = options.params ? _objectSpread(_objectSpread({}, _params.params), Object.keys(options.params).reduce(function (acc, key) {

@@ -54,0 +54,0 @@ var _options$params;

@@ -101,3 +101,3 @@ "use strict";

source: source.startsWith("/") ? source.substring(1) : source,
target: (target === null || target === void 0 ? void 0 : target.startsWith("/")) ? target.substring(1) : target,
target: target !== null && target !== void 0 && target.startsWith("/") ? target.substring(1) : target,
transforms: transforms

@@ -104,0 +104,0 @@ };

@@ -21,5 +21,17 @@ /**

export declare type Options = {
/**
* Cloud storage options.
*/
readonly storage?: StorageOptions;
/**
* Storage bucket where the original (source) images can be found.
*/
readonly sourceBucket: string;
/**
* Storage bucket for resized (cached) images.
*/
readonly cacheBucket: string;
/**
* Image transformation parameters.
*/
readonly params?: Params;

@@ -26,0 +38,0 @@ };

{
"name": "image-resizing",
"version": "0.1.2",
"version": "0.1.3",
"description": "Node.js backend (middleware) for image manipulation needs (transform, resize, optimize).",

@@ -35,30 +35,33 @@ "keywords": [

"scripts": {
"test": "jest --env=node",
"build": "babel --env-name=production --source-maps --out-dir ./lib --verbose --delete-dir-on-start --extensions \".ts\" ./src && tsc --emitDeclarationOnly && yarn pack"
},
"dependencies": {
"@google-cloud/storage": "^5.3.0",
"@types/express": "^4.17.8",
"@google-cloud/storage": "^5.8.2",
"@types/express": "^4.17.11",
"gm": "^1.23.1"
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "^7.11.5",
"@babel/preset-typescript": "^7.10.4",
"@babel/cli": "^7.13.10",
"@babel/core": "^7.13.10",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/preset-env": "^7.13.12",
"@babel/preset-typescript": "^7.13.0",
"@types/gm": "^1.18.9",
"@types/jest": "^26.0.14",
"@types/jest-image-snapshot": "^4.1.0",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"babel-jest": "^26.3.0",
"@types/jest": "^26.0.22",
"@types/jest-image-snapshot": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^4.19.0",
"@typescript-eslint/parser": "^4.19.0",
"@yarnpkg/pnpify": "^2.4.0",
"babel-jest": "^26.6.3",
"cross-spawn": "^7.0.3",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint": "^7.22.0",
"eslint-config-prettier": "^8.1.0",
"express": "^4.17.1",
"jest": "^26.4.2",
"jest-image-snapshot": "^4.2.0",
"prettier": "^2.1.2",
"typescript": "^4.0.3"
"jest": "^26.6.3",
"jest-image-snapshot": "^4.4.0",
"prettier": "^2.2.1",
"typescript": "^4.2.3"
},

@@ -65,0 +68,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc