sendscript 1.0.2 → 1.0.3

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,15 @@ 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
+ #### [v1.0.3](https://github.com/bas080/sendscript/compare/v1.0.2...v1.0.3)
8
+
9
+ - Make examples import module not relative file [`0a5e1c8`](https://github.com/bas080/sendscript/commit/0a5e1c8ec2527d63d1e248f63568668058de388c)
10
+ - Fix repository url in package.json [`d4f1e79`](https://github.com/bas080/sendscript/commit/d4f1e79a75daea28905c9b680b31e517526588d3)
11
+
7
12
  #### [v1.0.2](https://github.com/bas080/sendscript/compare/v1.0.1...v1.0.2)
8
13
 
14
+ > 4 May 2025
15
+
9
16
  - Improve the typescript example [`6f75ed6`](https://github.com/bas080/sendscript/commit/6f75ed6a4b4db94217fde41ae50bc6b92a2cffda)
10
17
  - Move errors to own module [`90d69a3`](https://github.com/bas080/sendscript/commit/90d69a337f92518c8dd5c2ad47dd9b1add80d0c3)
11
18
 
package/README.md CHANGED
@@ -33,7 +33,11 @@ needs.
33
33
  For this example we'll use [socket.io][socket.io].
34
34
 
35
35
  ```bash
36
- npm install --no-save socket.io socket.io-client
36
+ npm link &&
37
+ npm install --no-save \
38
+ socket.io \
39
+ socket.io-client \
40
+ sendscript
37
41
  ```
38
42
 
39
43
  > We use the `--no-save` option because it's only for demonstration purposes.
@@ -57,7 +61,7 @@ Here a socket.io server that runs SendScript programs.
57
61
  // ./example/server.socket.io.mjs
58
62
 
59
63
  import { Server } from 'socket.io'
60
- import Parse from '../parse.mjs'
64
+ import Parse from 'sendscript/parse.mjs'
61
65
  import * as math from './math.mjs'
62
66
 
63
67
  const parse = Parse(math)
@@ -87,8 +91,8 @@ Now for a client that sends a program to the server.
87
91
  // ./example/client.socket.io.mjs
88
92
 
89
93
  import socketClient from 'socket.io-client'
90
- import stringify from '../stringify.mjs'
91
- import module from '../module.mjs'
94
+ import stringify from 'sendscript/stringify.mjs'
95
+ import module from 'sendscript/module.mjs'
92
96
  import * as math from './math.mjs'
93
97
  import assert from 'node:assert'
94
98
 
@@ -218,12 +222,12 @@ send(square(add(1, 2)))
218
222
  We'll also generate the docs for this module.
219
223
 
220
224
  ```bash
225
+ npm install --no-save \
226
+ typedoc \
227
+ typedoc-plugin-markdown
228
+
221
229
  typedoc --plugin typedoc-plugin-markdown --out ./example/typescript/docs ./example/typescript/math.ts
222
230
  ```
223
- ```
224
- [info] Loaded plugin typedoc-plugin-markdown
225
- [info] markdown generated at ./example/typescript/docs
226
- ```
227
231
 
228
232
  You can see the docs [here](./example/typescript/docs/globals.md)
229
233
 
@@ -242,11 +246,11 @@ npm t -- report text-summary
242
246
  ```
243
247
  ```
244
248
 
245
- > sendscript@1.0.2 test
249
+ > sendscript@1.0.3 test
246
250
  > tap -R silent
247
251
 
248
252
 
249
- > sendscript@1.0.2 test
253
+ > sendscript@1.0.3 test
250
254
  > tap report text-summary
251
255
 
252
256
 
package/README.mz CHANGED
@@ -18,7 +18,11 @@ needs.
18
18
  For this example we'll use [socket.io][socket.io].
19
19
 
20
20
  ```bash bash > /dev/null
21
- npm install --no-save socket.io socket.io-client
21
+ npm link &&
22
+ npm install --no-save \
23
+ socket.io \
24
+ socket.io-client \
25
+ sendscript
22
26
  ```
23
27
 
24
28
  > We use the `--no-save` option because it's only for demonstration purposes.
@@ -42,7 +46,7 @@ Here a socket.io server that runs SendScript programs.
42
46
  // ./example/server.socket.io.mjs
43
47
 
44
48
  import { Server } from 'socket.io'
45
- import Parse from '../parse.mjs'
49
+ import Parse from 'sendscript/parse.mjs'
46
50
  import * as math from './math.mjs'
47
51
 
48
52
  const parse = Parse(math)
@@ -72,8 +76,8 @@ Now for a client that sends a program to the server.
72
76
  // ./example/client.socket.io.mjs
73
77
 
74
78
  import socketClient from 'socket.io-client'
75
- import stringify from '../stringify.mjs'
76
- import module from '../module.mjs'
79
+ import stringify from 'sendscript/stringify.mjs'
80
+ import module from 'sendscript/module.mjs'
77
81
  import * as math from './math.mjs'
78
82
  import assert from 'node:assert'
79
83
 
@@ -168,7 +172,11 @@ cat ./example/typescript/client.ts
168
172
 
169
173
  We'll also generate the docs for this module.
170
174
 
171
- ```bash bash
175
+ ```bash bash 1>&2
176
+ npm install --no-save \
177
+ typedoc \
178
+ typedoc-plugin-markdown
179
+
172
180
  typedoc --plugin typedoc-plugin-markdown --out ./example/typescript/docs ./example/typescript/math.ts
173
181
  ```
174
182
 
@@ -1,8 +1,8 @@
1
1
  // ./example/client.socket.io.mjs
2
2
 
3
3
  import socketClient from 'socket.io-client'
4
- import stringify from '../stringify.mjs'
5
- import module from '../module.mjs'
4
+ import stringify from 'sendscript/stringify.mjs'
5
+ import module from 'sendscript/module.mjs'
6
6
  import * as math from './math.mjs'
7
7
  import assert from 'node:assert'
8
8
 
@@ -1,7 +1,7 @@
1
1
  // ./example/server.socket.io.mjs
2
2
 
3
3
  import { Server } from 'socket.io'
4
- import Parse from '../parse.mjs'
4
+ import Parse from 'sendscript/parse.mjs'
5
5
  import * as math from './math.mjs'
6
6
 
7
7
  const parse = Parse(math)
@@ -22,7 +22,11 @@ needs.
22
22
  For this example we'll use [socket.io][socket.io].
23
23
 
24
24
  ```bash
25
- npm install --no-save socket.io socket.io-client
25
+ npm link &&
26
+ npm install --no-save \
27
+ socket.io \
28
+ socket.io-client \
29
+ sendscript
26
30
  ```
27
31
 
28
32
  > We use the `--no-save` option because it's only for demonstration purposes.
@@ -46,7 +50,7 @@ Here a socket.io server that runs SendScript programs.
46
50
  // ./example/server.socket.io.mjs
47
51
 
48
52
  import { Server } from 'socket.io'
49
- import Parse from '../parse.mjs'
53
+ import Parse from 'sendscript/parse.mjs'
50
54
  import * as math from './math.mjs'
51
55
 
52
56
  const parse = Parse(math)
@@ -76,8 +80,8 @@ Now for a client that sends a program to the server.
76
80
  // ./example/client.socket.io.mjs
77
81
 
78
82
  import socketClient from 'socket.io-client'
79
- import stringify from '../stringify.mjs'
80
- import module from '../module.mjs'
83
+ import stringify from 'sendscript/stringify.mjs'
84
+ import module from 'sendscript/module.mjs'
81
85
  import * as math from './math.mjs'
82
86
  import assert from 'node:assert'
83
87
 
@@ -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/6f75ed6a4b4db94217fde41ae50bc6b92a2cffda/example/typescript/math.ts#L1)
11
+ Defined in: [math.ts:1](https://github.com/bas080/sendscript/blob/0a5e1c8ec2527d63d1e248f63568668058de388c/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/6f75ed6a4b4db94217fde41ae50bc6b92a2cffda/example/typescript/math.ts#L2)
11
+ Defined in: [math.ts:2](https://github.com/bas080/sendscript/blob/0a5e1c8ec2527d63d1e248f63568668058de388c/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": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Blur the line between server and client code.",
5
5
  "module": true,
6
6
  "main": "index.mjs",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "git@github.com:bas080/sendscript.git"
16
+ "url": "git+ssh://git@github.com/bas080/sendscript.git"
17
17
  },
18
18
  "scripts": {
19
19
  "test": "tap",