@daex-dev/sdk 0.0.0-stage → 0.8.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/LICENSE +21 -0
- package/README.md +478 -2
- package/dist/client-DVZHOtg6.d.cts +2635 -0
- package/dist/client-DVZHOtg6.d.ts +2635 -0
- package/dist/connect/browser.cjs +209 -0
- package/dist/connect/browser.d.cts +81 -0
- package/dist/connect/browser.d.ts +81 -0
- package/dist/connect/browser.js +183 -0
- package/dist/connect/index.cjs +1954 -0
- package/dist/connect/index.d.cts +433 -0
- package/dist/connect/index.d.ts +433 -0
- package/dist/connect/index.js +1888 -0
- package/dist/electron/global.cjs +18 -0
- package/dist/electron/global.d.cts +35 -0
- package/dist/electron/global.d.ts +35 -0
- package/dist/electron/global.js +0 -0
- package/dist/electron/index.cjs +1133 -0
- package/dist/electron/index.d.cts +510 -0
- package/dist/electron/index.d.ts +510 -0
- package/dist/electron/index.js +1073 -0
- package/dist/electron/preload-auto.cjs +38 -0
- package/dist/electron/preload.cjs +66 -0
- package/dist/electron/preload.d.cts +46 -0
- package/dist/electron/preload.d.ts +46 -0
- package/dist/electron/preload.js +43 -0
- package/dist/electron/protocol-DXRtliy3.d.cts +904 -0
- package/dist/electron/protocol-DXRtliy3.d.ts +904 -0
- package/dist/electron/renderer.cjs +631 -0
- package/dist/electron/renderer.d.cts +508 -0
- package/dist/electron/renderer.d.ts +508 -0
- package/dist/electron/renderer.global.js +634 -0
- package/dist/electron/renderer.js +608 -0
- package/dist/index.cjs +6731 -0
- package/dist/index.d.cts +316 -0
- package/dist/index.d.ts +316 -0
- package/dist/index.js +6661 -0
- package/dist/server.cjs +1019 -0
- package/dist/server.d.cts +118 -0
- package/dist/server.d.ts +118 -0
- package/dist/server.js +989 -0
- package/dist/testing.cjs +815 -0
- package/dist/testing.d.cts +29 -0
- package/dist/testing.d.ts +29 -0
- package/dist/testing.js +787 -0
- package/dist/types-DUGv-9QF.d.cts +166 -0
- package/dist/types-DUGv-9QF.d.ts +166 -0
- package/package.json +109 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/electron/global.ts
|
|
17
|
+
var global_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(global_exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { D as DaexBridge } from './protocol-DXRtliy3.cjs';
|
|
2
|
+
export { A as AdeBridge } from './protocol-DXRtliy3.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `@daex-dev/sdk/electron/global` — the type of `window.ade`.
|
|
6
|
+
*
|
|
7
|
+
* Types only. Import it once, for its side effect on the type checker, in any
|
|
8
|
+
* file of a renderer that reads the bridge:
|
|
9
|
+
*
|
|
10
|
+
* import "@daex-dev/sdk/electron/global";
|
|
11
|
+
* const client = createDaexIpcClient(window.ade);
|
|
12
|
+
*
|
|
13
|
+
* or list it in `tsconfig.json` `compilerOptions.types`. It declares the
|
|
14
|
+
* default key only: a preload that passed `exposeDaexBridge(..., { key })`
|
|
15
|
+
* with another name should declare `interface Window { <name>: DaexBridge }`
|
|
16
|
+
* itself.
|
|
17
|
+
*
|
|
18
|
+
* The emitted JavaScript is empty, so importing it at run time costs nothing
|
|
19
|
+
* and is safe under a strict CSP.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
declare global {
|
|
23
|
+
interface Window {
|
|
24
|
+
/**
|
|
25
|
+
* The bridge `exposeDaexBridge` put on `window` (default key `"ade"`).
|
|
26
|
+
* Optional since SDK 0.4: a preload that failed to load leaves it
|
|
27
|
+
* undefined, and a host can check that without a cast.
|
|
28
|
+
* `createDaexIpcClient(window.ade)` still type-checks, and throws
|
|
29
|
+
* `invalid_option` when it is missing.
|
|
30
|
+
*/
|
|
31
|
+
ade?: DaexBridge;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { DaexBridge };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { D as DaexBridge } from './protocol-DXRtliy3.js';
|
|
2
|
+
export { A as AdeBridge } from './protocol-DXRtliy3.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `@daex-dev/sdk/electron/global` — the type of `window.ade`.
|
|
6
|
+
*
|
|
7
|
+
* Types only. Import it once, for its side effect on the type checker, in any
|
|
8
|
+
* file of a renderer that reads the bridge:
|
|
9
|
+
*
|
|
10
|
+
* import "@daex-dev/sdk/electron/global";
|
|
11
|
+
* const client = createDaexIpcClient(window.ade);
|
|
12
|
+
*
|
|
13
|
+
* or list it in `tsconfig.json` `compilerOptions.types`. It declares the
|
|
14
|
+
* default key only: a preload that passed `exposeDaexBridge(..., { key })`
|
|
15
|
+
* with another name should declare `interface Window { <name>: DaexBridge }`
|
|
16
|
+
* itself.
|
|
17
|
+
*
|
|
18
|
+
* The emitted JavaScript is empty, so importing it at run time costs nothing
|
|
19
|
+
* and is safe under a strict CSP.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
declare global {
|
|
23
|
+
interface Window {
|
|
24
|
+
/**
|
|
25
|
+
* The bridge `exposeDaexBridge` put on `window` (default key `"ade"`).
|
|
26
|
+
* Optional since SDK 0.4: a preload that failed to load leaves it
|
|
27
|
+
* undefined, and a host can check that without a cast.
|
|
28
|
+
* `createDaexIpcClient(window.ade)` still type-checks, and throws
|
|
29
|
+
* `invalid_option` when it is missing.
|
|
30
|
+
*/
|
|
31
|
+
ade?: DaexBridge;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { DaexBridge };
|
|
File without changes
|