@imghop/core
Advanced tools
Comparing version 0.0.12-alpha.4 to 0.0.12-alpha.5
export declare const CDN_NAME = "https://hop.imghop.dev/"; | ||
export declare type CROP_VALUES = 'face' | 'auto'; | ||
export declare type FIT_TYPES = 'cover' | 'contain' | 'fill'; |
export { queryHelper, QueryOptions } from './query'; | ||
export { uploadImage, deleteImage } from './fetch'; | ||
export { CROP_VALUES } from './constants'; | ||
export { CROP_VALUES, FIT_TYPES } from './constants'; |
@@ -1,2 +0,2 @@ | ||
import { CROP_VALUES } from './constants'; | ||
import { CROP_VALUES, FIT_TYPES } from './constants'; | ||
export interface QueryOptions { | ||
@@ -7,3 +7,4 @@ width?: number; | ||
crop?: CROP_VALUES; | ||
fit?: FIT_TYPES; | ||
} | ||
export declare function queryHelper(url: string, options: QueryOptions): string; |
{ | ||
"version": "0.0.12-alpha.4", | ||
"version": "0.0.12-alpha.5", | ||
"license": "MIT", | ||
@@ -63,3 +63,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "d9f78a4b069c425705fde1e5b3e9aac27a6ac256" | ||
"gitHead": "f5ecd702d0b876c9fd3e173fbe6253aa18bb7b60" | ||
} |
export const CDN_NAME = 'https://hop.imghop.dev/'; | ||
export type CROP_VALUES = 'face' | 'auto'; | ||
export type FIT_TYPES = 'cover' | 'contain' | 'fill'; |
export { queryHelper, QueryOptions } from './query'; | ||
export { uploadImage, deleteImage } from './fetch'; | ||
export { CROP_VALUES } from './constants'; | ||
export { CROP_VALUES, FIT_TYPES } from './constants'; |
@@ -1,2 +0,2 @@ | ||
import { CROP_VALUES, CDN_NAME } from './constants'; | ||
import { CROP_VALUES, CDN_NAME, FIT_TYPES } from './constants'; | ||
import qs from 'qs'; | ||
@@ -9,2 +9,3 @@ | ||
crop?: CROP_VALUES; | ||
fit?: FIT_TYPES; | ||
} | ||
@@ -16,3 +17,2 @@ | ||
q?: number; | ||
crop?: CROP_VALUES; | ||
} | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
223294
1840