create-gramstax 0.2.1 → 0.2.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.
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "logging-pretty": "^3.0.0",
39
- "gramstax": "^0.2.0"
39
+ "gramstax": "^0.2.1"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "typescript": "5.9.3"
@@ -1,3 +1,3 @@
1
1
  import { CacheExternal } from "gramstax"
2
2
 
3
- export const ExternalCache = CacheExternal
3
+ export class ExternalCache extends CacheExternal {}
@@ -1,15 +1,12 @@
1
1
  import { env } from "./env"
2
2
  import { logUt } from "./utils/log"
3
3
  import { BotCore } from "./core/bot"
4
- import { MainThread } from "./threads/main"
5
4
  import { ExternalCache } from "./cache/external"
6
5
 
7
- new MainThread(() => {
8
- logUt.success(`Bot started..`)
6
+ logUt.success(`Bot started..`)
9
7
 
10
- new BotCore({
11
- token: env.BOT_TOKEN,
12
- deploy: env.BOT_DEPLOY,
13
- cacheSession: new ExternalCache(env.CACHE_SESSION, `session`, 24 * 60 * 60 * 1000)
14
- })
8
+ new BotCore({
9
+ token: env.BOT_TOKEN,
10
+ deploy: env.BOT_DEPLOY,
11
+ cacheSession: new ExternalCache(env.CACHE_SESSION, `session`, 24 * 60 * 60 * 1000)
15
12
  })
@@ -0,0 +1,3 @@
1
+ import { ThreadExport } from "gramstax"
2
+
3
+ export class ExportThread extends ThreadExport {}
@@ -0,0 +1,3 @@
1
+ import { ThreadMainPool } from "gramstax"
2
+
3
+ export class MainPoolThread extends ThreadMainPool {}
@@ -0,0 +1,3 @@
1
+ import { ThreadMain } from "gramstax"
2
+
3
+ export class MainThread extends ThreadMain {}
@@ -0,0 +1,3 @@
1
+ import { ThreadSub } from "gramstax"
2
+
3
+ export class SubThread extends ThreadSub {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gramstax",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,9 +0,0 @@
1
- import { isMainThread } from "bun"
2
-
3
- export class MainThread {
4
- public constructor(wrapCode: () => any) {
5
- if (isMainThread === true) {
6
- wrapCode()
7
- }
8
- }
9
- }