Skip to content

Commit 1f56f43

Browse files
committed
feat: move getResponsiveImageAttributes and related types to responsive module
1 parent e49a31a commit 1f56f43

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { SrcOptions, Transformation, UploadOptions, UploadResponse } from "./interfaces";
22
import { ImageKitAbortError, ImageKitInvalidRequestError, ImageKitServerError, ImageKitUploadNetworkError, upload } from "./upload";
33
import { buildSrc, buildTransformationString } from "./url";
4-
import { getResponsiveImageAttributes } from "./getResponsiveImageAttributes";
5-
import type { GetImageAttributesOptions, ResponsiveImageAttributes } from "./getResponsiveImageAttributes";
4+
import { getResponsiveImageAttributes } from "./responsive";
5+
import type { GetImageAttributesOptions, ResponsiveImageAttributes } from "./responsive";
66

77
export { buildSrc, buildTransformationString, upload, getResponsiveImageAttributes, ImageKitInvalidRequestError, ImageKitAbortError, ImageKitServerError, ImageKitUploadNetworkError };
88
export type {
File renamed without changes.

test/getResponsiveImageAttributes.test.js renamed to test/responsive.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { expect } = require('chai');
2-
const { getResponsiveImageAttributes } = require('../src/getResponsiveImageAttributes');
2+
const { getResponsiveImageAttributes } = require("../src/index");
33

44
describe('getResponsiveImageAttributes', () => {
55
it('bare minimum input', () => {

0 commit comments

Comments
 (0)