safely-serve 0.0.8 → 0.0.10

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.
@@ -27,13 +27,9 @@ const
27
27
  { resourceRegExp:
28
28
  /^node:child_process$/ };
29
29
  const
30
- _utils_ignore =
30
+ _node_fs_ignore =
31
31
  { resourceRegExp:
32
- /^utils$/ };
33
- const
34
- _web_worker_ignore =
35
- { resourceRegExp:
36
- /^web-worker$/ };
32
+ /^node:fs$/ };
37
33
  const
38
34
  _serve_ignore =
39
35
  { resourceRegExp:
@@ -58,17 +54,13 @@ const
58
54
  new _ignore_plugin(
59
55
  _child_process_ignore);
60
56
  const
61
- _serve_ignore_plugin =
57
+ _node_fs_ignore_plugin =
62
58
  new _ignore_plugin(
63
- _serve_ignore);
59
+ _node_fs_ignore);
64
60
  const
65
- _utils_ignore_plugin =
66
- new _ignore_plugin(
67
- _utils_ignore);
68
- const
69
- _web_worker_ignore_plugin =
61
+ _serve_ignore_plugin =
70
62
  new _ignore_plugin(
71
- _web_worker_ignore);
63
+ _serve_ignore);
72
64
  const
73
65
  _yargs_ignore_plugin =
74
66
  new _ignore_plugin(
@@ -117,6 +109,8 @@ module.exports = {
117
109
  'node_modules/yargs-parser/browser.mjs'),
118
110
  },
119
111
  fallback: {
112
+ "node:fs":
113
+ false,
120
114
  "node:child_process":
121
115
  false,
122
116
  "serve":
@@ -139,6 +133,7 @@ module.exports = {
139
133
  "yargs":
140
134
  'yargs' },
141
135
  plugins: [
136
+ _node_fs_ignore_plugin,
142
137
  _child_process_ignore_plugin,
143
138
  _serve_ignore_plugin,
144
139
  _yargs_ignore_plugin,
package/fs-worker.js DELETED
@@ -1 +0,0 @@
1
- (()=>{var e={314:(e,o,n)=>{const t=n(816);_sync_agent=t.startSyncAgent,e.exports={_sync_agent},_sync_agent()},816:(e,o,n)=>{function t(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(){let e;try{e=n(816)}catch(e){console.log(e);const o="Error importing the '@themartiancompany/opfs' module as 'opfs'. If you got this error while bundling a webpack for a project depending on this module double check its 'webpack.config.js' file or whether the 'opfs' module is listed in developer dependencies and install them.I'm sorry for this inconvenience but Node packagement system does not currently distinguish 'development' from 'build' dependencies.";throw console.error(o),e}return e}()),e}const r=t();e.exports=r,e.exports.getModule=function(e){let o;if(""==_module_name||"undefined"==typeof _module_name)o=t();else if("opfs"==_module_name)o=n(816);else{if("fs"!=_module_name){const e="Unknown file system module "+`'${_module_name}'.`.const;throw _error={msg:e},console.error(e),_error}o=n(816)}return o}}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(314)})();