@atproto/oauth-provider 0.6.1 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atproto/oauth-provider
2
2
 
3
+ ## 0.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3681](https://github.com/bluesky-social/atproto/pull/3681) [`a5a760c1f`](https://github.com/bluesky-social/atproto/commit/a5a760c1f0efd7246c9eebbc0f482d2f505de0a1) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Allow null hostname in hcaptcha result
8
+
3
9
  ## 0.6.1
4
10
 
5
11
  ### Patch Changes
@@ -141,7 +141,7 @@ class HCaptchaClient {
141
141
  return (success &&
142
142
  // Fool-proofing: If this is false, the user is trying to use a token
143
143
  // generated for the same siteKey, but on another domain.
144
- hostname === this.hostname &&
144
+ (hostname == null || hostname === this.hostname) &&
145
145
  // Ignore if enterprise feature is not enabled
146
146
  (score == null ||
147
147
  // Ignore if disabled through config
@@ -1 +1 @@
1
- {"version":3,"file":"hcaptcha.js","sourceRoot":"","sources":["../../src/lib/hcaptcha.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,6BAAuB;AACvB,+CAO4B;AAC5B,6CAAyC;AAE5B,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;AAGvC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C;;OAEG;IACH,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B;;OAEG;IACH,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B;;;;;;OAMG;IACH,cAAc,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AAC,CAAA;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QAClC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QAClB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACzC,CAAC;CACF;AA9DD,wCA8DC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/oauth-provider",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "license": "MIT",
5
5
  "description": "Generic OAuth2 and OpenID Connect provider for Node.js. Currently only supports features needed for Atproto.",
6
6
  "keywords": [
@@ -43,16 +43,16 @@
43
43
  "jose": "^5.2.0",
44
44
  "psl": "^1.9.0",
45
45
  "zod": "^3.23.8",
46
- "@atproto-labs/fetch": "0.2.2",
47
46
  "@atproto-labs/fetch-node": "0.1.8",
47
+ "@atproto-labs/fetch": "0.2.2",
48
48
  "@atproto-labs/pipe": "0.1.0",
49
49
  "@atproto-labs/simple-store": "0.1.2",
50
50
  "@atproto-labs/simple-store-memory": "0.1.2",
51
+ "@atproto/common": "^0.4.8",
51
52
  "@atproto/jwk": "0.1.4",
52
53
  "@atproto/jwk-jose": "0.1.5",
53
54
  "@atproto/oauth-types": "0.2.4",
54
55
  "@atproto/oauth-provider-api": "0.0.1",
55
- "@atproto/common": "^0.4.8",
56
56
  "@atproto/oauth-provider-ui": "0.0.2",
57
57
  "@atproto/syntax": "0.4.0"
58
58
  },
@@ -168,7 +168,7 @@ export class HCaptchaClient {
168
168
  success &&
169
169
  // Fool-proofing: If this is false, the user is trying to use a token
170
170
  // generated for the same siteKey, but on another domain.
171
- hostname === this.hostname &&
171
+ (hostname == null || hostname === this.hostname) &&
172
172
  // Ignore if enterprise feature is not enabled
173
173
  (score == null ||
174
174
  // Ignore if disabled through config