@baeta/subscriptions-pubsub 2.0.0-next.7 → 2.0.0-next.8
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 +2 -0
- package/README.md +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div align="center">
|
|
6
6
|
<h1>Baeta</h1>
|
|
7
7
|
<a href="https://www.npmjs.com/package/@baeta/cli"><img src="https://img.shields.io/npm/v/@baeta/cli.svg?style=flat" /></a>
|
|
8
|
-
<a href="https://github.com/andreisergiu98/baeta/actions/workflows/
|
|
8
|
+
<a href="https://github.com/andreisergiu98/baeta/actions/workflows/checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/andreisergiu98/baeta/checks.yml" /></a>
|
|
9
9
|
<a href="https://github.com/andreisergiu98/baeta/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" /></a>
|
|
10
10
|
<a href="https://github.com/andreisergiu98/baeta/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" /></a>
|
|
11
11
|
<br />
|
|
@@ -103,7 +103,7 @@ import { UserModule } from "./typedef.ts";
|
|
|
103
103
|
const { Query } = UserModule;
|
|
104
104
|
|
|
105
105
|
const userQuery = Query.user
|
|
106
|
-
|
|
106
|
+
.$auth({
|
|
107
107
|
$or: {
|
|
108
108
|
isPublic: true,
|
|
109
109
|
isLoggedIn: true,
|
|
@@ -122,10 +122,10 @@ const { Query, Mutation, User } = UserModule;
|
|
|
122
122
|
export const userCache = User.$createCache();
|
|
123
123
|
|
|
124
124
|
const userQuery = Query.user
|
|
125
|
-
|
|
125
|
+
.$auth({
|
|
126
126
|
// ...
|
|
127
127
|
})
|
|
128
|
-
|
|
128
|
+
.$useCache(userCache)
|
|
129
129
|
.resolve(async ({ args }) => {
|
|
130
130
|
// ...
|
|
131
131
|
});
|