multiwebinc

multiwebinc

Member Since 10 years ago

Costa Rica

Experience Points
11
follower
Lessons Completed
0
follow
Lessons Completed
109
stars
Best Reply Awards
59
repos

49 contributions in the last year

Pinned
⚡ AdminBSB - Free admin panel that is based on Bootstrap 3.x with Material Design
⚡ A PHP security library.
⚡ reCAPTCHA plugin for OctoberCMS
⚡ Compatibility with the password_* functions being worked on for PHP 5.5
⚡ Simple Diff Function implemented in Python, PHP, CoffeeScript, and JavaScript
⚡ Online translation tool
Activity
Nov
19
1 week ago
Activity icon
fork

multiwebinc forked thephpleague/html-to-markdown

⚡ Convert HTML to Markdown with PHP
multiwebinc MIT License Updated
fork time in 1 week ago
Activity icon
issue

multiwebinc issue comment thephpleague/html-to-markdown

multiwebinc
multiwebinc

Horizontal rules use non-standard format

Version(s) affected

5.0.2

Description

According to https://www.markdownguide.org/basic-syntax/#horizontal-rules

To create a horizontal rule, use three or more asterisks (***), dashes (---), or underscores (___) on a line by themselves.

This library, instead, uses - - - - - -, which would appear to be non-standard from everywhere I could find.

This causes an issue (for example) with https://github.com/erusev/parsedown when you have an unordered list followed by a horizontal rule. When parsed as HTML, the <hr> is appended to an additional <li> inside the list instead of being after the list.

How to reproduce

<hr>

multiwebinc
multiwebinc

Thanks @colinodell. I wasn't aware of that spec. I've therefore reported a bug in the Parsedown repo erusev/parsedown#818. Unfortunately, the code for the parser there hasn't been updated for 3 years now, so who knows...

Activity icon
issue

multiwebinc issue erusev/parsedown

multiwebinc
multiwebinc

Unordered list followed by horizontal rule produces incorrect HTML

According to https://spec.commonmark.org/0.30/#thematic-breaks, for thematic breaks,

[s]paces and tabs are allowed between the characters:

Therefore, we can use - - - (with spaces in between), which should produce a <hr /> tag in the HTML.

This works in parsedown, except when the hr is after a ul:

- List item

- - -

This incorrectly produces the HTML:

<ul>
<li>
<p>List item</p>
</li>
<li>
<ul>
<li>-</li>
</ul>
</li>
</ul>

Expected output:

<ul>
<li>List item</li>
</ul>

<hr />
Activity icon
issue

multiwebinc issue thephpleague/html-to-markdown

multiwebinc
multiwebinc

Horizontal rules use non-standard format

Version(s) affected

5.0.2

Description

According to https://www.markdownguide.org/basic-syntax/#horizontal-rules

To create a horizontal rule, use three or more asterisks (***), dashes (---), or underscores (___) on a line by themselves.

This library, instead, uses - - - - - -, which would appear to be non-standard from everywhere I could find.

This causes an issue (for example) with https://github.com/erusev/parsedown when you have an unordered list followed by a horizontal rule. When parsed as HTML, the <hr> is appended to an additional <li> inside the list instead of being after the list.

How to reproduce

<hr>

Nov
18
1 week ago
Activity icon
issue

multiwebinc issue thephpleague/html-to-markdown

multiwebinc
multiwebinc

Line breaks inside tag

Version(s) affected

5.0.2

Description

Line breaks inside tags produce incorrect markdown

How to reproduce

HTML:

<b>Hello<br><br>World</b>

Output:

**Hello  
  
world**

Expected output:

**Hello**
  
**world**
Nov
17
1 week ago
Activity icon
issue

multiwebinc issue thephpleague/html-to-markdown

multiwebinc
multiwebinc

Incorrect markdown when text is not in a tag

Version(s) affected

5.0.2

Description

Text not within a tag has weird behavior

How to reproduce

HTML:

<h1>Heading one</h1>
    	
Some text

<h2>Heading two</h2>

Output:

Heading one
===========

 Some text Heading two
-----------

HTML:

<h1>Heading one</h1>
    	
Some text

<h3>Heading two</h3>

Output:

Heading one
===========

 Some text ### Heading two

However this works correctly:

Some text

<h3>Heading</h3>

Output:

Some text

### Heading
Oct
22
1 month ago
Activity icon
issue

multiwebinc issue comment sidorares/node-mysql2

multiwebinc
multiwebinc

Error: Can't add new command when connection is in closed state

Hi

I fascing last 2 days this error please help me...

{ Error: read ETIMEDOUT at TCP.onread (net.js:622:25) errno: 'ETIMEDOUT', code: 'ETIMEDOUT', syscall: 'read', fatal: true } { Error: Can't add new command when connection is in closed state at PoolConnection._addCommandClosedState

I use mysql 2 and connect Pool

var mysql = require('mysql2'); var mysqlPool = mysql.createPool({
host: 'localhost', user: 'root', password: 'xyz', database: 'xyz', waitForConnections: true, connectionLimit: 10, queueLimit: 0 });

module.exports = mysqlPool;

55|| { Error: read ETIMEDOUT 55|| at TCP.onread (net.js:622:25) 55|| errno: 'ETIMEDOUT', 55|| code: 'ETIMEDOUT', 55| | syscall: 'read', 55|| fatal: true } 55|| { Error: Can't add new command when connection is in closed state 55| at PoolConnection._addCommandClosedState

multiwebinc
multiwebinc

This is what I did to prevent this error from happening:

let mysqlConnection = null;
const getMysqlConnection = async () => {
  // Check to see if connection exists and is not in the "closing" state
  if (!mysqlConnection || mysqlConnection?.connection?._closing) {
    mysqlConnection = await createNewMysqlConnection();
  }
  return mysqlConnection;
}

const createNewMysqlConnection = async () => {
  const mysql = require('mysql2/promise');
  const bluebird = require('bluebird');
  const connection = await mysql.createConnection({
    host: process.env.MYSQL_HOST,
    database: process.env.MYSQL_DATABASE,
    user: process.env.MYSQL_USER,
    password: process.env.MYSQL_PASSWORD,
    Promise: bluebird,
  });

  // You can do something here to handle the connection
  // being closed when it occurs.
  connection.connection.stream.on('close', () => {
    console.log("MySQL connection closed");
  });
  return connection;
}
Oct
20
1 month ago
Activity icon
created branch
createdAt 1 month ago
Activity icon
created repository
createdAt 1 month ago
Oct
16
1 month ago
Activity icon
issue

multiwebinc issue comment remix-run/react-router

multiwebinc
multiwebinc

[Bug]: Nested routes not matching

What version of React Router are you using?

6.0.0-beta.6

Steps to Reproduce

In my parent component I have:

<Routes>
  <Route
    path="*"
    element={
      <SubComponent />
    }
  />
</Routes>

And then in <SubComponent /> I have:

<Routes>
  <Route
    path="*"
    element={
      <SomethingElse />
    }
  />
  <Route path="availability" element={<OtherComponent />} />
</Routes>

None of the routes in <SubComponent /> match. This was working in beta 5, so I'm not sure if this is a bug or the behavior has changed slightly.

Expected Behavior

Actual Behavior

multiwebinc
multiwebinc

Note, this still persists with beta 7.

Oct
15
1 month ago
Activity icon
fork

multiwebinc forked ourworldincode/currency

multiwebinc MIT License Updated
fork time in 1 month ago
Oct
12
1 month ago
Activity icon
issue

multiwebinc issue remix-run/react-router

multiwebinc
multiwebinc

[Bug]: Nested routes not matching

What version of React Router are you using?

6.0.0-beta.6

Steps to Reproduce

In my parent component I have:

<Routes>
  <Route
    path="*"
    element={
      <SubComponent />
    }
  />
</Routes>

And then in <SubComponent /> I have:

<Routes>
  <Route
    path="*"
    element={
      <SomethingElse />
    }
  />
  <Route path="availability" element={<OtherComponent />} />
</Routes>

None of the routes in <SubComponent /> match. This was working in beta 5, so I'm not sure if this is a bug or the behavior has changed slightly.

Expected Behavior

Actual Behavior

Activity icon
issue

multiwebinc issue remix-run/react-router

multiwebinc
multiwebinc

[Bug]: useParams behavior different when upgrading from 6.0.0-beta.4 to 6.0.0-beta.5

What version of React Router are you using?

6.0.0-beta.5

Steps to Reproduce

I have the following routes.

  <Router>
    <Routes>
      <Route path="/" element={<NoProperty />} />
      <Route
        path="/:property/*"
        element={
          <LanguageWrapper>
            <Provider store={store}>
              <App />
            </Provider>
          </LanguageWrapper>
        }
      />
    </Routes>
  </Router>

Then in a sub-component:

const params = useParams();

Expected Behavior

params should contain the property property. This was the behavior in 6.0.0-beta.4. Previously, I did the following to extract the property property:

const { property } = useParams();

Actual Behavior

If you do:

const params = useParams();

params is {*: ''}

It does not contain a property property.

Edit (FYI):

If I do the following in the subcomponent:

const match = useMatch('/:property');

Then match.params.property contains the correct value.

Activity icon
issue

multiwebinc issue comment remix-run/react-router

multiwebinc
multiwebinc

[Bug]: useParams behavior different when upgrading from 6.0.0-beta.4 to 6.0.0-beta.5

What version of React Router are you using?

6.0.0-beta.5

Steps to Reproduce

I have the following routes.

  <Router>
    <Routes>
      <Route path="/" element={<NoProperty />} />
      <Route
        path="/:property/*"
        element={
          <LanguageWrapper>
            <Provider store={store}>
              <App />
            </Provider>
          </LanguageWrapper>
        }
      />
    </Routes>
  </Router>

Then in a sub-component:

const params = useParams();

Expected Behavior

params should contain the property property. This was the behavior in 6.0.0-beta.4. Previously, I did the following to extract the property property:

const { property } = useParams();

Actual Behavior

If you do:

const params = useParams();

params is {*: ''}

It does not contain a property property.

Edit (FYI):

If I do the following in the subcomponent:

const match = useMatch('/:property');

Then match.params.property contains the correct value.

multiwebinc
multiwebinc

@mjackson Yes, it appears to be fixed now. Thanks.

Oct
8
1 month ago
Activity icon
issue

multiwebinc issue Ubuntu-Cinnamon-Remix/yaru-cinnamon

multiwebinc
multiwebinc

Error with yaru-cinnamon-theme-icon when doing dist-upgrade on fresh install

Fresh install of Ubuntu Cinnamon Remix. First thing I did was upgrade the packages and it errors out with the following package:

# apt dist-upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  yaru-cinnamon-theme-icon
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/27,1 MB of archives.
After this operation, 16,8 MB of additional disk space will be used.
(Reading database ... 321705 files and directories currently installed.)
Preparing to unpack .../yaru-cinnamon-theme-icon_21.10.1_all.deb ...
Unpacking yaru-cinnamon-theme-icon (21.10.1) over (21.04.3) ...
dpkg: error processing archive /var/cache/apt/archives/yaru-cinnamon-theme-icon_21.10.1_all.deb (--unpack):
 unable to open '/usr/share/icons/Yaru-Cinnamon/16x16/categories/applications-multimedia.png.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Errors were encountered while processing:
 /var/cache/apt/archives/yaru-cinnamon-theme-icon_21.10.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Sep
28
2 months ago
Activity icon
issue

multiwebinc issue remix-run/react-router

multiwebinc
multiwebinc

[Bug]:

What version of React Router are you using?

6.0.0-beta.5

Steps to Reproduce

I have the following routes.

  <Router>
    <Routes>
      <Route path="/" element={<NoProperty />} />
      <Route
        path="/:property/*"
        element={
          <LanguageWrapper>
            <Provider store={store}>
              <App />
            </Provider>
          </LanguageWrapper>
        }
      />
    </Routes>
  </Router>

Then in a sub-component:

const params = useParams();

Expected Behavior

params should contain the property property. This was the behavior in 6.0.0-beta.4. Previously, I did the following to extract the property property:

const { property } = useParams();

Actual Behavior

If you do:

const params = useParams();

params is {*: ''}

It does not contain a property property.

Sep
16
2 months ago
Sep
14
2 months ago
Activity icon
issue

multiwebinc issue remix-run/react-router

multiwebinc
multiwebinc

[Bug]: Route children are no longer rendered

What version of React Router are you using?

6.0.0-beta.4

Steps to Reproduce

I'm not sure if this is a bug or intentional, however in 6.0.0-beta.3, this worked:

<Route path="path">
  <Component />
</Route>

However in 6.0.0-beta.4, rendering of children like this appears to have been removed, and you are now required to use the element property:

<Route path="availability" element={<ReservationForm />} />

I don't see anything about this in the release notes.

Expected Behavior

Unsure

Actual Behavior

Children are no longer rendered.

Sep
5
2 months ago
open pull request

multiwebinc wants to merge Faithlife/react-reftagger

multiwebinc
multiwebinc

Allow localization

Fixes #9

multiwebinc
multiwebinc

Oh, ok. I got you now. I slightly misread. Either way is fine for me. However, would it cause confusion to people that omitting the language attribute is how you set it to English? I think the most important thing is that it is as clear as possible to the person implementing the extension rather than having the code being slightly cleaner. What do you think?

Sep
4
2 months ago
open pull request

multiwebinc wants to merge Faithlife/react-reftagger

multiwebinc
multiwebinc

Allow localization

Fixes #9

multiwebinc
multiwebinc

@jameschensmith I agree that that would be much cleaner, however, the issue is that https://api.reftagger.com/v2/RefTagger.en.js is not (currently) supported. English requires no language suffix and the other languages require their respective language suffix.

Activity icon
issue

multiwebinc issue react-bootstrap/react-bootstrap

multiwebinc
multiwebinc

Tooltip gives me console errors

I'm using react-bootstrap 1.6.1 with the Tooltip component. It is functional, however, I get the following error in the console every time the OverlayTrigger is moused over:

Popper: modifier "popoverArrowMargins" provided an invalid "fn" property, expected "function" but got "undefined" at https://lacolhost.com:3000/static/js/vendors~main.chunk.js:136717:20 at Overlay (https://lacolhost.com:3000/static/js/vendors~main.chunk.js:131862:22) at OverlayTrigger (https://lacolhost.com:3000/static/js/vendors~main.chunk.js:132001:22) at PromoDetailsModal (https://lacolhost.com:3000/static/js/main.chunk.js:10961:3) at div ...

The following code produces the error:

import { OverlayTrigger, Tooltip } from 'react-bootstrap';

const PromoDetailsModal = () => {
  const renderTooltip = props => (
    <Tooltip id="button-tooltip" {...props}>
      Price details
    </Tooltip>
  );

  return (
    <OverlayTrigger overlay={renderTooltip}>
      <h1>Hover for price details</h1>
    </OverlayTrigger>
  );
};

export default PromoDetailsModal;

Here is my package.json dependencies in case that is relevant:

{
  "dependencies": {
    "@babel/runtime": "^7.12.5",
    "@fortawesome/fontawesome-svg-core": "^1.2.34",
    "@fortawesome/free-brands-svg-icons": "^5.15.2",
    "@fortawesome/free-regular-svg-icons": "^5.15.2",
    "@fortawesome/free-solid-svg-icons": "^5.15.2",
    "@fortawesome/react-fontawesome": "^0.1.14",
    "@paypal/react-paypal-js": "^7.1.0",
    "@reduxjs/toolkit": "^1.5.0",
    "@styled-icons/crypto": "^10.25.0",
    "@testing-library/jest-dom": "^5.11.9",
    "@testing-library/react": "^12.0.0",
    "@testing-library/user-event": "^13.0.6",
    "@vgs/collect-js": "^0.4.0",
    "bootstrap": "^5.0.2",
    "currency-format": "^1.0.13",
    "formik": "^2.2.6",
    "history": "^5.0.0",
    "i18next": "^20.1.0",
    "i18next-browser-languagedetector": "^6.0.1",
    "i18next-http-backend": "^1.0.21",
    "lodash": "^4.17.21",
    "markdown-react-js": "^1.0.2",
    "moment": "^2.29.1",
    "payment-icons": "^1.2.1",
    "react": "^16.1.1",
    "react-animate-height": "^2.0.23",
    "react-bootstrap": "^1.5.0",
    "react-country-flag": "^2.3.0",
    "react-dates": "^21.8.0",
    "react-dom": "^16.1.1",
    "react-i18next": "^11.8.5",
    "react-image-gallery": "^1.0.8",
    "react-modal": "^3.12.1",
    "react-phone-input-2": "^2.13.9",
    "react-redux": "^7.2.2",
    "react-router-dom": "^6.0.0-beta.0",
    "react-scripts": "^4.0.3",
    "react-select": "^4.1.0",
    "react-select-country-list": "^2.2.3",
    "react-social-login": "^3.4.10",
    "react-social-login-buttons": "^3.1.2",
    "react-with-direction": "^1.3.1",
    "styled-components": "^5.2.1",
    "yup": "^0.32.9"
  }
}
Sep
3
2 months ago
pull request

multiwebinc pull request Automattic/mongoose

multiwebinc
multiwebinc

Update deprecations.md to reflect version 6

Fixes #10671

push

multiwebinc push multiwebinc/mongoose

multiwebinc
multiwebinc

Update deprecations.md to reflect version 6

Fixes #10671

commit sha: 41e227adfdfbb34fb0c4b0b73f2ae50d67da4bd3

push time in 2 months ago
Activity icon
issue

multiwebinc issue Automattic/mongoose

multiwebinc
multiwebinc

Deprecations page in docs needs to be updated to the current version

The https://mongoosejs.com/docs/deprecations.html page in the sections https://mongoosejs.com/docs/deprecations.html#findandmodify and https://mongoosejs.com/docs/deprecations.html#ensureindex currently says:

Mongoose will not remove the legacy useFindAndModify: true behavior until Mongoose 6.0.

and

Mongoose will not remove the legacy useCreateIndex: false behavior until Mongoose 6.0.

However, this is confusing since using the recommended solution in these sections now produces the following error when connecting:

options usecreateindex, usefindandmodify are not supported

I suggest rewriting these sections to reflect the current version of Mongoose (6.0.4).

Activity icon
fork

multiwebinc forked Automattic/mongoose

⚡ MongoDB object modeling designed to work in an asynchronous environment.
multiwebinc MIT License Updated
fork time in 2 months ago
Previous