Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
feat: bump version (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes authored Feb 1, 2023
1 parent 37207f8 commit a0ff9c8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion templates/javascript-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"license": "UNLICENSED",
"dependencies": {
"@sern/handler": "^2.0.0",
"@sern/handler": "^2.5.0",
"discord.js": "^14.7.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions templates/javascript-esm/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const client = new Client({
export const useContainer = Sern.makeDependencies({
build: (root) =>
root
.add({ '@sern/client': single(client) })
.add({ '@sern/logger': single(new DefaultLogging()) }),
.add({ '@sern/client': single(() => client) })
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
});

//View docs for all options
Expand Down
2 changes: 1 addition & 1 deletion templates/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"license": "UNLICENSED",
"dependencies": {
"@sern/handler": "^2.0.0",
"@sern/handler": "^2.5.0",
"discord.js": "^14.7.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions templates/javascript/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const client = new Client({
export const useContainer = Sern.makeDependencies({
build: (root) =>
root
.add({ '@sern/client': single(client) })
.add({ '@sern/logger': single(new DefaultLogging()) }),
.add({ '@sern/client': single(() => client) })
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
});

//View docs for all options
Expand Down
2 changes: 1 addition & 1 deletion templates/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"license": "UNLICENSED",
"dependencies": {
"@sern/handler": "^2.0.0",
"@sern/handler": "^2.5.0",
"discord.js": "^14.7.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions templates/typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ interface MyDependencies extends Dependencies {
export const useContainer = Sern.makeDependencies<MyDependencies>({
build: (root) =>
root
.add({ '@sern/client': single(client) })
.add({ '@sern/logger': single(new DefaultLogging()) }),
.add({ '@sern/client': single(() => client) })
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
});

//View docs for all options
Expand Down

0 comments on commit a0ff9c8

Please sign in to comment.