Commit 7bc30a7c authored by Tanmay Khedekar's avatar Tanmay Khedekar Committed by Gaus Surahman
Browse files

Issue #3246544 by tanmayk, PCate, joelpittet: Error displayed if package.json...

Issue #3246544 by tanmayk, PCate, joelpittet: Error displayed if package.json is not in the JS library folder
parent c2379b1a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line

Slick 8.x-2.0-dev, 2021-12-17
-----------------------------
- Issue #3246544 by tanmayk, PCate, joelpittet: Error displayed if package.json is not in the JS library folder
- Added Drupal ^10.

Slick 8.x-2.0-dev, 2021-09-29
-----------------------------
-Issue #3239708 by gausarts: Drop theme_slick_grid for theme_item_list via
+0 −11
Original line number Diff line number Diff line
@@ -424,17 +424,6 @@ class SlickSkinManager extends DefaultPluginManager implements SlickSkinManagerI
      if ($this->config('library') == 'accessible-slick') {
        $this->isBreaking = TRUE;
      }
      else {
        // The master reverted from 1.8.1 - 1.9.0 to 1.8.0. This is for old
        // downloads. See https://github.com/kenwheeler/slick/pull/3688
        // @todo Remove after another check.
        if ($path = $this->getSlickPath()) {
          if ($content = \file_get_contents($this->root . '/' . $path . '/package.json')) {
            $this->isBreaking = strpos($content, '"version": "1.9.0"') !== FALSE
              || strpos($content, '"version": "1.8.1"') !== FALSE;
          }
        }
      }
    }
    return $this->isBreaking;
  }