@lonik/oh-image 1.2.4 → 1.2.6
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.
- package/dist/client.d.ts +5 -0
- package/dist/plugin.js +2 -1
- package/dist/react.d.ts +4 -0
- package/package.json +2 -1
package/dist/client.d.ts
CHANGED
package/dist/plugin.js
CHANGED
|
@@ -36,7 +36,8 @@ function queryToOptions(processKey, uri) {
|
|
|
36
36
|
const parsed = queryString.parse(query, {
|
|
37
37
|
parseBooleans: true,
|
|
38
38
|
parseNumbers: true,
|
|
39
|
-
arrayFormat: "comma"
|
|
39
|
+
arrayFormat: "comma",
|
|
40
|
+
types: { bps: "number[]" }
|
|
40
41
|
});
|
|
41
42
|
if (processKey in parsed) return {
|
|
42
43
|
shouldProcess: true,
|
package/dist/react.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ declare module "*?oh" {
|
|
|
18
18
|
const imageSrc: ImageSrc;
|
|
19
19
|
export default imageSrc;
|
|
20
20
|
}
|
|
21
|
+
declare module "*?oh&*" {
|
|
22
|
+
const imageSrc: ImageSrc;
|
|
23
|
+
export default imageSrc;
|
|
24
|
+
}
|
|
21
25
|
//#endregion
|
|
22
26
|
//#region src/react/types.d.ts
|
|
23
27
|
type ImageSrcType = string | ImageSrc;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lonik/oh-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.6",
|
|
5
5
|
"description": "A React component library for optimized image handling.",
|
|
6
6
|
"author": "Luka Onikadze <lukonik@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/lukonik/oh-image/issues"
|
|
15
15
|
},
|
|
16
|
+
"types": "./dist/client.d.ts",
|
|
16
17
|
"exports": {
|
|
17
18
|
"./package.json": "./package.json",
|
|
18
19
|
"./plugin": {
|