feat(wise-hearted-decor): initial luxury event decor website build with 5 pillars, portfolio, and booking funnel
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export * from './module'
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
if (process.env.NEXT_RUNTIME === 'edge') {
|
||||
module.exports = require('next/dist/server/route-modules/app-page/module.js');
|
||||
} else {
|
||||
if (process.env.__NEXT_EXPERIMENTAL_REACT) {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js');
|
||||
} else if (process.env.TURBOPACK) {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js');
|
||||
} else {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js');
|
||||
}
|
||||
} else {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js');
|
||||
} else if (process.env.TURBOPACK) {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js');
|
||||
} else {
|
||||
module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=module.compiled.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/server/route-modules/app-page/module.compiled.js"],"sourcesContent":["if (process.env.NEXT_RUNTIME === 'edge') {\n module.exports = require('next/dist/server/route-modules/app-page/module.js')\n} else {\n if (process.env.__NEXT_EXPERIMENTAL_REACT) {\n if (process.env.NODE_ENV === 'development') {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.dev.js')\n } else if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page-experimental.runtime.prod.js')\n }\n } else {\n if (process.env.NODE_ENV === 'development') {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.dev.js')\n } else if (process.env.TURBOPACK) {\n module.exports = require('next/dist/compiled/next-server/app-page-turbo.runtime.prod.js')\n } else {\n module.exports = require('next/dist/compiled/next-server/app-page.runtime.prod.js')\n }\n }\n}\n"],"names":["process","env","NEXT_RUNTIME","module","exports","require","__NEXT_EXPERIMENTAL_REACT","NODE_ENV","TURBOPACK"],"mappings":";AAAA,IAAIA,QAAQC,GAAG,CAACC,YAAY,KAAK,QAAQ;IACvCC,OAAOC,OAAO,GAAGC,QAAQ;AAC3B,OAAO;IACL,IAAIL,QAAQC,GAAG,CAACK,yBAAyB,EAAE;QACzC,IAAIN,QAAQC,GAAG,CAACM,QAAQ,KAAK,eAAe;YAC1CJ,OAAOC,OAAO,GAAGC,QAAQ;QAC3B,OAAO,IAAIL,QAAQC,GAAG,CAACO,SAAS,EAAE;YAChCL,OAAOC,OAAO,GAAGC,QAAQ;QAC3B,OAAO;YACLF,OAAOC,OAAO,GAAGC,QAAQ;QAC3B;IACF,OAAO;QACL,IAAIL,QAAQC,GAAG,CAACM,QAAQ,KAAK,eAAe;YAC1CJ,OAAOC,OAAO,GAAGC,QAAQ;QAC3B,OAAO,IAAIL,QAAQC,GAAG,CAACO,SAAS,EAAE;YAChCL,OAAOC,OAAO,GAAGC,QAAQ;QAC3B,OAAO;YACLF,OAAOC,OAAO,GAAGC,QAAQ;QAC3B;IACF;AACF"}
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
import type { AppPageRouteDefinition } from '../../route-definitions/app-page-route-definition';
|
||||
import type RenderResult from '../../render-result';
|
||||
import type { RenderOpts } from '../../app-render/types';
|
||||
import type { NextParsedUrlQuery } from '../../request-meta';
|
||||
import type { LoaderTree } from '../../lib/app-dir-module';
|
||||
import { renderToHTMLOrFlight } from '../../app-render/app-render';
|
||||
import { RouteModule, type RouteModuleOptions, type RouteModuleHandleContext } from '../route-module';
|
||||
import * as vendoredContexts from './vendored/contexts/entrypoints';
|
||||
import type { BaseNextRequest, BaseNextResponse } from '../../base-http';
|
||||
import type { ServerComponentsHmrCache } from '../../response-cache';
|
||||
import type { FallbackRouteParams } from '../../request/fallback-params';
|
||||
/**
|
||||
* The AppPageModule is the type of the module exported by the bundled app page
|
||||
* module.
|
||||
*/
|
||||
export type AppPageModule = typeof import('../../../build/templates/app-page');
|
||||
type AppPageUserlandModule = {
|
||||
/**
|
||||
* The tree created in next-app-loader that holds component segments and modules
|
||||
*/
|
||||
loaderTree: LoaderTree;
|
||||
};
|
||||
export interface AppPageRouteHandlerContext extends RouteModuleHandleContext {
|
||||
page: string;
|
||||
query: NextParsedUrlQuery;
|
||||
fallbackRouteParams: FallbackRouteParams | null;
|
||||
renderOpts: RenderOpts;
|
||||
serverComponentsHmrCache?: ServerComponentsHmrCache;
|
||||
}
|
||||
export type AppPageRouteModuleOptions = RouteModuleOptions<AppPageRouteDefinition, AppPageUserlandModule>;
|
||||
export declare class AppPageRouteModule extends RouteModule<AppPageRouteDefinition, AppPageUserlandModule> {
|
||||
render(req: BaseNextRequest, res: BaseNextResponse, context: AppPageRouteHandlerContext): Promise<RenderResult>;
|
||||
warmup(req: BaseNextRequest, res: BaseNextResponse, context: AppPageRouteHandlerContext): Promise<RenderResult>;
|
||||
}
|
||||
declare const vendored: {
|
||||
'react-rsc': any;
|
||||
'react-ssr': any;
|
||||
contexts: typeof vendoredContexts;
|
||||
};
|
||||
export { renderToHTMLOrFlight, vendored };
|
||||
export default AppPageRouteModule;
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
AppPageRouteModule: null,
|
||||
default: null,
|
||||
renderToHTMLOrFlight: null,
|
||||
vendored: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
AppPageRouteModule: function() {
|
||||
return AppPageRouteModule;
|
||||
},
|
||||
default: function() {
|
||||
return _default;
|
||||
},
|
||||
renderToHTMLOrFlight: function() {
|
||||
return _apprender.renderToHTMLOrFlight;
|
||||
},
|
||||
vendored: function() {
|
||||
return vendored;
|
||||
}
|
||||
});
|
||||
const _apprender = require("../../app-render/app-render");
|
||||
const _routemodule = require("../route-module");
|
||||
const _entrypoints = /*#__PURE__*/ _interop_require_wildcard(require("./vendored/contexts/entrypoints"));
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
function _interop_require_wildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
||||
return {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
}
|
||||
var newObj = {
|
||||
__proto__: null
|
||||
};
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
for(var key in obj){
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
if (cache) {
|
||||
cache.set(obj, newObj);
|
||||
}
|
||||
return newObj;
|
||||
}
|
||||
let vendoredReactRSC;
|
||||
let vendoredReactSSR;
|
||||
// the vendored Reacts are loaded from their original source in the edge runtime
|
||||
if (process.env.NEXT_RUNTIME !== 'edge') {
|
||||
vendoredReactRSC = require('./vendored/rsc/entrypoints');
|
||||
vendoredReactSSR = require('./vendored/ssr/entrypoints');
|
||||
}
|
||||
class AppPageRouteModule extends _routemodule.RouteModule {
|
||||
render(req, res, context) {
|
||||
return (0, _apprender.renderToHTMLOrFlight)(req, res, context.page, context.query, context.fallbackRouteParams, context.renderOpts, context.serverComponentsHmrCache, false);
|
||||
}
|
||||
warmup(req, res, context) {
|
||||
return (0, _apprender.renderToHTMLOrFlight)(req, res, context.page, context.query, context.fallbackRouteParams, context.renderOpts, context.serverComponentsHmrCache, true);
|
||||
}
|
||||
}
|
||||
const vendored = {
|
||||
'react-rsc': vendoredReactRSC,
|
||||
'react-ssr': vendoredReactSSR,
|
||||
contexts: _entrypoints
|
||||
};
|
||||
const _default = AppPageRouteModule;
|
||||
|
||||
//# sourceMappingURL=module.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/server/route-modules/app-page/module.ts"],"sourcesContent":["import type { AppPageRouteDefinition } from '../../route-definitions/app-page-route-definition'\nimport type RenderResult from '../../render-result'\nimport type { RenderOpts } from '../../app-render/types'\nimport type { NextParsedUrlQuery } from '../../request-meta'\nimport type { LoaderTree } from '../../lib/app-dir-module'\n\nimport { renderToHTMLOrFlight } from '../../app-render/app-render'\nimport {\n RouteModule,\n type RouteModuleOptions,\n type RouteModuleHandleContext,\n} from '../route-module'\nimport * as vendoredContexts from './vendored/contexts/entrypoints'\nimport type { BaseNextRequest, BaseNextResponse } from '../../base-http'\nimport type { ServerComponentsHmrCache } from '../../response-cache'\nimport type { FallbackRouteParams } from '../../request/fallback-params'\n\nlet vendoredReactRSC\nlet vendoredReactSSR\n\n// the vendored Reacts are loaded from their original source in the edge runtime\nif (process.env.NEXT_RUNTIME !== 'edge') {\n vendoredReactRSC = require('./vendored/rsc/entrypoints')\n vendoredReactSSR = require('./vendored/ssr/entrypoints')\n}\n\n/**\n * The AppPageModule is the type of the module exported by the bundled app page\n * module.\n */\nexport type AppPageModule = typeof import('../../../build/templates/app-page')\n\ntype AppPageUserlandModule = {\n /**\n * The tree created in next-app-loader that holds component segments and modules\n */\n loaderTree: LoaderTree\n}\n\nexport interface AppPageRouteHandlerContext extends RouteModuleHandleContext {\n page: string\n query: NextParsedUrlQuery\n fallbackRouteParams: FallbackRouteParams | null\n renderOpts: RenderOpts\n serverComponentsHmrCache?: ServerComponentsHmrCache\n}\n\nexport type AppPageRouteModuleOptions = RouteModuleOptions<\n AppPageRouteDefinition,\n AppPageUserlandModule\n>\n\nexport class AppPageRouteModule extends RouteModule<\n AppPageRouteDefinition,\n AppPageUserlandModule\n> {\n public render(\n req: BaseNextRequest,\n res: BaseNextResponse,\n context: AppPageRouteHandlerContext\n ): Promise<RenderResult> {\n return renderToHTMLOrFlight(\n req,\n res,\n context.page,\n context.query,\n context.fallbackRouteParams,\n context.renderOpts,\n context.serverComponentsHmrCache,\n false\n )\n }\n\n public warmup(\n req: BaseNextRequest,\n res: BaseNextResponse,\n context: AppPageRouteHandlerContext\n ): Promise<RenderResult> {\n return renderToHTMLOrFlight(\n req,\n res,\n context.page,\n context.query,\n context.fallbackRouteParams,\n context.renderOpts,\n context.serverComponentsHmrCache,\n true\n )\n }\n}\n\nconst vendored = {\n 'react-rsc': vendoredReactRSC,\n 'react-ssr': vendoredReactSSR,\n contexts: vendoredContexts,\n}\n\nexport { renderToHTMLOrFlight, vendored }\n\nexport default AppPageRouteModule\n"],"names":["AppPageRouteModule","renderToHTMLOrFlight","vendored","vendoredReactRSC","vendoredReactSSR","process","env","NEXT_RUNTIME","require","RouteModule","render","req","res","context","page","query","fallbackRouteParams","renderOpts","serverComponentsHmrCache","warmup","contexts","vendoredContexts"],"mappings":";;;;;;;;;;;;;;;;;IAoDaA,kBAAkB;eAAlBA;;IA+Cb,OAAiC;eAAjC;;IAFSC,oBAAoB;eAApBA,+BAAoB;;IAAEC,QAAQ;eAARA;;;2BA3FM;6BAK9B;qEAC2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKlC,IAAIC;AACJ,IAAIC;AAEJ,gFAAgF;AAChF,IAAIC,QAAQC,GAAG,CAACC,YAAY,KAAK,QAAQ;IACvCJ,mBAAmBK,QAAQ;IAC3BJ,mBAAmBI,QAAQ;AAC7B;AA4BO,MAAMR,2BAA2BS,wBAAW;IAI1CC,OACLC,GAAoB,EACpBC,GAAqB,EACrBC,OAAmC,EACZ;QACvB,OAAOZ,IAAAA,+BAAoB,EACzBU,KACAC,KACAC,QAAQC,IAAI,EACZD,QAAQE,KAAK,EACbF,QAAQG,mBAAmB,EAC3BH,QAAQI,UAAU,EAClBJ,QAAQK,wBAAwB,EAChC;IAEJ;IAEOC,OACLR,GAAoB,EACpBC,GAAqB,EACrBC,OAAmC,EACZ;QACvB,OAAOZ,IAAAA,+BAAoB,EACzBU,KACAC,KACAC,QAAQC,IAAI,EACZD,QAAQE,KAAK,EACbF,QAAQG,mBAAmB,EAC3BH,QAAQI,UAAU,EAClBJ,QAAQK,wBAAwB,EAChC;IAEJ;AACF;AAEA,MAAMhB,WAAW;IACf,aAAaC;IACb,aAAaC;IACbgB,UAAUC;AACZ;MAIA,WAAerB"}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { AppPageRender } from '../../app-render/app-render';
|
||||
export declare const lazyRenderAppPage: AppPageRender;
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "lazyRenderAppPage", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return lazyRenderAppPage;
|
||||
}
|
||||
});
|
||||
const lazyRenderAppPage = (...args)=>{
|
||||
if (process.env.NEXT_MINIMAL) {
|
||||
throw new Error("Can't use lazyRenderAppPage in minimal mode");
|
||||
} else {
|
||||
const render = require('./module.compiled').renderToHTMLOrFlight;
|
||||
return render(...args);
|
||||
}
|
||||
};
|
||||
|
||||
//# sourceMappingURL=module.render.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/server/route-modules/app-page/module.render.ts"],"sourcesContent":["import type { AppPageRender } from '../../app-render/app-render'\n\nexport const lazyRenderAppPage: AppPageRender = (...args) => {\n if (process.env.NEXT_MINIMAL) {\n throw new Error(\"Can't use lazyRenderAppPage in minimal mode\")\n } else {\n const render: AppPageRender =\n require('./module.compiled').renderToHTMLOrFlight\n\n return render(...args)\n }\n}\n"],"names":["lazyRenderAppPage","args","process","env","NEXT_MINIMAL","Error","render","require","renderToHTMLOrFlight"],"mappings":";;;;+BAEaA;;;eAAAA;;;AAAN,MAAMA,oBAAmC,CAAC,GAAGC;IAClD,IAAIC,QAAQC,GAAG,CAACC,YAAY,EAAE;QAC5B,MAAM,IAAIC,MAAM;IAClB,OAAO;QACL,MAAMC,SACJC,QAAQ,qBAAqBC,oBAAoB;QAEnD,OAAOF,UAAUL;IACnB;AACF"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].AmpContext;
|
||||
|
||||
//# sourceMappingURL=amp-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/amp-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].AmpContext\n"],"names":["module","exports","require","vendored","AmpContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,UAAU"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].AppRouterContext;
|
||||
|
||||
//# sourceMappingURL=app-router-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/app-router-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].AppRouterContext\n"],"names":["module","exports","require","vendored","AppRouterContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,gBAAgB"}
|
||||
Generated
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
export * as HeadManagerContext from '../../../../../shared/lib/head-manager-context.shared-runtime';
|
||||
export * as ServerInsertedHtml from '../../../../../shared/lib/server-inserted-html.shared-runtime';
|
||||
export * as AppRouterContext from '../../../../../shared/lib/app-router-context.shared-runtime';
|
||||
export * as HooksClientContext from '../../../../../shared/lib/hooks-client-context.shared-runtime';
|
||||
export * as RouterContext from '../../../../../shared/lib/router-context.shared-runtime';
|
||||
export * as AmpContext from '../../../../../shared/lib/amp-context.shared-runtime';
|
||||
export * as ImageConfigContext from '../../../../../shared/lib/image-config-context.shared-runtime';
|
||||
Generated
Vendored
+92
@@ -0,0 +1,92 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
AmpContext: null,
|
||||
AppRouterContext: null,
|
||||
HeadManagerContext: null,
|
||||
HooksClientContext: null,
|
||||
ImageConfigContext: null,
|
||||
RouterContext: null,
|
||||
ServerInsertedHtml: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
AmpContext: function() {
|
||||
return _ampcontextsharedruntime;
|
||||
},
|
||||
AppRouterContext: function() {
|
||||
return _approutercontextsharedruntime;
|
||||
},
|
||||
HeadManagerContext: function() {
|
||||
return _headmanagercontextsharedruntime;
|
||||
},
|
||||
HooksClientContext: function() {
|
||||
return _hooksclientcontextsharedruntime;
|
||||
},
|
||||
ImageConfigContext: function() {
|
||||
return _imageconfigcontextsharedruntime;
|
||||
},
|
||||
RouterContext: function() {
|
||||
return _routercontextsharedruntime;
|
||||
},
|
||||
ServerInsertedHtml: function() {
|
||||
return _serverinsertedhtmlsharedruntime;
|
||||
}
|
||||
});
|
||||
const _headmanagercontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/head-manager-context.shared-runtime"));
|
||||
const _serverinsertedhtmlsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/server-inserted-html.shared-runtime"));
|
||||
const _approutercontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/app-router-context.shared-runtime"));
|
||||
const _hooksclientcontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/hooks-client-context.shared-runtime"));
|
||||
const _routercontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/router-context.shared-runtime"));
|
||||
const _ampcontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/amp-context.shared-runtime"));
|
||||
const _imageconfigcontextsharedruntime = /*#__PURE__*/ _interop_require_wildcard(require("../../../../../shared/lib/image-config-context.shared-runtime"));
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
function _interop_require_wildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
||||
return {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
}
|
||||
var newObj = {
|
||||
__proto__: null
|
||||
};
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
for(var key in obj){
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
if (cache) {
|
||||
cache.set(obj, newObj);
|
||||
}
|
||||
return newObj;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=entrypoints.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/entrypoints.ts"],"sourcesContent":["export * as HeadManagerContext from '../../../../../shared/lib/head-manager-context.shared-runtime'\nexport * as ServerInsertedHtml from '../../../../../shared/lib/server-inserted-html.shared-runtime'\nexport * as AppRouterContext from '../../../../../shared/lib/app-router-context.shared-runtime'\nexport * as HooksClientContext from '../../../../../shared/lib/hooks-client-context.shared-runtime'\nexport * as RouterContext from '../../../../../shared/lib/router-context.shared-runtime'\nexport * as AmpContext from '../../../../../shared/lib/amp-context.shared-runtime'\nexport * as ImageConfigContext from '../../../../../shared/lib/image-config-context.shared-runtime'\n"],"names":["AmpContext","AppRouterContext","HeadManagerContext","HooksClientContext","ImageConfigContext","RouterContext","ServerInsertedHtml"],"mappings":";;;;;;;;;;;;;;;;;;;;IAKYA,UAAU;;;IAHVC,gBAAgB;;;IAFhBC,kBAAkB;;;IAGlBC,kBAAkB;;;IAGlBC,kBAAkB;;;IAFlBC,aAAa;;;IAHbC,kBAAkB;;;;yFADM;yFACA;uFACF;yFACE;oFACL;iFACH;yFACQ"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].HeadManagerContext;
|
||||
|
||||
//# sourceMappingURL=head-manager-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/head-manager-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].HeadManagerContext\n"],"names":["module","exports","require","vendored","HeadManagerContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].HooksClientContext;
|
||||
|
||||
//# sourceMappingURL=hooks-client-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/hooks-client-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].HooksClientContext\n"],"names":["module","exports","require","vendored","HooksClientContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].ImageConfigContext;
|
||||
|
||||
//# sourceMappingURL=image-config-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/image-config-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].ImageConfigContext\n"],"names":["module","exports","require","vendored","ImageConfigContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].RouterContext;
|
||||
|
||||
//# sourceMappingURL=router-context.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/router-context.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].RouterContext\n"],"names":["module","exports","require","vendored","RouterContext"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,aAAa"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['contexts'].ServerInsertedHtml;
|
||||
|
||||
//# sourceMappingURL=server-inserted-html.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/contexts/server-inserted-html.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'contexts'\n].ServerInsertedHtml\n"],"names":["module","exports","require","vendored","ServerInsertedHtml"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,WACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as ReactJsxDevRuntime from 'react/jsx-dev-runtime';
|
||||
import * as ReactJsxRuntime from 'react/jsx-runtime';
|
||||
import * as ReactCompilerRuntime from 'react/compiler-runtime';
|
||||
declare let ReactServerDOMTurbopackServerEdge: any, ReactServerDOMWebpackServerEdge: any;
|
||||
declare let ReactServerDOMTurbopackServerNode: any, ReactServerDOMWebpackServerNode: any;
|
||||
declare let ReactServerDOMTurbopackStaticEdge: any, ReactServerDOMWebpackStaticEdge: any;
|
||||
export { React, ReactJsxDevRuntime, ReactJsxRuntime, ReactCompilerRuntime, ReactDOM, ReactServerDOMWebpackServerEdge, ReactServerDOMTurbopackServerEdge, ReactServerDOMWebpackServerNode, ReactServerDOMTurbopackServerNode, ReactServerDOMWebpackStaticEdge, ReactServerDOMTurbopackStaticEdge, };
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
React: null,
|
||||
ReactCompilerRuntime: null,
|
||||
ReactDOM: null,
|
||||
ReactJsxDevRuntime: null,
|
||||
ReactJsxRuntime: null,
|
||||
ReactServerDOMTurbopackServerEdge: null,
|
||||
ReactServerDOMTurbopackServerNode: null,
|
||||
ReactServerDOMTurbopackStaticEdge: null,
|
||||
ReactServerDOMWebpackServerEdge: null,
|
||||
ReactServerDOMWebpackServerNode: null,
|
||||
ReactServerDOMWebpackStaticEdge: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
React: function() {
|
||||
return _react;
|
||||
},
|
||||
ReactCompilerRuntime: function() {
|
||||
return _compilerruntime;
|
||||
},
|
||||
ReactDOM: function() {
|
||||
return _reactdom;
|
||||
},
|
||||
ReactJsxDevRuntime: function() {
|
||||
return _jsxdevruntime;
|
||||
},
|
||||
ReactJsxRuntime: function() {
|
||||
return _jsxruntime;
|
||||
},
|
||||
ReactServerDOMTurbopackServerEdge: function() {
|
||||
return ReactServerDOMTurbopackServerEdge;
|
||||
},
|
||||
ReactServerDOMTurbopackServerNode: function() {
|
||||
return ReactServerDOMTurbopackServerNode;
|
||||
},
|
||||
ReactServerDOMTurbopackStaticEdge: function() {
|
||||
return ReactServerDOMTurbopackStaticEdge;
|
||||
},
|
||||
ReactServerDOMWebpackServerEdge: function() {
|
||||
return ReactServerDOMWebpackServerEdge;
|
||||
},
|
||||
ReactServerDOMWebpackServerNode: function() {
|
||||
return ReactServerDOMWebpackServerNode;
|
||||
},
|
||||
ReactServerDOMWebpackStaticEdge: function() {
|
||||
return ReactServerDOMWebpackStaticEdge;
|
||||
}
|
||||
});
|
||||
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
||||
const _reactdom = /*#__PURE__*/ _interop_require_wildcard(require("react-dom"));
|
||||
const _jsxdevruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/jsx-dev-runtime"));
|
||||
const _jsxruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/jsx-runtime"));
|
||||
const _compilerruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/compiler-runtime"));
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
function _interop_require_wildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
||||
return {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
}
|
||||
var newObj = {
|
||||
__proto__: null
|
||||
};
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
for(var key in obj){
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
if (cache) {
|
||||
cache.set(obj, newObj);
|
||||
}
|
||||
return newObj;
|
||||
}
|
||||
function getAltProxyForBindingsDEV(type, pkg) {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const altType = type === 'Turbopack' ? 'Webpack' : 'Turbopack';
|
||||
const altPkg = pkg.replace(new RegExp(type, 'gi'), altType.toLowerCase());
|
||||
return new Proxy({}, {
|
||||
get (_, prop) {
|
||||
throw new Error(`Expected to use ${type} bindings (${pkg}) for React but the current process is referencing '${prop}' from the ${altType} bindings (${altPkg}). This is likely a bug in our integration of the Next.js server runtime.`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
let ReactServerDOMTurbopackServerEdge, ReactServerDOMWebpackServerEdge;
|
||||
let ReactServerDOMTurbopackServerNode, ReactServerDOMWebpackServerNode;
|
||||
let ReactServerDOMTurbopackStaticEdge, ReactServerDOMWebpackStaticEdge;
|
||||
if (process.env.TURBOPACK) {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMTurbopackServerEdge = require('react-server-dom-turbopack/server.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMWebpackServerEdge = getAltProxyForBindingsDEV('Turbopack', 'react-server-dom-turbopack/server.edge');
|
||||
}
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMTurbopackServerNode = require('react-server-dom-turbopack/server.node');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMWebpackServerNode = getAltProxyForBindingsDEV('Turbopack', 'react-server-dom-turbopack/server.node');
|
||||
}
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMTurbopackStaticEdge = require('react-server-dom-turbopack/static.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMWebpackStaticEdge = getAltProxyForBindingsDEV('Turbopack', 'react-server-dom-turbopack/static.edge');
|
||||
}
|
||||
} else {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMWebpackServerEdge = require('react-server-dom-webpack/server.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMTurbopackServerEdge = getAltProxyForBindingsDEV('Webpack', 'react-server-dom-webpack/server.edge');
|
||||
}
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMWebpackServerNode = require('react-server-dom-webpack/server.node');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMTurbopackServerNode = getAltProxyForBindingsDEV('Webpack', 'react-server-dom-webpack/server.node');
|
||||
}
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMWebpackStaticEdge = require('react-server-dom-webpack/static.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMTurbopackStaticEdge = getAltProxyForBindingsDEV('Webpack', 'react-server-dom-webpack/static.edge');
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=entrypoints.js.map
|
||||
Generated
Vendored
+1
File diff suppressed because one or more lines are too long
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactCompilerRuntime;
|
||||
|
||||
//# sourceMappingURL=react-compiler-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-compiler-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactCompilerRuntime\n"],"names":["module","exports","require","vendored","ReactCompilerRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,oBAAoB"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactDOM;
|
||||
|
||||
//# sourceMappingURL=react-dom.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-dom.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored['react-rsc'].ReactDOM\n"],"names":["module","exports","require","vendored","ReactDOM"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CAAC,YAAY,CAACC,QAAQ"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactJsxDevRuntime;
|
||||
|
||||
//# sourceMappingURL=react-jsx-dev-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-jsx-dev-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactJsxDevRuntime\n"],"names":["module","exports","require","vendored","ReactJsxDevRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactJsxRuntime;
|
||||
|
||||
//# sourceMappingURL=react-jsx-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-jsx-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactJsxRuntime\n"],"names":["module","exports","require","vendored","ReactJsxRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,eAAe"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMTurbopackServerEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-turbopack-server-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMTurbopackServerEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMTurbopackServerEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,iCAAiC"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMTurbopackServerNode;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-turbopack-server-node.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-server-node.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMTurbopackServerNode\n"],"names":["module","exports","require","vendored","ReactServerDOMTurbopackServerNode"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,iCAAiC"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMTurbopackStaticEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-turbopack-static-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-turbopack-static-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMTurbopackStaticEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMTurbopackStaticEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,iCAAiC"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMWebpackServerEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMWebpackServerEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMWebpackServerEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,+BAA+B"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMWebpackServerNode;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-server-node.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-server-node.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMWebpackServerNode\n"],"names":["module","exports","require","vendored","ReactServerDOMWebpackServerNode"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,+BAA+B"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].ReactServerDOMWebpackStaticEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-static-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react-server-dom-webpack-static-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-rsc'\n].ReactServerDOMWebpackStaticEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMWebpackStaticEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,+BAA+B"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-rsc'].React;
|
||||
|
||||
//# sourceMappingURL=react.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/rsc/react.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored['react-rsc'].React\n"],"names":["module","exports","require","vendored","React"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CAAC,YAAY,CAACC,KAAK"}
|
||||
Generated
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as ReactJsxDevRuntime from 'react/jsx-dev-runtime';
|
||||
import * as ReactJsxRuntime from 'react/jsx-runtime';
|
||||
import * as ReactCompilerRuntime from 'react/compiler-runtime';
|
||||
import * as ReactDOMServerEdge from 'react-dom/server.edge';
|
||||
declare let ReactServerDOMTurbopackClientEdge: any, ReactServerDOMWebpackClientEdge: any;
|
||||
export { React, ReactJsxDevRuntime, ReactJsxRuntime, ReactCompilerRuntime, ReactDOM, ReactDOMServerEdge, ReactServerDOMTurbopackClientEdge, ReactServerDOMWebpackClientEdge, };
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
React: null,
|
||||
ReactCompilerRuntime: null,
|
||||
ReactDOM: null,
|
||||
ReactDOMServerEdge: null,
|
||||
ReactJsxDevRuntime: null,
|
||||
ReactJsxRuntime: null,
|
||||
ReactServerDOMTurbopackClientEdge: null,
|
||||
ReactServerDOMWebpackClientEdge: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
React: function() {
|
||||
return _react;
|
||||
},
|
||||
ReactCompilerRuntime: function() {
|
||||
return _compilerruntime;
|
||||
},
|
||||
ReactDOM: function() {
|
||||
return _reactdom;
|
||||
},
|
||||
ReactDOMServerEdge: function() {
|
||||
return _serveredge;
|
||||
},
|
||||
ReactJsxDevRuntime: function() {
|
||||
return _jsxdevruntime;
|
||||
},
|
||||
ReactJsxRuntime: function() {
|
||||
return _jsxruntime;
|
||||
},
|
||||
ReactServerDOMTurbopackClientEdge: function() {
|
||||
return ReactServerDOMTurbopackClientEdge;
|
||||
},
|
||||
ReactServerDOMWebpackClientEdge: function() {
|
||||
return ReactServerDOMWebpackClientEdge;
|
||||
}
|
||||
});
|
||||
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
||||
const _reactdom = /*#__PURE__*/ _interop_require_wildcard(require("react-dom"));
|
||||
const _jsxdevruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/jsx-dev-runtime"));
|
||||
const _jsxruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/jsx-runtime"));
|
||||
const _compilerruntime = /*#__PURE__*/ _interop_require_wildcard(require("react/compiler-runtime"));
|
||||
const _serveredge = /*#__PURE__*/ _interop_require_wildcard(require("react-dom/server.edge"));
|
||||
function _getRequireWildcardCache(nodeInterop) {
|
||||
if (typeof WeakMap !== "function") return null;
|
||||
var cacheBabelInterop = new WeakMap();
|
||||
var cacheNodeInterop = new WeakMap();
|
||||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||||
})(nodeInterop);
|
||||
}
|
||||
function _interop_require_wildcard(obj, nodeInterop) {
|
||||
if (!nodeInterop && obj && obj.__esModule) {
|
||||
return obj;
|
||||
}
|
||||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
||||
return {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
var cache = _getRequireWildcardCache(nodeInterop);
|
||||
if (cache && cache.has(obj)) {
|
||||
return cache.get(obj);
|
||||
}
|
||||
var newObj = {
|
||||
__proto__: null
|
||||
};
|
||||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||||
for(var key in obj){
|
||||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||||
if (desc && (desc.get || desc.set)) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
if (cache) {
|
||||
cache.set(obj, newObj);
|
||||
}
|
||||
return newObj;
|
||||
}
|
||||
function getAltProxyForBindingsDEV(type, pkg) {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const altType = type === 'Turbopack' ? 'Webpack' : 'Turbopack';
|
||||
const altPkg = pkg.replace(new RegExp(type, 'gi'), altType.toLowerCase());
|
||||
return new Proxy({}, {
|
||||
get (_, prop) {
|
||||
throw new Error(`Expected to use ${type} bindings (${pkg}) for React but the current process is referencing '${prop}' from the ${altType} bindings (${altPkg}). This is likely a bug in our integration of the Next.js server runtime.`);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
let ReactServerDOMTurbopackClientEdge, ReactServerDOMWebpackClientEdge;
|
||||
if (process.env.TURBOPACK) {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMTurbopackClientEdge = require('react-server-dom-turbopack/client.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMWebpackClientEdge = getAltProxyForBindingsDEV('Turbopack', 'react-server-dom-turbopack/client.edge');
|
||||
}
|
||||
} else {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
ReactServerDOMWebpackClientEdge = require('react-server-dom-webpack/client.edge');
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
ReactServerDOMTurbopackClientEdge = getAltProxyForBindingsDEV('Webpack', 'react-server-dom-webpack/client.edge');
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=entrypoints.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/entrypoints.ts"],"sourcesContent":["import * as React from 'react'\nimport * as ReactDOM from 'react-dom'\nimport * as ReactJsxDevRuntime from 'react/jsx-dev-runtime'\nimport * as ReactJsxRuntime from 'react/jsx-runtime'\nimport * as ReactCompilerRuntime from 'react/compiler-runtime'\n\n// eslint-disable-next-line import/no-extraneous-dependencies\nimport * as ReactDOMServerEdge from 'react-dom/server.edge'\n\nfunction getAltProxyForBindingsDEV(\n type: 'Turbopack' | 'Webpack',\n pkg:\n | 'react-server-dom-turbopack/client.edge'\n | 'react-server-dom-webpack/client.edge'\n) {\n if (process.env.NODE_ENV === 'development') {\n const altType = type === 'Turbopack' ? 'Webpack' : 'Turbopack'\n const altPkg = pkg.replace(new RegExp(type, 'gi'), altType.toLowerCase())\n\n return new Proxy(\n {},\n {\n get(_, prop: string) {\n throw new Error(\n `Expected to use ${type} bindings (${pkg}) for React but the current process is referencing '${prop}' from the ${altType} bindings (${altPkg}). This is likely a bug in our integration of the Next.js server runtime.`\n )\n },\n }\n )\n }\n}\n\nlet ReactServerDOMTurbopackClientEdge, ReactServerDOMWebpackClientEdge\nif (process.env.TURBOPACK) {\n // eslint-disable-next-line import/no-extraneous-dependencies\n ReactServerDOMTurbopackClientEdge = require('react-server-dom-turbopack/client.edge')\n if (process.env.NODE_ENV === 'development') {\n ReactServerDOMWebpackClientEdge = getAltProxyForBindingsDEV(\n 'Turbopack',\n 'react-server-dom-turbopack/client.edge'\n )\n }\n} else {\n // eslint-disable-next-line import/no-extraneous-dependencies\n ReactServerDOMWebpackClientEdge = require('react-server-dom-webpack/client.edge')\n if (process.env.NODE_ENV === 'development') {\n ReactServerDOMTurbopackClientEdge = getAltProxyForBindingsDEV(\n 'Webpack',\n 'react-server-dom-webpack/client.edge'\n )\n }\n}\n\nexport {\n React,\n ReactJsxDevRuntime,\n ReactJsxRuntime,\n ReactCompilerRuntime,\n ReactDOM,\n ReactDOMServerEdge,\n ReactServerDOMTurbopackClientEdge,\n ReactServerDOMWebpackClientEdge,\n}\n"],"names":["React","ReactCompilerRuntime","ReactDOM","ReactDOMServerEdge","ReactJsxDevRuntime","ReactJsxRuntime","ReactServerDOMTurbopackClientEdge","ReactServerDOMWebpackClientEdge","getAltProxyForBindingsDEV","type","pkg","process","env","NODE_ENV","altType","altPkg","replace","RegExp","toLowerCase","Proxy","get","_","prop","Error","TURBOPACK","require"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAsDEA,KAAK;eAALA;;IAGAC,oBAAoB;eAApBA;;IACAC,QAAQ;eAARA;;IACAC,kBAAkB;eAAlBA;;IAJAC,kBAAkB;eAAlBA;;IACAC,eAAe;eAAfA;;IAIAC,iCAAiC;eAAjCA;;IACAC,+BAA+B;eAA/BA;;;+DA7DqB;kEACG;uEACU;oEACH;yEACK;oEAGF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpC,SAASC,0BACPC,IAA6B,EAC7BC,GAE0C;IAE1C,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QAC1C,MAAMC,UAAUL,SAAS,cAAc,YAAY;QACnD,MAAMM,SAASL,IAAIM,OAAO,CAAC,IAAIC,OAAOR,MAAM,OAAOK,QAAQI,WAAW;QAEtE,OAAO,IAAIC,MACT,CAAC,GACD;YACEC,KAAIC,CAAC,EAAEC,IAAY;gBACjB,MAAM,IAAIC,MACR,CAAC,gBAAgB,EAAEd,KAAK,WAAW,EAAEC,IAAI,oDAAoD,EAAEY,KAAK,WAAW,EAAER,QAAQ,WAAW,EAAEC,OAAO,yEAAyE,CAAC;YAE3N;QACF;IAEJ;AACF;AAEA,IAAIT,mCAAmCC;AACvC,IAAII,QAAQC,GAAG,CAACY,SAAS,EAAE;IACzB,6DAA6D;IAC7DlB,oCAAoCmB,QAAQ;IAC5C,IAAId,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QAC1CN,kCAAkCC,0BAChC,aACA;IAEJ;AACF,OAAO;IACL,6DAA6D;IAC7DD,kCAAkCkB,QAAQ;IAC1C,IAAId,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QAC1CP,oCAAoCE,0BAClC,WACA;IAEJ;AACF"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactCompilerRuntime;
|
||||
|
||||
//# sourceMappingURL=react-compiler-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-compiler-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactCompilerRuntime\n"],"names":["module","exports","require","vendored","ReactCompilerRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,oBAAoB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactDOMServerEdge;
|
||||
|
||||
//# sourceMappingURL=react-dom-server-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-dom-server-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactDOMServerEdge\n"],"names":["module","exports","require","vendored","ReactDOMServerEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,kBAAkB"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactDOM;
|
||||
|
||||
//# sourceMappingURL=react-dom.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-dom.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored['react-ssr'].ReactDOM\n"],"names":["module","exports","require","vendored","ReactDOM"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CAAC,YAAY,CAACC,QAAQ"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactJsxDevRuntime;
|
||||
|
||||
//# sourceMappingURL=react-jsx-dev-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-jsx-dev-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactJsxDevRuntime\n"],"names":["module","exports","require","vendored","ReactJsxDevRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,kBAAkB"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactJsxRuntime;
|
||||
|
||||
//# sourceMappingURL=react-jsx-runtime.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactJsxRuntime\n"],"names":["module","exports","require","vendored","ReactJsxRuntime"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,eAAe"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactServerDOMTurbopackClientEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-turbopack-client-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-server-dom-turbopack-client-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactServerDOMTurbopackClientEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMTurbopackClientEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,iCAAiC"}
|
||||
Generated
Vendored
Generated
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].ReactServerDOMWebpackClientEdge;
|
||||
|
||||
//# sourceMappingURL=react-server-dom-webpack-client-edge.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react-server-dom-webpack-client-edge.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored[\n 'react-ssr'\n].ReactServerDOMWebpackClientEdge\n"],"names":["module","exports","require","vendored","ReactServerDOMWebpackClientEdge"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CACxD,YACD,CAACC,+BAA+B"}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
module.exports = require('../../module.compiled').vendored['react-ssr'].React;
|
||||
|
||||
//# sourceMappingURL=react.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../../src/server/route-modules/app-page/vendored/ssr/react.ts"],"sourcesContent":["module.exports = require('../../module.compiled').vendored['react-ssr'].React\n"],"names":["module","exports","require","vendored","React"],"mappings":";AAAAA,OAAOC,OAAO,GAAGC,QAAQ,yBAAyBC,QAAQ,CAAC,YAAY,CAACC,KAAK"}
|
||||
Generated
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import type { AppRouteHandlerFn, AppRouteHandlers } from '../module';
|
||||
import { type HTTP_METHOD } from '../../../web/http';
|
||||
export declare function autoImplementMethods(handlers: AppRouteHandlers): Record<HTTP_METHOD, AppRouteHandlerFn>;
|
||||
Generated
Vendored
+81
@@ -0,0 +1,81 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "autoImplementMethods", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return autoImplementMethods;
|
||||
}
|
||||
});
|
||||
const _http = require("../../../web/http");
|
||||
const AUTOMATIC_ROUTE_METHODS = [
|
||||
'HEAD',
|
||||
'OPTIONS'
|
||||
];
|
||||
function handleMethodNotAllowedResponse() {
|
||||
return new Response(null, {
|
||||
status: 405
|
||||
});
|
||||
}
|
||||
function autoImplementMethods(handlers) {
|
||||
// Loop through all the HTTP methods to create the initial methods object.
|
||||
// Each of the methods will be set to the 405 response handler.
|
||||
const methods = _http.HTTP_METHODS.reduce((acc, method)=>({
|
||||
...acc,
|
||||
// If the userland module implements the method, then use it. Otherwise,
|
||||
// use the 405 response handler.
|
||||
[method]: handlers[method] ?? handleMethodNotAllowedResponse
|
||||
}), {});
|
||||
// Get all the methods that could be automatically implemented that were not
|
||||
// implemented by the userland module.
|
||||
const implemented = new Set(_http.HTTP_METHODS.filter((method)=>handlers[method]));
|
||||
const missing = AUTOMATIC_ROUTE_METHODS.filter((method)=>!implemented.has(method));
|
||||
// Loop over the missing methods to automatically implement them if we can.
|
||||
for (const method of missing){
|
||||
// If the userland module doesn't implement the HEAD method, then
|
||||
// we'll automatically implement it by calling the GET method (if it
|
||||
// exists).
|
||||
if (method === 'HEAD') {
|
||||
if (handlers.GET) {
|
||||
// Implement the HEAD method by calling the GET method.
|
||||
methods.HEAD = handlers.GET;
|
||||
// Mark it as implemented.
|
||||
implemented.add('HEAD');
|
||||
}
|
||||
continue;
|
||||
}
|
||||
// If OPTIONS is not provided then implement it.
|
||||
if (method === 'OPTIONS') {
|
||||
// TODO: check if HEAD is implemented, if so, use it to add more headers
|
||||
// Get all the methods that were implemented by the userland module.
|
||||
const allow = [
|
||||
'OPTIONS',
|
||||
...implemented
|
||||
];
|
||||
// If the list of methods doesn't include HEAD, but it includes GET, then
|
||||
// add HEAD as it's automatically implemented.
|
||||
if (!implemented.has('HEAD') && implemented.has('GET')) {
|
||||
allow.push('HEAD');
|
||||
}
|
||||
// Sort and join the list with commas to create the `Allow` header. See:
|
||||
// https://httpwg.org/specs/rfc9110.html#field.allow
|
||||
const headers = {
|
||||
Allow: allow.sort().join(', ')
|
||||
};
|
||||
// Implement the OPTIONS method by returning a 204 response with the
|
||||
// `Allow` header.
|
||||
methods.OPTIONS = ()=>new Response(null, {
|
||||
status: 204,
|
||||
headers
|
||||
});
|
||||
// Mark this method as implemented.
|
||||
implemented.add('OPTIONS');
|
||||
continue;
|
||||
}
|
||||
throw new Error(`Invariant: should handle all automatic implementable methods, got method: ${method}`);
|
||||
}
|
||||
return methods;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=auto-implement-methods.js.map
|
||||
Generated
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../src/server/route-modules/app-route/helpers/auto-implement-methods.ts"],"sourcesContent":["import type { AppRouteHandlerFn, AppRouteHandlers } from '../module'\n\nimport { HTTP_METHODS, type HTTP_METHOD } from '../../../web/http'\n\nconst AUTOMATIC_ROUTE_METHODS = ['HEAD', 'OPTIONS'] as const\n\nfunction handleMethodNotAllowedResponse(): Response {\n return new Response(null, { status: 405 })\n}\n\nexport function autoImplementMethods(\n handlers: AppRouteHandlers\n): Record<HTTP_METHOD, AppRouteHandlerFn> {\n // Loop through all the HTTP methods to create the initial methods object.\n // Each of the methods will be set to the 405 response handler.\n const methods: Record<HTTP_METHOD, AppRouteHandlerFn> = HTTP_METHODS.reduce(\n (acc, method) => ({\n ...acc,\n // If the userland module implements the method, then use it. Otherwise,\n // use the 405 response handler.\n [method]: handlers[method] ?? handleMethodNotAllowedResponse,\n }),\n {} as Record<HTTP_METHOD, AppRouteHandlerFn>\n )\n\n // Get all the methods that could be automatically implemented that were not\n // implemented by the userland module.\n const implemented = new Set(HTTP_METHODS.filter((method) => handlers[method]))\n const missing = AUTOMATIC_ROUTE_METHODS.filter(\n (method) => !implemented.has(method)\n )\n\n // Loop over the missing methods to automatically implement them if we can.\n for (const method of missing) {\n // If the userland module doesn't implement the HEAD method, then\n // we'll automatically implement it by calling the GET method (if it\n // exists).\n if (method === 'HEAD') {\n if (handlers.GET) {\n // Implement the HEAD method by calling the GET method.\n methods.HEAD = handlers.GET\n\n // Mark it as implemented.\n implemented.add('HEAD')\n }\n continue\n }\n\n // If OPTIONS is not provided then implement it.\n if (method === 'OPTIONS') {\n // TODO: check if HEAD is implemented, if so, use it to add more headers\n\n // Get all the methods that were implemented by the userland module.\n const allow: HTTP_METHOD[] = ['OPTIONS', ...implemented]\n\n // If the list of methods doesn't include HEAD, but it includes GET, then\n // add HEAD as it's automatically implemented.\n if (!implemented.has('HEAD') && implemented.has('GET')) {\n allow.push('HEAD')\n }\n\n // Sort and join the list with commas to create the `Allow` header. See:\n // https://httpwg.org/specs/rfc9110.html#field.allow\n const headers = { Allow: allow.sort().join(', ') }\n\n // Implement the OPTIONS method by returning a 204 response with the\n // `Allow` header.\n methods.OPTIONS = () => new Response(null, { status: 204, headers })\n\n // Mark this method as implemented.\n implemented.add('OPTIONS')\n\n continue\n }\n\n throw new Error(\n `Invariant: should handle all automatic implementable methods, got method: ${method}`\n )\n }\n\n return methods\n}\n"],"names":["autoImplementMethods","AUTOMATIC_ROUTE_METHODS","handleMethodNotAllowedResponse","Response","status","handlers","methods","HTTP_METHODS","reduce","acc","method","implemented","Set","filter","missing","has","GET","HEAD","add","allow","push","headers","Allow","sort","join","OPTIONS","Error"],"mappings":";;;;+BAUgBA;;;eAAAA;;;sBAR+B;AAE/C,MAAMC,0BAA0B;IAAC;IAAQ;CAAU;AAEnD,SAASC;IACP,OAAO,IAAIC,SAAS,MAAM;QAAEC,QAAQ;IAAI;AAC1C;AAEO,SAASJ,qBACdK,QAA0B;IAE1B,0EAA0E;IAC1E,+DAA+D;IAC/D,MAAMC,UAAkDC,kBAAY,CAACC,MAAM,CACzE,CAACC,KAAKC,SAAY,CAAA;YAChB,GAAGD,GAAG;YACN,wEAAwE;YACxE,gCAAgC;YAChC,CAACC,OAAO,EAAEL,QAAQ,CAACK,OAAO,IAAIR;QAChC,CAAA,GACA,CAAC;IAGH,4EAA4E;IAC5E,sCAAsC;IACtC,MAAMS,cAAc,IAAIC,IAAIL,kBAAY,CAACM,MAAM,CAAC,CAACH,SAAWL,QAAQ,CAACK,OAAO;IAC5E,MAAMI,UAAUb,wBAAwBY,MAAM,CAC5C,CAACH,SAAW,CAACC,YAAYI,GAAG,CAACL;IAG/B,2EAA2E;IAC3E,KAAK,MAAMA,UAAUI,QAAS;QAC5B,iEAAiE;QACjE,oEAAoE;QACpE,WAAW;QACX,IAAIJ,WAAW,QAAQ;YACrB,IAAIL,SAASW,GAAG,EAAE;gBAChB,uDAAuD;gBACvDV,QAAQW,IAAI,GAAGZ,SAASW,GAAG;gBAE3B,0BAA0B;gBAC1BL,YAAYO,GAAG,CAAC;YAClB;YACA;QACF;QAEA,gDAAgD;QAChD,IAAIR,WAAW,WAAW;YACxB,wEAAwE;YAExE,oEAAoE;YACpE,MAAMS,QAAuB;gBAAC;mBAAcR;aAAY;YAExD,yEAAyE;YACzE,8CAA8C;YAC9C,IAAI,CAACA,YAAYI,GAAG,CAAC,WAAWJ,YAAYI,GAAG,CAAC,QAAQ;gBACtDI,MAAMC,IAAI,CAAC;YACb;YAEA,wEAAwE;YACxE,oDAAoD;YACpD,MAAMC,UAAU;gBAAEC,OAAOH,MAAMI,IAAI,GAAGC,IAAI,CAAC;YAAM;YAEjD,oEAAoE;YACpE,kBAAkB;YAClBlB,QAAQmB,OAAO,GAAG,IAAM,IAAItB,SAAS,MAAM;oBAAEC,QAAQ;oBAAKiB;gBAAQ;YAElE,mCAAmC;YACnCV,YAAYO,GAAG,CAAC;YAEhB;QACF;QAEA,MAAM,IAAIQ,MACR,CAAC,0EAA0E,EAAEhB,QAAQ;IAEzF;IAEA,OAAOJ;AACT"}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Cleans a URL by stripping the protocol, host, and search params.
|
||||
*
|
||||
* @param urlString the url to clean
|
||||
* @returns the cleaned url
|
||||
*/
|
||||
export declare function cleanURL(url: string | URL): URL;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user