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

@fortawesome/vue-fontawesome

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fortawesome/vue-fontawesome - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

bin/dev

1

example/webpack/package.json

@@ -11,2 +11,3 @@ {

"src/**/*.js",
"src/**/*.vue",
"../../index.js"

@@ -13,0 +14,0 @@ ]

4

example/webpack/src/library.js

@@ -5,5 +5,5 @@ import Vue from 'vue'

import brands from '@fortawesome/fontawesome-brands'
import { faCoffee, faCog } from '@fortawesome/fontawesome-solid'
import { faCoffee, faCog, faSpinner, faQuoteLeft, faSquare, faCheckSquare } from '@fortawesome/fontawesome-solid'
fontawesome.library.add(brands, faCoffee, faCog)
fontawesome.library.add(brands, faCoffee, faCog, faSpinner, faQuoteLeft, faSquare, faCheckSquare)

@@ -10,0 +10,0 @@ new Vue({

@@ -129,9 +129,14 @@ (function (global, factory) {

props: {
name: {
type: String,
default: ''
border: {
type: Boolean,
default: false
},
pack: {
fixedWidth: {
type: Boolean,
default: false
},
flip: {
type: String,
default: 'fa'
default: null,
validator: function (value) { return ['horizontal', 'vertical', 'both'].indexOf(value) > -1; }
},

@@ -142,9 +147,36 @@ iconDefinition: {

},
spin: {
listItem: {
type: Boolean,
default: false
},
fixedWidth: {
pack: {
type: String,
default: 'fa'
},
pull: {
type: String,
default: null,
validator: function (value) { return ['right', 'left'].indexOf(value) > -1; }
},
pulse: {
type: Boolean,
default: false
},
name: {
type: String,
default: ''
},
rotation: {
type: Number,
default: null,
validator: function (value) { return [90, 180, 270].indexOf(value) > -1; }
},
size: {
type: String,
default: null,
validator: function (value) { return ['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1; }
},
spin: {
type: Boolean,
default: false
}

@@ -176,4 +208,12 @@ },

'fa-spin': this.spin,
'fa-fw': this.fixedWidth
'fa-pulse': this.pulse,
'fa-fw': this.fixedWidth,
'fa-border': this.border,
'fa-li': this.listItem,
'fa-flip-horizontal': this.flip === 'horizontal' || this.flip === 'both',
'fa-flip-vertical': this.flip === 'vertical' || this.flip === 'both'
};
classes[("fa-" + (this.size))] = this.size !== null;
classes[("fa-rotate-" + (this.rotation))] = this.rotation !== null;
classes[("fa-pull-" + (this.pull))] = this.pull !== null;

@@ -180,0 +220,0 @@ return Object.keys(classes)

{
"name": "@fortawesome/vue-fontawesome",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "author": "robmadole <robmadole@gmail.com>",

@@ -8,9 +8,14 @@ import fontawesome from '@fortawesome/fontawesome'

props: {
name: {
type: String,
default: ''
border: {
type: Boolean,
default: false
},
pack: {
fixedWidth: {
type: Boolean,
default: false
},
flip: {
type: String,
default: 'fa'
default: null,
validator: (value) => ['horizontal', 'vertical', 'both'].indexOf(value) > -1
},

@@ -21,9 +26,36 @@ iconDefinition: {

},
spin: {
listItem: {
type: Boolean,
default: false
},
fixedWidth: {
pack: {
type: String,
default: 'fa'
},
pull: {
type: String,
default: null,
validator: (value) => ['right', 'left'].indexOf(value) > -1
},
pulse: {
type: Boolean,
default: false
},
name: {
type: String,
default: ''
},
rotation: {
type: Number,
default: null,
validator: (value) => [90, 180, 270].indexOf(value) > -1
},
size: {
type: String,
default: null,
validator: (value) => ['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x'].indexOf(value) > -1
},
spin: {
type: Boolean,
default: false
}

@@ -55,3 +87,11 @@ },

'fa-spin': this.spin,
'fa-fw': this.fixedWidth
'fa-pulse': this.pulse,
'fa-fw': this.fixedWidth,
'fa-border': this.border,
'fa-li': this.listItem,
'fa-flip-horizontal': this.flip === 'horizontal' || this.flip === 'both',
'fa-flip-vertical': this.flip === 'vertical' || this.flip === 'both',
[`fa-${this.size}`]: this.size !== null,
[`fa-rotate-${this.rotation}`]: this.rotation !== null,
[`fa-pull-${this.pull}`]: this.pull !== null
}

@@ -58,0 +98,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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