@atproto/pds 0.4.26 → 0.4.27

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atproto/pds
2
2
 
3
+ ## 0.4.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2517](https://github.com/bluesky-social/atproto/pull/2517) [`1d4ab5d04`](https://github.com/bluesky-social/atproto/commit/1d4ab5d046aac4539658ee6d7e61882c54d5beb9) Thanks [@dholms](https://github.com/dholms)! - Fix a bad join on privileged app passwords.
8
+
9
+ - Updated dependencies [[`1d4ab5d04`](https://github.com/bluesky-social/atproto/commit/1d4ab5d046aac4539658ee6d7e61882c54d5beb9)]:
10
+ - @atproto/api@0.12.13
11
+
3
12
  ## 0.4.26
4
13
 
5
14
  ### Patch Changes
@@ -87,7 +87,9 @@ exports.storeRefreshToken = storeRefreshToken;
87
87
  const getRefreshToken = async (db, id) => {
88
88
  const res = await db.db
89
89
  .selectFrom('refresh_token')
90
- .leftJoin('app_password', 'app_password.name', 'refresh_token.appPasswordName')
90
+ .leftJoin('app_password', (join) => join
91
+ .onRef('app_password.did', '=', 'refresh_token.did')
92
+ .onRef('app_password.name', '=', 'refresh_token.appPasswordName'))
91
93
  .where('id', '=', id)
92
94
  .selectAll('refresh_token')
93
95
  .select('app_password.privileged')
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/account-manager/helpers/auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8DAAgC;AAEhC,2CAA4B;AAC5B,iDAAkC;AAClC,wDAAyC;AACzC,uDAA+C;AAYxC,MAAM,YAAY,GAAG,KAAK,EAAE,IAOlC,EAAE,EAAE;IACH,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,IAAI,CAAA;IAC/D,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,GAAG,MAAM,OAAO,CAA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GAAG,EAAE,GAAG,CAAC,CACzD,CAAA;IACD,OAAO,cAAc,GAAG,CAAC,CAAA;AAC3B,CAAC,CAAA;AALY,QAAA,wBAAwB,4BAKpC;AAEM,MAAM,6BAA6B,GAAG,KAAK,EAChD,EAAa,EACb,GAAW,EACX,WAAmB,EACnB,EAAE;IACF,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,gBAAgB,CACpD,EAAE,CAAC,EAAE;SACF,UAAU,CAAC,eAAe,CAAC;SAC3B,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,CAAC;SACtB,KAAK,CAAC,iBAAiB,EAAE,GAAG,EAAE,WAAW,CAAC,CAC9C,CAAA;IAED,OAAO,cAAc,GAAG,CAAC,CAAA;AAC3B,CAAC,CAAA;AAbY,QAAA,6BAA6B,iCAazC;AAEM,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACpC,OAAO,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAA;AACvD,CAAC,CAAA;AAFY,QAAA,iBAAiB,qBAE7B;AAEM,MAAM,WAAW,GAAG,CAAC,WAAmC,EAAa,EAAE;IAC5E,IAAI,CAAC,WAAW;QAAE,OAAO,yBAAS,CAAC,MAAM,CAAA;IACzC,OAAO,WAAW,CAAC,UAAU;QAC3B,CAAC,CAAC,yBAAS,CAAC,iBAAiB;QAC7B,CAAC,CAAC,yBAAS,CAAC,OAAO,CAAA;AACvB,CAAC,CAAA;AALY,QAAA,WAAW,eAKvB;AAED,MAAa,sBAAuB,SAAQ,KAAK;CAAG;AAApD,wDAAoD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.26",
3
+ "version": "0.4.27",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -43,12 +43,12 @@
43
43
  "typed-emitter": "^2.1.0",
44
44
  "uint8arrays": "3.0.0",
45
45
  "zod": "^3.21.4",
46
+ "@atproto/api": "^0.12.13",
46
47
  "@atproto/aws": "^0.2.0",
47
48
  "@atproto/common": "^0.4.0",
48
- "@atproto/api": "^0.12.12",
49
49
  "@atproto/crypto": "^0.4.0",
50
- "@atproto/lexicon": "^0.4.0",
51
50
  "@atproto/identity": "^0.4.0",
51
+ "@atproto/lexicon": "^0.4.0",
52
52
  "@atproto/repo": "^0.4.0",
53
53
  "@atproto/syntax": "^0.3.0",
54
54
  "@atproto/xrpc": "^0.5.0",
@@ -70,8 +70,8 @@
70
70
  "jest": "^28.1.2",
71
71
  "ts-node": "^10.8.2",
72
72
  "ws": "^8.12.0",
73
- "@atproto/api": "^0.12.12",
74
- "@atproto/bsky": "^0.0.54",
73
+ "@atproto/api": "^0.12.13",
74
+ "@atproto/bsky": "^0.0.55",
75
75
  "@atproto/lex-cli": "^0.4.0"
76
76
  },
77
77
  "scripts": {
@@ -107,10 +107,10 @@ export const storeRefreshToken = async (
107
107
  export const getRefreshToken = async (db: AccountDb, id: string) => {
108
108
  const res = await db.db
109
109
  .selectFrom('refresh_token')
110
- .leftJoin(
111
- 'app_password',
112
- 'app_password.name',
113
- 'refresh_token.appPasswordName',
110
+ .leftJoin('app_password', (join) =>
111
+ join
112
+ .onRef('app_password.did', '=', 'refresh_token.did')
113
+ .onRef('app_password.name', '=', 'refresh_token.appPasswordName'),
114
114
  )
115
115
  .where('id', '=', id)
116
116
  .selectAll('refresh_token')