halife 0.0.2 → 0.0.3

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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -32,9 +32,9 @@ async function add(components, options) {
32
32
  continue;
33
33
  }
34
34
 
35
- // `${pkg.repository.url}/raw/branch/main/${reg.path}`
35
+ // TODO: implement versioning
36
36
  let response = await fetch(
37
- "https://codeberg.org/Transient/saiyo-wchat-mini/src/branch/main/typings/index.d.ts",
37
+ `${pkg.repository.url}/raw/branch/main/${reg.path}`,
38
38
  );
39
39
  if (!response.ok) {
40
40
  console.info(
@@ -52,7 +52,6 @@ async function add(components, options) {
52
52
  reg.path.split("/").pop(),
53
53
  );
54
54
  await fs.ensureDir(path.dirname(target));
55
- // await fs.writeFile(target, file.content);
56
55
  const fileStream = fs.createWriteStream(target);
57
56
  const webStream = Readable.fromWeb(response.body);
58
57
  await finished(webStream.pipe(fileStream));
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "type": "git",
19
19
  "url": "https://codeberg.org/y0z0ng/halife.git"
20
20
  },
21
- "version": "0.0.2",
21
+ "version": "0.0.3",
22
22
  "workspaces": [
23
23
  "examples/*"
24
24
  ],