From 5e6b3b624c3643fadc6680141daee319c593b2d7 Mon Sep 17 00:00:00 2001 From: imgix-git-robot Date: Tue, 7 Dec 2021 11:22:59 +0000 Subject: [PATCH] chore(release): 3.2.2 ## [3.2.2](https://github.com/imgix/js-core/compare/v3.2.1...v3.2.2) (2021-12-07) ### Bug Fixes * **deps:** update dependency js-base64 to ~3.7.0 ([967f62e](https://github.com/imgix/js-core/commit/967f62e11544542e7e1d49e71d860e04482e8c1e)) [skip ci] --- dist/imgix-js-core.umd.js | 2 +- dist/index.cjs.js | 2 +- dist/index.esm.js | 4 ++-- package.json | 2 +- src/constants.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/imgix-js-core.umd.js b/dist/imgix-js-core.umd.js index 18c43d8d..418628a2 100644 --- a/dist/imgix-js-core.umd.js +++ b/dist/imgix-js-core.umd.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).ImgixClient=e()}(this,function(){"use strict";function e(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function s(n){for(var t=1;tt.length)&&(e=t.length);for(var r=0,n=new Array(e);r>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,n=0;r>>6-2*n);return e}},t.exports=r}),u={utf8:{stringToBytes:function(t){return u.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(u.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[t>>>5]|=128<>>9<<4)]=t;for(var s=w._ff,c=w._gg,f=w._hh,l=w._ii,u=0;u>>0,o=o+d>>>0,i=i+y>>>0,a=a+g>>>0}return p.endian([n,o,i,a])})._ff=function(t,e,r,n,o,i,a){a=t+(e&r|~e&n)+(o>>>0)+a;return(a<>>32-i)+e},w._gg=function(t,e,r,n,o,i,a){a=t+(e&n|r&~n)+(o>>>0)+a;return(a<>>32-i)+e},w._hh=function(t,e,r,n,o,i,a){a=t+(e^r^n)+(o>>>0)+a;return(a<>>32-i)+e},w._ii=function(t,e,r,n,o,i,a){a=t+(r^(e|~n))+(o>>>0)+a;return(a<>>32-i)+e},w._blocksize=16,w._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=p.wordsToBytes(w(t,e));return e&&e.asBytes?t:e&&e.asString?v.bytesToString(t):p.bytesToHex(t)}}),y="3.6.0",g="function"==typeof atob,p="function"==typeof btoa,b="function"==typeof Buffer;const m="function"==typeof TextDecoder?new TextDecoder:void 0,v="function"==typeof TextEncoder?new TextEncoder:void 0;const w=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],A=(t=>{let r={};return t.forEach((t,e)=>r[t]=e),r})(w),x=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,T=String.fromCharCode.bind(String),S="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=t=>t)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),B=t=>t.replace(/[+\/]/g,t=>"+"==t?"-":"_").replace(/=+$/m,""),C=t=>t.replace(/[^A-Za-z0-9\+\/]/g,"");var P=e=>{let r,n,o,i,a="";var t=e.length%3;for(let t=0;t>18&63]+w[r>>12&63]+w[r>>6&63]+w[63&r]}return t?a.slice(0,t-3)+"===".substring(t):a};const U=p?t=>btoa(t):b?t=>Buffer.from(t,"binary").toString("base64"):P,j=b?t=>Buffer.from(t).toString("base64"):r=>{let n=[];for(let t=0,e=r.length;te?B(j(t)):j(t),I=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?T(192|e>>>6)+T(128|63&e):T(224|e>>>12&15)+T(128|e>>>6&63)+T(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return T(240|e>>>18&7)+T(128|e>>>12&63)+T(128|e>>>6&63)+T(128|63&e)},R=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,_=t=>t.replace(R,I),E=b?t=>Buffer.from(t,"utf8").toString("base64"):v?t=>j(v.encode(t)):t=>U(_(t)),F=(t,e=!1)=>e?B(E(t)):E(t);var k=t=>F(t,!0);const z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,D=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return T(55296+(e>>>10))+T(56320+(1023&e));case 3:return T((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return T((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},L=t=>t.replace(z,D);p=e=>{if(e=e.replace(/\s+/g,""),!x.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let r,n="",o,i;for(let t=0;t>16&255):64===i?T(r>>16&255,r>>8&255):T(r>>16&255,r>>8&255,255&r);return n};const W=g?t=>atob(C(t)):b?t=>Buffer.from(t,"base64").toString("binary"):p,M=b?t=>S(Buffer.from(t,"base64")):t=>S(W(t),t=>t.charCodeAt(0)),Z=t=>M(q(t)),N=b?t=>Buffer.from(t,"base64").toString("utf8"):m?t=>m.decode(M(t)):t=>L(W(t)),q=t=>C(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),H=t=>N(q(t));const V=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),$=function(){var t=(t,e)=>Object.defineProperty(String.prototype,t,V(e));t("fromBase64",function(){return H(this)}),t("toBase64",function(t){return F(this,t)}),t("toBase64URI",function(){return F(this,!0)}),t("toBase64URL",function(){return F(this,!0)}),t("toUint8Array",function(){return Z(this)})},Q=function(){var t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,V(e));t("toBase64",function(t){return O(this,t)}),t("toBase64URI",function(){return O(this,!0)}),t("toBase64URL",function(){return O(this,!0)})};const G={version:y,VERSION:"3.6.0",atob:W,atobPolyfill:p,btoa:U,btoaPolyfill:P,fromBase64:H,toBase64:F,encode:F,encodeURI:k,encodeURL:k,utob:_,btou:L,decode:H,isValid:t=>{if("string"!=typeof t)return!1;t=t.replace(/\s+/g,"").replace(/=+$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:O,toUint8Array:Z,extendString:$,extendUint8Array:Q,extendBuiltins:()=>{$(),Q()}};var J=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,K={1:75,2:50,3:35,4:23,5:20},X={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function Y(t,e){if(!Number.isInteger(t)||!Number.isInteger(e)||t<=0||e<=0||et.length)&&(e=t.length);for(var r=0,n=new Array(e);r>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,n=0;r>>6-2*n);return e}},t.exports=r}),u={utf8:{stringToBytes:function(t){return u.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(u.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r>>24)|4278255360&(r[u]<<24|r[u]>>>8);r[t>>>5]|=128<>>9<<4)]=t;for(var s=g._ff,c=g._gg,l=g._hh,f=g._ii,u=0;u>>0,o=o+d>>>0,i=i+y>>>0,a=a+p>>>0}return b.endian([n,o,i,a])}var b,m,v,w;b=a,m=f.utf8,v=i,w=f.bin,g._ff=function(t,e,r,n,o,i,a){a=t+(e&r|~e&n)+(o>>>0)+a;return(a<>>32-i)+e},g._gg=function(t,e,r,n,o,i,a){a=t+(e&n|r&~n)+(o>>>0)+a;return(a<>>32-i)+e},g._hh=function(t,e,r,n,o,i,a){a=t+(e^r^n)+(o>>>0)+a;return(a<>>32-i)+e},g._ii=function(t,e,r,n,o,i,a){a=t+(r^(e|~n))+(o>>>0)+a;return(a<>>32-i)+e},g._blocksize=16,g._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=b.wordsToBytes(g(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):b.bytesToHex(t)}}),y="3.7.2",p="function"==typeof atob,g="function"==typeof btoa,b="function"==typeof Buffer;const m="function"==typeof TextDecoder?new TextDecoder:void 0,v="function"==typeof TextEncoder?new TextEncoder:void 0;const w=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),A=(t=>{let r={};return t.forEach((t,e)=>r[t]=e),r})(w),x=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,T=String.fromCharCode.bind(String),S="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):(t,e=t=>t)=>new Uint8Array(Array.prototype.slice.call(t,0).map(e)),B=t=>t.replace(/=/g,"").replace(/[+\/]/g,t=>"+"==t?"-":"_"),C=t=>t.replace(/[^A-Za-z0-9\+\/]/g,"");var P=e=>{let r,n,o,i,a="";var t=e.length%3;for(let t=0;t>18&63]+w[r>>12&63]+w[r>>6&63]+w[63&r]}return t?a.slice(0,t-3)+"===".substring(t):a};const U=g?t=>btoa(t):b?t=>Buffer.from(t,"binary").toString("base64"):P,j=b?t=>Buffer.from(t).toString("base64"):r=>{let n=[];for(let t=0,e=r.length;te?B(j(t)):j(t),I=t=>{if(t.length<2)return(e=t.charCodeAt(0))<128?t:e<2048?T(192|e>>>6)+T(128|63&e):T(224|e>>>12&15)+T(128|e>>>6&63)+T(128|63&e);var e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return T(240|e>>>18&7)+T(128|e>>>12&63)+T(128|e>>>6&63)+T(128|63&e)},R=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,_=t=>t.replace(R,I),E=b?t=>Buffer.from(t,"utf8").toString("base64"):v?t=>j(v.encode(t)):t=>U(_(t)),F=(t,e=!1)=>e?B(E(t)):E(t);var k=t=>F(t,!0);const z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,D=t=>{switch(t.length){case 4:var e=((7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3))-65536;return T(55296+(e>>>10))+T(56320+(1023&e));case 3:return T((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return T((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},L=t=>t.replace(z,D);g=e=>{if(e=e.replace(/\s+/g,""),!x.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let r,n="",o,i;for(let t=0;t>16&255):64===i?T(r>>16&255,r>>8&255):T(r>>16&255,r>>8&255,255&r);return n};const W=p?t=>atob(C(t)):b?t=>Buffer.from(t,"base64").toString("binary"):g,M=b?t=>S(Buffer.from(t,"base64")):t=>S(W(t),t=>t.charCodeAt(0)),Z=t=>M(q(t)),N=b?t=>Buffer.from(t,"base64").toString("utf8"):m?t=>m.decode(M(t)):t=>L(W(t)),q=t=>C(t.replace(/[-_]/g,t=>"-"==t?"+":"/")),H=t=>N(q(t));function V(){var t=(t,e)=>Object.defineProperty(String.prototype,t,$(e));t("fromBase64",function(){return H(this)}),t("toBase64",function(t){return F(this,t)}),t("toBase64URI",function(){return F(this,!0)}),t("toBase64URL",function(){return F(this,!0)}),t("toUint8Array",function(){return Z(this)})}function Q(){var t=(t,e)=>Object.defineProperty(Uint8Array.prototype,t,$(e));t("toBase64",function(t){return O(this,t)}),t("toBase64URI",function(){return O(this,!0)}),t("toBase64URL",function(){return O(this,!0)})}const $=t=>({value:t,enumerable:!1,writable:!0,configurable:!0});const G={version:y,VERSION:"3.7.2",atob:W,atobPolyfill:g,btoa:U,btoaPolyfill:P,fromBase64:H,toBase64:F,encode:F,encodeURI:k,encodeURL:k,utob:_,btou:L,decode:H,isValid:t=>{if("string"!=typeof t)return!1;t=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:O,toUint8Array:Z,extendString:V,extendUint8Array:Q,extendBuiltins:()=>{V(),Q()}};var J=/^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i,K={1:75,2:50,3:35,4:23,5:20},X={domain:null,useHTTPS:!0,includeLibraryParam:!0,urlPrefix:"https://",secureURLToken:null};function Y(t,e){if(!Number.isInteger(t)||!Number.isInteger(e)||t<=0||e<=0||e