@sparted/shared-library 1.0.28-dev.0 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const twicpicsTransformationChainToString = (transformationChain) => {
|
|
6
6
|
if (transformationChain.length === 0)
|
|
7
7
|
return '';
|
|
8
|
-
const transformations = transformationChain
|
|
9
|
-
.map(([key, value]) => `${key}=${value}`)
|
|
10
|
-
.join('/');
|
|
8
|
+
const transformations = transformationChain.map(([key, value]) => `${key}=${value}`).join('/');
|
|
11
9
|
return `twic=v1/${transformations}`;
|
|
12
10
|
};
|
|
13
11
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"twicpics-transformations.util.js","sources":["../../../src/cdn/utils/twicpics-transformations.util.ts"],"sourcesContent":["import { TwicpicsTransformationChain } from '../types';\n\nexport const twicpicsTransformationChainToString = (
|
|
1
|
+
{"version":3,"file":"twicpics-transformations.util.js","sources":["../../../src/cdn/utils/twicpics-transformations.util.ts"],"sourcesContent":["import { TwicpicsTransformationChain } from '../types';\n\nexport const twicpicsTransformationChainToString = (transformationChain: TwicpicsTransformationChain): string => {\n if (transformationChain.length === 0) return '';\n\n const transformations = transformationChain.map(([key, value]) => `${key}=${value}`).join('/');\n\n return `twic=v1/${transformations}`;\n};\n"],"names":[],"mappings":";;;;AAEa,MAAA,mCAAmC,GAAG,CAAC,mBAAgD,KAAY;AAC9G,IAAA,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,EAAE,CAAC;IAEhD,MAAM,eAAe,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAA,EAAG,GAAG,CAAA,CAAA,EAAI,KAAK,CAAA,CAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE/F,OAAO,CAAA,QAAA,EAAW,eAAe,CAAA,CAAE,CAAC;AACtC;;;;"}
|