stimulus-carousel
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -9,2 +9,10 @@ # Changelog | ||
## [4.0.0] - 2021-12-27 | ||
### Chore | ||
- Breaking Upgrading Stimulus to 3.x and change namespace from `stimulus` to `@hotwired/stimulus`. | ||
- Upgrading dependencies | ||
- Upgrading Node to `16.13.1`. | ||
## [3.0.0] - 2021-09-24 | ||
@@ -11,0 +19,0 @@ |
@@ -1,1 +0,34 @@ | ||
var e=Object.defineProperty,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(t,r,o)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o,i=(e,i)=>{for(var n in i||(i={}))r.call(i,n)&&s(e,n,i[n]);if(t)for(var n of t(i))o.call(i,n)&&s(e,n,i[n]);return e};import{Controller as n}from"stimulus";import p from"swiper/bundle";class l extends n{connect(){this.swiper=new p(this.element,i(i({},this.defaultOptions),this.optionsValue))}disconnect(){this.swiper.destroy(),this.swiper=void 0}get defaultOptions(){return{}}}l.values={options:Object};export{l as default}; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a, b) => { | ||
for (var prop in b || (b = {})) | ||
if (__hasOwnProp.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b)) { | ||
if (__propIsEnum.call(b, prop)) | ||
__defNormalProp(a, prop, b[prop]); | ||
} | ||
return a; | ||
}; | ||
import { Controller } from "@hotwired/stimulus"; | ||
import Swiper from "swiper/bundle"; | ||
class src_default extends Controller { | ||
connect() { | ||
this.swiper = new Swiper(this.element, __spreadValues(__spreadValues({}, this.defaultOptions), this.optionsValue)); | ||
} | ||
disconnect() { | ||
this.swiper.destroy(); | ||
this.swiper = void 0; | ||
} | ||
get defaultOptions() { | ||
return {}; | ||
} | ||
} | ||
src_default.values = { | ||
options: Object | ||
}; | ||
export { src_default as default }; |
@@ -1,1 +0,1 @@ | ||
var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("stimulus"),require("swiper/bundle")):"function"==typeof define&&define.amd?define(["stimulus","swiper/bundle"],t):(e="undefined"!=typeof globalThis?globalThis:e||self)["stimulus-carousel"]=t(e.Stimulus,e.Swiper)}(this,(function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(t);class s extends e.Controller{connect(){this.swiper=new o.default(this.element,__spreadValues(__spreadValues({},this.defaultOptions),this.optionsValue))}disconnect(){this.swiper.destroy(),this.swiper=void 0}get defaultOptions(){return{}}}return s.values={options:Object},s})); | ||
var f=Object.defineProperty;var o=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var r=(t,e,i)=>e in t?f(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,u=(t,e)=>{for(var i in e||(e={}))l.call(e,i)&&r(t,i,e[i]);if(o)for(var i of o(e))p.call(e,i)&&r(t,i,e[i]);return t};(function(t,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e(require("@hotwired/stimulus"),require("swiper/bundle")):typeof define=="function"&&define.amd?define(["@hotwired/stimulus","swiper/bundle"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,t["stimulus-carousel"]=e(t.Stimulus,t.Swiper))})(this,function(t,e){"use strict";function i(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var d=i(e);class n extends t.Controller{connect(){this.swiper=new d.default(this.element,u(u({},this.defaultOptions),this.optionsValue))}disconnect(){this.swiper.destroy(),this.swiper=void 0}get defaultOptions(){return{}}}return n.values={options:Object},n}); |
{ | ||
"name": "stimulus-carousel", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "A Stimulus controller to deal with carousel.", | ||
@@ -34,17 +34,17 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/core": "7.15.5", | ||
"@babel/preset-env": "7.15.6", | ||
"@babel/preset-typescript": "^7.15.0", | ||
"np": "^7.5.0", | ||
"@babel/core": "7.16.5", | ||
"@babel/preset-env": "7.16.5", | ||
"@babel/preset-typescript": "^7.16.5", | ||
"@hotwired/stimulus": "^3.0.1", | ||
"np": "^7.6.0", | ||
"prettier-standard": "16.4.1", | ||
"stimulus": "^2.0.0", | ||
"typescript": "^4.4.3", | ||
"vite": "^2.5.10" | ||
"typescript": "^4.5.4", | ||
"vite": "^2.7.7" | ||
}, | ||
"peerDependencies": { | ||
"stimulus": "^2.0.0" | ||
"@hotwired/stimulus": "^3.0.1" | ||
}, | ||
"dependencies": { | ||
"swiper": "^7.0.6" | ||
"swiper": "^7.4.1" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7201
38
0
+ Added@hotwired/stimulus@3.2.2(transitive)
- Removed@stimulus/core@2.0.0(transitive)
- Removed@stimulus/multimap@2.0.0(transitive)
- Removed@stimulus/mutation-observers@2.0.0(transitive)
- Removed@stimulus/webpack-helpers@2.0.0(transitive)
- Removedstimulus@2.0.0(transitive)
Updatedswiper@^7.4.1