unpeek 3.0.0 → 4.0.0
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/README.md +27 -13
- package/README.tr.md +37 -23
- package/dist/adapters/esbuild.cjs +5 -5
- package/dist/adapters/esbuild.d.cts +3 -1
- package/dist/adapters/esbuild.d.ts +2 -2
- package/dist/adapters/esbuild.js +5 -3
- package/dist/adapters/next/adapter.cjs +7 -6
- package/dist/adapters/next/adapter.d.cts +1 -1
- package/dist/adapters/next/adapter.d.ts +1 -1
- package/dist/adapters/next/adapter.js +6 -5
- package/dist/adapters/next/index.cjs +7 -6
- package/dist/adapters/next/index.js +6 -5
- package/dist/adapters/rollup.cjs +5 -5
- package/dist/adapters/rollup.d.cts +3 -1
- package/dist/adapters/rollup.d.ts +2 -2
- package/dist/adapters/rollup.js +5 -3
- package/dist/adapters/rspack.cjs +5 -4
- package/dist/adapters/rspack.d.cts +1 -1
- package/dist/adapters/rspack.d.ts +1 -1
- package/dist/adapters/rspack.js +3 -2
- package/dist/adapters/vite.cjs +5 -5
- package/dist/adapters/vite.d.cts +3 -1
- package/dist/adapters/vite.d.ts +2 -2
- package/dist/adapters/vite.js +5 -3
- package/dist/adapters/webpack.cjs +5 -5
- package/dist/adapters/webpack.d.cts +3 -1
- package/dist/adapters/webpack.d.ts +2 -2
- package/dist/adapters/webpack.js +5 -3
- package/dist/browser.cjs +3 -3
- package/dist/browser.d.cts +20 -17
- package/dist/browser.d.ts +20 -17
- package/dist/browser.js +2 -2
- package/dist/{chunk-BPRSCRUZ.js → chunk-2JU3V7HW.js} +6 -3
- package/dist/chunk-3LWXEJU6.cjs +1054 -0
- package/dist/{chunk-IZIWDJRF.js → chunk-4FNZNIBW.js} +2675 -651
- package/dist/chunk-7HXLHLLQ.cjs +503 -0
- package/dist/chunk-ADKRENAP.js +1054 -0
- package/dist/{chunk-FCF2EGPM.js → chunk-EN6QVR6P.js} +12 -3
- package/dist/chunk-HHC7BUCK.js +503 -0
- package/dist/{chunk-IAD5DV3D.cjs → chunk-KLYFNMKS.cjs} +2812 -788
- package/dist/{chunk-IEBVL5BT.cjs → chunk-URPPSTHZ.cjs} +12 -3
- package/dist/chunk-VG4Y26ZN.cjs +429 -0
- package/dist/{chunk-IICVBTR2.js → chunk-W77DAC3H.js} +22 -3
- package/dist/{chunk-ONM2CSTU.cjs → chunk-X6EETCO6.cjs} +64 -45
- package/dist/chunk-YCRMTXOE.js +429 -0
- package/dist/{chunk-6TDCSIRZ.cjs → chunk-ZG7BIAUI.cjs} +9 -6
- package/dist/cli/index.js +3693 -1141
- package/dist/{config-CfXY_iDD.d.ts → config-Y6JwVGwX.d.cts} +15 -1
- package/dist/{config-CfXY_iDD.d.cts → config-Y6JwVGwX.d.ts} +15 -1
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/dist/{index-CjRTNPlj.d.cts → index-0O1WSfVP.d.ts} +7 -1
- package/dist/{index-Cm1IloVm.d.ts → index-COVHErnx.d.cts} +7 -1
- package/dist/index.cjs +65 -264
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +59 -258
- package/dist/plugins/unplugin.cjs +4 -3
- package/dist/plugins/unplugin.js +3 -2
- package/dist/{types-DYQIzGf6.d.cts → types-CMtZnV8C.d.ts} +3 -3
- package/dist/{types-ZHAFdOd3.d.ts → types-D93PuOOl.d.cts} +3 -3
- package/package.json +1 -1
- package/dist/chunk-APWMNVAZ.js +0 -764
- package/dist/chunk-DUK2SECY.js +0 -83
- package/dist/chunk-I6GXEHFR.cjs +0 -764
- package/dist/chunk-RXUY3MPH.cjs +0 -83
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7HXLHLLQcjs = require('./chunk-7HXLHLLQ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3LWXEJU6cjs = require('./chunk-3LWXEJU6.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkKLYFNMKScjs = require('./chunk-KLYFNMKS.cjs');
|
|
8
11
|
|
|
9
12
|
|
|
10
13
|
|
|
@@ -96,8 +99,8 @@ function createUnpeekNextAdapter(options = {}) {
|
|
|
96
99
|
elapsedMs: 0
|
|
97
100
|
};
|
|
98
101
|
}
|
|
99
|
-
const deterministicSeed = typeof options.seed === "number" ? options.seed : context.buildId ?
|
|
100
|
-
const summary = await
|
|
102
|
+
const deterministicSeed = typeof options.seed === "number" ? options.seed : context.buildId ? _chunkKLYFNMKScjs.computeFnv1aHash.call(void 0, context.buildId, 1597463007) : 1597463007;
|
|
103
|
+
const summary = await _chunk7HXLHLLQcjs.protectProject.call(void 0, {
|
|
101
104
|
...options,
|
|
102
105
|
cwd,
|
|
103
106
|
outDir: targetDir,
|
|
@@ -112,7 +115,7 @@ function createUnpeekNextAdapter(options = {}) {
|
|
|
112
115
|
if (!rawFilePath) continue;
|
|
113
116
|
let absPath = _path2.default.isAbsolute(rawFilePath) ? rawFilePath : _path2.default.resolve(cwd, rawFilePath);
|
|
114
117
|
if (!_fs2.default.existsSync(absPath)) {
|
|
115
|
-
const relClean = rawFilePath.replace(/\\/g, "/").replace(/^\/?(?:_next\/|\.next\/)/, "");
|
|
118
|
+
const relClean = _chunk3LWXEJU6cjs.safeDecodeURIComponent.call(void 0, rawFilePath).replace(/\\/g, "/").replace(/^\/?(?:_next\/|\.next\/)/, "");
|
|
116
119
|
const fromDist = _path2.default.resolve(distDir, relClean);
|
|
117
120
|
if (_fs2.default.existsSync(fromDist)) {
|
|
118
121
|
absPath = fromDist;
|
|
@@ -187,7 +190,7 @@ function applyWithUnpeek(config = {}, options) {
|
|
|
187
190
|
process.env.UNPEEK_UPSTREAM_ADAPTER_PATH = options.upstreamAdapterPath;
|
|
188
191
|
}
|
|
189
192
|
if (options) {
|
|
190
|
-
const serialized =
|
|
193
|
+
const serialized = _chunk7HXLHLLQcjs.serializeNextOptions.call(void 0, options);
|
|
191
194
|
const byteLength = Buffer.byteLength(serialized, "utf8");
|
|
192
195
|
if (byteLength > MAX_NEXT_OPTIONS_ENV_BYTES) {
|
|
193
196
|
throw new (0, _chunkL6BOM5VScjs.UnpeekError)(
|