Echo JS 0.11.0

<~>

tracker1 comments

tracker1 2111 days ago. link 1 point ▲ ▼
Most of the "dependencies" should be "peerDependencies" and/or worked around directly.  gh-pages in particular should be a "devDependency" .. your demo/gh-pages  should really have its' own directory/package.json and be part of .npmignore so they aren't in the final distribution.
tracker1 2112 days ago. link 1 point ▲ ▼
With help from https://stackoverflow.com/a/43438960

    window.addEventListener('DOMContentLoaded', (event) => {
      document.documentElement.addEventListener('paste', e => {
        if (e.target.nodeName.toLowerCase() === 'input') {
          e.preventDefault();
          var text;
          var clp = (e.originalEvent || e).clipboardData;
          if (clp === undefined || clp === null) {
            text = window.clipboardData.getData("text") || "";
            if (text !== "") {
              text = text.replace(/[\t\r\n\s]+/g, " ");
              document.selection.createRange().pasteHTML(text);
            }
          } else {
            text = clp.getData('text/plain') || " ";
            if (text !== "") {
              text = text.replace(/[\t\r\n\s]+/g, " ");
              document.execCommand('insertText', false, text);
            }
          }
        }
      });
    });

Note, the regex I'm calling out \t as well as \r\s and \s ... \s is any whitespace, and probably all you want/need adjust ast desired.
tracker1 2112 days ago. link 1 point ▲ ▼
I don't know what this adds beyond the existing React class component lifecycle beyond adding new property/event names.
tracker1 2117 days ago. link 1 point ▲ ▼
Been using this via babel for years, glad it's finally in Node 14, and the browsers without a transform or polyfill.
tracker1 2117 days ago. link 1 point ▲ ▼
Crazy light on content for this one... I mean there's a lot of words and description, but the little example doesn't lead anyone down a path of being able to use the feature at all.
tracker1 2118 days ago. link 2 points ▲ ▼
These days you should really be using Intl.DateTimeFormat for this.
tracker1 2120 days ago. link 1 point ▲ ▼
Are you meaning the Chrome/Firefox console?  Or firebug as an integrated console extension.  You can definitely debug mjs with the developer console.
tracker1 2120 days ago. link 1 point ▲ ▼
Dude! This is your third post on this in a month... chill.
tracker1 2120 days ago. link 1 point ▲ ▼
NOTE: You can *NOT* rely on this method to complete before the tab/window closes.  It may or may not work depending on latency to the server, or the time it takes to fulfill the request etc.

Make other efforts using localstorage and a worker, if you want to avoid this failing to finish.
[more]