feat(blog): add file-based blog with dynamic slugs, MDX content and layout shell
- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
This commit is contained in:
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.d.ts
generated
vendored
Normal file
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.d.ts
generated
vendored
Normal file
10
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.js
generated
vendored
Normal file
10
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// this empty files is only here to mock server-only imports
|
||||
"use strict";
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=empty.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/empty.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/empty.ts"],"sourcesContent":["// this empty files is only here to mock server-only imports\n"],"names":[],"mappings":"AAAA,4DAA4D","ignoreList":[0]}
|
||||
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.d.ts
generated
vendored
Normal file
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.d.ts
generated
vendored
Normal file
15
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.js
generated
vendored
Normal file
15
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
module.exports = {
|
||||
src: '/img.jpg',
|
||||
height: 40,
|
||||
width: 40,
|
||||
blurDataURL: 'data:image/png;base64,imagedata'
|
||||
};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=fileMock.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/fileMock.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/fileMock.ts"],"sourcesContent":["module.exports = {\n src: '/img.jpg',\n height: 40,\n width: 40,\n blurDataURL: 'data:image/png;base64,imagedata',\n}\n"],"names":["module","exports","src","height","width","blurDataURL"],"mappings":";AAAAA,OAAOC,OAAO,GAAG;IACfC,KAAK;IACLC,QAAQ;IACRC,OAAO;IACPC,aAAa;AACf","ignoreList":[0]}
|
||||
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.d.ts
generated
vendored
Normal file
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.d.ts
generated
vendored
Normal file
20
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js
generated
vendored
Normal file
20
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
module.exports = new Proxy({}, {
|
||||
get: function getter() {
|
||||
return ()=>({
|
||||
className: 'className',
|
||||
variable: 'variable',
|
||||
style: {
|
||||
fontFamily: 'fontFamily'
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=nextFontMock.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/nextFontMock.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/nextFontMock.ts"],"sourcesContent":["module.exports = new Proxy(\n {},\n {\n get: function getter() {\n return () => ({\n className: 'className',\n variable: 'variable',\n style: { fontFamily: 'fontFamily' },\n })\n },\n }\n)\n"],"names":["module","exports","Proxy","get","getter","className","variable","style","fontFamily"],"mappings":";AAAAA,OAAOC,OAAO,GAAG,IAAIC,MACnB,CAAC,GACD;IACEC,KAAK,SAASC;QACZ,OAAO,IAAO,CAAA;gBACZC,WAAW;gBACXC,UAAU;gBACVC,OAAO;oBAAEC,YAAY;gBAAa;YACpC,CAAA;IACF;AACF","ignoreList":[0]}
|
||||
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.d.ts
generated
vendored
Normal file
0
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.d.ts
generated
vendored
Normal file
10
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.js
generated
vendored
Normal file
10
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
module.exports = {};
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=styleMock.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/__mocks__/styleMock.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../src/build/jest/__mocks__/styleMock.ts"],"sourcesContent":["module.exports = {}\n"],"names":["module","exports"],"mappings":";AAAAA,OAAOC,OAAO,GAAG,CAAC","ignoreList":[0]}
|
||||
24
apps/public-web/node_modules/next/dist/build/jest/jest.d.ts
generated
vendored
Normal file
24
apps/public-web/node_modules/next/dist/build/jest/jest.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { Config } from '@jest/types';
|
||||
/**
|
||||
* @example
|
||||
* ```ts
|
||||
* // Usage in jest.config.js
|
||||
* const nextJest = require('next/jest');
|
||||
*
|
||||
* // Optionally provide path to Next.js app which will enable loading next.config.js and .env files
|
||||
* const createJestConfig = nextJest({ dir })
|
||||
*
|
||||
* // Any custom config you want to pass to Jest
|
||||
* const customJestConfig = {
|
||||
* setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
* }
|
||||
*
|
||||
* // createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async
|
||||
* module.exports = createJestConfig(customJestConfig)
|
||||
* ```
|
||||
*
|
||||
* Read more: [Next.js Docs: Setting up Jest with Next.js](https://nextjs.org/docs/app/building-your-application/testing/jest)
|
||||
*/
|
||||
export default function nextJest(options?: {
|
||||
dir?: string;
|
||||
}): (customJestConfig?: Config.InitialProjectOptions | (() => Promise<Config.InitialProjectOptions>)) => () => Promise<Config.InitialProjectOptions>;
|
||||
227
apps/public-web/node_modules/next/dist/build/jest/jest.js
generated
vendored
Normal file
227
apps/public-web/node_modules/next/dist/build/jest/jest.js
generated
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, /**
|
||||
* @example
|
||||
* ```ts
|
||||
* // Usage in jest.config.js
|
||||
* const nextJest = require('next/jest');
|
||||
*
|
||||
* // Optionally provide path to Next.js app which will enable loading next.config.js and .env files
|
||||
* const createJestConfig = nextJest({ dir })
|
||||
*
|
||||
* // Any custom config you want to pass to Jest
|
||||
* const customJestConfig = {
|
||||
* setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
|
||||
* }
|
||||
*
|
||||
* // createJestConfig is exported in this way to ensure that next/jest can load the Next.js config which is async
|
||||
* module.exports = createJestConfig(customJestConfig)
|
||||
* ```
|
||||
*
|
||||
* Read more: [Next.js Docs: Setting up Jest with Next.js](https://nextjs.org/docs/app/building-your-application/testing/jest)
|
||||
*/ "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return nextJest;
|
||||
}
|
||||
});
|
||||
const _env = require("@next/env");
|
||||
const _path = require("path");
|
||||
const _config = /*#__PURE__*/ _interop_require_default(require("../../server/config"));
|
||||
const _constants = require("../../shared/lib/constants");
|
||||
const _loadjsconfig = /*#__PURE__*/ _interop_require_default(require("../load-jsconfig"));
|
||||
const _log = /*#__PURE__*/ _interop_require_wildcard(require("../output/log"));
|
||||
const _findpagesdir = require("../../lib/find-pages-dir");
|
||||
const _swc = require("../swc");
|
||||
const _installbindings = require("../swc/install-bindings");
|
||||
function _interop_require_default(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
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;
|
||||
}
|
||||
const DEFAULT_TRANSPILED_PACKAGES = require('../../lib/default-transpiled-packages.json');
|
||||
async function getConfig(dir) {
|
||||
const conf = await (0, _config.default)(_constants.PHASE_TEST, dir);
|
||||
return conf;
|
||||
}
|
||||
/**
|
||||
* Loads closest package.json in the directory hierarchy
|
||||
*/ function loadClosestPackageJson(dir, attempts = 1) {
|
||||
if (attempts > 5) {
|
||||
throw Object.defineProperty(new Error("Can't resolve main package.json file"), "__NEXT_ERROR_CODE", {
|
||||
value: "E139",
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
var mainPath = attempts === 1 ? './' : Array(attempts).join('../');
|
||||
try {
|
||||
return require((0, _path.join)(dir, mainPath + 'package.json'));
|
||||
} catch (e) {
|
||||
return loadClosestPackageJson(dir, attempts + 1);
|
||||
}
|
||||
}
|
||||
/** Loads dotenv files and sets environment variables based on next config. */ function setUpEnv(dir) {
|
||||
const dev = false;
|
||||
(0, _env.loadEnvConfig)(dir, dev, _log);
|
||||
}
|
||||
function nextJest(options = {}) {
|
||||
// createJestConfig
|
||||
return (customJestConfig)=>{
|
||||
// Function that is provided as the module.exports of jest.config.js
|
||||
// Will be called and awaited by Jest
|
||||
return async ()=>{
|
||||
var _nextConfig_experimental, _nextConfig_experimental1;
|
||||
let nextConfig;
|
||||
let jsConfig;
|
||||
let resolvedBaseUrl;
|
||||
let isEsmProject = false;
|
||||
let pagesDir;
|
||||
let serverComponents;
|
||||
if (options.dir) {
|
||||
const resolvedDir = (0, _path.resolve)(options.dir);
|
||||
const packageConfig = loadClosestPackageJson(resolvedDir);
|
||||
isEsmProject = packageConfig.type === 'module';
|
||||
nextConfig = await getConfig(resolvedDir);
|
||||
const findPagesDirResult = (0, _findpagesdir.findPagesDir)(resolvedDir);
|
||||
serverComponents = !!findPagesDirResult.appDir;
|
||||
pagesDir = findPagesDirResult.pagesDir;
|
||||
setUpEnv(resolvedDir);
|
||||
// TODO: revisit when bug in SWC is fixed that strips `.css`
|
||||
const result = await (0, _loadjsconfig.default)(resolvedDir, nextConfig);
|
||||
jsConfig = result.jsConfig;
|
||||
resolvedBaseUrl = result.resolvedBaseUrl;
|
||||
}
|
||||
// Ensure provided async config is supported
|
||||
const resolvedJestConfig = (typeof customJestConfig === 'function' ? await customJestConfig() : customJestConfig) ?? {};
|
||||
// eagerly load swc bindings instead of waiting for transform calls
|
||||
await (0, _installbindings.installBindings)(nextConfig == null ? void 0 : (_nextConfig_experimental = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental.useWasmBinary);
|
||||
if (_swc.lockfilePatchPromise.cur) {
|
||||
await _swc.lockfilePatchPromise.cur;
|
||||
}
|
||||
const transpiled = ((nextConfig == null ? void 0 : nextConfig.transpilePackages) ?? []).concat(DEFAULT_TRANSPILED_PACKAGES).join('|');
|
||||
const jestTransformerConfig = {
|
||||
modularizeImports: nextConfig == null ? void 0 : nextConfig.modularizeImports,
|
||||
swcPlugins: nextConfig == null ? void 0 : (_nextConfig_experimental1 = nextConfig.experimental) == null ? void 0 : _nextConfig_experimental1.swcPlugins,
|
||||
compilerOptions: nextConfig == null ? void 0 : nextConfig.compiler,
|
||||
jsConfig,
|
||||
resolvedBaseUrl,
|
||||
serverComponents,
|
||||
isEsmProject,
|
||||
pagesDir
|
||||
};
|
||||
return {
|
||||
...resolvedJestConfig,
|
||||
moduleNameMapper: {
|
||||
// Handle CSS imports (with CSS modules)
|
||||
// https://jestjs.io/docs/webpack#mocking-css-modules
|
||||
'^.+\\.module\\.(css|sass|scss)$': require.resolve('./object-proxy.js'),
|
||||
// Handle CSS imports (without CSS modules)
|
||||
'^.+\\.(css|sass|scss)$': require.resolve('./__mocks__/styleMock.js'),
|
||||
// Handle image imports
|
||||
'^.+\\.(png|jpg|jpeg|gif|webp|avif|ico|bmp)$': require.resolve(`./__mocks__/fileMock.js`),
|
||||
// Keep .svg to it's own rule to make overriding easy
|
||||
'^.+\\.(svg)$': require.resolve(`./__mocks__/fileMock.js`),
|
||||
// Handle @next/font
|
||||
'@next/font/(.*)': require.resolve('./__mocks__/nextFontMock.js'),
|
||||
// Handle next/font
|
||||
'next/font/(.*)': require.resolve('./__mocks__/nextFontMock.js'),
|
||||
// Disable server-only
|
||||
'^server-only$': require.resolve('./__mocks__/empty.js'),
|
||||
// custom config comes last to ensure the above rules are matched,
|
||||
// fixes the case where @pages/(.*) -> src/pages/$! doesn't break
|
||||
// CSS/image mocks
|
||||
...resolvedJestConfig.moduleNameMapper || {}
|
||||
},
|
||||
testPathIgnorePatterns: [
|
||||
// Don't look for tests in node_modules
|
||||
'/node_modules/',
|
||||
// Don't look for tests in the Next.js build output
|
||||
'/.next/',
|
||||
// Custom config can append to testPathIgnorePatterns but not modify it
|
||||
// This is to ensure `.next` and `node_modules` are always excluded
|
||||
...resolvedJestConfig.testPathIgnorePatterns || []
|
||||
],
|
||||
transform: {
|
||||
// Use SWC to compile tests
|
||||
'^.+\\.(js|jsx|ts|tsx|mjs)$': [
|
||||
require.resolve('../swc/jest-transformer'),
|
||||
jestTransformerConfig
|
||||
],
|
||||
// Allow for appending/overriding the default transforms
|
||||
...resolvedJestConfig.transform || {}
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
// To match Next.js behavior node_modules is not transformed, only `transpiledPackages`
|
||||
...transpiled ? [
|
||||
`/node_modules/(?!.pnpm)(?!(${transpiled})/)`,
|
||||
`/node_modules/.pnpm/(?!(${transpiled.replace(/\//g, '\\+')})@)`
|
||||
] : [
|
||||
'/node_modules/'
|
||||
],
|
||||
// CSS modules are mocked so they don't need to be transformed
|
||||
'^.+\\.module\\.(css|sass|scss)$',
|
||||
// Custom config can append to transformIgnorePatterns but not modify it
|
||||
// This is to ensure `node_modules` and .module.css/sass/scss are always excluded
|
||||
...resolvedJestConfig.transformIgnorePatterns || []
|
||||
],
|
||||
watchPathIgnorePatterns: [
|
||||
// Don't re-run tests when the Next.js build output changes
|
||||
'/.next/',
|
||||
...resolvedJestConfig.watchPathIgnorePatterns || []
|
||||
]
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=jest.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/jest.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/jest.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2
apps/public-web/node_modules/next/dist/build/jest/object-proxy.d.ts
generated
vendored
Normal file
2
apps/public-web/node_modules/next/dist/build/jest/object-proxy.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const _default: {};
|
||||
export default _default;
|
||||
50
apps/public-web/node_modules/next/dist/build/jest/object-proxy.js
generated
vendored
Normal file
50
apps/public-web/node_modules/next/dist/build/jest/object-proxy.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Keyan Zhang
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
*/ // This file is largely based on https://github.com/keyz/identity-obj-proxy
|
||||
// Excludes the polyfill for below Node.js 6
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _default = new Proxy({}, {
|
||||
get: function getter(_target, key) {
|
||||
if (key === '__esModule') {
|
||||
return false;
|
||||
}
|
||||
return key;
|
||||
}
|
||||
});
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=object-proxy.js.map
|
||||
1
apps/public-web/node_modules/next/dist/build/jest/object-proxy.js.map
generated
vendored
Normal file
1
apps/public-web/node_modules/next/dist/build/jest/object-proxy.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../src/build/jest/object-proxy.ts"],"sourcesContent":["/*\nThe MIT License (MIT)\n\nCopyright (c) 2015 Keyan Zhang\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n// This file is largely based on https://github.com/keyz/identity-obj-proxy\n// Excludes the polyfill for below Node.js 6\nexport default new Proxy(\n {},\n {\n get: function getter(_target, key) {\n if (key === '__esModule') {\n return false\n }\n return key\n },\n }\n)\n"],"names":["Proxy","get","getter","_target","key"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBA,GAEA,2EAA2E;AAC3E,4CAA4C;;;;;+BAC5C;;;eAAA;;;MAAA,WAAe,IAAIA,MACjB,CAAC,GACD;IACEC,KAAK,SAASC,OAAOC,OAAO,EAAEC,GAAG;QAC/B,IAAIA,QAAQ,cAAc;YACxB,OAAO;QACT;QACA,OAAOA;IACT;AACF","ignoreList":[0]}
|
||||
Reference in New Issue
Block a user