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

filerobot-image-editor

Package Overview
Dependencies
Maintainers
1
Versions
200
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filerobot-image-editor - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

81

dist/components/Preview/ImageManipulator.js

@@ -20,2 +20,4 @@ "use strict";

var _v = _interopRequireDefault(require("uuid/v4"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -78,5 +80,3 @@

_defineProperty(_assertThisInitialized(_this), "saveImage", function () {
var _this$state = _this.state,
imageName = _this$state.imageName,
operations = _this$state.operations;
var operations = _this.state.operations;
var _this$props = _this.props,

@@ -101,2 +101,4 @@ onComplete = _this$props.onComplete,

var imageName = _this.state.imageName;
if (!processWithCloudimage) {

@@ -109,6 +111,15 @@ window.Caman(canvas, function () {

var realData = block[1].split(",")[1];
var blob = (0, _utils.b64toBlob)(realData, contentType, null);
var splittedName = imageName.replace(/-edited/g, '').split('.');
var blob = (0, _utils.b64toBlob)(realData, contentType, null); // fix old data problems, should be removed in next version
imageName = imageName.indexOf('?') > -1 ? imageName.slice(0, imageName.indexOf('?')) : imageName;
var splittedName = imageName.replace(/-version-.{6}/g, '').split('.');
var nameLength = splittedName.length;
var name = "".concat(splittedName.slice(0, nameLength - 1).join('.'), "-").concat((0, _utils.generateUUID)().substr(-6), ".").concat(splittedName[nameLength - 1]);
var name = '';
if (nameLength <= 1) {
name = "".concat(splittedName.join('.'), "-version-").concat(((0, _v.default)() || '').slice(0, 6));
} else {
name = [splittedName.slice(0, nameLength - 1).join('.'), '-version-', ((0, _v.default)() || '').slice(0, 6), '.', splittedName[nameLength - 1]].join('');
}
var formData = new FormData();

@@ -299,5 +310,5 @@ var request = new XMLHttpRequest();

_defineProperty(_assertThisInitialized(_this), "cleanTemp", function () {
var _this$state2 = _this.state,
operations = _this$state2.operations,
currentOperation = _this$state2.currentOperation;
var _this$state = _this.state,
operations = _this$state.operations,
currentOperation = _this$state.currentOperation;

@@ -336,7 +347,7 @@ _this.revert(function () {

_defineProperty(_assertThisInitialized(_this), "adjust", function (handler, value) {
var _this$state3 = _this.state,
_this$state3$operatio = _this$state3.operations,
operations = _this$state3$operatio === void 0 ? [] : _this$state3$operatio,
currentOperation = _this$state3.currentOperation,
adjust = _this$state3.adjust;
var _this$state2 = _this.state,
_this$state2$operatio = _this$state2.operations,
operations = _this$state2$operatio === void 0 ? [] : _this$state2$operatio,
currentOperation = _this$state2.currentOperation,
adjust = _this$state2.adjust;

@@ -372,6 +383,6 @@ var that = _assertThisInitialized(_this);

_defineProperty(_assertThisInitialized(_this), "applyOrientation", function () {
var _this$state4 = _this.state,
currentOperation = _this$state4.currentOperation,
operations = _this$state4.operations,
rotate = _this$state4.rotate;
var _this$state3 = _this.state,
currentOperation = _this$state3.currentOperation,
operations = _this$state3.operations,
rotate = _this$state3.rotate;
var operation = {

@@ -402,5 +413,5 @@ stack: [{

var _this$state5 = _this.state,
currentOperation = _this$state5.currentOperation,
operations = _this$state5.operations;
var _this$state4 = _this.state,
currentOperation = _this$state4.currentOperation,
operations = _this$state4.operations;

@@ -451,5 +462,5 @@ var that = _assertThisInitialized(_this);

_defineProperty(_assertThisInitialized(_this), "initCrop", function () {
var _this$state6 = _this.state,
originalWidth = _this$state6.originalWidth,
originalHeight = _this$state6.originalHeight;
var _this$state5 = _this.state,
originalWidth = _this$state5.originalWidth,
originalHeight = _this$state5.originalHeight;

@@ -522,6 +533,6 @@ var canvas = _this.getCanvasNode();

_defineProperty(_assertThisInitialized(_this), "applyCrop", function () {
var _this$state7 = _this.state,
cropDetails = _this$state7.cropDetails,
currentOperation = _this$state7.currentOperation,
operations = _this$state7.operations;
var _this$state6 = _this.state,
cropDetails = _this$state6.cropDetails,
currentOperation = _this$state6.currentOperation,
operations = _this$state6.operations;
var width = cropDetails.width,

@@ -635,5 +646,5 @@ height = cropDetails.height,

_defineProperty(_assertThisInitialized(_this), "applyResize", function () {
var _this$state8 = _this.state,
currentOperation = _this$state8.currentOperation,
operations = _this$state8.operations;
var _this$state7 = _this.state,
currentOperation = _this$state7.currentOperation,
operations = _this$state7.operations;
var canvasDimensions = _this.props.canvasDimensions;

@@ -677,6 +688,6 @@ var width = canvasDimensions.width,

_defineProperty(_assertThisInitialized(_this), "applyEffects", function () {
var _this$state9 = _this.state,
currentOperation = _this$state9.currentOperation,
operations = _this$state9.operations,
tempOperation = _this$state9.tempOperation;
var _this$state8 = _this.state,
currentOperation = _this$state8.currentOperation,
operations = _this$state8.operations,
tempOperation = _this$state8.tempOperation;

@@ -683,0 +694,0 @@ _this.pushOperation(operations, tempOperation, currentOperation);

{
"name": "filerobot-image-editor",
"version": "1.1.4",
"version": "1.1.5",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "description": "Edit, resize, and filter any image!",

> Repository includes React version and JS wrapper for standalone usage
[![Release](https://img.shields.io/badge/release-v1.1.3-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Release](https://img.shields.io/badge/release-v1.1.5-blue.svg)](https://github.com/scaleflex/filerobot-image-editor/releases)
[![Free plan](https://img.shields.io/badge/price-includes%20free%20plan-green.svg)](https://www.filerobot.com/en/home#2de3fb9f-dd4a-457a-999a-025ad9bd5f3b)

@@ -79,3 +79,3 @@ [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-orange.svg)](#contributing)

```html
<script src="https://cdn.scaleflex.it/filerobot/image-editor/1.1.3/main.min.js"></script>
<script src="https://cdn.scaleflex.it/filerobot/image-editor/1.1.5/main.min.js"></script>
```

@@ -82,0 +82,0 @@

Sorry, the diff of this file is too big to display

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