bare-media 1.1.1 → 1.2.1

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # bare-media
2
2
 
3
- All the media things
3
+ A set of media apis for Bare
4
4
 
5
5
  ## Install
6
6
 
package/client.js CHANGED
@@ -37,6 +37,10 @@ export class WorkerClient extends ReadyResource {
37
37
  await this.#run()
38
38
  }
39
39
 
40
+ async _close () {
41
+ this.worker?.IPC.end()
42
+ }
43
+
40
44
  async #run () {
41
45
  const { filename, requireSource, args } = this.opts
42
46
  const source = requireSource?.()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-media",
3
- "version": "1.1.1",
3
+ "version": "1.2.1",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "scripts": {
package/shared/codecs.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export const codecs = {
2
2
  'image/jpeg': () => import('bare-jpeg'),
3
3
  'image/jpg': () => import('bare-jpeg'),
4
+ 'image/avif': () => import('bare-heif'),
4
5
  'image/heic': () => import('bare-heif'),
5
6
  'image/heif': () => import('bare-heif'),
6
7
  'image/webp': () => import('bare-webp'),