chronocraft-scroller-vue
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "chronocraft-scroller-vue", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"main": "dist/cjs/index.js", | ||
@@ -26,2 +26,3 @@ "module": "dist/esm/index.js", | ||
"lint": "vue-cli-service lint", | ||
"build": "vue-cli-service build", | ||
"build:types": "tsc --build tsconfigtypes.json", | ||
@@ -28,0 +29,0 @@ "build:es": "rimraf dist && cross-env NODE_ENV=production rollup --config rollup.config.js --format es && yarn build:types", |
@@ -1,2 +0,2 @@ | ||
import { App as Application } from "vue"; | ||
/* import { App as Application } from "vue"; | ||
import Scroller from "./Scroller.vue"; | ||
@@ -16,3 +16,17 @@ | ||
export { Scroller }; */ | ||
import Scroller from "./Scroller.vue"; | ||
import { registerComponent } from "./../../utils/plugins/index"; | ||
const Plugin = { | ||
install(vue) { | ||
registerComponent(vue, Scroller); | ||
} | ||
}; | ||
export default Plugin; | ||
export { Scroller }; | ||
/* eslint-disable */ | ||
import * as components from "./components/index" | ||
const install = (instance) => { | ||
for (let componentKey in components) { | ||
instance.use((components)[componentKey]) | ||
} | ||
} | ||
export default install | ||
export * from './components' | ||
/* import { App as Application, Plugin } from "vue"; | ||
@@ -18,6 +32,8 @@ import * as components from "./components/index"; | ||
export * from "./components"; | ||
export * from './utilities'; | ||
*/ | ||
export * from './utilities'; */ | ||
import { App as Application, Plugin } from "vue"; | ||
/* import { App as Application, Plugin } from "vue"; | ||
import * as components from './components'; | ||
@@ -40,2 +56,2 @@ | ||
export * from './components'; | ||
export * from './utilities'; | ||
export * from './utilities'; */ |
@@ -1,3 +0,12 @@ | ||
import { App as Application, Component } from "vue"; | ||
export const registerComponent = (instance, component) => { | ||
instance.component(component.name, component) | ||
} | ||
export const registerComponentProgrammatic = (instance, property, component) => { | ||
if (!instance.config.globalProperties.$test) instance.config.globalProperties.$test = {} | ||
instance.config.globalProperties.$test[property] = component | ||
} | ||
/* import { App as Application, Component } from "vue"; | ||
export const registerComponent = ( | ||
@@ -20,2 +29,2 @@ instance: Application, | ||
instance.config.globalProperties.$test[property] = component; | ||
}; | ||
}; */ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
765516
1
33
740
1