New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@cloudinary/html

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudinary/html - npm Package Compare versions

Comparing version
1.5.0
to
1.6.0
+13
-1
CHANGELOG.md

@@ -0,1 +1,12 @@

1.6.0 / 2022-11-17
==================
Html
-------
* Add an optional analytics option to be passed to serverSideSrc
React
-------
* use the same analytics token in react ssr and csr
1.5.0 / 2022-09-18

@@ -10,3 +21,3 @@ ==================

------------------
* Fix react jest configuration (#173)
* Fix react jest configuration (#173)
* Update React SDK readme (#175)

@@ -18,2 +29,3 @@

1.4.2 / 2022-08-09

@@ -20,0 +32,0 @@ ==================

+2
-2
{
"name": "@cloudinary/html",
"version": "1.5.0",
"version": "1.6.0",
"description": "An HTML wrapper for Cloudinary",

@@ -20,3 +20,3 @@ "main": "./index.js",

"@babel/preset-typescript": "^7.14.5",
"@cloudinary/url-gen": "^1.8.0",
"@cloudinary/url-gen": "^1.8.6",
"@rollup/plugin-commonjs": "^19.0.0",

@@ -23,0 +23,0 @@ "@rollup/plugin-node-resolve": "^13.0.0",

import { CloudinaryImage } from "@cloudinary/url-gen/assets/CloudinaryImage";
import { VideoCodecAction } from "@cloudinary/url-gen/actions/transcode/VideoCodecAction";
export declare type Plugin = (element: HTMLImageElement | HTMLVideoElement, cloudinaryImage: CloudinaryImage, htmlPluginState?: HtmlPluginState) => Promise<string | void>;
export declare type Plugins = Plugin[];
export declare type AccessibilityMode = 'darkmode' | 'brightmode' | 'monochrome' | 'colorblind';
export declare type PlaceholderMode = 'vectorize' | 'pixelate' | 'blur' | 'predominant-color';
export declare type HtmlPluginState = {
export type Plugin = (element: HTMLImageElement | HTMLVideoElement, cloudinaryImage: CloudinaryImage, htmlPluginState?: HtmlPluginState) => Promise<string | void>;
export type Plugins = Plugin[];
export type AccessibilityMode = 'darkmode' | 'brightmode' | 'monochrome' | 'colorblind';
export type PlaceholderMode = 'vectorize' | 'pixelate' | 'blur' | 'predominant-color';
export type HtmlPluginState = {
cleanupCallbacks: Function[];
pluginEventSubscription: Function[];
};
export declare type VideoSources = {
export type VideoSources = {
type: VideoType;

@@ -16,4 +16,4 @@ codecs: Array<string>;

}[] | undefined;
export declare type VideoType = 'flv' | '3gp' | 'mov' | 'mpg' | 'avi' | 'wmv' | 'ogv' | string;
export declare type PictureSources = {
export type VideoType = 'flv' | '3gp' | 'mov' | 'mpg' | 'avi' | 'wmv' | 'ogv' | string;
export type PictureSources = {
minWidth?: number;

@@ -24,3 +24,3 @@ maxWidth?: number;

}[];
export declare type PictureSource = {
export type PictureSource = {
minWidth?: number;

@@ -31,3 +31,3 @@ maxWidth?: number;

};
export declare type AnalyticsOptions = {
export type AnalyticsOptions = {
sdkSemver: string;

@@ -34,0 +34,0 @@ techVersion: string;

@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -8,3 +8,3 @@ /**

import { CloudinaryImage } from "@cloudinary/url-gen/assets/CloudinaryImage";
import { Plugins } from "../types.js";
export declare function serverSideSrc(plugins?: Plugins, serverCloudinaryImage?: CloudinaryImage): string;
import { AnalyticsOptions, Plugins } from "../types.js";
export declare function serverSideSrc(plugins?: Plugins, serverCloudinaryImage?: CloudinaryImage, analyticsOptions?: AnalyticsOptions): string;
import cloneDeep from 'lodash.clonedeep';
export function serverSideSrc(plugins, serverCloudinaryImage) {
export function serverSideSrc(plugins, serverCloudinaryImage, analyticsOptions) {
var clonedServerCloudinaryImage = cloneDeep(serverCloudinaryImage);

@@ -12,3 +12,3 @@ if (plugins) {

}
return clonedServerCloudinaryImage.toURL();
return clonedServerCloudinaryImage.toURL(analyticsOptions ? { trackedAnalytics: analyticsOptions } : null);
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display