safely-serve 0.0.1 → 0.0.8
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/libsafely-serve +292 -70
- package/libsafely-serve.webpack.config.cjs +26 -0
- package/man/safely-serve.1 +152 -17
- package/package.json +6 -4
- package/safely-serve +509 -201
- package/safely-serve.js +2 -0
- package/webpack.config.cjs +31 -1
package/webpack.config.cjs
CHANGED
|
@@ -22,6 +22,10 @@ const
|
|
|
22
22
|
filename:
|
|
23
23
|
_output_file_name
|
|
24
24
|
};
|
|
25
|
+
const
|
|
26
|
+
_child_process_ignore =
|
|
27
|
+
{ resourceRegExp:
|
|
28
|
+
/^node:child_process$/ };
|
|
25
29
|
const
|
|
26
30
|
_utils_ignore =
|
|
27
31
|
{ resourceRegExp:
|
|
@@ -30,6 +34,10 @@ const
|
|
|
30
34
|
_web_worker_ignore =
|
|
31
35
|
{ resourceRegExp:
|
|
32
36
|
/^web-worker$/ };
|
|
37
|
+
const
|
|
38
|
+
_serve_ignore =
|
|
39
|
+
{ resourceRegExp:
|
|
40
|
+
/^serve$/ };
|
|
33
41
|
const
|
|
34
42
|
_yargs_ignore =
|
|
35
43
|
{ resourceRegExp:
|
|
@@ -45,6 +53,14 @@ const
|
|
|
45
53
|
const
|
|
46
54
|
_ignore_plugin =
|
|
47
55
|
_webpack.IgnorePlugin;
|
|
56
|
+
const
|
|
57
|
+
_child_process_ignore_plugin =
|
|
58
|
+
new _ignore_plugin(
|
|
59
|
+
_child_process_ignore);
|
|
60
|
+
const
|
|
61
|
+
_serve_ignore_plugin =
|
|
62
|
+
new _ignore_plugin(
|
|
63
|
+
_serve_ignore);
|
|
48
64
|
const
|
|
49
65
|
_utils_ignore_plugin =
|
|
50
66
|
new _ignore_plugin(
|
|
@@ -75,6 +91,10 @@ module.exports = {
|
|
|
75
91
|
_path.resolve(
|
|
76
92
|
__dirname,
|
|
77
93
|
'node_modules/fs/fs'),
|
|
94
|
+
"os":
|
|
95
|
+
_path.resolve(
|
|
96
|
+
__dirname,
|
|
97
|
+
'node_modules/os'),
|
|
78
98
|
"path":
|
|
79
99
|
_path.resolve(
|
|
80
100
|
__dirname,
|
|
@@ -97,6 +117,10 @@ module.exports = {
|
|
|
97
117
|
'node_modules/yargs-parser/browser.mjs'),
|
|
98
118
|
},
|
|
99
119
|
fallback: {
|
|
120
|
+
"node:child_process":
|
|
121
|
+
false,
|
|
122
|
+
"serve":
|
|
123
|
+
false,
|
|
100
124
|
"utils":
|
|
101
125
|
false,
|
|
102
126
|
"web-worker":
|
|
@@ -108,9 +132,15 @@ module.exports = {
|
|
|
108
132
|
}
|
|
109
133
|
},
|
|
110
134
|
externals:
|
|
111
|
-
{
|
|
135
|
+
{ "node:child_process":
|
|
136
|
+
"node:child_process",
|
|
137
|
+
"serve":
|
|
138
|
+
'serve',
|
|
139
|
+
"yargs":
|
|
112
140
|
'yargs' },
|
|
113
141
|
plugins: [
|
|
142
|
+
_child_process_ignore_plugin,
|
|
143
|
+
_serve_ignore_plugin,
|
|
114
144
|
_yargs_ignore_plugin,
|
|
115
145
|
_yargs_helpers_ignore_plugin
|
|
116
146
|
]
|