importmap-rails 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/app/assets/javascripts/es-module-shims.js +835 -833
- data/app/assets/javascripts/es-module-shims.js.map +1 -1
- data/app/assets/javascripts/es-module-shims.min.js +1 -1
- data/lib/importmap/npm.rb +8 -1
- data/lib/importmap/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c556b347ccc13c5ba397acdde373ee8b705cec57b267cd0fbcbf920b7e8b6f6e
|
4
|
+
data.tar.gz: 475f9c49a29536cef24f67cf70dbd1a1611a20c292bba384418448274c477650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d12e8298a133d3362469bf9886d4bfe1d119b734b8f7a0766049e28c28e9a239d72ca53353ba58e03f4c32fdc7a0f1a60604829231588b829a31aa33b3ca4318
|
7
|
+
data.tar.gz: 22e6b50bcf18c1bc4979d1160fad4fb88483ae19268ae9cd9f41c30d144437f5dbc9bf0588419106edd2747f9b8ccad886a27dfd556881327626eac4569e4c21
|
data/README.md
CHANGED
@@ -299,6 +299,12 @@ In Firefox. when opening the browser console, the asm.js module lexer build will
|
|
299
299
|
|
300
300
|
Under certain circumstances, like running system tests using chromedriver under CI (which may be resource constrained and trigger errors in certain cases), you may want to explicitly turn off including the shim. You can do this by calling the bulk tag helper with `javascript_importmap_tags("application", shim: false)`. Thus you can pass in something like `shim: !ENV["CI"]`. If you want, and are sure you're not doing any full-page caching, you can also connect this directive to a user agent check (using a gem like `useragent`) to check whether the browser is chrome/edge 89+. But you really shouldn't have to, as the shim is designed to gracefully work with natively compatible drivers.
|
301
301
|
|
302
|
+
## Checking for outdated or vulnerable packages
|
303
|
+
|
304
|
+
Importmap for Rails provides two commands to check your pinned packages:
|
305
|
+
- `./bin/importmap outdated` checks the NPM registry for new versions
|
306
|
+
- `./bin/importmap audit` checks the NPM registry for known security issues
|
307
|
+
|
302
308
|
## License
|
303
309
|
|
304
310
|
Importmap for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
|