Spaces:
Sleeping
Sleeping
Download node_modules/next/dist/shared/lib/page-path/normalize-data-path.js from imspsycho/ling-open-studio: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/spaces/imspsycho/ling-open-studio/resolve/main/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js
- Command line
-
hf download hf://spaces/imspsycho/ling-open-studio/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js
-
curl -L -o normalize-data-path.js https://huggingface.co/spaces/imspsycho/ling-open-studio/resolve/main/node_modules/next/dist/shared/lib/page-path/normalize-data-path.js
655 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "normalizeDataPath", { | |
| enumerable: true, | |
| get: function() { | |
| return normalizeDataPath; | |
| } | |
| }); | |
| const _pathhasprefix = require("../router/utils/path-has-prefix"); | |
| function normalizeDataPath(pathname) { | |
| if (!(0, _pathhasprefix.pathHasPrefix)(pathname || '/', '/_next/data')) { | |
| return pathname; | |
| } | |
| pathname = pathname.replace(/\/_next\/data\/[^/]{1,}/, '').replace(/\.json$/, ''); | |
| if (pathname === '/index') { | |
| return '/'; | |
| } | |
| return pathname; | |
| } | |
| //# sourceMappingURL=normalize-data-path.js.map |