solid-js 1.8.12 → 1.8.13
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-js",
|
|
3
3
|
"description": "A declarative JavaScript library for building user interfaces.",
|
|
4
|
-
"version": "1.8.
|
|
4
|
+
"version": "1.8.13",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://solidjs.com",
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"web/dist",
|
|
28
28
|
"web/types",
|
|
29
29
|
"web/package.json",
|
|
30
|
+
"web/storage/dist",
|
|
31
|
+
"web/storage/types",
|
|
32
|
+
"web/storage/package.json",
|
|
30
33
|
"h/dist",
|
|
31
34
|
"h/types",
|
|
32
35
|
"h/package.json",
|
|
@@ -162,8 +165,9 @@
|
|
|
162
165
|
"require": "./web/dist/web.cjs"
|
|
163
166
|
},
|
|
164
167
|
"./web/storage": {
|
|
165
|
-
"
|
|
166
|
-
"
|
|
168
|
+
"types": "./web/storage/types/index.d.ts",
|
|
169
|
+
"import": "./web/storage/dist/index.js",
|
|
170
|
+
"require": "./web/storage/dist/index.cjs"
|
|
167
171
|
},
|
|
168
172
|
"./web/dist/*": "./web/dist/*",
|
|
169
173
|
"./web/types/*": "./web/types/*",
|
|
@@ -227,7 +231,8 @@
|
|
|
227
231
|
"types:copy": "ncp ../../node_modules/dom-expressions/src/jsx.d.ts ./src/jsx.d.ts && ncp ../../node_modules/dom-expressions/src/jsx-h.d.ts ./h/jsx-runtime/src/jsx.d.ts",
|
|
228
232
|
"types:src": "tsc --project ./tsconfig.build.json && ncp ../../node_modules/dom-expressions/src/jsx.d.ts ./types/jsx.d.ts",
|
|
229
233
|
"types:web": "tsc --project ./web/tsconfig.build.json",
|
|
230
|
-
"types:
|
|
234
|
+
"types:web-storage": "tsc --project ./web/storage/tsconfig.build.json",
|
|
235
|
+
"types:copy-web": "ncp ../../node_modules/dom-expressions/src/client.d.ts ./web/types/client.d.ts && ncp ../../node_modules/dom-expressions/src/server.d.ts ./web/types/server.d.ts",
|
|
231
236
|
"types:store": "tsc --project ./store/tsconfig.build.json",
|
|
232
237
|
"types:html": "tsc --project ./html/tsconfig.json && ncp ../../node_modules/lit-dom-expressions/types/index.d.ts ./html/types/lit.d.ts",
|
|
233
238
|
"types:h": "tsc --project ./h/tsconfig.json && ncp ../../node_modules/hyper-dom-expressions/types/index.d.ts ./h/types/hyperscript.d.ts",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "solid-js/web/storage",
|
|
3
|
+
"main": "./dist/storage.cjs",
|
|
4
|
+
"module": "./dist/storage.js",
|
|
5
|
+
"types": "./types/index.d.ts",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./types/index.d.ts",
|
|
11
|
+
"import": "./dist/storage.js",
|
|
12
|
+
"require": "./dist/storage.cjs"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.provideRequestEvent = void 0;
|
|
4
|
+
var node_async_hooks_1 = require("node:async_hooks");
|
|
5
|
+
var web_1 = require("solid-js/web");
|
|
6
|
+
// using global on a symbol for locating it later and detaching for environments that don't support it.
|
|
7
|
+
function provideRequestEvent(init, cb) {
|
|
8
|
+
if (!web_1.isServer) throw new Error("Attempting to use server context in non-server build");
|
|
9
|
+
var ctx = (globalThis[web_1.RequestContext] =
|
|
10
|
+
globalThis[web_1.RequestContext] || new node_async_hooks_1.AsyncLocalStorage());
|
|
11
|
+
return ctx.run(init, cb);
|
|
12
|
+
}
|
|
13
|
+
exports.provideRequestEvent = provideRequestEvent;
|
package/web/types/storage.d.ts
DELETED
|
File without changes
|
|
File without changes
|