@orangecheck/me-client 0.32.3 → 0.32.4

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @orangecheck/me-client
2
2
 
3
- > **Full reference:** [docs.ochk.io/sdk/me-client](https://docs.ochk.io/sdk/me-client) — auto-generated from the TypeScript source on every release.
3
+ > **Full reference:** [ochk.io/docs/sdk/me-client](https://ochk.io/docs/sdk/me-client) — auto-generated from the TypeScript source on every release.
4
4
  > Hand-written prose below is the high-level overview; the docs site is the source of truth for every export, type, and signature.
5
5
 
6
6
 
@@ -153,7 +153,7 @@ const unsubscribe = onTelemetry((event) => {
153
153
  });
154
154
  ```
155
155
 
156
- See [me.ochk.io/integrate](https://me.ochk.io/integrate) for the full price-band table, the "what you do not pay for" panel, and the live SDK reference.
156
+ See [ochk.app/pricing](https://ochk.app/pricing) for what each kind of event pays and what you never pay for, and [ochk.io/docs/me/sdk](https://ochk.io/docs/me/sdk) for the full SDK reference.
157
157
 
158
158
  ## Types
159
159
 
@@ -170,7 +170,7 @@ import type {
170
170
  } from '@orangecheck/me-client';
171
171
  ```
172
172
 
173
- The canonical source of truth lives at [oc-me-web/src/lib/events/types.ts](https://github.com/orangecheck/oc-me-web/blob/main/src/lib/events/types.ts). This package mirrors that shape — any change there ships here in the next minor.
173
+ These mirror what the me.ochk.io API accepts and returns. A change to the API ships here in the next minor.
174
174
 
175
175
  ## Server-side verification
176
176
 
package/dist/index.js CHANGED
@@ -1037,6 +1037,7 @@ async function defaultLive() {
1037
1037
  var federations = { list, live, get, defaultLive };
1038
1038
 
1039
1039
  // src/scope.ts
1040
+ var CONSENT_ORIGIN = "https://ochk.app";
1040
1041
  var VALID_SCOPES = [
1041
1042
  "bitcoin_address",
1042
1043
  "email",
@@ -1092,7 +1093,7 @@ function request(scopes2, options) {
1092
1093
  if (typeof window === "undefined") {
1093
1094
  throw new Error("oc.scope.request: must be called in a browser environment");
1094
1095
  }
1095
- const origin2 = options.origin ?? getOrigin();
1096
+ const origin2 = options.origin ?? CONSENT_ORIGIN;
1096
1097
  const url = new URL("/me/scope-grant", origin2);
1097
1098
  url.searchParams.set("project_key", options.project_key);
1098
1099
  url.searchParams.set("scopes", scopes2.join(","));