@owlmeans/client-payment 0.1.18-rc.56 → 0.1.18-rc.58

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
@@ -12,7 +12,7 @@ Client-side payment service integration for the OwlMeans context system.
12
12
  ## Installation
13
13
 
14
14
  ```bash
15
- bun add @owlmeans/client-payment@^0.1.18-rc.56
15
+ bun add @owlmeans/client-payment@^0.1.18-rc.58
16
16
  ```
17
17
 
18
18
  ## Usage
@@ -58,7 +58,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
58
58
  your project's skill store (`.agents/skills/`):
59
59
 
60
60
  ```sh
61
- npx @owlmeans/agent-skills@^0.1.18-rc.48
61
+ npx @owlmeans/agent-skills@^0.1.18-rc.51
62
62
  ```
63
63
 
64
64
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/client-payment",
4
- "version": "0.1.18-rc.56",
5
- "generatedAt": "2026-10-05T08:32:19.105Z",
4
+ "version": "0.1.18-rc.58",
5
+ "generatedAt": "2026-10-06T11:45:57.662Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/client-payment
9
9
 
10
10
  **Layer:** Client
11
- **Install:** `"@owlmeans/client-payment": "^0.1.18-rc.56"` in `dependencies` (peer `react`)
11
+ **Install:** `"@owlmeans/client-payment": "^0.1.18-rc.58"` in `dependencies` (peer `react`)
12
12
 
13
13
  The same `PaymentService` as `@owlmeans/payment`, with one method adapted for a browser. Everything
14
14
  else — catalogue reads, entitlement helpers and protocol objects — comes from the core package.
@@ -1,5 +1,5 @@
1
- import { makePaymentService as makeService } from '@owlmeans/payment';
2
- import type { appendPaymentService as appendService } from '@owlmeans/payment';
3
- export declare const makePaymentService: typeof makeService;
4
- export declare const appendPaymentService: typeof appendService;
1
+ import type { Config, Context } from '@owlmeans/payment/utils';
2
+ import { type PaymentService } from '@owlmeans/payment';
3
+ export declare const makePaymentService: (alias?: string) => PaymentService;
4
+ export declare const appendPaymentService: <C extends Config, T extends Context<C>>(context: T, alias?: string) => T;
5
5
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,IAAI,WAAW,EAA8B,MAAM,mBAAmB,CAAA;AACjG,OAAO,KAAK,EAAE,oBAAoB,IAAI,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAI9E,eAAO,MAAM,kBAAkB,EAAE,OAAO,WAwBvC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,OAAO,aACU,CAAA"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAG9D,OAAO,EAAiE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAItH,eAAO,MAAM,kBAAkB,WAAY,MAAM,KAAG,cAwBnD,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,MAAM,KAAG,CACtD,CAAA"}
package/build/service.js CHANGED
@@ -2,7 +2,7 @@ import { AUTH_RESOURCE } from '@owlmeans/client-auth';
2
2
  import { makePaymentService as makeService, PaymentIdentificationError } from '@owlmeans/payment';
3
3
  import { assertContext } from '@owlmeans/context';
4
4
  import { SHALLOW_AUTH } from './consts.js';
5
- export const makePaymentService = alias => {
5
+ export const makePaymentService = (alias) => {
6
6
  const service = makeService(alias);
7
7
  const shallowAuthentication = service.shallowAuthentication;
8
8
  service.shallowAuthentication = async (token) => {
@@ -1 +1 @@
1
- {"version":3,"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SAAS,CAAA;IAClB,CAAC,CAAA;IAED,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAyC,OAAU,EAAE,KAAc,EAAK,EAAE,CAC5G,OAAO,CAAC,eAAe,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/client-payment",
3
- "version": "0.1.18-rc.56",
3
+ "version": "0.1.18-rc.58",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,9 +21,9 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/client-auth": "^0.1.18-rc.57",
25
- "@owlmeans/context": "^0.1.18-rc.33",
26
- "@owlmeans/payment": "^0.1.18-rc.47"
24
+ "@owlmeans/client-auth": "^0.1.18-rc.59",
25
+ "@owlmeans/context": "^0.1.18-rc.34",
26
+ "@owlmeans/payment": "^0.1.18-rc.49"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "*"
package/src/service.ts CHANGED
@@ -1,12 +1,11 @@
1
- import type { Context } from '@owlmeans/payment/utils'
1
+ import type { Config, Context } from '@owlmeans/payment/utils'
2
2
  import type { ClientAuthResource } from '@owlmeans/client-auth'
3
3
  import { AUTH_RESOURCE } from '@owlmeans/client-auth'
4
- import { makePaymentService as makeService, PaymentIdentificationError } from '@owlmeans/payment'
5
- import type { appendPaymentService as appendService } from '@owlmeans/payment'
4
+ import { makePaymentService as makeService, PaymentIdentificationError, type PaymentService } from '@owlmeans/payment'
6
5
  import { assertContext } from '@owlmeans/context'
7
6
  import { SHALLOW_AUTH } from './consts.js'
8
7
 
9
- export const makePaymentService: typeof makeService = alias => {
8
+ export const makePaymentService = (alias?: string): PaymentService => {
10
9
  const service = makeService(alias)
11
10
 
12
11
  const shallowAuthentication = service.shallowAuthentication
@@ -32,5 +31,5 @@ export const makePaymentService: typeof makeService = alias => {
32
31
  return service
33
32
  }
34
33
 
35
- export const appendPaymentService: typeof appendService = (context, alias) =>
34
+ export const appendPaymentService = <C extends Config, T extends Context<C>>(context: T, alias?: string): T =>
36
35
  context.registerService(makePaymentService(alias))