• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / tigerdata-app / 84a2dfd2-cbf5-4e2d-9eb7-e276471bcc35

22 Oct 2025 11:08AM UTC coverage: 91.184% (+0.1%) from 91.051%
84a2dfd2-cbf5-4e2d-9eb7-e276471bcc35

push

circleci

web-flow
Bump vite from 5.4.20 to 5.4.21 in the npm_and_yarn group across 1 directory (#2062)

Bumps the npm_and_yarn group with 1 update in the / directory:
[vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).

Updates `vite` from 5.4.20 to 5.4.21
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/releases">vite's
releases</a>.</em></p>
<blockquote>
<h2>v5.4.21</h2>
<p>Please refer to <a
href="https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md">CHANGELOG.md</a>
for details.</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md">vite's
changelog</a>.</em></p>
<blockquote>
<h2><!-- raw HTML omitted -->5.4.21 (2025-10-20)<!-- raw HTML omitted
--></h2>
<ul>
<li>fix(dev): trim trailing slash before <code>server.fs.deny</code>
check (<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20968">#20968</a>)
(<a
href="https://github.com/vitejs/vite/tree/HEAD/packages/vite/issues/20970">#20970</a>)
(<a
href="https://github.com/vitejs/vite/commit/<a class=hub.com/pulibrary/tigerdata-app/commit/cad1d31d0635dd8fd4ddfe6e5a92eb9ff13cd06c">cad1d31d0<a href="https://github.com/pulibrary/tigerdata-app/commit/c2277b4d23cf53321b272bce8dc929ddec37f4ef">&quot;&gt;cad1d31&lt;/a&gt;),
closes &lt;a
href=&quot;https://redirect.github.com/vitejs/vite/issues/20968&quot;&gt;#20968&lt;/a&gt;
&lt;a
href=&quot;https://redirect.github.com/vitejs/vite/issues/20970">#20970</a></li>
<li>chore: update CHANGELOG (<a
href="https://github.com/vitejs/vite/commit/<a class="double-link" href="https://github.com/pulibrary/tigerdata-app/commit/ca88ed7398288ce0c60176ac9a6392f10654c67c">ca88ed739</a><a href="https://github.com/pulibrary/tigerdata-app/commit/c2277b4d23cf53321b272bce8dc929ddec37f4ef">&quot;&gt;ca88ed7&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/details&gt;
&lt;details&gt;
&lt;summary&gt;Commits&lt;/summary&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a
href=&quot;https://github.com/vitejs/vite/commit/</a><a class="double-link" href="https://github.com/pulibrary/tigerdata-app/commit/adce3c22c64cc9d44cc8f45cc92b543e3e4bf385">adce3c22c">adce3c2
release: v5.4.21
  • cad1d31 fix(dev): trim trailing slash before server.fs.deny check (
  • 2741 of 3006 relevant lines covered (91.18%)

    650.71 hits per line

    Source File
    Press 'n' to go to next uncovered line, 'b' for previous

    100.0
    /app/models/mediaflux/asset.rb
    1
    # frozen_string_literal: true
    
    2
    module Mediaflux
    
    3✔
    3
      class Asset
    
    3✔
    4
        attr_accessor :id, :path, :collection, :size
    
    3✔
    5
    
    
    6
        def initialize(id:, name:, collection:, path: nil, last_modified_mf: nil, size: nil)
    
    3✔
    7
          @id = id
    
    258✔
    8
          @name = name
    
    258✔
    9
          @path = path
    
    258✔
    10
          @collection = collection
    
    258✔
    11
          @size = size
    
    258✔
    12
          @last_modified_mf = last_modified_mf
    
    258✔
    13
        end
    
    14
    
    
    15
        def name
    
    3✔
    16
          # Mediaflux supports the concept of files without a name and in those cases the
    
    17
          # "name" property might be empty, but the actual name assigned internally by
    
    18
          # Mediaflux (e.g. __asset_id__4665) is still reflected in the path.
    
    19
          if @name == ""
    
    203✔
    20
            Pathname.new(path).basename.to_s
    
    184✔
    21
          else
    
    22
            @name
    
    19✔
    23
          end
    
    24
        end
    
    25
    
    
    26
        # Returns the path to the asset but without the root collection namespace as part of it.
    
    27
        #
    
    28
        # Example:
    
    29
        #   path        -> "/tigerdata/projectg/folder1/file-abc.txt"
    
    30
        #   path_short  -> "/projectg/folder1/file-abc.txt"
    
    31
        def path_short
    
    3✔
    32
          return nil if path.nil?
    
    200✔
    33
          if path.starts_with?(Mediaflux::Connection.root_collection_namespace)
    
    200✔
    34
            path[Mediaflux::Connection.root_collection_namespace.length..-1]
    
    8✔
    35
          else
    
    36
            path
    
    192✔
    37
          end
    
    38
        end
    
    39
    
    
    40
        # Returns the last modified date but using the standard ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601)
    
    41
        def last_modified
    
    3✔
    42
          return nil if @last_modified_mf.nil?
    
    197✔
    43
          # https://nandovieira.com/working-with-dates-on-ruby-on-rails
    
    44
          # Mediaflux dates are in UTC and look like this "07-Feb-2024 21:48:01"
    
    45
          Object::Time.zone.parse(@last_modified_mf).in_time_zone("America/New_York").iso8601
    
    197✔
    46
        end
    
    47
    
    
    48
        # Returns the path for the asset
    
    49
        # For a collection returns the path_short, but for a file is the dirname of the path_short
    
    50
        #
    
    51
        # Example for a file:
    
    52
        #   path        -> "/tigerdata/projectg/folder1/file-abc.txt"
    
    53
        #   path_short  -> "/projectg/folder1/file-abc.txt"
    
    54
        #   path_only  -> "/projectg/folder1"
    
    55
        # Example for a collection:
    
    56
        #   path        -> "/tigerdata/projectg/folder1"
    
    57
        #   path_short  -> "/projectg/folder1"
    
    58
        #   path_only  -> "/projectg/folder1"
    
    59
        def path_only
    
    3✔
    60
          return nil if path.nil?
    
    196✔
    61
          if collection
    
    196✔
    62
            path_short
    
    2✔
    63
          else
    
    64
            p = Pathname.new(path_short)
    
    194✔
    65
            p.dirname.to_s
    
    194✔
    66
          end
    
    67
        end
    
    68
      end
    
    69
    end
    
    STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
    ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

    © 2025 Coveralls, Inc