crash-js 0.1.9 → 0.1.11

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/crash-js/crash-js CHANGED
@@ -215,17 +215,16 @@ function
215
215
  let
216
216
  _stdout_write;
217
217
  if ( typeof window === 'undefined' ) {
218
- process.stdout.write(
219
- _text);
218
+ _stdout =
219
+ process.stdout;
220
220
  }
221
221
  if ( typeof window != 'undefined' ) {
222
- console.error("hello");
223
- _stdout_write =
222
+ _stdout =
224
223
  require(
225
- "browser-stdout");
226
- _stdout_write(
227
- _text);
224
+ "stream-browserify");
228
225
  }
226
+ _stdout.write(
227
+ _text);
229
228
  }
230
229
 
231
230
  function
package/crash-js/fs-utils CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
2
-
3
1
  // SPDX-License-Identifier: AGPL-3.0-or-later
4
2
 
5
3
  // ----------------------------------------------------------------------
@@ -25,6 +23,9 @@ _window_type = typeof window;
25
23
  if ( typeof window === 'undefined' ) {
26
24
  _fs_module_name =
27
25
  "fs";
26
+ _fs =
27
+ require(
28
+ _fs_module_name);
28
29
  _path_module_name =
29
30
  "path";
30
31
  }
@@ -19,26 +19,30 @@
19
19
  // You should have received a copy of the GNU Affero General Public License
20
20
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
21
21
 
22
+ // const
23
+ // _libcrash =
24
+ // require(
25
+ // 'crash-js');
26
+ // _cmdline_check =
27
+ // _libcrash._cmdline_check;
28
+ // _error_display =
29
+ // _libcrash._error_display;
30
+ // _ext_rm =
31
+ // _libcrash._ext_rm;
32
+ // _file_read =
33
+ // _libcrash._file_read;
34
+ // _file_write =
35
+ // _libcrash._file_write;
36
+ // _json_read =
37
+ // _libcrash._json_read;
38
+ // _msg_info =
39
+ // _libcrash._msg_info;
40
+ // _msg_error =
41
+ // _libcrash._msg_error;
42
+
22
43
  const
23
- _libcrash =
24
- require(
25
- 'crash-js');
26
- _cmdline_check =
27
- _libcrash._cmdline_check;
28
- _error_display =
29
- _libcrash._error_display;
30
- _ext_rm =
31
- _libcrash._ext_rm;
32
- _file_read =
33
- _libcrash._file_read;
34
- _file_write =
35
- _libcrash._file_write;
36
- _json_read =
37
- _libcrash._json_read;
38
- _msg_info =
39
- _libcrash._msg_info;
40
- _msg_error =
41
- _libcrash._msg_error;
44
+ _happy_opfs =
45
+ require("happy-opfs");
42
46
 
43
47
  function
44
48
  _global_variables() {
@@ -48,8 +52,10 @@ function
48
52
 
49
53
  function
50
54
  _ahsi() {
51
- _msg_info(
55
+ console.log(
52
56
  "ciao");
57
+ // _msg_info(
58
+ // "ciao");
53
59
  }
54
60
 
55
61
  function
@@ -0,0 +1 @@
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){(function(e){app_name="ahsi",quiet="n",app_opts=[],function(){console.log("ciao")}.apply(null,app_opts)}).call(this,n(1))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var l,f=[],a=!1,s=-1;function p(){a&&l&&(a=!1,l.length?f=l.concat(f):s=-1,f.length&&h())}function h(){if(!a){var e=c(p);a=!0;for(var t=f.length;t;){for(l=f,f=[];++s<t;)l&&l[s].run();s=-1,t=f.length}l=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new d(e,t)),1!==f.length||a||c(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}}]);
@@ -27,9 +27,9 @@
27
27
  "url": "https://github.com/tallero"
28
28
  },
29
29
  "dependencies": {
30
- "crash-js": "^0.1.8",
31
- "webpack": "^4.4.7",
32
- "webpack-cli": "^4.10.0"
30
+ "crash-js": "^0.1.10",
31
+ "webpack": "^5.102.1",
32
+ "webpack-cli": "^6.0.1"
33
33
  },
34
34
  "type": "commonjs",
35
35
  "main": "ahsi",
@@ -23,5 +23,6 @@ module.exports = {
23
23
  entry:
24
24
  './ahsi',
25
25
  output:
26
- _output
26
+ _output,
27
+ },
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crash-js",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Crash Javascript library.",
5
5
  "funding": {
6
6
  "type": "patreon",
@@ -35,7 +35,7 @@
35
35
  "url": "https://github.com/tallero"
36
36
  },
37
37
  "dependencies": {
38
- "browser-stdout": "npm:@themartiancompany/browser-stdout@^1.3.1",
38
+ "stream-browserify": "^3.0.0",
39
39
  "happy-opfs": "npm:@themartiancompany/happy-opfs@^1.8.8"
40
40
  },
41
41
  "type": "commonjs",