lofcz / sweetalert2-neutral

Sweetalert2 sans "anti-war messages"
MIT License
66 stars 7 forks source link

11.14.1-neutral doesnt seem available. #5

Closed PhilETaylor closed 1 month ago

PhilETaylor commented 1 month ago

Current behavior

When using Symfony importmap:update today I get

HTTP/1.1 404 Not Found returned for "https://cdn.jsdelivr.net/npm/sweetalert2-neutral@11.14.1-neutral/+esm".

I have checked and that file doesnt exist.

Note that npm i sweetalert2-neutral works perfectly still, but maybe that uses a different CDN

Expected behavior

for the new 11.14.1 version to be installed.

Live demo !!! THIS FIELD IS REQUIRED !!!

 curl --verbose https://cdn.jsdelivr.net/npm/sweetalert2-neutral@11.14.1-neutral/+esm

* Host cdn.jsdelivr.net:443 was resolved.
* IPv6: 2a04:4e42:82::485
* IPv4: 146.75.73.229
*   Trying [2a04:4e42:82::485]:443...
* Connected to cdn.jsdelivr.net (2a04:4e42:82::485) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* (304) (IN), TLS handshake, Unknown (8):
* (304) (IN), TLS handshake, Certificate (11):
* (304) (IN), TLS handshake, CERT verify (15):
* (304) (IN), TLS handshake, Finished (20):
* (304) (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256 / [blank] / UNDEF
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=jsdelivr.net
*  start date: Jul 30 15:36:05 2024 GMT
*  expire date: Aug 31 15:36:04 2025 GMT
*  subjectAltName: host "cdn.jsdelivr.net" matched cert's "*.jsdelivr.net"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2024 Q3
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://cdn.jsdelivr.net/npm/sweetalert2-neutral@11.14.1-neutral/+esm
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: cdn.jsdelivr.net]
* [HTTP/2] [1] [:path: /npm/sweetalert2-neutral@11.14.1-neutral/+esm]
* [HTTP/2] [1] [user-agent: curl/8.7.1]
* [HTTP/2] [1] [accept: */*]
> GET /npm/sweetalert2-neutral@11.14.1-neutral/+esm HTTP/2
> Host: cdn.jsdelivr.net
> User-Agent: curl/8.7.1
> Accept: */*
>
* Request completely sent off
< HTTP/2 404
< access-control-allow-origin: *
< access-control-expose-headers: *
< timing-allow-origin: *
< cache-control: public, max-age=31536000, s-maxage=31536000
< cross-origin-resource-policy: cross-origin
< x-content-type-options: nosniff
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< content-type: text/plain; charset=utf-8
< etag: W/"21-M28qQtNh6xlVdIXXeMOLRujDS0c"
< accept-ranges: bytes
< age: 0
< date: Mon, 07 Oct 2024 08:12:36 GMT
< x-served-by: cache-fra-etou8220131-FRA, cache-lcy-eglc8600037-LCY
< x-cache: MISS, MISS
< vary: Accept-Encoding
< alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
< content-length: 33
<
* Connection #0 to host cdn.jsdelivr.net left intact
Couldn't find the requested file.%
PhilETaylor commented 1 month ago

even going to https://www.jsdelivr.com/package/npm/sweetalert2-neutral and then clicking the link in the install demo box results in a 404 too...

ScreenShot-2024-10-07-09 22 11

lofcz commented 1 month ago

Sorry about the issue, this is fixed in the hotfix updated today, https://cdn.jsdelivr.net/npm/sweetalert2-neutral@11.14.1-neutral-fix2/+esm (just add -fix2 in the URL)

PhilETaylor commented 1 month ago

Working perfectly now - thank you.

ScreenShot-2024-10-07-21 13 58

lofcz commented 1 month ago

As for why this happened: Limonte used some obscure software named zx to bundle the package which caused the rollup issues - I've rewritten that to something more standard in 612aa13ccaf576af87951cca294e0cec38715761