@cloudinary-util/types
Advanced tools
Comparing version 1.4.0 to 1.5.0
@@ -0,1 +1,30 @@ | ||
type CloudinaryResourceType = "upload" | "private" | "authenticated"; | ||
type CloudinaryResourceResourceType = "image" | "video" | "raw" | "auto"; | ||
interface CloudinaryResource { | ||
access_control: Array<string>; | ||
access_mode: "public" | "authenticated" | (string & {}); | ||
asset_id: string; | ||
bytes: number; | ||
context: Record<string, Record<string, string>>; | ||
colors?: [string, number][]; | ||
created_at: string; | ||
display_name: string; | ||
folder: string; | ||
format: string; | ||
height: number; | ||
info: Record<string, unknown>; | ||
metadata: Record<string, Record<string, string>>; | ||
moderation: Array<string>; | ||
public_id: string; | ||
resource_type: CloudinaryResourceResourceType; | ||
secure_url: string; | ||
signature: string; | ||
tags: Array<string>; | ||
type: CloudinaryResourceType; | ||
url: string; | ||
version: number; | ||
width: number; | ||
[key: string]: unknown; | ||
} | ||
type CustomURL = `https://${string}.${string}`; | ||
@@ -77,17 +106,8 @@ interface CloudinaryUploadWidgetOptions { | ||
} | ||
interface CloudinaryUploadWidgetInfo { | ||
access_mode: "public" | "authenticated"; | ||
interface CloudinaryUploadWidgetInfo extends CloudinaryResource { | ||
api_key: string; | ||
asset_id: string; | ||
batchId: string; | ||
bytes: number; | ||
context: Record<string, Record<string, string>>; | ||
created_at: string; | ||
etag: string; | ||
folder: string; | ||
format: string; | ||
height: number; | ||
hook_execution: Record<string, unknown>; | ||
id: string; | ||
info: Record<string, unknown>; | ||
original_filename: string; | ||
@@ -97,13 +117,3 @@ pages: number; | ||
placeholder: boolean; | ||
public_id: string; | ||
resource_type: "image" | "raw" | "video" | "auto"; | ||
secure_url: string; | ||
signature: string; | ||
tags: string[]; | ||
thumbnail_url: string; | ||
type: "upload" | "private" | "authenticated"; | ||
url: string; | ||
version: number; | ||
width: number; | ||
[key: string]: unknown; | ||
} | ||
@@ -263,2 +273,2 @@ interface CloudinaryUploadWidgetInstanceMethods { | ||
export type { CloudinaryAssetConfiguration, CloudinaryAssetConfigurationAuthToken, CloudinaryAssetConfigurationCloud, CloudinaryAssetConfigurationUrl, CloudinaryUploadWidgetError, CloudinaryUploadWidgetInfo, CloudinaryUploadWidgetInstanceMethodCloseOptions, CloudinaryUploadWidgetInstanceMethodDestroyOptions, CloudinaryUploadWidgetInstanceMethodOpenOptions, CloudinaryUploadWidgetInstanceMethodUpdateOptions, CloudinaryUploadWidgetInstanceMethods, CloudinaryUploadWidgetOptions, CloudinaryUploadWidgetResults, CloudinaryUploadWidgetSources, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptionPosterOptions, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo }; | ||
export type { CloudinaryAssetConfiguration, CloudinaryAssetConfigurationAuthToken, CloudinaryAssetConfigurationCloud, CloudinaryAssetConfigurationUrl, CloudinaryResource, CloudinaryResourceResourceType, CloudinaryResourceType, CloudinaryUploadWidgetError, CloudinaryUploadWidgetInfo, CloudinaryUploadWidgetInstanceMethodCloseOptions, CloudinaryUploadWidgetInstanceMethodDestroyOptions, CloudinaryUploadWidgetInstanceMethodOpenOptions, CloudinaryUploadWidgetInstanceMethodUpdateOptions, CloudinaryUploadWidgetInstanceMethods, CloudinaryUploadWidgetOptions, CloudinaryUploadWidgetResults, CloudinaryUploadWidgetSources, CloudinaryVideoPlayer, CloudinaryVideoPlayerOptionPosterOptions, CloudinaryVideoPlayerOptions, CloudinaryVideoPlayerOptionsColors, CloudinaryVideoPlayerOptionsLogo }; |
{ | ||
"name": "@cloudinary-util/types", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"type": "module", | ||
@@ -20,2 +20,11 @@ "main": "./dist/index.cjs", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/cloudinary-community/cloudinary-util.git" | ||
}, | ||
"keywords": [], | ||
"bugs": { | ||
"url": "https://github.com/cloudinary-community/cloudinary-util/issues" | ||
}, | ||
"homepage": "https://github.com/cloudinary-community/cloudinary-util", | ||
"scripts": { | ||
@@ -22,0 +31,0 @@ "build": "tsup src/index.ts --format esm,cjs --dts --clean", |
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
22779
303
1
0
0