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

cedar-button

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cedar-button - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

dist/__tests__/cdrButton.spec.js

61

dist/cdr-button.js

@@ -82,8 +82,8 @@ (function webpackUniversalModuleDefinition(root, factory) {

Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__cdrButton__ = __webpack_require__(1);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CdrButton", function() { return __WEBPACK_IMPORTED_MODULE_0__cdrButton__["a"]; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CdrButton__ = __webpack_require__(1);
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "CdrButton", function() { return __WEBPACK_IMPORTED_MODULE_0__CdrButton__["a"]; });
function install(Vue) {
Vue.component('cdr-button', __WEBPACK_IMPORTED_MODULE_0__cdrButton__["a" /* default */]);
Vue.component('cdr-button', __WEBPACK_IMPORTED_MODULE_0__CdrButton__["a" /* default */]);
}

@@ -105,4 +105,4 @@

"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_cdrButton_vue__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4dc9b698_hasScoped_false_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_cdrButton_vue__ = __webpack_require__(7);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_CdrButton_vue__ = __webpack_require__(4);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_08ba5494_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_CdrButton_vue__ = __webpack_require__(7);
function injectStyle (ssrContext) {

@@ -116,2 +116,4 @@ __webpack_require__(2)

/* template functional */
var __vue_template_functional__ = false
/* styles */

@@ -124,4 +126,5 @@ var __vue_styles__ = injectStyle

var Component = normalizeComponent(
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_cdrButton_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_4dc9b698_hasScoped_false_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_cdrButton_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_CdrButton_vue__["a" /* default */],
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_08ba5494_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_node_modules_vue_theme_loader_index_js_ref_1_1_CdrButton_vue__["a" /* default */],
__vue_template_functional__,
__vue_styles__,

@@ -147,4 +150,5 @@ __vue_scopeId__,

// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle
// IMPORTANT: Do NOT use ES2015 features in this file.
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

@@ -154,2 +158,3 @@ module.exports = function normalizeComponent (

compiledTemplate,
functionalTemplate,
injectStyles,

@@ -178,4 +183,10 @@ scopeId,

options.staticRenderFns = compiledTemplate.staticRenderFns
options._compiled = true
}
// functional template
if (functionalTemplate) {
options.functional = true
}
// scopedId

@@ -219,2 +230,3 @@ if (scopeId) {

: options.beforeCreate
if (!functional) {

@@ -226,2 +238,5 @@ // inject component registration as beforeCreate hook

} else {
// for template-only hot-reload because in that case the render fn doesn't
// go through the normalizer
options._injectStyles = hook
// register for functioal component in vue file

@@ -250,2 +265,8 @@ options.render = function renderWithStyleInjection (h, context) {

/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mixins_modifier__ = __webpack_require__(6);
//
//
//
//
//
//

@@ -255,3 +276,2 @@

/* harmony default export */ __webpack_exports__["a"] = ({

@@ -261,22 +281,21 @@ name: 'cdr-button',

props: {
/**
* {button, submit, reset}. Defines the button type.
*/
type: {
type: String,
default: 'button',
validator: function validator(value) {
return ['button', 'submit', 'reset'].indexOf(value) >= 0 || false;
}
validator: value => ['button', 'submit', 'reset'].indexOf(value) >= 0 || false
},
/**
* Add custom click actions.
*/
onClick: {
type: Function,
default: function _default() {
return function () {
return null;
};
}
default: () => () => null
}
},
computed: {
baseClass: function baseClass() {
var modifiers = this.modifier ? this.modifier.split(' ') : [];
baseClass() {
const modifiers = this.modifier ? this.modifier.split(' ') : [];
return modifiers.indexOf('link') >= 0 ? 'cdr-link' : 'cdr-button';

@@ -283,0 +302,0 @@ }

{
"name": "cedar-button",
"version": "0.0.4",
"version": "0.0.5",
"description": "REI Cedar Style Framework - Vue Component for Button",

@@ -11,3 +11,3 @@ "homepage": "https://rei.github.io/rei-cedar/#cdr-button",

"scripts": {
"build": "node build/build.js"
"build": "node ../../../build.js webpack.dist.conf button button"
},

@@ -117,3 +117,3 @@ "peerDependencies": {

"vue": "^2.4.4",
"vue-loader": "^13.0.4",
"vue-loader": "^13.3.0",
"vue-router": "^2.7.0",

@@ -120,0 +120,0 @@ "vue-style-loader": "^3.0.1",

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

import CdrButton from './cdrButton';
import CdrButton from './CdrButton';

@@ -3,0 +3,0 @@ function install(Vue) {

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