sendscript 2.3.7 → 2.3.9
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
CHANGED
|
@@ -4,8 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v2.3.9](https://github.com/bas080/sendscript/compare/v2.3.8...v2.3.9)
|
|
8
|
+
|
|
9
|
+
- Remove schema description from reference and schema shape [`7126829`](https://github.com/bas080/sendscript/commit/7126829b5968588d7c9377ee643b88465f3fe16e)
|
|
10
|
+
|
|
11
|
+
#### [v2.3.8](https://github.com/bas080/sendscript/compare/v2.3.7...v2.3.8)
|
|
12
|
+
|
|
13
|
+
> 14 April 2026
|
|
14
|
+
|
|
15
|
+
- Move typedoc dep to dev deps [`a084b1d`](https://github.com/bas080/sendscript/commit/a084b1dad2f76ceb3b79fac390210f1ccfa368f8)
|
|
16
|
+
|
|
7
17
|
#### [v2.3.7](https://github.com/bas080/sendscript/compare/v2.3.6...v2.3.7)
|
|
8
18
|
|
|
19
|
+
> 14 April 2026
|
|
20
|
+
|
|
9
21
|
- Fix missing schema node type [`afb2d1b`](https://github.com/bas080/sendscript/commit/afb2d1b8cba4406c659db1f76f79b4e1de3d1872)
|
|
10
22
|
|
|
11
23
|
#### [v2.3.6](https://github.com/bas080/sendscript/compare/v2.3.5...v2.3.6)
|
package/README.md
CHANGED
|
@@ -157,15 +157,10 @@ Returns **(any | [Promise](https://developer.mozilla.org/docs/Web/JavaScript/Ref
|
|
|
157
157
|
|
|
158
158
|
Builds a nested API structure from a schema definition.
|
|
159
159
|
|
|
160
|
-
Schema supports:
|
|
161
|
-
|
|
162
|
-
* string => leaf function node
|
|
163
|
-
* \[name, children] => namespace with nested schema
|
|
164
|
-
|
|
165
160
|
#### Parameters
|
|
166
161
|
|
|
167
162
|
* `schema` **[Schema](#schema)** 
|
|
168
|
-
* `parentPath`
|
|
163
|
+
* `parentPath` (optional, default `[]`)
|
|
169
164
|
|
|
170
165
|
<!---->
|
|
171
166
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **add**(`a`, `b`): `number`
|
|
10
10
|
|
|
11
|
-
Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/
|
|
11
|
+
Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/7126829b5968588d7c9377ee643b88465f3fe16e/example/typescript/math.ts#L1)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **square**(`a`): `number`
|
|
10
10
|
|
|
11
|
-
Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/
|
|
11
|
+
Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/7126829b5968588d7c9377ee643b88465f3fe16e/example/typescript/math.ts#L2)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sendscript",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.9",
|
|
4
4
|
"description": "Blur the line between server and client code.",
|
|
5
5
|
"module": true,
|
|
6
6
|
"main": "index.mjs",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"superjson": "^2.2.6",
|
|
28
28
|
"tap": "^21.6.3",
|
|
29
|
-
"tape-check": "^1.0.0-rc.0"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
|
-
"debug": "^4.4.3",
|
|
29
|
+
"tape-check": "^1.0.0-rc.0",
|
|
33
30
|
"typedoc": "^0.28.18",
|
|
34
31
|
"typedoc-plugin-markdown": "^4.11.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"debug": "^4.4.3"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/references.mjs
CHANGED
|
@@ -100,12 +100,7 @@ function instrument (path) {
|
|
|
100
100
|
/**
|
|
101
101
|
* Builds a nested API structure from a schema definition.
|
|
102
102
|
*
|
|
103
|
-
* Schema supports:
|
|
104
|
-
* - string => leaf function node
|
|
105
|
-
* - [name, children] => namespace with nested schema
|
|
106
|
-
*
|
|
107
103
|
* @param {Schema} schema
|
|
108
|
-
* @param {Array<string>} [parentPath=[]]
|
|
109
104
|
* @returns {Object} Nested instrumented API object
|
|
110
105
|
*
|
|
111
106
|
* @throws {Error} If schema format is invalid
|