@yaebal/files 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaebal/files",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "yebal files plugin — ctx.files: resolve and download telegram files.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -16,7 +16,7 @@
16
16
  "src"
17
17
  ],
18
18
  "dependencies": {
19
- "@yaebal/core": "0.0.1"
19
+ "@yaebal/core": "0.0.5"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "latest"
package/src/index.test.ts CHANGED
@@ -84,7 +84,7 @@ test("download throws on a non-ok response (no silent error bytes)", async () =>
84
84
  const c = new Composer<Context>().install(files()).use(async (ctx) => {
85
85
  await assert.rejects((ctx as Ctx).files.download("ABC"), /download failed \(404\)/);
86
86
  });
87
-
87
+
88
88
  await entry(c)(ctxWith(fakeApi("a.bin")), noop);
89
89
  } finally {
90
90
  globalThis.fetch = realFetch;
package/src/index.ts CHANGED
@@ -33,7 +33,7 @@ export function files(): Plugin<Context, { files: FilesControl }> {
33
33
  return new Uint8Array(await res.arrayBuffer());
34
34
  },
35
35
  };
36
-
36
+
37
37
  return { files: control };
38
38
  });
39
39
  }