rasengan 1.0.0-beta.21 → 1.0.0-beta.22

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.
@@ -41,19 +41,19 @@ import { createStaticHandler, createStaticRouter, } from "react-router-dom/serve
41
41
  // @ts-ignore
42
42
  import { createFetchRequest } from "rasengan";
43
43
  import { fileURLToPath } from "node:url";
44
- var __customDirname = "";
45
- if (__dirname === undefined) {
46
- var __filename_1 = fileURLToPath(import.meta.url);
47
- var __customDirname_1 = dirname(__filename_1);
48
- }
49
44
  // Create server for production only
50
45
  export default function handleRequest(req, res) {
51
46
  var _a;
52
47
  return __awaiter(this, void 0, void 0, function () {
53
- var url, host, appPath, err_1, templateHtml, serverFilePath, bootstrapDirPath, entry, bootstrap, styles, render, staticRoutes, loadTemplateHtml, handler, fetchRequest, context, status_1, redirect, helmetContext, router, rendered, html, e_1;
48
+ var __customDirname, __filename_1, __customDirname_1, url, host, appPath, err_1, templateHtml, serverFilePath, bootstrapDirPath, entry, bootstrap, styles, render, staticRoutes, loadTemplateHtml, handler, fetchRequest, context, status_1, redirect, helmetContext, router, rendered, html, e_1;
54
49
  return __generator(this, function (_b) {
55
50
  switch (_b.label) {
56
51
  case 0:
52
+ __customDirname = "";
53
+ if (__dirname === undefined) {
54
+ __filename_1 = fileURLToPath(import.meta.url);
55
+ __customDirname_1 = dirname(__filename_1);
56
+ }
57
57
  console.log({
58
58
  cwd: process.cwd(),
59
59
  __customDirname: __customDirname
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rasengan",
3
3
  "private": false,
4
- "version": "1.0.0-beta.21",
4
+ "version": "1.0.0-beta.22",
5
5
  "description": "The modern frontend framework for React",
6
6
  "type": "module",
7
7
  "main": "lib/esm/index.js",