vue-masonry
Advanced tools
Comparing version 0.11.2 to 0.11.3
{ | ||
"name": "vue-masonry", | ||
"version": "0.11.2", | ||
"version": "0.11.3", | ||
"description": "masonry layout for vue.js", | ||
"main": "src/masonry.plugin.js", | ||
"browser": "dist/vue-masonry-plugin-window.js", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "echo \"Error: no test specified\" && exit 1", |
# vue-masonry | ||
**Current version: 0.11.2** | ||
**Current version: 0.11.3** | ||
@@ -23,3 +23,8 @@ Vue.js directive for masonry blocks layouting. Original [masonry library](http://masonry.desandro.com/). | ||
import Vue from 'vue' | ||
// import es6 style | ||
import {VueMasonryPlugin} from 'vue-masonry'; | ||
// or using CJS | ||
// const VueMasonryPlugin = require('vue-masonry').VueMasonryPlugin | ||
@@ -35,3 +40,16 @@ Vue.use(VueMasonryPlugin) | ||
### Usage directly in the browser | ||
Since v 0.11.3 in-browser usage is available using a direct script inclusion on the page like so: | ||
``` | ||
<script src="https://unpkg.com/vue-masonry@0.11.3/dist/vue-masonry-plugin-window.js"></script> | ||
``` | ||
``` | ||
var VueMasonryPlugin = window["vue-masonry-plugin"] | ||
Vue.use(VueMasonryPlugin) | ||
``` | ||
Properties currently available reproduce most of those on the [original masonry plugin](http://masonry.desandro.com/options.html): | ||
@@ -38,0 +56,0 @@ |
@@ -5,3 +5,4 @@ const UglifyEsPlugin = require('uglify-es-webpack-plugin'); | ||
const libraryName = 'vue-masonry-plugin'; | ||
const outputFile = libraryName + '.js'; | ||
const buildTarget = process.env.TARGET === 'umd' ? 'umd' : 'window'; | ||
const outputFile = `${libraryName}-${buildTarget}.js`; | ||
@@ -28,3 +29,3 @@ module.exports = { | ||
library: libraryName, | ||
libraryTarget: 'umd', | ||
libraryTarget: buildTarget, | ||
umdNamedDefine: true | ||
@@ -31,0 +32,0 @@ }, |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
68909
10
189
140
1