vue-pancake-icons 2.3.1 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,38 +1,33 @@
1
- const l = (o, e) => {
2
- const n = o.__vccOpts || o;
3
- for (const [t, c] of e)
4
- n[t] = c;
5
- return n;
6
- }, d = {
1
+ const s = (o, n) => {
2
+ const e = o.__vccOpts || o;
3
+ for (const [t, c] of n)
4
+ e[t] = c;
5
+ return e;
6
+ }, p = {
7
7
  name: "hello-world"
8
8
  };
9
- function _(o, e, n, t, c, a) {
9
+ function _(o, n, e, t, c, a) {
10
10
  return " Hello world ";
11
11
  }
12
- const p = /* @__PURE__ */ l(d, [["render", _]]), i = {
12
+ const l = /* @__PURE__ */ s(p, [["render", _]]), d = {
13
13
  name: "icon-test"
14
14
  };
15
- function f(o, e, n, t, c, a) {
15
+ function i(o, n, e, t, c, a) {
16
16
  return " Icon test ";
17
17
  }
18
- const r = /* @__PURE__ */ l(i, [["render", f]]), m = {
19
- IconTest: r,
20
- HelloWorld: p
21
- }, s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18
+ const u = /* @__PURE__ */ s(d, [["render", i]]), r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22
19
  __proto__: null,
23
- default: m
24
- }, Symbol.toStringTag, { value: "Module" })), u = {
20
+ IconTest: u,
21
+ HelloWorld: l
22
+ }, Symbol.toStringTag, { value: "Module" })), f = {
25
23
  install(o) {
26
- console.log(s, "components");
27
- for (let e in s) {
28
- console.log(e, "props");
29
- const n = s[e];
30
- console.log(n, "dmmm"), o.component(n.name, n);
24
+ for (let n in r) {
25
+ const e = r[n];
26
+ o.component(e.name + "-pcon", e);
31
27
  }
32
- console.log(r, "IconTest"), o.component("icon-test", r), o.component("hello-world", p);
33
28
  }
34
29
  };
35
- typeof window < "u" && window.Vue && window.Vue.use(u);
30
+ typeof window < "u" && window.Vue && window.Vue.use(f);
36
31
  export {
37
- u as default
32
+ f as default
38
33
  };
@@ -1 +1 @@
1
- (function(n,c){typeof exports=="object"&&typeof module<"u"?module.exports=c():typeof define=="function"&&define.amd?define(c):(n=typeof globalThis<"u"?globalThis:n||self,n.VuePancakeIcons=c())})(this,function(){"use strict";const n=(e,t)=>{const o=e.__vccOpts||e;for(const[l,d]of t)o[l]=d;return o},c={name:"hello-world"};function f(e,t,o,l,d,_){return" Hello world "}const i=n(c,[["render",f]]),u={name:"icon-test"};function a(e,t,o,l,d,_){return" Icon test "}const s=n(u,[["render",a]]),r=Object.freeze(Object.defineProperty({__proto__:null,default:{IconTest:s,HelloWorld:i}},Symbol.toStringTag,{value:"Module"})),p={install(e){console.log(r,"components");for(let t in r){console.log(t,"props");const o=r[t];console.log(o,"dmmm"),e.component(o.name,o)}console.log(s,"IconTest"),e.component("icon-test",s),e.component("hello-world",i)}};return typeof window<"u"&&window.Vue&&window.Vue.use(p),p});
1
+ (function(n,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=typeof globalThis<"u"?globalThis:n||self,n.VuePancakeIcons=t())})(this,function(){"use strict";const n=(o,c)=>{const e=o.__vccOpts||o;for(const[s,r]of c)e[s]=r;return e},t={name:"hello-world"};function f(o,c,e,s,r,_){return" Hello world "}const p=n(t,[["render",f]]),u={name:"icon-test"};function l(o,c,e,s,r,_){return" Icon test "}const i=Object.freeze(Object.defineProperty({__proto__:null,IconTest:n(u,[["render",l]]),HelloWorld:p},Symbol.toStringTag,{value:"Module"})),d={install(o){for(let c in i){const e=i[c];o.component(e.name+"-pcon",e)}}};return typeof window<"u"&&window.Vue&&window.Vue.use(d),d});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-pancake-icons",
3
3
  "private": false,
4
- "version": "2.3.1",
4
+ "version": "2.3.3",
5
5
  "files": [
6
6
  "dist/*",
7
7
  "src/*",
@@ -1,7 +1,7 @@
1
1
  import HelloWorld from "./HelloWorld.vue"
2
2
  import IconTest from "./IconTest.vue"
3
3
 
4
- export default {
4
+ export {
5
5
  IconTest,
6
6
  HelloWorld,
7
7
  }
package/src/install.js CHANGED
@@ -1,18 +1,11 @@
1
1
  import * as components from "./components"
2
- import HelloWorld from "./components/HelloWorld.vue"
3
- import IconTest from "./components/IconTest.vue"
2
+
4
3
  const VuePancakeIcons = {
5
4
  install(Vue) {
6
- console.log(components, "components")
7
5
  for (let props in components) {
8
- console.log(props, "props")
9
6
  const component = components[props]
10
- console.log(component, "dmmm")
11
- Vue.component(component.name, component)
7
+ Vue.component(component.name + "-pcon", component)
12
8
  }
13
- console.log(IconTest, "IconTest")
14
- Vue.component('icon-test', IconTest)
15
- Vue.component('hello-world', HelloWorld)
16
9
  }
17
10
  }
18
11