@modern-js/server-runtime 0.0.0-canary-20251121061506 → 0.0.0-canary-20251124134703
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/cache.js +57 -19
- package/dist/cjs/index.js +75 -31
- package/dist/esm/index.mjs +4 -0
- package/dist/esm-node/{index.js → index.mjs} +2 -5
- package/package.json +13 -18
- package/rslib.config.ts +4 -0
- package/dist/esm/index.js +0 -9
- /package/dist/esm/{cache.js → cache.mjs} +0 -0
- /package/dist/esm-node/{cache.js → cache.mjs} +0 -0
package/dist/cjs/cache.js
CHANGED
|
@@ -1,22 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"@modern-js/runtime-utils/cache": function(module) {
|
|
4
|
+
module.exports = require("@modern-js/runtime-utils/cache");
|
|
5
|
+
}
|
|
13
6
|
};
|
|
14
|
-
var
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
(()=>{
|
|
18
|
+
__webpack_require__.n = (module)=>{
|
|
19
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
20
|
+
__webpack_require__.d(getter, {
|
|
21
|
+
a: getter
|
|
22
|
+
});
|
|
23
|
+
return getter;
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
(()=>{
|
|
27
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
28
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: definition[key]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
})();
|
|
34
|
+
(()=>{
|
|
35
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.r = (exports1)=>{
|
|
39
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
40
|
+
value: 'Module'
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
43
|
+
value: true
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
47
|
+
var __webpack_exports__ = {};
|
|
48
|
+
(()=>{
|
|
49
|
+
__webpack_require__.r(__webpack_exports__);
|
|
50
|
+
var _modern_js_runtime_utils_cache__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@modern-js/runtime-utils/cache");
|
|
51
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
52
|
+
for(var __WEBPACK_IMPORT_KEY__ in _modern_js_runtime_utils_cache__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
53
|
+
return _modern_js_runtime_utils_cache__WEBPACK_IMPORTED_MODULE_0__[key];
|
|
54
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
55
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
56
|
+
})();
|
|
57
|
+
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
58
|
+
Object.defineProperty(exports, '__esModule', {
|
|
59
|
+
value: true
|
|
22
60
|
});
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,34 +1,78 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
"@modern-js/server-core": function(module) {
|
|
4
|
+
module.exports = require("@modern-js/server-core");
|
|
5
|
+
},
|
|
6
|
+
"@modern-js/server-core/hono": function(module) {
|
|
7
|
+
module.exports = require("@modern-js/server-core/hono");
|
|
8
|
+
}
|
|
9
9
|
};
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
var __webpack_module_cache__ = {};
|
|
11
|
+
function __webpack_require__(moduleId) {
|
|
12
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
13
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
14
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
15
|
+
exports: {}
|
|
16
|
+
};
|
|
17
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
18
|
+
return module.exports;
|
|
19
|
+
}
|
|
20
|
+
(()=>{
|
|
21
|
+
__webpack_require__.n = (module)=>{
|
|
22
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
23
|
+
__webpack_require__.d(getter, {
|
|
24
|
+
a: getter
|
|
25
|
+
});
|
|
26
|
+
return getter;
|
|
27
|
+
};
|
|
28
|
+
})();
|
|
29
|
+
(()=>{
|
|
30
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
31
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: definition[key]
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
})();
|
|
37
|
+
(()=>{
|
|
38
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
39
|
+
})();
|
|
40
|
+
(()=>{
|
|
41
|
+
__webpack_require__.r = (exports1)=>{
|
|
42
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
43
|
+
value: 'Module'
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
46
|
+
value: true
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
var __webpack_exports__ = {};
|
|
51
|
+
(()=>{
|
|
52
|
+
__webpack_require__.r(__webpack_exports__);
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
defineServerConfig: ()=>defineServerConfig,
|
|
55
|
+
useHonoContext: ()=>_modern_js_server_core__WEBPACK_IMPORTED_MODULE_0__.useHonoContext
|
|
56
|
+
});
|
|
57
|
+
var _modern_js_server_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@modern-js/server-core");
|
|
58
|
+
var _modern_js_server_core_hono__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@modern-js/server-core/hono");
|
|
59
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
60
|
+
for(var __WEBPACK_IMPORT_KEY__ in _modern_js_server_core_hono__WEBPACK_IMPORTED_MODULE_1__)if ([
|
|
61
|
+
"defineServerConfig",
|
|
62
|
+
"useHonoContext",
|
|
63
|
+
"default"
|
|
64
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
65
|
+
return _modern_js_server_core_hono__WEBPACK_IMPORTED_MODULE_1__[key];
|
|
66
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
67
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
68
|
+
const defineServerConfig = (config)=>config;
|
|
69
|
+
})();
|
|
70
|
+
exports.defineServerConfig = __webpack_exports__.defineServerConfig;
|
|
71
|
+
exports.useHonoContext = __webpack_exports__.useHonoContext;
|
|
72
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
73
|
+
"defineServerConfig",
|
|
74
|
+
"useHonoContext"
|
|
75
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
76
|
+
Object.defineProperty(exports, '__esModule', {
|
|
77
|
+
value: true
|
|
34
78
|
});
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { useHonoContext } from "@modern-js/server-core";
|
|
2
2
|
export * from "@modern-js/server-core/hono";
|
|
3
|
-
const defineServerConfig = (config)
|
|
4
|
-
export {
|
|
5
|
-
defineServerConfig,
|
|
6
|
-
useHonoContext
|
|
7
|
-
};
|
|
3
|
+
const defineServerConfig = (config)=>config;
|
|
4
|
+
export { defineServerConfig, useHonoContext };
|
package/package.json
CHANGED
|
@@ -15,28 +15,20 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-canary-
|
|
18
|
+
"version": "0.0.0-canary-20251124134703",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
22
|
-
"module": "./dist/esm/index.
|
|
22
|
+
"module": "./dist/esm-node/index.mjs",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
25
|
-
"node": {
|
|
26
|
-
"jsnext:source": "./src/index.ts",
|
|
27
|
-
"import": "./dist/esm-node/index.js",
|
|
28
|
-
"require": "./dist/cjs/index.js"
|
|
29
|
-
},
|
|
30
25
|
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"import": "./dist/esm-node/index.mjs",
|
|
31
27
|
"default": "./dist/cjs/index.js"
|
|
32
28
|
},
|
|
33
29
|
"./cache": {
|
|
34
|
-
"node": {
|
|
35
|
-
"jsnext:source": "./src/cache.ts",
|
|
36
|
-
"import": "./dist/esm-node/cache.js",
|
|
37
|
-
"require": "./dist/cjs/cache.js"
|
|
38
|
-
},
|
|
39
30
|
"types": "./dist/types/cache.d.ts",
|
|
31
|
+
"import": "./dist/esm-node/cache.mjs",
|
|
40
32
|
"default": "./dist/cjs/cache.js"
|
|
41
33
|
}
|
|
42
34
|
},
|
|
@@ -52,26 +44,29 @@
|
|
|
52
44
|
},
|
|
53
45
|
"dependencies": {
|
|
54
46
|
"@swc/helpers": "^0.5.17",
|
|
55
|
-
"@modern-js/runtime-utils": "0.0.0-canary-
|
|
56
|
-
"@modern-js/server-core": "0.0.0-canary-
|
|
57
|
-
"@modern-js/types": "0.0.0-canary-
|
|
47
|
+
"@modern-js/runtime-utils": "0.0.0-canary-20251124134703",
|
|
48
|
+
"@modern-js/server-core": "0.0.0-canary-20251124134703",
|
|
49
|
+
"@modern-js/types": "0.0.0-canary-20251124134703"
|
|
58
50
|
},
|
|
59
51
|
"devDependencies": {
|
|
60
52
|
"@types/jest": "^29.5.14",
|
|
61
53
|
"@types/node": "^20",
|
|
62
54
|
"jest": "^29.7.0",
|
|
63
55
|
"ts-jest": "^29.4.5",
|
|
56
|
+
"@rslib/core": "0.18.0",
|
|
64
57
|
"typescript": "^5",
|
|
65
|
-
"@scripts/
|
|
66
|
-
"@
|
|
58
|
+
"@scripts/jest-config": "0.0.0-canary-20251124134703",
|
|
59
|
+
"@modern-js/rslib": "0.0.0-canary-20251124134703"
|
|
67
60
|
},
|
|
61
|
+
"sideEffects": false,
|
|
68
62
|
"publishConfig": {
|
|
69
63
|
"registry": "https://registry.npmjs.org/",
|
|
70
64
|
"access": "public"
|
|
71
65
|
},
|
|
72
66
|
"scripts": {
|
|
73
67
|
"new": "modern-lib new",
|
|
74
|
-
"
|
|
68
|
+
"dev": "rslib build --watch",
|
|
69
|
+
"build": "rslib build",
|
|
75
70
|
"test": "jest --passWithNoTests"
|
|
76
71
|
}
|
|
77
72
|
}
|
package/rslib.config.ts
ADDED
package/dist/esm/index.js
DELETED
|
File without changes
|
|
File without changes
|