jekyll-esm 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll/esm.rb +5 -0
- data/lib/jekyll/esm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74695e12430d39bfeac7225359f66bc2abf14eaf1d71c962486facb6185d6eb3
|
4
|
+
data.tar.gz: 23710c8c7adda15a3bbf44f87be1645b94c2feb7e2ada6a8a490133dec71da12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: affbdc5ba825c5e95b2ed17c513d7d157acf12143a768d73486db3ef8fb502154beabaaa12a2807b9a0b79718dbb97d0c5a35cb23fce6364094c86fe0c417057
|
7
|
+
data.tar.gz: 4f24b237f2d43f8b9a68aea193137ec3910d53448cefe3a00ea72a7f7ade3915e0513ea6ed19c3a6b8e7dbd17346439f03a228530aa3e9fbd2d1442364bf1b56
|
data/lib/jekyll/esm.rb
CHANGED
@@ -23,9 +23,14 @@ module Jekyll
|
|
23
23
|
importmap = JSON.parse(value.children[0].content)
|
24
24
|
imports = importmap["imports"]
|
25
25
|
imports.keys.each do |import_key|
|
26
|
+
# ignore urls
|
26
27
|
next if import_key =~ /https?:\/\/[\S]+/
|
28
|
+
# ignore relative paths
|
27
29
|
next if import_key =~ /(^\.+\/)+/
|
30
|
+
# ignore absolute paths
|
31
|
+
next if import_key =~ /^\/[\S]+/
|
28
32
|
|
33
|
+
# ignore namespaces
|
29
34
|
import = import_key.split('/').first
|
30
35
|
pkg_path = File.join(page.site.source, 'node_modules', import)
|
31
36
|
|
data/lib/jekyll/esm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-esm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|