Skip to content

Commit

Permalink
feat: add cloud-image-editor telemetry (#703)
Browse files Browse the repository at this point in the history
Co-authored-by: nd0ut <[email protected]>
  • Loading branch information
nd0ut and nd0ut authored Jul 30, 2024
1 parent 5a6b894 commit cbd69b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions blocks/CloudImageEditor/src/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { PACKAGE_NAME, PACKAGE_VERSION } from '../../../env.js';
import { createCdnUrl, createCdnUrlModifiers } from '../../../utils/cdn-utils.js';
import { COMMON_OPERATIONS, transformationsToOperations } from './lib/transformationUtils.js';

Expand All @@ -14,6 +15,7 @@ export function viewerImageSrc(originalUrl, width, transformations) {
transformationsToOperations(transformations),
`quality/${quality}`,
`stretch/off/-/resize/${size}x`,
`@clib/${PACKAGE_NAME}/${PACKAGE_VERSION}/uc-cloud-image-editor/`,
),
);
}
2 changes: 0 additions & 2 deletions utils/cdn-utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { PACKAGE_NAME, PACKAGE_VERSION } from '../env.js';

/**
* Trim leading `-/`, `/` and trailing `/` from CDN operation
*
Expand Down

0 comments on commit cbd69b8

Please sign in to comment.