Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-window-size

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-window-size - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1-0

2

dist/index.common.js

@@ -1,1 +0,1 @@

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var windowResizeSubject=require("window-resize-subject"),Vue=_interopDefault(require("vue")),createInitailValue=function(){return{width:800,height:600}},createVm=function(){return"function"==typeof Vue.observable?Vue.observable(createInitailValue()):new Vue({data:createInitailValue()})},createMixin=function(e){var n=createVm();return e.addObserver("option",function(e){var i=e.width,t=e.height;n.width=i,n.height=t}).subscribe(),{computed:{windowWidth:function(){return n.width},windowHeight:function(){return n.height}}}},createPublicAPI=function(i){return{setDelay:function(e){i.setDelay(e)},init:function(){i.subscribe()},destroy:function(){i.unsubscribe()}}},subject=new windowResizeSubject.WindowResizeSubject,vueWindowSizeMixin=createMixin(subject),vueWindowSize=createPublicAPI(subject),state={installed:!1};function install(e,i){var t=(void 0===i?{}:i).delay,n=void 0===t?33:t;state.installed||(state.installed=!0,subject.setDelay(n),e.mixin({mixins:[vueWindowSizeMixin]}))}var plugin={install:install},GlobalVue=null;"undefined"!=typeof window?GlobalVue=window.Vue:"undefined"!=typeof global&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin),exports.default=plugin,exports.vueWindowSize=vueWindowSize,exports.vueWindowSizeMixin=vueWindowSizeMixin;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("window-resize-subject");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(require("vue")),n=new e.WindowResizeSubject,u=function(e){var t="function"==typeof i.default.observable?i.default.observable({width:800,height:600}):new i.default({data:{width:800,height:600}});return e.addObserver("option",(function(e){var i=e.width,n=e.height;t.width=i,t.height=n})).subscribe(),{computed:{windowWidth:function(){return t.width},windowHeight:function(){return t.height}}}}(n),o=function(e){return{setDelay:function(t){e.setDelay(t)},init:function(){e.subscribe()},destroy:function(){e.unsubscribe()}}}(n),d={installed:!1};var r={install:function(e,t){var i=(void 0===t?{}:t).delay,o=void 0===i?33:i;d.installed||(d.installed=!0,n.setDelay(o),e.mixin({mixins:[u]}))}},s=null;"undefined"!=typeof window?s=window.Vue:"undefined"!=typeof global&&(s=global.Vue),s&&s.use(r),exports.default=r,exports.vueWindowSize=o,exports.vueWindowSizeMixin=u;

@@ -1,1 +0,1 @@

!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("window-resize-subject"),require("vue")):"function"==typeof define&&define.amd?define(["exports","window-resize-subject","vue"],i):i(((e="undefined"!=typeof globalThis?globalThis:e||self).bundle=e.bundle||{},e.bundle.umd=e.bundle.umd||{},e.bundle.umd.js={}),e.windowResizeSubject,e.Vue)}(this,function(e,i,n){"use strict";n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function t(){return{width:800,height:600}}var u,d,o,l=new i.WindowResizeSubject,s=(u=l,d="function"==typeof n.observable?n.observable(t()):new n({data:t()}),u.addObserver("option",function(e){var i=e.width,n=e.height;d.width=i,d.height=n}).subscribe(),{computed:{windowWidth:function(){return d.width},windowHeight:function(){return d.height}}}),r=(o=l,{setDelay:function(e){o.setDelay(e)},init:function(){o.subscribe()},destroy:function(){o.unsubscribe()}}),f={installed:!1};var a={install:function(e,i){var n=(void 0===i?{}:i).delay,t=void 0===n?33:n;f.installed||(f.installed=!0,l.setDelay(t),e.mixin({mixins:[s]}))}},b=null;"undefined"!=typeof window?b=window.Vue:"undefined"!=typeof global&&(b=global.Vue),b&&b.use(a),e.default=a,e.vueWindowSize=r,e.vueWindowSizeMixin=s,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("window-resize-subject"),require("vue")):"function"==typeof define&&define.amd?define(["exports","window-resize-subject","vue"],i):i(((e="undefined"!=typeof globalThis?globalThis:e||self).bundle=e.bundle||{},e.bundle.umd=e.bundle.umd||{},e.bundle.umd.js={}),e.windowResizeSubject,e.Vue)}(this,(function(e,i,n){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=t(n),d=new i.WindowResizeSubject,o=function(e){var i="function"==typeof u.default.observable?u.default.observable({width:800,height:600}):new u.default({data:{width:800,height:600}});return e.addObserver("option",(function(e){var n=e.width,t=e.height;i.width=n,i.height=t})).subscribe(),{computed:{windowWidth:function(){return i.width},windowHeight:function(){return i.height}}}}(d),l=function(e){return{setDelay:function(i){e.setDelay(i)},init:function(){e.subscribe()},destroy:function(){e.unsubscribe()}}}(d),f={installed:!1};var s={install:function(e,i){var n=(void 0===i?{}:i).delay,t=void 0===n?33:n;f.installed||(f.installed=!0,d.setDelay(t),e.mixin({mixins:[o]}))}},r=null;"undefined"!=typeof window?r=window.Vue:"undefined"!=typeof global&&(r=global.Vue),r&&r.use(s),e.default=s,e.vueWindowSize=l,e.vueWindowSizeMixin=o,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "vue-window-size",
"version": "0.6.0",
"version": "0.6.1-0",
"description": "Reactivity window size for Vue.js.",

@@ -27,3 +27,3 @@ "main": "dist/index.common.js",

"dependencies": {
"window-resize-subject": "^1.4.0"
"window-resize-subject": "^1.4.2"
},

@@ -41,4 +41,4 @@ "devDependencies": {

"rollup": "^2.23.0",
"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-typescript2": "^0.27.1",
"rollup-plugin-uglify": "^6.0.4",
"ts-jest": "^26.1.4",

@@ -45,0 +45,0 @@ "typescript": "^3.9.7",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc