New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cloudinary-util/util

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudinary-util/util - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

13

./dist/index.js

@@ -44,7 +44,16 @@ "use strict";

}
const results = src.match(REGEX_URL);
const [baseUrl, queryString] = src.split("?");
const results = baseUrl.match(REGEX_URL);
const parts = {
...results == null ? void 0 : results.groups,
transformations: (_a = results == null ? void 0 : results.groups) == null ? void 0 : _a.transformations.split("/").filter((t) => !!t)
transformations: (_a = results == null ? void 0 : results.groups) == null ? void 0 : _a.transformations.split("/").filter((t) => !!t),
queryParams: {}
};
if (queryString) {
parts.queryParams = queryString.split("&").reduce((prev, curr) => {
const [key, value] = curr.split("=");
prev[key] = value;
return prev;
}, {});
}
return parts;

@@ -51,0 +60,0 @@ }

3

dist/index.d.ts

@@ -14,2 +14,3 @@ /**

transformations?: Array<string>;
queryParams?: object;
version?: string;

@@ -51,2 +52,2 @@ }

export { encodeBase64, getPublicId, getTransformations, objectHasKey, parseUrl, sortByKey };
export { ParseUrl, encodeBase64, getPublicId, getTransformations, objectHasKey, parseUrl, sortByKey };

@@ -44,7 +44,16 @@ "use strict";

}
const results = src.match(REGEX_URL);
const [baseUrl, queryString] = src.split("?");
const results = baseUrl.match(REGEX_URL);
const parts = {
...results == null ? void 0 : results.groups,
transformations: (_a = results == null ? void 0 : results.groups) == null ? void 0 : _a.transformations.split("/").filter((t) => !!t)
transformations: (_a = results == null ? void 0 : results.groups) == null ? void 0 : _a.transformations.split("/").filter((t) => !!t),
queryParams: {}
};
if (queryString) {
parts.queryParams = queryString.split("&").reduce((prev, curr) => {
const [key, value] = curr.split("=");
prev[key] = value;
return prev;
}, {});
}
return parts;

@@ -51,0 +60,0 @@ }

{
"name": "@cloudinary-util/util",
"version": "1.2.2",
"version": "1.2.3",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "module": "./dist/index.mjs",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc