@symbo.ls/create 2.28.1 → 2.28.2
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/cjs/prepare.js +2 -2
- package/dist/esm/prepare.js +2 -2
- package/package.json +13 -13
- package/src/prepare.js +2 -2
package/dist/cjs/prepare.js
CHANGED
|
@@ -125,10 +125,10 @@ const prepareRequire = async (packages, ctx) => {
|
|
|
125
125
|
const initRequire = async (ctx2) => async (key) => {
|
|
126
126
|
const windowOpts2 = ctx2.window || window;
|
|
127
127
|
const pkg = windowOpts2.packages[key];
|
|
128
|
-
if (typeof pkg === "function") return
|
|
128
|
+
if (typeof pkg === "function") return pkg();
|
|
129
129
|
return pkg;
|
|
130
130
|
};
|
|
131
|
-
const initRequireOnDemand = (ctx2) => async (key) => {
|
|
131
|
+
const initRequireOnDemand = async (ctx2) => async (key) => {
|
|
132
132
|
const { dependenciesOnDemand } = ctx2;
|
|
133
133
|
const documentOpts = ctx2.document || document;
|
|
134
134
|
const windowOpts2 = ctx2.window || window;
|
package/dist/esm/prepare.js
CHANGED
|
@@ -101,10 +101,10 @@ const prepareRequire = async (packages, ctx) => {
|
|
|
101
101
|
const initRequire = async (ctx2) => async (key) => {
|
|
102
102
|
const windowOpts2 = ctx2.window || window;
|
|
103
103
|
const pkg = windowOpts2.packages[key];
|
|
104
|
-
if (typeof pkg === "function") return
|
|
104
|
+
if (typeof pkg === "function") return pkg();
|
|
105
105
|
return pkg;
|
|
106
106
|
};
|
|
107
|
-
const initRequireOnDemand = (ctx2) => async (key) => {
|
|
107
|
+
const initRequireOnDemand = async (ctx2) => async (key) => {
|
|
108
108
|
const { dependenciesOnDemand } = ctx2;
|
|
109
109
|
const documentOpts = ctx2.document || document;
|
|
110
110
|
const windowOpts2 = ctx2.window || window;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/create",
|
|
3
|
-
"version": "2.28.
|
|
3
|
+
"version": "2.28.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "3c5e8b68269799a0e2382f9c79c51e41f33863bf",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"main": "src/index.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"prepublish": "npm run build; npm run copy:package:cjs"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@domql/emotion": "^2.28.
|
|
33
|
-
"@domql/event": "^2.28.
|
|
34
|
-
"@domql/report": "^2.28.
|
|
35
|
-
"@domql/router": "^2.28.
|
|
36
|
-
"@symbo.ls/fetch": "^2.28.
|
|
37
|
-
"@symbo.ls/init": "^2.28.
|
|
38
|
-
"@symbo.ls/scratch": "^2.28.
|
|
39
|
-
"@symbo.ls/sync": "^2.28.
|
|
40
|
-
"@symbo.ls/uikit": "^2.28.
|
|
41
|
-
"@symbo.ls/utils": "^2.28.
|
|
42
|
-
"domql": "^2.28.
|
|
32
|
+
"@domql/emotion": "^2.28.2",
|
|
33
|
+
"@domql/event": "^2.28.2",
|
|
34
|
+
"@domql/report": "^2.28.2",
|
|
35
|
+
"@domql/router": "^2.28.2",
|
|
36
|
+
"@symbo.ls/fetch": "^2.28.2",
|
|
37
|
+
"@symbo.ls/init": "^2.28.2",
|
|
38
|
+
"@symbo.ls/scratch": "^2.28.2",
|
|
39
|
+
"@symbo.ls/sync": "^2.28.2",
|
|
40
|
+
"@symbo.ls/uikit": "^2.28.2",
|
|
41
|
+
"@symbo.ls/utils": "^2.28.2",
|
|
42
|
+
"domql": "^2.28.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/core": "^7.26.0"
|
package/src/prepare.js
CHANGED
|
@@ -114,11 +114,11 @@ export const prepareRequire = async (packages, ctx) => {
|
|
|
114
114
|
const initRequire = async ctx => async key => {
|
|
115
115
|
const windowOpts = ctx.window || window
|
|
116
116
|
const pkg = windowOpts.packages[key]
|
|
117
|
-
if (typeof pkg === 'function') return
|
|
117
|
+
if (typeof pkg === 'function') return pkg()
|
|
118
118
|
return pkg
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
const initRequireOnDemand = ctx => async key => {
|
|
121
|
+
const initRequireOnDemand = async ctx => async key => {
|
|
122
122
|
const { dependenciesOnDemand } = ctx
|
|
123
123
|
const documentOpts = ctx.document || document
|
|
124
124
|
const windowOpts = ctx.window || window
|