@peable.to/contracts 5.1.0 → 5.2.0
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/dist/cjs/vocabulary/index.js +1 -0
- package/dist/cjs/vocabulary/realtime.js +17 -0
- package/dist/esm/vocabulary/index.js +1 -0
- package/dist/esm/vocabulary/realtime.js +14 -0
- package/dist/types/vocabulary/index.d.ts +1 -0
- package/dist/types/vocabulary/realtime.d.ts +14 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PAYER_SOCKET_PATH = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
|
|
6
|
+
* hear its payment move, by the intent's `client_secret` alone.
|
|
7
|
+
*
|
|
8
|
+
* It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
|
|
9
|
+
* one, because Socket.IO decides CORS per server (per engine), before it
|
|
10
|
+
* knows which namespace or token a connection carries. The payer server
|
|
11
|
+
* answers any origin and takes no credentials — the same rule as the payer
|
|
12
|
+
* HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
|
|
13
|
+
* Peable, and the capability is the secret, never the page. The default
|
|
14
|
+
* server keeps the Oxy origins (`createOxySocketCors`) for every socket that
|
|
15
|
+
* carries an Oxy identity.
|
|
16
|
+
*/
|
|
17
|
+
exports.PAYER_SOCKET_PATH = '/payer-socket.io';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
|
|
3
|
+
* hear its payment move, by the intent's `client_secret` alone.
|
|
4
|
+
*
|
|
5
|
+
* It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
|
|
6
|
+
* one, because Socket.IO decides CORS per server (per engine), before it
|
|
7
|
+
* knows which namespace or token a connection carries. The payer server
|
|
8
|
+
* answers any origin and takes no credentials — the same rule as the payer
|
|
9
|
+
* HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
|
|
10
|
+
* Peable, and the capability is the secret, never the page. The default
|
|
11
|
+
* server keeps the Oxy origins (`createOxySocketCors`) for every socket that
|
|
12
|
+
* carries an Oxy identity.
|
|
13
|
+
*/
|
|
14
|
+
export const PAYER_SOCKET_PATH = '/payer-socket.io';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The PAYER realtime endpoint: the Socket.IO path a payer's browser opens to
|
|
3
|
+
* hear its payment move, by the intent's `client_secret` alone.
|
|
4
|
+
*
|
|
5
|
+
* It is a SEPARATE Socket.IO server from the gateway's default `/socket.io/`
|
|
6
|
+
* one, because Socket.IO decides CORS per server (per engine), before it
|
|
7
|
+
* knows which namespace or token a connection carries. The payer server
|
|
8
|
+
* answers any origin and takes no credentials — the same rule as the payer
|
|
9
|
+
* HTTP routes (`lib/payerCors.ts`): a merchant's own site runs Pay with
|
|
10
|
+
* Peable, and the capability is the secret, never the page. The default
|
|
11
|
+
* server keeps the Oxy origins (`createOxySocketCors`) for every socket that
|
|
12
|
+
* carries an Oxy identity.
|
|
13
|
+
*/
|
|
14
|
+
export declare const PAYER_SOCKET_PATH = "/payer-socket.io";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peable.to/contracts",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "The Peable wire, declared once: Zod contracts of every public route, the OpenAPI 3.1 generator and the closed value sets (ADR 0014 D5).",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|