New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cafee/component

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cafee/component - npm Package Compare versions

Comparing version 1.0.0 to 1.0.2

readme.md

18

index.js
export default class Component {
constructor (component) {
constructor (component, space) {
this.cache = component
this.space = space
return {install: this.install}

@@ -8,6 +9,17 @@ }

install (Vue) {
for (let i in this.cache) {
Vue.component(`${i}`, this.cache[i])
if (!this.cache) {
return Vue
}
switch (this.cache.constructor) {
case Array:
return this.space.map(name, index => Vue.component(name, this.cache[index]))
case Object:
for (let i in this.cache) {
Vue.component(i, this.cache[i])
}
break
default:
Vue.component(space, component)
}
}
}

4

package.json
{
"name": "@cafee/component",
"version": "1.0.0",
"description": "",
"version": "1.0.2",
"description": "Easy Create Vue Component",
"main": "index.js",

@@ -6,0 +6,0 @@ "scripts": {

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