Skip to content

Commit

Permalink
Updated dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanRaina513 committed Jan 17, 2024
1 parent 32f57f8 commit 757f55f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions dist/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function build_IE_url(src, directives, debug) {
var query_prefix = query_string === "" ?
"" :
(src.includes("?") ? "&" : "?");
return "" + src + query_prefix + query_string;
return "".concat(src).concat(query_prefix).concat(query_string);
}
exports.build_IE_url = build_IE_url;
;
Expand All @@ -47,7 +47,7 @@ exports.build_IE_directives = build_IE_directives;
;
function build_IE_query_string(directives_string, debug) {
if (directives_string && directives_string !== "") {
return "imgeng=" + directives_string;
return "imgeng=".concat(directives_string);
}
else {
debug && console.warn("build_IE_query_string called with an empty directives_string.");
Expand All @@ -59,14 +59,14 @@ exports.build_IE_query_string = build_IE_query_string;
function maybe_create_directive(directive, value, debug) {
var translated_directive = exports.OBJECT_TO_DIRECTIVES_MAP[directive];
if (translated_directive && (value || value === 0)) {
return "/" + translated_directive + "_" + value;
return "/".concat(translated_directive, "_").concat(value);
}
else if (translated_directive) {
debug && console.warn("Directive '" + directive + "' has an invalid value " + value + ".");
debug && console.warn("Directive '".concat(directive, "' has an invalid value ").concat(value, "."));
return "";
}
else {
debug && console.warn("Directive '" + directive + "' isn't recognized and won't be applied to the image.");
debug && console.warn("Directive '".concat(directive, "' isn't recognized and won't be applied to the image."));
return "";
}
}
Expand Down
6 changes: 5 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
Expand Down
4 changes: 2 additions & 2 deletions dist/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export declare type IEFormat = "png" | "gif" | "jpg" | "jpeg" | "bmp" | "webp" | "jp2" | "svg" | "mp4" | "jxr" | "avif" | "jxl";
export declare type IEFit = "stretch" | "box" | "letterbox" | "cropbox" | "outside";
export type IEFormat = "png" | "gif" | "jpg" | "jpeg" | "bmp" | "webp" | "jp2" | "svg" | "mp4" | "jxr" | "avif" | "jxl";
export type IEFit = "stretch" | "box" | "letterbox" | "cropbox" | "outside";
export interface IEDirectives {
width?: number;
height?: number;
Expand Down

0 comments on commit 757f55f

Please sign in to comment.