@uploadista/flow-images-photon 0.0.9 → 0.0.11

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/node.d.cts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { PhotonImage, Rgba } from "@cf-wasm/photon/node";
2
+ import { ImagePlugin } from "@uploadista/core/flow";
2
3
  import { Layer } from "effect";
3
4
  import tinycolor from "tinycolor2";
4
5
 
@@ -11,7 +12,7 @@ declare const autoResize: (image: PhotonImage, newWidth?: number, newHeight?: nu
11
12
  declare const imageToFormat: (image: PhotonImage, format: "webp" | "jpeg" | "png", options?: {
12
13
  jpeg_quality?: number;
13
14
  }) => Uint8Array<ArrayBufferLike>;
14
- declare const imagePluginNode: Layer.Layer<unknown, never, never>;
15
+ declare const imagePluginNode: Layer.Layer<ImagePlugin, never, never>;
15
16
  //#endregion
16
17
  export { autoResize, imagePluginNode, imageToFormat, tinyColorToPhotonRGBA };
17
18
  //# sourceMappingURL=node.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.cts","names":[],"sources":["../src/image-plugin-node.ts"],"sourcesContent":[],"mappings":";;;;;cAea,+BAAgC,SAAA,CAAU,aAAQ;cAKlD,oBACJ,2DAAA;EANI,GAAA,CAAA,EAAA,SAAA,GAAA,OAGZ,GAAA,MAAA;EAEY,yBAmFZ,CAAA,EA7E+B,SAAA,CAAU,QA6EzC;CAlFQ,EAAA,GAMN,WANM;AAKuB,cA+EnB,aA/E6B,EAAA,CAAA,KAAA,EAgFjC,WAhFiC,EAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,KAAA,EAAA,OA6EzC,CA7EyC,EAAA;EACvC,YAAA,CAAA,EAAA,MAAA;CA4EF,EAAA,GAOE,UAPF,CAOE,eAPF,CAAA;AAEY,cA0BA,eAFZ,EAE2B,KAAA,CAAA,KAF3B,CAAA,OAAA,EAAA,KAAA,EAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"node.d.cts","names":[],"sources":["../src/image-plugin-node.ts"],"sourcesContent":[],"mappings":";;;;;;cAea,+BAAgC,SAAA,CAAU,aAAQ;cAKlD,oBACJ,2DAAA;EANI,GAAA,CAAA,EAAA,SAAA,GAAA,OAGZ,GAAA,MAAA;EAEY,yBAmFZ,CAAA,EA7E+B,SAAA,CAAU,QA6EzC;CAlFQ,EAAA,GAMN,WANM;AAKuB,cA+EnB,aA/E6B,EAAA,CAAA,KAAA,EAgFjC,WAhFiC,EAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,KAAA,EAAA,OA6EzC,CA7EyC,EAAA;EACvC,YAAA,CAAA,EAAA,MAAA;CA4EF,EAAA,GAOE,UAPF,CAOE,eAPF,CAAA;AAEY,cA0BA,eAFZ,EAE2B,KAAA,CAAA,KAF3B,CAE2B,WAF3B,EAAA,KAAA,EAAA,KAAA,CAAA"}
package/dist/node.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { PhotonImage, Rgba } from "@cf-wasm/photon/node";
2
+ import { ImagePlugin } from "@uploadista/core/flow";
2
3
  import { Layer } from "effect";
3
4
  import tinycolor from "tinycolor2";
4
5
 
@@ -11,7 +12,7 @@ declare const autoResize: (image: PhotonImage, newWidth?: number, newHeight?: nu
11
12
  declare const imageToFormat: (image: PhotonImage, format: "webp" | "jpeg" | "png", options?: {
12
13
  jpeg_quality?: number;
13
14
  }) => Uint8Array<ArrayBufferLike>;
14
- declare const imagePluginNode: Layer.Layer<unknown, never, never>;
15
+ declare const imagePluginNode: Layer.Layer<ImagePlugin, never, never>;
15
16
  //#endregion
16
17
  export { autoResize, imagePluginNode, imageToFormat, tinyColorToPhotonRGBA };
17
18
  //# sourceMappingURL=node.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.mts","names":[],"sources":["../src/image-plugin-node.ts"],"sourcesContent":[],"mappings":";;;;;cAea,+BAAgC,SAAA,CAAU,aAAQ;cAKlD,oBACJ,2DAAA;EANI,GAAA,CAAA,EAAA,SAAA,GAAA,OAGZ,GAAA,MAAA;EAEY,yBAmFZ,CAAA,EA7E+B,SAAA,CAAU,QA6EzC;CAlFQ,EAAA,GAMN,WANM;AAKuB,cA+EnB,aA/E6B,EAAA,CAAA,KAAA,EAgFjC,WAhFiC,EAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,KAAA,EAAA,OA6EzC,CA7EyC,EAAA;EACvC,YAAA,CAAA,EAAA,MAAA;CA4EF,EAAA,GAOE,UAPF,CAOE,eAPF,CAAA;AAEY,cA0BA,eAFZ,EAE2B,KAAA,CAAA,KAF3B,CAAA,OAAA,EAAA,KAAA,EAAA,KAAA,CAAA"}
1
+ {"version":3,"file":"node.d.mts","names":[],"sources":["../src/image-plugin-node.ts"],"sourcesContent":[],"mappings":";;;;;;cAea,+BAAgC,SAAA,CAAU,aAAQ;cAKlD,oBACJ,2DAAA;EANI,GAAA,CAAA,EAAA,SAAA,GAAA,OAGZ,GAAA,MAAA;EAEY,yBAmFZ,CAAA,EA7E+B,SAAA,CAAU,QA6EzC;CAlFQ,EAAA,GAMN,WANM;AAKuB,cA+EnB,aA/E6B,EAAA,CAAA,KAAA,EAgFjC,WAhFiC,EAAA,MAAA,EAAA,MAAA,GAAA,MAAA,GAAA,KAAA,EAAA,OA6EzC,CA7EyC,EAAA;EACvC,YAAA,CAAA,EAAA,MAAA;CA4EF,EAAA,GAOE,UAPF,CAOE,eAPF,CAAA;AAEY,cA0BA,eAFZ,EAE2B,KAAA,CAAA,KAF3B,CAE2B,WAF3B,EAAA,KAAA,EAAA,KAAA,CAAA"}
@@ -1,7 +1,8 @@
1
+ import { ImagePlugin } from "@uploadista/core/flow";
1
2
  import { Layer } from "effect";
2
3
 
3
4
  //#region src/image-plugin-serverless.d.ts
4
- declare const imagePluginServerless: Layer.Layer<unknown, never, never>;
5
+ declare const imagePluginServerless: Layer.Layer<ImagePlugin, never, never>;
5
6
  //#endregion
6
7
  export { imagePluginServerless };
7
8
  //# sourceMappingURL=serverless.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverless.d.cts","names":[],"sources":["../src/image-plugin-serverless.ts"],"sourcesContent":[],"mappings":";;;cAyGa,uBAAqB,KAAA,CAAA"}
1
+ {"version":3,"file":"serverless.d.cts","names":[],"sources":["../src/image-plugin-serverless.ts"],"sourcesContent":[],"mappings":";;;;cAyGa,uBAAqB,KAAA,CAAA,MAAA"}
@@ -1,7 +1,8 @@
1
+ import { ImagePlugin } from "@uploadista/core/flow";
1
2
  import { Layer } from "effect";
2
3
 
3
4
  //#region src/image-plugin-serverless.d.ts
4
- declare const imagePluginServerless: Layer.Layer<unknown, never, never>;
5
+ declare const imagePluginServerless: Layer.Layer<ImagePlugin, never, never>;
5
6
  //#endregion
6
7
  export { imagePluginServerless };
7
8
  //# sourceMappingURL=serverless.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serverless.d.mts","names":[],"sources":["../src/image-plugin-serverless.ts"],"sourcesContent":[],"mappings":";;;cAyGa,uBAAqB,KAAA,CAAA"}
1
+ {"version":3,"file":"serverless.d.mts","names":[],"sources":["../src/image-plugin-serverless.ts"],"sourcesContent":[],"mappings":";;;;cAyGa,uBAAqB,KAAA,CAAA,MAAA"}
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@uploadista/flow-images-photon",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "description": "Photon image processing service for Uploadista Flow",
6
6
  "license": "MIT",
7
7
  "author": "Uploadista",
8
8
  "exports": {
9
9
  "./node": {
10
- "types": "./dist/node.d.ts",
11
- "import": "./dist/node.js",
12
- "default": "./dist/node.js"
10
+ "types": "./dist/node.d.mts",
11
+ "import": "./dist/node.mjs",
12
+ "require": "./dist/node.cjs",
13
+ "default": "./dist/node.mjs"
13
14
  },
14
15
  "./serverless": {
15
- "types": "./dist/serverless.d.ts",
16
- "import": "./dist/serverless.js",
17
- "default": "./dist/serverless.js"
16
+ "types": "./dist/serverless.d.mts",
17
+ "import": "./dist/serverless.mjs",
18
+ "require": "./dist/serverless.cjs",
19
+ "default": "./dist/serverless.mjs"
18
20
  }
19
21
  },
20
22
  "dependencies": {
@@ -22,13 +24,13 @@
22
24
  "effect": "3.19.0",
23
25
  "tinycolor2": "1.6.0",
24
26
  "zod": "4.1.12",
25
- "@uploadista/core": "0.0.9"
27
+ "@uploadista/core": "0.0.11"
26
28
  },
27
29
  "devDependencies": {
28
30
  "@types/node": "24.10.0",
29
31
  "@types/tinycolor2": "1.4.6",
30
32
  "tsdown": "0.16.0",
31
- "@uploadista/typescript-config": "0.0.9"
33
+ "@uploadista/typescript-config": "0.0.11"
32
34
  },
33
35
  "scripts": {
34
36
  "build": "tsdown",