Comparing version 3.14.0 to 3.14.1
import { toUrl } from "../utils.js"; | ||
const cloudflareRegex = /https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)\/(?<path>.*)$/g; | ||
const cloudflareRegex = /https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)?\/(?<path>.*)$/g; | ||
const parseTransforms = (transformations) => Object.fromEntries(transformations.split(",").map((t) => t.split("="))); | ||
@@ -4,0 +4,0 @@ const formatUrl = ({ host, transformations = {}, path, }) => { |
@@ -5,3 +5,3 @@ { | ||
"name": "unpic", | ||
"version": "3.14.0", | ||
"version": "3.14.1", | ||
"description": "Universal image CDN translator", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -5,3 +5,3 @@ "use strict"; | ||
const utils_js_1 = require("../utils.js"); | ||
const cloudflareRegex = /https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)\/(?<path>.*)$/g; | ||
const cloudflareRegex = /https?:\/\/(?<host>[^\/]+)\/cdn-cgi\/image\/(?<transformations>[^\/]+)?\/(?<path>.*)$/g; | ||
const parseTransforms = (transformations) => Object.fromEntries(transformations.split(",").map((t) => t.split("="))); | ||
@@ -8,0 +8,0 @@ const formatUrl = ({ host, transformations = {}, path, }) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
186311