vue-window-size
Advanced tools
Comparing version 1.0.0-6 to 1.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10719
3
+ Addedvue-demi@0.4.5(transitive)
- Removedvue-demi@0.3.3(transitive)
Updatedvue-demi@^0.4.0