Skip to content

Commit

Permalink
build: release 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Aug 4, 2019
1 parent 8d89392 commit 819bff4
Show file tree
Hide file tree
Showing 12 changed files with 273 additions and 262 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## next
## 1.5.5 (Aug 3, 2019)

- Clone the image's `crossOrigin` attribute always even though the `checkCrossOrigin` is set to `false` (#535).
- Improve browser environment detecting (#554).
Expand Down
12 changes: 5 additions & 7 deletions dist/cropper.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:47.411Z
* Date: 2019-08-04T02:26:31.160Z
*/

'use strict';
Expand Down Expand Up @@ -66,7 +66,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
}

var IS_BROWSER = typeof window !== 'undefined';
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
var WINDOW = IS_BROWSER ? window : {};
var IS_TOUCH_DEVICE = IS_BROWSER ? 'ontouchstart' in WINDOW.document.documentElement : false;
var HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false;
Expand Down Expand Up @@ -3323,12 +3323,10 @@ function () {
value: function clone() {
var element = this.element,
url = this.url;
var crossOrigin;
var crossOriginUrl;
var crossOrigin = element.crossOrigin;
var crossOriginUrl = url;

if (this.options.checkCrossOrigin && isCrossOriginURL(url)) {
crossOrigin = element.crossOrigin;

if (!crossOrigin) {
crossOrigin = 'anonymous';
} // Bust cache when there is not a "crossOrigin" property (#519)
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:43.686Z
* Date: 2019-08-04T02:26:27.232Z
*/

.cropper-container {
Expand Down
12 changes: 5 additions & 7 deletions dist/cropper.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:47.411Z
* Date: 2019-08-04T02:26:31.160Z
*/

function _typeof(obj) {
Expand Down Expand Up @@ -64,7 +64,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance");
}

var IS_BROWSER = typeof window !== 'undefined';
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
var WINDOW = IS_BROWSER ? window : {};
var IS_TOUCH_DEVICE = IS_BROWSER ? 'ontouchstart' in WINDOW.document.documentElement : false;
var HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false;
Expand Down Expand Up @@ -3321,12 +3321,10 @@ function () {
value: function clone() {
var element = this.element,
url = this.url;
var crossOrigin;
var crossOriginUrl;
var crossOrigin = element.crossOrigin;
var crossOriginUrl = url;

if (this.options.checkCrossOrigin && isCrossOriginURL(url)) {
crossOrigin = element.crossOrigin;

if (!crossOrigin) {
crossOrigin = 'anonymous';
} // Bust cache when there is not a "crossOrigin" property (#519)
Expand Down
12 changes: 5 additions & 7 deletions dist/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:47.411Z
* Date: 2019-08-04T02:26:31.160Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -70,7 +70,7 @@
throw new TypeError("Invalid attempt to spread non-iterable instance");
}

var IS_BROWSER = typeof window !== 'undefined';
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
var WINDOW = IS_BROWSER ? window : {};
var IS_TOUCH_DEVICE = IS_BROWSER ? 'ontouchstart' in WINDOW.document.documentElement : false;
var HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false;
Expand Down Expand Up @@ -3327,12 +3327,10 @@
value: function clone() {
var element = this.element,
url = this.url;
var crossOrigin;
var crossOriginUrl;
var crossOrigin = element.crossOrigin;
var crossOriginUrl = url;

if (this.options.checkCrossOrigin && isCrossOriginURL(url)) {
crossOrigin = element.crossOrigin;

if (!crossOrigin) {
crossOrigin = 'anonymous';
} // Bust cache when there is not a "crossOrigin" property (#519)
Expand Down
4 changes: 2 additions & 2 deletions dist/cropper.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/cropper.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/cropper.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:43.686Z
* Date: 2019-08-04T02:26:27.232Z
*/

.cropper-container {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Cropper.js <small class="h6">v1.5.4</small></h1>
<h1>Cropper.js <small class="h6">v1.5.5</small></h1>
<p class="lead">JavaScript image cropper.</p>
</div>
<div class="col-md">
Expand Down
12 changes: 5 additions & 7 deletions docs/js/cropper.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Cropper.js v1.5.4
* Cropper.js v1.5.5
* https://fengyuanchen.github.io/cropperjs
*
* Copyright 2015-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-07-20T02:37:47.411Z
* Date: 2019-08-04T02:26:31.160Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -70,7 +70,7 @@
throw new TypeError("Invalid attempt to spread non-iterable instance");
}

var IS_BROWSER = typeof window !== 'undefined';
var IS_BROWSER = typeof window !== 'undefined' && typeof window.document !== 'undefined';
var WINDOW = IS_BROWSER ? window : {};
var IS_TOUCH_DEVICE = IS_BROWSER ? 'ontouchstart' in WINDOW.document.documentElement : false;
var HAS_POINTER_EVENT = IS_BROWSER ? 'PointerEvent' in WINDOW : false;
Expand Down Expand Up @@ -3327,12 +3327,10 @@
value: function clone() {
var element = this.element,
url = this.url;
var crossOrigin;
var crossOriginUrl;
var crossOrigin = element.crossOrigin;
var crossOriginUrl = url;

if (this.options.checkCrossOrigin && isCrossOriginURL(url)) {
crossOrigin = element.crossOrigin;

if (!crossOrigin) {
crossOrigin = 'anonymous';
} // Bust cache when there is not a "crossOrigin" property (#519)
Expand Down
Loading

0 comments on commit 819bff4

Please sign in to comment.