@sproutboat/runtime 0.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/CHANGELOG.md +7 -0
- package/README.md +6 -0
- package/package.json +11 -0
- package/src/index.ts +10 -0
- package/src/native-fetch-prelude.js +950 -0
- package/src/source.ts +44 -0
- package/src/transport-broker.js +299 -0
- package/src/transport-embedded.js +1574 -0
- package/src/wrap.ts +267 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @sproutboat/runtime
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c45098e: Adopt broker, JSON utilities, assets, wrapper, source validation, both transports and the prelude from sproutboat-cli (moved verbatim). First publishable versions; consumed via `file:` links until the npm publish flow lands.
|
package/README.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# `@sproutboat/runtime`
|
|
2
|
+
|
|
3
|
+
Single source of truth for the sprout runtime: the binding/trigger wrapper,
|
|
4
|
+
handler source validation, both transports (broker and embedded), and the
|
|
5
|
+
native-fetch prelude. These move as one because `wrap.ts` locates the
|
|
6
|
+
prelude and transports by file URL beside itself.
|
package/package.json
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// @sproutboat/runtime: the sprout runtime as a unit. The binding/trigger
|
|
2
|
+
// wrapper, source validation, both transports and the prelude move together
|
|
3
|
+
// because wrap.ts locates the prelude and transports by file URL next to
|
|
4
|
+
// itself; splitting them would break those paths.
|
|
5
|
+
//
|
|
6
|
+
// Moved verbatim from sproutboat-cli: src/wrap.ts, src/source.ts,
|
|
7
|
+
// src/transport-embedded.js, src/transport-broker.js,
|
|
8
|
+
// src/native-fetch-prelude.js.
|
|
9
|
+
export * from "./wrap";
|
|
10
|
+
export * from "./source";
|