innetjs 2.3.7 → 2.3.9
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/_virtual/_rollup-plugin-process-env.js +1 -1
- package/_virtual/_rollup-plugin-process-env.mjs +1 -1
- package/bin/innet +4 -3
- package/index.js +3 -2
- package/index.mjs +3 -2
- package/package.json +1 -1
package/bin/innet
CHANGED
|
@@ -306,7 +306,7 @@ class InnetJS {
|
|
|
306
306
|
if (node) {
|
|
307
307
|
outputOptions.format = 'cjs';
|
|
308
308
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
309
|
-
options.plugins.push(string({
|
|
309
|
+
options.plugins.push(pluginNodeResolve.nodeResolve(), string({
|
|
310
310
|
include: '**/*.*',
|
|
311
311
|
exclude: stringExcludeNode,
|
|
312
312
|
}));
|
|
@@ -395,7 +395,7 @@ class InnetJS {
|
|
|
395
395
|
// @ts-expect-error
|
|
396
396
|
options.output.format = 'cjs';
|
|
397
397
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
398
|
-
options.plugins.push(string({
|
|
398
|
+
options.plugins.push(pluginNodeResolve.nodeResolve(), string({
|
|
399
399
|
include: '**/*.*',
|
|
400
400
|
exclude: stringExcludeNode,
|
|
401
401
|
}), this.createServer());
|
|
@@ -724,6 +724,7 @@ class InnetJS {
|
|
|
724
724
|
if ((_a = this.proxy) === null || _a === void 0 ? void 0 : _a.startsWith('http')) {
|
|
725
725
|
app.use(this.api, proxy__default["default"](this.proxy, {
|
|
726
726
|
https: httpsUsing,
|
|
727
|
+
limit: '1000mb',
|
|
727
728
|
proxyReqPathResolver: req => req.originalUrl,
|
|
728
729
|
}));
|
|
729
730
|
}
|
|
@@ -771,7 +772,7 @@ class InnetJS {
|
|
|
771
772
|
}
|
|
772
773
|
|
|
773
774
|
(function () {
|
|
774
|
-
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.
|
|
775
|
+
const env = {"__INNETJS__PACKAGE_VERSION":"2.3.9"};
|
|
775
776
|
if (typeof process === 'undefined') {
|
|
776
777
|
globalThis.process = { env: env };
|
|
777
778
|
} else if (process.env) {
|
package/index.js
CHANGED
|
@@ -194,7 +194,7 @@ class InnetJS {
|
|
|
194
194
|
if (node) {
|
|
195
195
|
outputOptions.format = 'cjs';
|
|
196
196
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
197
|
-
options.plugins.push(string({
|
|
197
|
+
options.plugins.push(pluginNodeResolve.nodeResolve(), string({
|
|
198
198
|
include: '**/*.*',
|
|
199
199
|
exclude: constants.stringExcludeNode,
|
|
200
200
|
}));
|
|
@@ -283,7 +283,7 @@ class InnetJS {
|
|
|
283
283
|
// @ts-expect-error
|
|
284
284
|
options.output.format = 'cjs';
|
|
285
285
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
286
|
-
options.plugins.push(string({
|
|
286
|
+
options.plugins.push(pluginNodeResolve.nodeResolve(), string({
|
|
287
287
|
include: '**/*.*',
|
|
288
288
|
exclude: constants.stringExcludeNode,
|
|
289
289
|
}), this.createServer());
|
|
@@ -612,6 +612,7 @@ class InnetJS {
|
|
|
612
612
|
if ((_a = this.proxy) === null || _a === void 0 ? void 0 : _a.startsWith('http')) {
|
|
613
613
|
app.use(this.api, proxy__default["default"](this.proxy, {
|
|
614
614
|
https: httpsUsing,
|
|
615
|
+
limit: '1000mb',
|
|
615
616
|
proxyReqPathResolver: req => req.originalUrl,
|
|
616
617
|
}));
|
|
617
618
|
}
|
package/index.mjs
CHANGED
|
@@ -159,7 +159,7 @@ class InnetJS {
|
|
|
159
159
|
if (node) {
|
|
160
160
|
outputOptions.format = 'cjs';
|
|
161
161
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
162
|
-
options.plugins.push(string({
|
|
162
|
+
options.plugins.push(nodeResolve(), string({
|
|
163
163
|
include: '**/*.*',
|
|
164
164
|
exclude: stringExcludeNode,
|
|
165
165
|
}));
|
|
@@ -248,7 +248,7 @@ class InnetJS {
|
|
|
248
248
|
// @ts-expect-error
|
|
249
249
|
options.output.format = 'cjs';
|
|
250
250
|
options.external = Object.keys((pkg === null || pkg === void 0 ? void 0 : pkg.dependencies) || {});
|
|
251
|
-
options.plugins.push(string({
|
|
251
|
+
options.plugins.push(nodeResolve(), string({
|
|
252
252
|
include: '**/*.*',
|
|
253
253
|
exclude: stringExcludeNode,
|
|
254
254
|
}), this.createServer());
|
|
@@ -577,6 +577,7 @@ class InnetJS {
|
|
|
577
577
|
if ((_a = this.proxy) === null || _a === void 0 ? void 0 : _a.startsWith('http')) {
|
|
578
578
|
app.use(this.api, proxy(this.proxy, {
|
|
579
579
|
https: httpsUsing,
|
|
580
|
+
limit: '1000mb',
|
|
580
581
|
proxyReqPathResolver: req => req.originalUrl,
|
|
581
582
|
}));
|
|
582
583
|
}
|