@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/dist/index.d.cts
CHANGED
|
@@ -119,6 +119,7 @@ interface SourceRegistryOptions {
|
|
|
119
119
|
declare function createSourceRegistry(options?: SourceRegistryOptions): SourceRegistry;
|
|
120
120
|
|
|
121
121
|
interface SpotPatchSession {
|
|
122
|
+
readonly id: string;
|
|
122
123
|
readonly token: string;
|
|
123
124
|
}
|
|
124
125
|
declare function createSession(): SpotPatchSession;
|
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ interface SourceRegistryOptions {
|
|
|
119
119
|
declare function createSourceRegistry(options?: SourceRegistryOptions): SourceRegistry;
|
|
120
120
|
|
|
121
121
|
interface SpotPatchSession {
|
|
122
|
+
readonly id: string;
|
|
122
123
|
readonly token: string;
|
|
123
124
|
}
|
|
124
125
|
declare function createSession(): SpotPatchSession;
|
package/dist/index.js
CHANGED
|
@@ -1417,6 +1417,7 @@ async function authorizeTarget(target, input) {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
return Object.freeze({
|
|
1419
1419
|
instruction: target.instruction,
|
|
1420
|
+
...target.page === void 0 ? {} : { page: Object.freeze({ ...target.page }) },
|
|
1420
1421
|
source,
|
|
1421
1422
|
react: Object.freeze({
|
|
1422
1423
|
supported: target.react.supported,
|
|
@@ -2249,6 +2250,7 @@ async function createSourceRegistrationService(input) {
|
|
|
2249
2250
|
import { randomBytes as randomBytes3 } from "crypto";
|
|
2250
2251
|
function createSession() {
|
|
2251
2252
|
return Object.freeze({
|
|
2253
|
+
id: randomBytes3(16).toString("base64url"),
|
|
2252
2254
|
token: randomBytes3(16).toString("base64url")
|
|
2253
2255
|
});
|
|
2254
2256
|
}
|