@relyio/sdk 0.6.0 → 0.7.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/CHANGELOG.md +370 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/{chunk-DY2XT7OF.cjs → chunk-72UK5U7T.cjs} +70 -60
- package/dist/{chunk-7ABNXVWL.js → chunk-GYHAVYND.js} +777 -399
- package/dist/{chunk-I3ESNANB.js → chunk-H6IBQSMM.js} +2 -2
- package/dist/{chunk-HT6NFRM2.cjs → chunk-TZL374LS.cjs} +2 -2
- package/dist/{chunk-GCMQUM6N.cjs → chunk-VH2DE7HZ.cjs} +776 -402
- package/dist/{chunk-XJVY2CLY.js → chunk-YEJUMW4X.js} +70 -60
- package/dist/client/index.cjs +4 -3
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +2 -1
- package/dist/{index-d1Kz1e19.d.cts → define-content-type-DiVpbwNs.d.cts} +1615 -684
- package/dist/{index-yPbhZc6q.d.ts → define-content-type-DiVpbwNs.d.ts} +1615 -684
- package/dist/{define-schema-1kr2HIzN.d.cts → define-schema-C-5an28C.d.ts} +189 -85
- package/dist/{define-schema-ChvAzY8H.d.ts → define-schema-D7MButVt.d.cts} +189 -85
- package/dist/{index-XqoGUaAY.d.ts → index-1G97sNA8.d.ts} +489 -267
- package/dist/index-BOQIHnsh.d.ts +818 -0
- package/dist/index-DbsTUw3Q.d.cts +818 -0
- package/dist/{index-Df1VsfJR.d.cts → index-M0X45k7J.d.cts} +489 -267
- package/dist/index.cjs +98 -114
- package/dist/index.d.cts +31 -31
- package/dist/index.d.ts +31 -31
- package/dist/index.js +8 -8
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +13 -11
- package/dist/schema/index.d.ts +13 -11
- package/dist/schema/index.js +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/index.cjs +19 -19
- package/dist/utils/index.d.cts +10 -1
- package/dist/utils/index.d.ts +10 -1
- package/dist/utils/index.js +1 -1
- package/package.json +4 -3
- package/dist/define-content-type-CDB3kyeA.d.cts +0 -1173
- package/dist/define-content-type-CDB3kyeA.d.ts +0 -1173
package/dist/utils/index.cjs
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTZL374LS_cjs = require('../chunk-TZL374LS.cjs');
|
|
4
4
|
require('../chunk-MWMSFIWN.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "camelToSnake", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkTZL374LS_cjs.camelToSnake; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createDeferred", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkTZL374LS_cjs.createDeferred; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "debounce", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkTZL374LS_cjs.debounce; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "deepClone", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkTZL374LS_cjs.deepClone; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "generateId", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkTZL374LS_cjs.generateId; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "isBrowser", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkTZL374LS_cjs.isBrowser; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "isNode", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkTZL374LS_cjs.isNode; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "isPlainObject", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkTZL374LS_cjs.isPlainObject; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "isValidEmail", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkTZL374LS_cjs.isValidEmail; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "isValidUrl", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkTZL374LS_cjs.isValidUrl; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "mergeDeep", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkTZL374LS_cjs.mergeDeep; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "omit", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkTZL374LS_cjs.omit; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "pick", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkTZL374LS_cjs.pick; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "retry", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkTZL374LS_cjs.retry; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "sleep", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkTZL374LS_cjs.sleep; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "snakeToCamel", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkTZL374LS_cjs.snakeToCamel; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "throttle", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkTZL374LS_cjs.throttle; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "toSafeString", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkTZL374LS_cjs.toSafeString; }
|
|
79
79
|
});
|
|
80
80
|
//# sourceMappingURL=index.cjs.map
|
|
81
81
|
//# sourceMappingURL=index.cjs.map
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
* Utility functions for the RelyIO SDK
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether code is running in a browser page: a global `window` that has a `document`.
|
|
6
|
+
*
|
|
7
|
+
* The one definition. The HTTP client asks it for its `User-Agent`, `credentials` mode, CORS hook
|
|
8
|
+
* and forbidden-header filter, `@relyio/react`'s `live` for its refusal and the preview toolbar for
|
|
9
|
+
* its mount check, so none of them can disagree. A `window` alone is not enough: Deno 1.x's global
|
|
10
|
+
* object is a `window` with no `document`, and it is a server runtime. A Web Worker has neither and
|
|
11
|
+
* is not a page either.
|
|
12
|
+
*
|
|
13
|
+
* This is the one file under `packages/customer` where `typeof window` is written; the
|
|
14
|
+
* `browser-check` lint fence refuses it anywhere else in a customer package (REL-1409).
|
|
6
15
|
*/
|
|
7
16
|
declare function isBrowser(): boolean;
|
|
8
17
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
* Utility functions for the RelyIO SDK
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Whether code is running in a browser page: a global `window` that has a `document`.
|
|
6
|
+
*
|
|
7
|
+
* The one definition. The HTTP client asks it for its `User-Agent`, `credentials` mode, CORS hook
|
|
8
|
+
* and forbidden-header filter, `@relyio/react`'s `live` for its refusal and the preview toolbar for
|
|
9
|
+
* its mount check, so none of them can disagree. A `window` alone is not enough: Deno 1.x's global
|
|
10
|
+
* object is a `window` with no `document`, and it is a server runtime. A Web Worker has neither and
|
|
11
|
+
* is not a page either.
|
|
12
|
+
*
|
|
13
|
+
* This is the one file under `packages/customer` where `typeof window` is written; the
|
|
14
|
+
* `browser-check` lint fence refuses it anywhere else in a customer package (REL-1409).
|
|
6
15
|
*/
|
|
7
16
|
declare function isBrowser(): boolean;
|
|
8
17
|
/**
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-
|
|
1
|
+
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString } from '../chunk-H6IBQSMM.js';
|
|
2
2
|
import '../chunk-XQ4QHWZE.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"relyio"
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"typedoc": "^0.28.20",
|
|
86
86
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
87
87
|
"vitest": "4.1.11",
|
|
88
|
-
"@relyio/
|
|
89
|
-
"@relyio/
|
|
88
|
+
"@relyio/eslint-config": "0.0.0",
|
|
89
|
+
"@relyio/api-contract": "0.1.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"typescript": ">=4.9.0"
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
"test:coverage": "vitest --coverage",
|
|
134
134
|
"test:ui": "vitest --ui",
|
|
135
135
|
"type:check": "tsc --noEmit && tsc --noEmit -p tsconfig.register-types.json",
|
|
136
|
+
"test:types": "tsc --noEmit -p tsconfig.test.json",
|
|
136
137
|
"codegen:openapi": "node ../../../scripts/emit-openapi-types.mjs ../../../apps/services/api/openapi-spec.json src/http/api-schema.ts",
|
|
137
138
|
"lint:write": "relyio-lint --fix",
|
|
138
139
|
"lint:check": "relyio-lint",
|