@bejibun/redis 0.1.29 → 0.1.31

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/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@ All notable changes to this project will be documented in this file.
3
3
 
4
4
  ---
5
5
 
6
+ ## [v0.1.30](https://github.com/crenata/bejibun-redis/compare/v0.1.29...v0.1.30) - 2025-10-22
7
+
8
+ ### 🩹 Fixes
9
+ - Fix `configure.ts` configuration file
10
+
11
+ ### 📖 Changes
12
+
13
+ ### ❤️Contributors
14
+ - Havea Crenata ([@crenata](https://github.com/crenata))
15
+ - Ghulje ([@ghulje](https://github.com/ghulje))
16
+
17
+ **Full Changelog**: https://github.com/crenata/bejibun-redis/blob/master/CHANGELOG.md
18
+
19
+ ---
20
+
6
21
  ## [v0.1.29](https://github.com/crenata/bejibun-redis/compare/v0.1.27...v0.1.29) - 2025-10-22
7
22
 
8
23
  ### 🩹 Fixes
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <div align="center">
2
2
 
3
+ <img src="https://github.com/crenata/bejibun/blob/master/public/images/bejibun.png?raw=true" width="150" alt="Bejibun" />
4
+
3
5
  ![GitHub top language](https://img.shields.io/github/languages/top/crenata/bejibun-redis)
4
6
  ![GitHub all releases](https://img.shields.io/github/downloads/crenata/bejibun-redis/total)
5
7
  ![GitHub issues](https://img.shields.io/github/issues/crenata/bejibun-redis)
@@ -25,7 +27,11 @@ bun ace install @bejibun/redis
25
27
  ```
26
28
 
27
29
  ### Configuration
28
- Add `redis.ts` inside config directory on your project
30
+ The configuration file automatically executed if you are using `ace`.
31
+
32
+ Or
33
+
34
+ Add `redis.ts` inside config directory on your project if doesn't exist.
29
35
 
30
36
  ```bash
31
37
  config/redis.ts
@@ -80,9 +86,10 @@ export default class TestController extends BaseController {
80
86
  Logger.setContext(channel).debug(message);
81
87
  });
82
88
  await Redis.publish("redis-subscribe", "Hai redis subscriber!");
83
- setTimeout(async () => {
84
- await subscriber.unsubscribe();
85
- }, 500);
89
+
90
+ await Bun.sleep(500);
91
+
92
+ await subscriber.unsubscribe();
86
93
 
87
94
  return super.response.setData({redis, connection, pipeline}).send();
88
95
  }
@@ -100,7 +107,9 @@ If you find this project helpful and want to support it, you can donate via PayP
100
107
 
101
108
  Or if you are prefer using crypto :
102
109
 
103
- | EVM | Solana |
104
- | --- | ------ |
110
+ | EVM | Solana |
111
+ | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
105
112
  | <img src="https://github.com/crenata/bejibun/blob/master/public/images/EVM.png?raw=true" width="150" /> | <img src="https://github.com/crenata/bejibun/blob/master/public/images/SOL.png?raw=true" width="150" /> |
106
- | 0xdABe8750061410D35cE52EB2a418c8cB004788B3 | GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn |
113
+ | 0xdABe8750061410D35cE52EB2a418c8cB004788B3 | GAnoyvy9p3QFyxikWDh9hA3fmSk2uiPLNWyQ579cckMn |
114
+
115
+ Or you can buy this `$BJBN (Bejibun)` tokens [here](https://pump.fun/coin/CQhbNnCGKfDaKXt8uE61i5DrBYJV7NPsCDD9vQgypump), beware of bots.
package/configure.js CHANGED
@@ -2,10 +2,13 @@ import App from "@bejibun/app";
2
2
  import Logger from "@bejibun/logger";
3
3
  import path from "path";
4
4
  const configPath = path.resolve(__dirname, "config");
5
+ const regex = /\.(m?js|ts)$/;
5
6
  const configs = Array.from(new Bun.Glob("**/*").scanSync({
6
7
  cwd: configPath
7
- }));
8
+ })).filter(value => (regex.test(value) &&
9
+ !value.endsWith(".d.ts")));
8
10
  for (const config of configs) {
9
- await Bun.write(App.Path.configPath(config), await Bun.file(path.resolve(configPath, config)).text());
10
- Logger.setContext("CONFIGURE").info(`Copying ${config} into config/${config}`);
11
+ const destination = config.replace(regex, ".ts");
12
+ await Bun.write(App.Path.configPath(destination), await Bun.file(path.resolve(configPath, config)).text());
13
+ Logger.setContext("CONFIGURE").info(`Copying ${config} into config/${destination}`);
11
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bejibun/redis",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "author": "Havea Crenata <havea.crenata@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",