diff --git a/CHANGELOG.md b/CHANGELOG.md index d6582d2..ca62f99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,22 @@ Changelog ========= -## v0.3.13 +## v0.4.3 -- Bug: Check model has mime type before chaking value +- Bug: Check model has mime type before checking value -## v0.3.12 +## v0.4.2 - Bug: Don't trigger edit modal for non image files +## v0.4.1 + +- Bug: Fix WebP support for cropping and display + +## v0.4.0 + +- Enhancement: Add filter to skip attachments during Smart Media processing + ## v0.3.11 - Bug: AMP plugin compatibility with featured image modal selection diff --git a/build.json b/build.json index f4670f2..0ea27db 100644 --- a/build.json +++ b/build.json @@ -1 +1 @@ -{"owner":"humanmade","repo":"smart-media","sha":"9d897eb3d8e7cac4c8ec15948bf4f0741e056ab7","ref":"refs/tags/0.3.15","tagName":"0.3.15","branch":"gh-actions","tags":["0.3.15"],"updated_at":"2023-03-21T09:18:45.231Z"} \ No newline at end of file +{"owner":"humanmade","repo":"smart-media","sha":"dc2675e7d79e8006d9d0b7028e8f857e1eaf5641","ref":"refs/tags/0.4.5","tagName":"0.4.5","branch":"gh-actions","tags":["0.4.5"],"updated_at":"2023-03-21T09:19:42.757Z"} \ No newline at end of file diff --git a/inc/cropper/build/cropper.93804655.js b/inc/cropper/build/cropper.50f546b0.js similarity index 77% rename from inc/cropper/build/cropper.93804655.js rename to inc/cropper/build/cropper.50f546b0.js index ab1fdd4..8c8d87a 100644 --- a/inc/cropper/build/cropper.93804655.js +++ b/inc/cropper/build/cropper.50f546b0.js @@ -1 +1 @@ -!function(t,e){for(var i in e)t[i]=e[i]}(this,function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=13)}([function(t,e){!function(){t.exports=this.wp.media}()},function(t,e){!function(){t.exports=this.wp.template}()},function(t,e){!function(){t.exports=this.wp.hooks}()},function(t,e){!function(){t.exports=this.wp.i18n}()},function(t,e){!function(){t.exports=this.wp.ajax}()},function(t,e){!function(){t.exports=this.jQuery}()},function(t,e,i){var n;!function(){"use strict";var o={};function r(t,e,i){for(var n=i.data,o=i.width,r=~~t.x,a=~~(t.x+t.width),s=~~t.y,l=~~(t.y+t.height),c=255*t.weight,h=s;hi||i>=e.x+e.width||e.y>n||n>=e.y+e.height)return t.outsideImportance;i=(i-e.x)/e.width,n=(n-e.y)/e.height;var o=2*g(.5-i),r=2*g(.5-n),a=Math.max(o-1+t.edgeRadius,0),s=Math.max(r-1+t.edgeRadius,0),l=(a*a+s*s)*t.edgeWeight,c=1.41-f(o*o+r*r);return t.ruleOfThirds&&(c+=1.2*Math.max(0,c+l+.5)*(w(o)+w(r))),c+l}function l(t,e,i,n){var o=f(e*e+i*i+n*n),r=e/o-t.skinColor[0],a=i/o-t.skinColor[1],s=n/o-t.skinColor[2];return 1-f(r*r+a*a+s*s)}function c(t,e,i){this.width=t,this.height=e,this.data=i?new Uint8ClampedArray(i):new Uint8ClampedArray(t*e*4)}function h(t,e){for(var i=t.data,n=t.width,o=Math.floor(t.width/e),r=Math.floor(t.height/e),a=new c(o,r),s=a.data,l=1/(e*e),h=0;h=o-1||0===a||a>=r-1?y(i,c):4*y(i,c)-y(i,c-4*o)-y(i,c-4)-y(i,c+4)-y(i,c+4*o),n[c+1]=l}})(e,n),function(t,e,i){for(var n=e.data,o=i.data,r=e.width,a=e.height,s=0;st.skinThreshold,m=d>=t.skinBrightnessMin&&d<=t.skinBrightnessMax;o[h]=p&&m?(u-t.skinThreshold)*(255/(1-t.skinThreshold)):0}}(t,e,n),function(t,e,i){for(var n=e.data,o=i.data,r=e.width,a=e.height,s=0;st.saturationThreshold,p=h>=t.saturationBrightnessMin&&h<=t.saturationBrightnessMax;o[c+2]=p&&u?(d-t.saturationThreshold)*(255/(1-t.saturationThreshold)):0}}(t,e,n),function(t,e){if(!t.boost)return;for(var i=e.data,n=0;n=t.minScale;s-=t.scaleStep)for(var l=0;l+a*s<=i;l+=t.step)for(var c=0;c+r*s<=e;c+=t.step)n.push({x:c,y:l,width:r*s,height:a*s});return n}(t,e.width,e.height),m=0,g=u.length;ms&&(d=f,s=f.score.total)}i.topCrop=d,t.debug&&d&&(i.crops=u,i.debugOutput=n,i.debugOptions=t,i.debugTopCrop=v({},i.topCrop));return i}(n,t),o=e.crops||[e.topCrop],s=0,d=o.length;s.5?r/(2-n-o):r/(n+o)}void 0===(n=function(){return o}.call(e,i,e,t))||(t.exports=n),e.smartcrop=o,t.exports=o}()},function(t,e){!function(){t.exports=this._}()},function(t,e){!function(){t.exports=this.wp.BackBone}()},function(t,e,i){var n=i(10),o=i(11);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);t.exports=o.locals||{}},function(t,e,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function s(t){for(var e=-1,i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);ii||i>=e.x+e.width||e.y>n||n>=e.y+e.height)return t.outsideImportance;i=(i-e.x)/e.width,n=(n-e.y)/e.height;var o=2*g(.5-i),r=2*g(.5-n),a=Math.max(o-1+t.edgeRadius,0),s=Math.max(r-1+t.edgeRadius,0),l=(a*a+s*s)*t.edgeWeight,c=1.41-f(o*o+r*r);return t.ruleOfThirds&&(c+=1.2*Math.max(0,c+l+.5)*(w(o)+w(r))),c+l}function l(t,e,i,n){var o=f(e*e+i*i+n*n),r=e/o-t.skinColor[0],a=i/o-t.skinColor[1],s=n/o-t.skinColor[2];return 1-f(r*r+a*a+s*s)}function c(t,e,i){this.width=t,this.height=e,this.data=i?new Uint8ClampedArray(i):new Uint8ClampedArray(t*e*4)}function h(t,e){for(var i=t.data,n=t.width,o=Math.floor(t.width/e),r=Math.floor(t.height/e),a=new c(o,r),s=a.data,l=1/(e*e),h=0;h=o-1||0===a||a>=r-1?y(i,c):4*y(i,c)-y(i,c-4*o)-y(i,c-4)-y(i,c+4)-y(i,c+4*o),n[c+1]=l}})(e,n),function(t,e,i){for(var n=e.data,o=i.data,r=e.width,a=e.height,s=0;st.skinThreshold,m=d>=t.skinBrightnessMin&&d<=t.skinBrightnessMax;o[h]=p&&m?(u-t.skinThreshold)*(255/(1-t.skinThreshold)):0}}(t,e,n),function(t,e,i){for(var n=e.data,o=i.data,r=e.width,a=e.height,s=0;st.saturationThreshold,p=h>=t.saturationBrightnessMin&&h<=t.saturationBrightnessMax;o[c+2]=p&&u?(d-t.saturationThreshold)*(255/(1-t.saturationThreshold)):0}}(t,e,n),function(t,e){if(!t.boost)return;for(var i=e.data,n=0;n=t.minScale;s-=t.scaleStep)for(var l=0;l+a*s<=i;l+=t.step)for(var c=0;c+r*s<=e;c+=t.step)n.push({x:c,y:l,width:r*s,height:a*s});return n}(t,e.width,e.height),m=0,g=u.length;ms&&(d=f,s=f.score.total)}i.topCrop=d,t.debug&&d&&(i.crops=u,i.debugOutput=n,i.debugOptions=t,i.debugTopCrop=v({},i.topCrop));return i}(n,t),o=e.crops||[e.topCrop],s=0,d=o.length;s.5?r/(2-n-o):r/(n+o)}void 0===(n=function(){return o}.call(e,i,e,t))||(t.exports=n),e.smartcrop=o,t.exports=o}()},function(t,e){!function(){t.exports=this._}()},function(t,e){!function(){t.exports=this.wp.BackBone}()},function(t,e,i){var n=i(10),o=i(11);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);t.exports=o.locals||{}},function(t,e,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),a=[];function s(t){for(var e=-1,i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i - <# if ( data.model.get( 'mime' ).match( /image\/(jpe?g|png|gif)/ ) ) { #> + <# if ( data.model.get( 'mime' ).match( /image\/(jpe?g|png|gif|webp)/ ) ) { #> <# _.each( data.model.get( 'sizes' ), function ( props, size ) { #> <# if ( size && size !== 'full' && size !== 'full-orig' ) { #>
  • diff --git a/inc/cropper/namespace.php b/inc/cropper/namespace.php index a885887..e9098fe 100644 --- a/inc/cropper/namespace.php +++ b/inc/cropper/namespace.php @@ -148,6 +148,11 @@ function rest_api_fields( WP_REST_Response $response ) : WP_REST_Response { return $response; } + // Check if we should skip this one. + if ( skip_attachment( $data['id'] ) ) { + return $response; + } + if ( isset( $data['source_url'] ) && $data['media_type'] === 'image' ) { $data['original_url'] = $data['source_url']; $data['source_url'] = tachyon_url( $data['source_url'] ); @@ -321,6 +326,11 @@ function attachment_js( $response, $attachment ) { return $response; } + // Check if we should skip. + if ( skip_attachment( $attachment->ID ) ) { + return $response; + } + $meta = wp_get_attachment_metadata( $attachment->ID ); if ( ! $meta ) { @@ -404,6 +414,24 @@ function attachment_js( $response, $attachment ) { return $response; } +/** + * Check whether to skip an attachment for Smart Media processing. + * + * @uses filter hm.smart-media.skip-attachment + * + * @param integer $attachment_id The attachment ID to check. + * @return boolean + */ +function skip_attachment( int $attachment_id ) : bool { + /** + * Filters whether to skip a given attachment. + * + * @param bool $skip If true then the attachment should be skipped, default false. + * @param int $attachment_id The attachment ID to check. + */ + return (bool) apply_filters( 'hm.smart-media.skip-attachment', false, $attachment_id ); +} + /** * Updates attachments that aren't images but have thumbnails * like PDFs to use Tachyon URLs. @@ -417,6 +445,10 @@ function attachment_thumbs( $response, $attachment ) : array { return $response; } + if ( skip_attachment( $attachment->ID ) ) { + return $response; + } + // Handle attachment thumbnails. $full_size_thumb = $response['sizes']['full']['url'] ?? false; @@ -715,6 +747,10 @@ function filter_attachment_meta_data( $data, $attachment_id ) { return $data; } + if ( skip_attachment( $attachment_id ) ) { + return $data; + } + $data = massage_meta_data_for_orientation( $data ); // Full size image info. diff --git a/inc/cropper/src/views/image-edit.js b/inc/cropper/src/views/image-edit.js index 4ca2637..203fcea 100644 --- a/inc/cropper/src/views/image-edit.js +++ b/inc/cropper/src/views/image-edit.js @@ -65,7 +65,7 @@ const ImageEditView = Media.View.extend( { views.push( new Media.view.Spinner() ); } else { // Ensure this attachment is editable. - if ( this.model.get( 'editor' ) && this.model.get( 'mime' ).match( /image\/(gif|jpe?g|png)/ ) ) { + if ( this.model.get( 'editor' ) && this.model.get( 'mime' ).match( /image\/(gif|jpe?g|png|webp)/ ) ) { views.push( new ImageEditSizes( { controller: this.controller, model: this.model, diff --git a/manifest.json b/manifest.json index c30502f..eb6efe9 100644 --- a/manifest.json +++ b/manifest.json @@ -1,3 +1,3 @@ { - "cropper.js": "/inc/cropper/build/cropper.93804655.js" + "cropper.js": "/inc/cropper/build/cropper.50f546b0.js" } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 73a251a..490b73f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2872,9 +2872,9 @@ "dev": true }, "dns-packet": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz", - "integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz", + "integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==", "dev": true, "requires": { "ip": "^1.1.0", @@ -2931,24 +2931,30 @@ "dev": true }, "elliptic": { - "version": "6.5.3", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz", - "integrity": "sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dev": true, "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", + "bn.js": "^4.11.9", + "brorand": "^1.1.0", "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" }, "dependencies": { "bn.js": { - "version": "4.11.9", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.9.tgz", - "integrity": "sha512-E6QoYqCKZfgatHTdHzs1RRKP7ip4vvm+EyRUeE2RF0NblwVvb0p6jSVeNTOFxPn26QXN2o6SMfNxKp6kU8zQaw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", + "dev": true + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true } } @@ -4545,9 +4551,9 @@ } }, "hosted-git-info": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", - "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, "hpack.js": { @@ -4717,9 +4723,9 @@ "dev": true }, "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.7.tgz", + "integrity": "sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ==", "dev": true }, "internal-ip": { @@ -5207,9 +5213,9 @@ } }, "lodash": { - "version": "4.17.19", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", - "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==", + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, "loglevel": { @@ -5550,9 +5556,9 @@ "dev": true }, "node-forge": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.0.tgz", - "integrity": "sha512-7ASaDa3pD+lJ3WvXFsxekJQelBKRpne+GOVbLbtHYdd7pFspyeuJHnWfLplGf3SwKGbfs/aYl5V/JCIaHVUKKQ==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==", "dev": true }, "node-gyp": { @@ -6065,9 +6071,9 @@ "dev": true }, "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, "path-to-regexp": { @@ -6180,9 +6186,9 @@ "dev": true }, "postcss": { - "version": "7.0.32", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz", - "integrity": "sha512-03eXong5NLnNCD05xscnGKGDZ98CyzoqPSMjOe6SuoQY7Z2hIj0Ld1g/O/UQRuOle2aRtiIRDg9tDcTGAkLfKw==", + "version": "7.0.36", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-7.0.36.tgz", + "integrity": "sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==", "dev": true, "requires": { "chalk": "^2.4.2", @@ -6916,12 +6922,12 @@ "dev": true }, "selfsigned": { - "version": "1.10.7", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.7.tgz", - "integrity": "sha512-8M3wBCzeWIJnQfl43IKwOmC4H/RAp50S8DF60znzjW5GVqTcSe2vWclt7hmYVPkKPlHWOu5EaWOMZ2Y6W8ZXTA==", + "version": "1.10.8", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-1.10.8.tgz", + "integrity": "sha512-2P4PtieJeEwVgTU9QEcwIRDQ/mXJLX8/+I3ur+Pg16nS8oNbrGxEso9NyYWy8NAmXiNl4dlAp5MwoNeCWzON4w==", "dev": true, "requires": { - "node-forge": "0.9.0" + "node-forge": "^0.10.0" } }, "semver": { @@ -7448,9 +7454,9 @@ } }, "ssri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", - "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.2.tgz", + "integrity": "sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q==", "dev": true, "requires": { "figgy-pudding": "^3.5.1" @@ -8112,9 +8118,9 @@ } }, "url-parse": { - "version": "1.4.7", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.4.7.tgz", - "integrity": "sha512-d3uaVyzDB9tQoSXFvuSUNFibTd9zxd2bkVrDRvF5TmvWWQwqE4lgYJ5m+x1DbecWkw+LK4RNl2CU1hHuOKPVlg==", + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.3.tgz", + "integrity": "sha512-IIORyIQD9rvj0A4CLWsHkBBJuNqWpFQe224b6j9t/ABmquIS0qDU2pY6kl6AuOrL5OkCXHMCFNe1jBcuAggjvQ==", "dev": true, "requires": { "querystringify": "^2.1.1", @@ -8736,9 +8742,9 @@ "dev": true }, "ws": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz", - "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz", + "integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==", "dev": true, "requires": { "async-limiter": "~1.0.0" @@ -8751,9 +8757,9 @@ "dev": true }, "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.1.tgz", + "integrity": "sha512-wNcy4NvjMYL8gogWWYAO7ZFWFfHcbdbE57tZO8e4cbpj8tfUcwrwqSl3ad8HxpYWCdXcJUCeKKZS62Av1affwQ==", "dev": true }, "yallist": { diff --git a/plugin.php b/plugin.php index b78ca96..8704e01 100644 --- a/plugin.php +++ b/plugin.php @@ -4,7 +4,7 @@ * Description: Advanced media tools that take advantage of Rekognition and Tachyon. * Author: Human Made Limited * License: GPL-3.0 - * Version: 0.3.12 + * Version: 0.4.3 */ namespace HM\Media;