Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
koishi-plugin-cache-aragami
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3rdeye
koishi-plugin-cache-aragami
Commits
4b54bedf
Commit
4b54bedf
authored
Aug 03, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bump aragami
parent
3ec319e4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
+15
-10
package-lock.json
package-lock.json
+7
-7
package.json
package.json
+1
-1
src/index.ts
src/index.ts
+7
-2
No files found.
package-lock.json
View file @
4b54bedf
...
...
@@ -9,7 +9,7 @@
"version"
:
"2.0.2"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"aragami"
:
"^1.
0.5
"
,
"aragami"
:
"^1.
1.1
"
,
"koishi-thirdeye"
:
"^11.0.7"
},
"devDependencies"
:
{
...
...
@@ -2171,9 +2171,9 @@
}
},
"node_modules/aragami"
:
{
"version"
:
"1.
0.5
"
,
"resolved"
:
"https://registry.npmjs.org/aragami/-/aragami-1.
0.5
.tgz"
,
"integrity"
:
"sha512-
tOxYCmmzofROISB3DVBqunDo9fvYuwmBNLBKxxYWxtZd9d+z+5Mg3coky4Ia3eKwVLou4eGxv8UzihsWprno5Q
=="
,
"version"
:
"1.
1.1
"
,
"resolved"
:
"https://registry.npmjs.org/aragami/-/aragami-1.
1.1
.tgz"
,
"integrity"
:
"sha512-
fFqgoNkDWpjgytosny/NPm/My1I8VjOVc+ltcKUGMMcW5Cep2Pq/2pe4ViNGhUEVCKUrlk13MdNwUgJsrYMRlw
=="
,
"dependencies"
:
{
"@nanahira/redlock"
:
"^1.0.0"
,
"better-lock"
:
"^2.0.3"
,
...
...
@@ -9754,9 +9754,9 @@
}
},
"aragami"
:
{
"version"
:
"1.
0.5
"
,
"resolved"
:
"https://registry.npmjs.org/aragami/-/aragami-1.
0.5
.tgz"
,
"integrity"
:
"sha512-
tOxYCmmzofROISB3DVBqunDo9fvYuwmBNLBKxxYWxtZd9d+z+5Mg3coky4Ia3eKwVLou4eGxv8UzihsWprno5Q
=="
,
"version"
:
"1.
1.1
"
,
"resolved"
:
"https://registry.npmjs.org/aragami/-/aragami-1.
1.1
.tgz"
,
"integrity"
:
"sha512-
fFqgoNkDWpjgytosny/NPm/My1I8VjOVc+ltcKUGMMcW5Cep2Pq/2pe4ViNGhUEVCKUrlk13MdNwUgJsrYMRlw
=="
,
"requires"
:
{
"@nanahira/redlock"
:
"^1.0.0"
,
"better-lock"
:
"^2.0.3"
,
...
...
package.json
View file @
4b54bedf
...
...
@@ -44,7 +44,7 @@
"testEnvironment"
:
"node"
},
"dependencies"
:
{
"
aragami
"
:
"
^1.
0.5
"
,
"
aragami
"
:
"
^1.
1.1
"
,
"
koishi-thirdeye
"
:
"
^11.0.7
"
},
"peerDependencies"
:
{
...
...
src/index.ts
View file @
4b54bedf
...
...
@@ -2,6 +2,7 @@
import
{
AragamiConfig
}
from
'
./config
'
;
import
{
DefinePlugin
,
LifecycleEvents
,
PartialDeep
,
PluginSchema
,
Provide
,
...
...
@@ -20,15 +21,19 @@ declare module 'koishi' {
@
PluginSchema
(
AragamiConfig
)
@
Provide
(
'
aragami
'
,
{
immediate
:
true
})
@
DefinePlugin
({
name
:
'
cache-aragami
'
})
export
default
class
AragamiPlugin
extends
Aragami
{
export
default
class
AragamiPlugin
extends
Aragami
implements
LifecycleEvents
{
constructor
(
ctx
:
Context
,
_config
:
PartialDeep
<
AragamiConfig
>
&
AragamiOptions
,
)
{
super
(
_config
.
getConfig
());
}
onDisconnect
()
{
return
this
.
destroy
();
}
}
export
const
{
UseCache
,
UseLock
}
=
new
WrapDecoratorBuilder
(
(
o
)
=>
o
.
__ctx
.
aragami
,
(
o
)
=>
((
o
.
ctx
||
o
.
__ctx
)
as
Context
)
.
aragami
,
).
build
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment