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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1afb8eff9885f0d3929ec26e1e8453171c9e3ce80cbc324636aaa4e0560fd5a3
4
- data.tar.gz: d3839dd0821dfc36e51f5e67e4b3560a1b3e50c2d73bb8385a08c371bfe21d79
3
+ metadata.gz: 74695e12430d39bfeac7225359f66bc2abf14eaf1d71c962486facb6185d6eb3
4
+ data.tar.gz: 23710c8c7adda15a3bbf44f87be1645b94c2feb7e2ada6a8a490133dec71da12
5
5
  SHA512:
6
- metadata.gz: 044f9722e1c7f6a4a8e56e0cbf451ac2648ecc8fd27c342e3862b24641c9f6a8a86a74c8c8e8b62d18e9289ed527b5b36f44fa039e70686e24fdc8c175b27ccb
7
- data.tar.gz: 4fbe841607df6d91039683482ffd7a06eb01153a51cead4e5ec826970438919afcd7b4565d59bbf749ef0b88588d7ddbe9630d85ed7ceee358426726c5433dc1
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
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Esm
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-17 00:00:00.000000000 Z
11
+ date: 2021-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll