@@ -783,6 +783,9 @@ var VueImgix = (function (exports, vue) {
783
783
return obj ;
784
784
}
785
785
function encodeQueryItem ( key , val ) {
786
+ if ( typeof val === "number" || typeof val === "boolean" ) {
787
+ val = String ( val ) ;
788
+ }
786
789
if ( ! val ) {
787
790
return encodeQueryKey ( key ) ;
788
791
}
@@ -890,10 +893,12 @@ var VueImgix = (function (exports, vue) {
890
893
} ;
891
894
892
895
Object . defineProperties ( $URL . prototype , prototypeAccessors ) ;
896
+ var PROTOCOL_REGEX = / ^ \w + : ( \/ \/ ) ? / ;
897
+ var PROTOCOL_RELATIVE_REGEX = / ^ \/ \/ [ ^ / ] + / ;
893
898
function hasProtocol ( inputStr , acceptProtocolRelative ) {
894
899
if ( acceptProtocolRelative === void 0 ) acceptProtocolRelative = false ;
895
900
896
- return / ^ \w + : \/ \/ . + / . test ( inputStr ) || acceptProtocolRelative && / ^ \/ \/ [ ^ / ] + / . test ( inputStr ) ;
901
+ return PROTOCOL_REGEX . test ( inputStr ) || acceptProtocolRelative && PROTOCOL_RELATIVE_REGEX . test ( inputStr ) ;
897
902
}
898
903
var TRAILING_SLASH_RE = / \/ $ | \/ \? / ;
899
904
function hasTrailingSlash ( input , queryParams ) {
@@ -943,7 +948,7 @@ var VueImgix = (function (exports, vue) {
943
948
var ref = ( input . replace ( / \\ / g, "/" ) . match ( / ( [ ^ : / ] + : ) ? \/ \/ ( [ ^ / @ ] + @ ) ? ( .* ) / ) || [ ] ) . splice ( 1 ) ;
944
949
var protocol = ref [ 0 ] ; if ( protocol === void 0 ) protocol = "" ;
945
950
var auth = ref [ 1 ] ;
946
- var hostAndPath = ref [ 2 ] ;
951
+ var hostAndPath = ref [ 2 ] ; if ( hostAndPath === void 0 ) hostAndPath = "" ;
947
952
var ref$1 = ( hostAndPath . match ( / ( [ ^ / ? # ] * ) ( .* ) ? / ) || [ ] ) . splice ( 1 ) ;
948
953
var host = ref$1 [ 0 ] ; if ( host === void 0 ) host = "" ;
949
954
var path = ref$1 [ 1 ] ; if ( path === void 0 ) path = "" ;
@@ -1150,7 +1155,7 @@ var VueImgix = (function (exports, vue) {
1150
1155
}
1151
1156
1152
1157
// package version used in the ix-lib parameter
1153
- var VERSION$1 = '3.6.0 ' ; // regex pattern used to determine if a domain is valid
1158
+ var VERSION$1 = '3.6.1-rc.1 ' ; // regex pattern used to determine if a domain is valid
1154
1159
1155
1160
var DOMAIN_REGEX = / ^ (?: [ a - z \d \- _ ] { 1 , 62 } \. ) { 0 , 125 } (?: [ a - z \d ] (?: \- (? = \- * [ a - z \d ] ) | [ a - z ] | \d ) { 0 , 62 } \. ) [ a - z \d ] { 1 , 63 } $ / i; // minimum generated srcset width
1156
1161
@@ -1673,7 +1678,7 @@ var VueImgix = (function (exports, vue) {
1673
1678
1674
1679
function objectWithoutProperties ( obj , exclude ) { var target = { } ; for ( var k in obj ) if ( Object . prototype . hasOwnProperty . call ( obj , k ) && exclude . indexOf ( k ) === - 1 ) target [ k ] = obj [ k ] ; return target ; }
1675
1680
// Do not change this
1676
- var VERSION = '3.0.1 ' ;
1681
+ var VERSION = '3.0.2 ' ;
1677
1682
var clientOptionDefaults = {
1678
1683
includeLibraryParam : true ,
1679
1684
} ;
0 commit comments