morghulis 2.0.20 → 2.0.22

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.
@@ -0,0 +1,27 @@
1
+ import { defineComponent as c, ref as l, createElementBlock as m, openBlock as r, Fragment as a, createElementVNode as n, toDisplayString as s } from "vue";
2
+ const i = { class: "my" }, p = { class: "card" }, u = /* @__PURE__ */ c({
3
+ __name: "MyComp",
4
+ props: {
5
+ msg: { type: String }
6
+ },
7
+ setup(t) {
8
+ const e = l(0);
9
+ return (_, o) => (r(), m(a, null, [
10
+ n("h1", i, s(t.msg), 1),
11
+ n("div", p, [
12
+ n("button", {
13
+ type: "button",
14
+ onClick: o[0] || (o[0] = (y) => e.value++)
15
+ }, "count is " + s(e.value), 1)
16
+ ])
17
+ ], 64));
18
+ }
19
+ });
20
+ function d(t) {
21
+ t.component("MyComp", u);
22
+ }
23
+ const g = { install: d };
24
+ export {
25
+ u as MyComp,
26
+ g as default
27
+ };
@@ -1 +1 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const i=e.ref(0);return(r,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",l,e.toDisplayString(n.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:s[0]||(s[0]=m=>i.value++)},"count is "+e.toDisplayString(i.value),1)])],64))}}),d={install:n=>{n.component("MyComp",o)}};t.MyComp=o,t.default=d,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Morghulis={},t.Vue))})(this,function(t,e){"use strict";const l={class:"my"},c={class:"card"},o=e.defineComponent({__name:"MyComp",props:{msg:{type:String}},setup(n){const i=e.ref(0);return(u,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("h1",l,e.toDisplayString(n.msg),1),e.createElementVNode("div",c,[e.createElementVNode("button",{type:"button",onClick:s[0]||(s[0]=p=>i.value++)},"count is "+e.toDisplayString(i.value),1)])],64))}});function d(n){n.component("MyComp",o)}const r={install:d};t.MyComp=o,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,7 +1,8 @@
1
1
  import MyComp from './MyComp.vue';
2
2
  import { App } from "vue";
3
+ declare function install(app: App): void;
3
4
  export { MyComp };
4
5
  declare const _default: {
5
- install: (app: App) => void;
6
+ install: typeof install;
6
7
  };
7
8
  export default _default;
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
- "main": "./dist/morghulis.umd.cjs",
9
- "module": "./dist/morghulis.js",
8
+ "main": "./dist/morghulis.umd.js",
9
+ "module": "./dist/morghulis.es.js",
10
10
  "types": "./dist/types/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./dist/morghulis.js",
13
+ "import": "./dist/morghulis.es.js",
14
14
  "require": "./dist/morghulis.umd.js",
15
15
  "types": "./dist/types/index.d.ts"
16
16
  }
package/dist/morghulis.js DELETED
@@ -1,27 +0,0 @@
1
- import { defineComponent as c, ref as l, createElementBlock as m, openBlock as r, Fragment as a, createElementVNode as e, toDisplayString as s } from "vue";
2
- const p = { class: "my" }, i = { class: "card" }, u = /* @__PURE__ */ c({
3
- __name: "MyComp",
4
- props: {
5
- msg: { type: String }
6
- },
7
- setup(t) {
8
- const n = l(0);
9
- return (d, o) => (r(), m(a, null, [
10
- e("h1", p, s(t.msg), 1),
11
- e("div", i, [
12
- e("button", {
13
- type: "button",
14
- onClick: o[0] || (o[0] = (_) => n.value++)
15
- }, "count is " + s(n.value), 1)
16
- ])
17
- ], 64));
18
- }
19
- }), f = {
20
- install: (t) => {
21
- t.component("MyComp", u);
22
- }
23
- };
24
- export {
25
- u as MyComp,
26
- f as default
27
- };