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 1.0.0-6 to 1.0.1

2

dist/option-api.js

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i,e,n=require("vue-demi"),t=require("window-resize-subject"),u="undefined"!=typeof window,r=function(i){return null!=i?i:u?window.innerWidth:0},o=function(i){return null!=i?i:u?window.innerHeight:0},d=function(i){var e,t=n.reactive({width:r(null==e?void 0:e.width),height:o(null==e?void 0:e.height)});return i().addObserver("option-api",(function(i){var e=i.width,n=i.height;t.width=e,t.height=n})).subscribe(),{computed:{windowWidth:function(){return t.width},windowHeight:function(){return t.height}}}},c=function(){return i||(i=new t.WindowResizeSubject),i},s=function(){return e||(e=d(c)),e},w=function(i){return{config:function(e){"number"==typeof e.delay&&i().setDelay(e.delay)},init:function(){i().subscribe()},destroy:function(){i().unsubscribe()}}}(c);var h={install:function(i,e){var n=(void 0===e?{}:e).delay,t=void 0===n?33:n,u=s();c().setDelay(t),i.mixin({mixins:[u]})}};exports.VueWindowSizePlugin=h,exports.vueWindowSizeAPI=w,exports.vueWindowSizeMixin=s;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i,e,n=require("vue-demi"),t=require("window-resize-subject"),u="undefined"!=typeof window,r=function(i){return null!=i?i:u?window.innerWidth:0},o=function(i){return null!=i?i:u?window.innerHeight:0},d=function(i){var e,t=n.reactive({width:r(null==e?void 0:e.width),height:o(null==e?void 0:e.height)});return i().addObserver("option-api",(function(i){var e=i.width,n=i.height;t.width=e,t.height=n})).subscribe(),{computed:{$windowWidth:function(){return t.width},$windowHeight:function(){return t.height}}}},c=function(){return i||(i=new t.WindowResizeSubject),i},s=function(){return e||(e=d(c)),e},w=function(i){return{config:function(e){"number"==typeof e.delay&&i().setDelay(e.delay)},init:function(){i().subscribe()},destroy:function(){i().unsubscribe()}}}(c);var h={install:function(i,e){var n=(void 0===e?{}:e).delay,t=void 0===n?33:n,u=s();c().setDelay(t),i.mixin({mixins:[u]})}};exports.VueWindowSizePlugin=h,exports.vueWindowSizeAPI=w,exports.vueWindowSizeMixin=s;
declare type Mixin = {
computed: {
windowWidth: () => number;
windowHeight: () => number;
$windowWidth: () => number;
$windowHeight: () => number;
};

@@ -31,4 +31,4 @@ };

interface ComponentCustomProperties {
windowWidth: number;
windowHeight: number;
$windowWidth: number;
$windowHeight: number;
}

@@ -38,13 +38,13 @@ }

interface Vue {
windowWidth: number;
windowHeight: number;
$windowWidth: number;
$windowHeight: number;
}
}
declare type VueWindowSizePluginOption = Config;
declare type VueWindowSizeOptionApiConfig = Config;
export {
VueWindowSizeOptionApiConfig,
VueWindowSizePlugin,
VueWindowSizePluginOption,
vueWindowSizeAPI,
vueWindowSizeMixin,
};
{
"name": "vue-window-size",
"version": "1.0.0-6",
"version": "1.0.1",
"description": "Reactivity window size for Vue.js.",

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

"dependencies": {
"vue-demi": "^0.3.3",
"vue-demi": "^0.4.0",
"window-resize-subject": "^1.4.3"

@@ -41,3 +41,3 @@ },

"rollup-plugin-terser": "^7.0.0",
"rollup-plugin-typescript2": "^0.27.1",
"rollup-plugin-typescript2": "^0.28.0",
"ts-jest": "^26.1.4",

@@ -44,0 +44,0 @@ "typescript": "^4.0.2",

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