@getforma/core 1.1.0 → 1.3.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/dist/{chunk-MIOMT2CB.js → chunk-AJP4OVCN.js} +29 -9
- package/dist/chunk-AJP4OVCN.js.map +1 -0
- package/dist/{chunk-XLVBYXOU.js → chunk-ETPJTPYD.js} +6 -3
- package/dist/chunk-ETPJTPYD.js.map +1 -0
- package/dist/{chunk-JRQNDXX7.cjs → chunk-FBM7V4NE.cjs} +68 -47
- package/dist/chunk-FBM7V4NE.cjs.map +1 -0
- package/dist/{chunk-W7OUWVRA.cjs → chunk-H7MDUHS5.cjs} +6 -2
- package/dist/chunk-H7MDUHS5.cjs.map +1 -0
- package/dist/{chunk-2Y5US35K.cjs → chunk-KUXNZ5MG.cjs} +12 -12
- package/dist/{chunk-2Y5US35K.cjs.map → chunk-KUXNZ5MG.cjs.map} +1 -1
- package/dist/{chunk-INNOI6TG.js → chunk-Y3A2EVVS.js} +3 -3
- package/dist/{chunk-INNOI6TG.js.map → chunk-Y3A2EVVS.js.map} +1 -1
- package/dist/forma-runtime-csp.js +178 -79
- package/dist/forma-runtime.js +178 -79
- package/dist/formajs-runtime-hardened.global.js +178 -79
- package/dist/formajs-runtime-hardened.global.js.map +1 -1
- package/dist/formajs-runtime.global.js +178 -79
- package/dist/formajs-runtime.global.js.map +1 -1
- package/dist/formajs.global.js +245 -61
- package/dist/formajs.global.js.map +1 -1
- package/dist/http.cjs +11 -11
- package/dist/http.js +2 -2
- package/dist/index.cjs +307 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -2
- package/dist/index.d.ts +34 -2
- package/dist/index.js +248 -88
- package/dist/index.js.map +1 -1
- package/dist/runtime-hardened.cjs +178 -79
- package/dist/runtime-hardened.cjs.map +1 -1
- package/dist/runtime-hardened.js +178 -79
- package/dist/runtime-hardened.js.map +1 -1
- package/dist/runtime.cjs +198 -103
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +174 -79
- package/dist/runtime.js.map +1 -1
- package/dist/server.cjs +7 -7
- package/dist/server.js +2 -2
- package/dist/tc39-compat.cjs +3 -3
- package/dist/tc39-compat.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-JRQNDXX7.cjs.map +0 -1
- package/dist/chunk-MIOMT2CB.js.map +0 -1
- package/dist/chunk-W7OUWVRA.cjs.map +0 -1
- package/dist/chunk-XLVBYXOU.js.map +0 -1
package/dist/http.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkKUXNZ5MG_cjs = require('./chunk-KUXNZ5MG.cjs');
|
|
4
|
+
var chunkH7MDUHS5_cjs = require('./chunk-H7MDUHS5.cjs');
|
|
5
5
|
|
|
6
6
|
// src/http/fetch.ts
|
|
7
7
|
function createFetch(url, options) {
|
|
8
|
-
const [data, setData] =
|
|
9
|
-
const [error, setError] =
|
|
10
|
-
const [loading, setLoading] =
|
|
8
|
+
const [data, setData] = chunkH7MDUHS5_cjs.createSignal(null);
|
|
9
|
+
const [error, setError] = chunkH7MDUHS5_cjs.createSignal(null);
|
|
10
|
+
const [loading, setLoading] = chunkH7MDUHS5_cjs.createSignal(false);
|
|
11
11
|
let currentController = null;
|
|
12
12
|
function resolveURL() {
|
|
13
13
|
const raw = typeof url === "function" ? url() : url;
|
|
@@ -57,7 +57,7 @@ function createFetch(url, options) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
if (typeof url === "function") {
|
|
60
|
-
|
|
60
|
+
chunkKUXNZ5MG_cjs.internalEffect(() => {
|
|
61
61
|
url();
|
|
62
62
|
void execute();
|
|
63
63
|
});
|
|
@@ -86,9 +86,9 @@ async function fetchJSON(url, options) {
|
|
|
86
86
|
|
|
87
87
|
// src/http/sse.ts
|
|
88
88
|
function createSSE(url, options) {
|
|
89
|
-
const [data, setData] =
|
|
90
|
-
const [error, setError] =
|
|
91
|
-
const [connected, setConnected] =
|
|
89
|
+
const [data, setData] = chunkH7MDUHS5_cjs.createSignal(null);
|
|
90
|
+
const [error, setError] = chunkH7MDUHS5_cjs.createSignal(null);
|
|
91
|
+
const [connected, setConnected] = chunkH7MDUHS5_cjs.createSignal(false);
|
|
92
92
|
const source = new EventSource(url, {
|
|
93
93
|
withCredentials: options?.withCredentials ?? false
|
|
94
94
|
});
|
|
@@ -142,8 +142,8 @@ function createWebSocket(url, options) {
|
|
|
142
142
|
const shouldReconnect = options?.reconnect ?? true;
|
|
143
143
|
const baseInterval = options?.reconnectInterval ?? 1e3;
|
|
144
144
|
const maxReconnects = options?.maxReconnects ?? 5;
|
|
145
|
-
const [data, setData] =
|
|
146
|
-
const [status, setStatus] =
|
|
145
|
+
const [data, setData] = chunkH7MDUHS5_cjs.createSignal(null);
|
|
146
|
+
const [status, setStatus] = chunkH7MDUHS5_cjs.createSignal("connecting");
|
|
147
147
|
const handlers = /* @__PURE__ */ new Set();
|
|
148
148
|
let socket = null;
|
|
149
149
|
let reconnectCount = 0;
|
package/dist/http.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { internalEffect } from './chunk-
|
|
2
|
-
import { createSignal } from './chunk-
|
|
1
|
+
import { internalEffect } from './chunk-Y3A2EVVS.js';
|
|
2
|
+
import { createSignal } from './chunk-ETPJTPYD.js';
|
|
3
3
|
|
|
4
4
|
// src/http/fetch.ts
|
|
5
5
|
function createFetch(url, options) {
|