@spotpatch/dev-server 0.1.0 → 0.1.1
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/README.md +1 -5
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
<
|
|
2
|
-
<a href="https://github.com/huanglvjing/spotpatch"><img src="https://raw.githubusercontent.com/huanglvjing/spotpatch/main/docs/assets/spotpatch-logo.svg" alt="SpotPatch" width="560" /></a>
|
|
3
|
-
</p>
|
|
4
|
-
|
|
5
|
-
# `@spotpatch/dev-server`
|
|
1
|
+
<h1><a href="https://github.com/huanglvjing/spotpatch"><img src="https://raw.githubusercontent.com/huanglvjing/spotpatch/main/docs/assets/spotpatch-npm-icon.png" alt="SpotPatch" width="48" height="48" align="absmiddle" /></a> <code>@spotpatch/dev-server</code></h1>
|
|
6
2
|
|
|
7
3
|
## English
|
|
8
4
|
|
package/dist/index.cjs
CHANGED
|
@@ -1430,6 +1430,7 @@ async function authorizeTarget(target, input) {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
return Object.freeze({
|
|
1432
1432
|
instruction: target.instruction,
|
|
1433
|
+
...target.page === void 0 ? {} : { page: Object.freeze({ ...target.page }) },
|
|
1433
1434
|
source,
|
|
1434
1435
|
react: Object.freeze({
|
|
1435
1436
|
supported: target.react.supported,
|
|
@@ -2257,6 +2258,7 @@ async function createSourceRegistrationService(input) {
|
|
|
2257
2258
|
var import_node_crypto5 = require("crypto");
|
|
2258
2259
|
function createSession() {
|
|
2259
2260
|
return Object.freeze({
|
|
2261
|
+
id: (0, import_node_crypto5.randomBytes)(16).toString("base64url"),
|
|
2260
2262
|
token: (0, import_node_crypto5.randomBytes)(16).toString("base64url")
|
|
2261
2263
|
});
|
|
2262
2264
|
}
|