Skip to content

Commit ea5a424

Browse files
author
Maya Shavin
committed
fix: rename consts
1 parent 0fb3ee2 commit ea5a424

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"test:ci": "lerna run test:ci --stream",
2626
"prettier": "yarn prettier --write .",
2727
"changelog": "node scripts/changelog.js",
28-
"test:url": "npm --prefix packages/url run test:unit"
28+
"test:url": "npm --prefix packages/url run test:unit",
29+
"bundlewatch:url": "npm --prefix packages/url run bundlewatch"
2930
},
3031
"author": "Maya Shavin <dpnminh@gmail.com>",
3132
"license": "MIT",

packages/url/lib/constants/index.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,11 @@ export const TRANSFORMERS = {
3535
rotate: 'a',
3636
audioCodec: 'ac',
3737
audioFrequency: 'af',
38-
// aspectRatio: 'ar',
3938
background: 'b',
4039
bitRate: 'br',
41-
// border: 'bo', // Border: { width:, height:, type:, color: }
4240
color: 'co',
4341
colorSpace: 'cs',
44-
// crop: 'c', //resize: { width, height: , type}
4542
customFunction: 'fn',
46-
// customPreFunction: 'fn_pre:', //make sure it won't duplicate _
4743
defaultImage: 'd',
4844
delay: 'dl',
4945
density: 'dn',
@@ -57,10 +53,8 @@ export const TRANSFORMERS = {
5753
// flags: 'fl',
5854
gravity: 'g',
5955
// fps: 'fps',
60-
// height: 'h',
6156
// htmlHeight: '',
6257
// htmlWidth: '',
63-
// if: '',
6458
keyframeInterval: 'ki',
6559
ocr: 'ocr',
6660
// offset: '',
@@ -71,25 +65,18 @@ export const TRANSFORMERS = {
7165
prefix: 'p',
7266
quality: 'q',
7367
radius: 'r',
74-
// rawTransformation,
75-
// size,
7668
// sourceTypes,
7769
// sourceTransformation,
7870
startOffset: 'so',
7971
streamingProfile: 'sp',
8072
transformation: 't',
8173
underlay: 'u',
82-
// variable,
83-
// variables,
8474
videoCodec: 'vc',
8575
videoSampling: 'vs',
86-
// width: 'w',
87-
// x: 'x',
88-
// y: 'y',
8976
zoom: 'z'
9077
}
9178

9279
export { RESIZE_TYPES } from './resize'
9380
export { ArithmeticExpression } from './arithmetic'
94-
export { IMAGE_CONDITIONAL_FIELDS, IMAGE_CONDITIONAL_OPERATORS } from './condition'
81+
export { ConditionOperators, ConditionalParams } from './condition'
9582
export { ROTATION_MODES } from './rotation'

0 commit comments

Comments
 (0)