@flighthq/image-codec 0.2.1-next.841.373388f → 0.3.0-next.1032.e2b99fc

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.
@@ -0,0 +1,8 @@
1
+ export * from './decodeImage';
2
+ export * from './detectImageMimeType';
3
+ export * from './encodeImage';
4
+ export * from './imageDecoderRegistry';
5
+ export * from './imageEncoderRegistry';
6
+ export * from './registerWebImageDecoders';
7
+ export * from './registerWebImageEncoders';
8
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './decodeImage';
2
+ export * from './detectImageMimeType';
3
+ export * from './encodeImage';
4
+ export * from './imageDecoderRegistry';
5
+ export * from './imageEncoderRegistry';
6
+ export * from './registerWebImageDecoders';
7
+ export * from './registerWebImageEncoders';
8
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { DecodedImage } from '@flighthq/types';
1
+ import type { DecodedImage } from '@flighthq/types/contract';
2
2
  export declare function decodeImage(bytes: Readonly<Uint8Array>, mimeType?: string): Promise<DecodedImage | null>;
3
3
  export declare function decodeImagePremultiplied(bytes: Readonly<Uint8Array>, mimeType?: string): Promise<DecodedImage | null>;
4
4
  //# sourceMappingURL=decodeImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decodeImage.d.ts","sourceRoot":"","sources":["../src/decodeImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,iBAAiB,CAAC;AAQlE,wBAAsB,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI9G;AAID,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI9B"}
1
+ {"version":3,"file":"decodeImage.d.ts","sourceRoot":"","sources":["../src/decodeImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAQ3E,wBAAsB,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI9G;AAID,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,QAAQ,CAAC,EAAE,MAAM,GAChB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAI9B"}
@@ -1,3 +1,3 @@
1
- import type { DecodedImage, ImageEncodeOptions } from '@flighthq/types';
1
+ import type { DecodedImage, ImageEncodeOptions } from '@flighthq/types/contract';
2
2
  export declare function encodeImage(image: Readonly<DecodedImage>, mimeType: string, options?: Readonly<ImageEncodeOptions>): Promise<Uint8Array | null>;
3
3
  //# sourceMappingURL=encodeImage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encodeImage.d.ts","sourceRoot":"","sources":["../src/encodeImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAMxE,wBAAsB,WAAW,CAC/B,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GACrC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAI5B"}
1
+ {"version":3,"file":"encodeImage.d.ts","sourceRoot":"","sources":["../src/encodeImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAMjF,wBAAsB,WAAW,CAC/B,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,EAC7B,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GACrC,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAI5B"}
@@ -1,4 +1,4 @@
1
- import type { ImageDecoder } from '@flighthq/types';
1
+ import type { ImageDecoder } from '@flighthq/types/contract';
2
2
  export declare function clearImageDecoders(): void;
3
3
  export declare function getImageDecoder(mimeType: string): ImageDecoder | null;
4
4
  export declare function hasImageDecoder(mimeType: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"imageDecoderRegistry.d.ts","sourceRoot":"","sources":["../src/imageDecoderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAErE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAElF;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE7D"}
1
+ {"version":3,"file":"imageDecoderRegistry.d.ts","sourceRoot":"","sources":["../src/imageDecoderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAErE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAElF;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE7D"}
@@ -1,4 +1,4 @@
1
- import type { ImageEncoder } from '@flighthq/types';
1
+ import type { ImageEncoder } from '@flighthq/types/contract';
2
2
  export declare function clearImageEncoders(): void;
3
3
  export declare function getImageEncoder(mimeType: string): ImageEncoder | null;
4
4
  export declare function hasImageEncoder(mimeType: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"imageEncoderRegistry.d.ts","sourceRoot":"","sources":["../src/imageEncoderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAErE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAElF;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE7D"}
1
+ {"version":3,"file":"imageEncoderRegistry.d.ts","sourceRoot":"","sources":["../src/imageEncoderRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAErE;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,IAAI,CAElF;AAED,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAE7D"}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,2 @@
1
- export * from './decodeImage';
2
- export * from './detectImageMimeType';
3
- export * from './encodeImage';
4
- export * from './imageDecoderRegistry';
5
- export * from './imageEncoderRegistry';
6
- export * from './registerWebImageDecoders';
7
- export * from './registerWebImageEncoders';
1
+ export { clearImageDecoders, clearImageEncoders, decodeImage, decodeImagePremultiplied, detectImageMimeType, encodeImage, getImageDecoder, getImageEncoder, hasImageDecoder, hasImageEncoder, registerImageDecoder, registerImageEncoder, registerWebImageDecoders, registerWebImageEncoders, unregisterImageDecoder, unregisterImageEncoder, } from './contract';
8
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,2 @@
1
- export * from './decodeImage';
2
- export * from './detectImageMimeType';
3
- export * from './encodeImage';
4
- export * from './imageDecoderRegistry';
5
- export * from './imageEncoderRegistry';
6
- export * from './registerWebImageDecoders';
7
- export * from './registerWebImageEncoders';
1
+ export { clearImageDecoders, clearImageEncoders, decodeImage, decodeImagePremultiplied, detectImageMimeType, encodeImage, getImageDecoder, getImageEncoder, hasImageDecoder, hasImageEncoder, registerImageDecoder, registerImageEncoder, registerWebImageDecoders, registerWebImageEncoders, unregisterImageDecoder, unregisterImageEncoder, } from './contract';
8
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flighthq/image-codec",
3
- "version": "0.2.1-next.841.373388f",
3
+ "version": "0.3.0-next.1032.e2b99fc",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/flighthq/flight.git",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "default": "./dist/index.js"
16
+ },
17
+ "./contract": {
18
+ "types": "./dist/contract.d.ts",
19
+ "default": "./dist/contract.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -32,7 +36,7 @@
32
36
  "clean:dist": "tsx ../../scripts/clean-package-dist.ts"
33
37
  },
34
38
  "dependencies": {
35
- "@flighthq/types": "0.2.1-next.841.373388f"
39
+ "@flighthq/types": "0.3.0-next.1032.e2b99fc"
36
40
  },
37
41
  "devDependencies": {
38
42
  "typescript": "^5.3.0"
@@ -1,4 +1,4 @@
1
- import type { DecodedImage, ImageDecodeOptions } from '@flighthq/types';
1
+ import type { DecodedImage, ImageDecodeOptions } from '@flighthq/types/contract';
2
2
  import { vi } from 'vitest';
3
3
 
4
4
  import { decodeImage, decodeImagePremultiplied } from './decodeImage';
@@ -1,4 +1,4 @@
1
- import type { DecodedImage } from '@flighthq/types';
1
+ import type { DecodedImage } from '@flighthq/types/contract';
2
2
  import { vi } from 'vitest';
3
3
 
4
4
  import { encodeImage } from './encodeImage';
@@ -1,4 +1,4 @@
1
- import type { DecodedImage, ImageDecoder } from '@flighthq/types';
1
+ import type { DecodedImage, ImageDecoder } from '@flighthq/types/contract';
2
2
 
3
3
  import {
4
4
  clearImageDecoders,
@@ -1,4 +1,4 @@
1
- import type { ImageEncoder } from '@flighthq/types';
1
+ import type { ImageEncoder } from '@flighthq/types/contract';
2
2
 
3
3
  import {
4
4
  clearImageEncoders,
@@ -1,4 +1,4 @@
1
- import type { DecodedImage } from '@flighthq/types';
1
+ import type { DecodedImage } from '@flighthq/types/contract';
2
2
  import { vi } from 'vitest';
3
3
 
4
4
  import { clearImageEncoders, getImageEncoder, hasImageEncoder } from './imageEncoderRegistry';