@vuecs/gravatar 1.0.0

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-2022 Peter Placzek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @vue-layout/gravatar 📷
2
+
3
+ [![npm version](https://badge.fury.io/js/@vue-layout%2Fgravatar.svg)](https://badge.fury.io/js/@vue-layout%2Fgravatar)
4
+ [![CI](https://github.com/Tada5hi/vue-layout/actions/workflows/main.yml/badge.svg)](https://github.com/Tada5hi/vue-layout/actions/workflows/main.yml)
5
+
6
+ A package containing a gravatar component.
7
+
8
+ **Table of Contents**
9
+
10
+ - [Installation](#installation)
11
+ - [Usage](#usage)
12
+ - [License](#license)
13
+
14
+ ## Installation
15
+
16
+ ```
17
+ $ npm i --save @vue-layout/gravatar
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Register the plugin.
23
+
24
+ ```typescript
25
+ import install from '@vue-layout/gravatar';
26
+ import { createApp } from 'vue'
27
+
28
+ const app = createApp({})
29
+
30
+ app.use(install, {
31
+ /* optional options */
32
+ })
33
+ ```
34
+
35
+ After the component is registered, it can be used as follows.
36
+
37
+ ```vue
38
+ <template>
39
+ <VCGravatar
40
+ :email="'max.mustermann@example.com'"
41
+ :default-img="'retro'"
42
+ :size="80"
43
+ :rating="'g'"
44
+ />
45
+ </template>
46
+ ```
47
+
48
+ ## License
49
+
50
+ Made with 💚
51
+
52
+ Published under [MIT License](./LICENSE).
@@ -0,0 +1,79 @@
1
+ export declare const VCGravatar: import("vue").DefineComponent<{
2
+ email: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ hash: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: NumberConstructor;
12
+ default: number;
13
+ };
14
+ defaultImg: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ rating: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ alt: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ protocol: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ hostname: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
35
+ [key: string]: any;
36
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
+ email: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ hash: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ size: {
46
+ type: NumberConstructor;
47
+ default: number;
48
+ };
49
+ defaultImg: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ rating: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ alt: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ protocol: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ hostname: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ }>>, {
70
+ email: string;
71
+ hash: string;
72
+ size: number;
73
+ defaultImg: string;
74
+ rating: string;
75
+ alt: string;
76
+ protocol: string;
77
+ hostname: string;
78
+ }, {}>;
79
+ //# sourceMappingURL=component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../src/component.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyDrB,CAAC"}
package/dist/index.cjs ADDED
@@ -0,0 +1,75 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var md5 = require('md5');
6
+ var vue = require('vue');
7
+
8
+ const VCGravatar = vue.defineComponent({
9
+ inheritAttrs: false,
10
+ props: {
11
+ email: {
12
+ type: String,
13
+ default: ''
14
+ },
15
+ hash: {
16
+ type: String,
17
+ default: ''
18
+ },
19
+ size: {
20
+ type: Number,
21
+ default: 80
22
+ },
23
+ defaultImg: {
24
+ type: String,
25
+ default: 'retro'
26
+ },
27
+ rating: {
28
+ type: String,
29
+ default: 'g'
30
+ },
31
+ alt: {
32
+ type: String,
33
+ default: 'Avatar'
34
+ },
35
+ protocol: {
36
+ type: String,
37
+ default: ''
38
+ },
39
+ hostname: {
40
+ type: String,
41
+ default: 'www.gravatar.com'
42
+ }
43
+ },
44
+ setup (props, ctx) {
45
+ const url = vue.computed(()=>{
46
+ const protocol = props.protocol.slice(-1) === ':' ? props.protocol : `${props.protocol}:`;
47
+ const img = [
48
+ `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,
49
+ props.hash || md5(props.email.trim().toLowerCase()),
50
+ `?s=${props.size}`,
51
+ `&d=${props.defaultImg}`,
52
+ `&r=${props.rating}`
53
+ ];
54
+ return img.join('');
55
+ });
56
+ return ()=>vue.h('img', {
57
+ src: url.value,
58
+ alt: props.alt,
59
+ ...ctx.attrs
60
+ });
61
+ }
62
+ });
63
+
64
+ function install(instance, options = {}) {
65
+ instance.component('VCGravatar', VCGravatar);
66
+ }
67
+ var index = {
68
+ install
69
+ };
70
+
71
+ exports.VCGravatar = VCGravatar;
72
+ exports.default = index;
73
+ exports.install = install;
74
+ module.exports = Object.assign(exports.default, exports);
75
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;;;;;AAGO,MAAMA,aAAaC,mBAAgB,CAAA;IACtCC,YAAc,EAAA,KAAA;IACdC,KAAO,EAAA;QACHC,KAAO,EAAA;YACHC,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAC,IAAM,EAAA;YACFH,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAE,IAAM,EAAA;YACFJ,IAAMK,EAAAA,MAAAA;YACNH,OAAS,EAAA,EAAA;AACb,SAAA;QACAI,UAAY,EAAA;YACRN,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,OAAA;AACb,SAAA;QACAK,MAAQ,EAAA;YACJP,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,GAAA;AACb,SAAA;QACAM,GAAK,EAAA;YACDR,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,QAAA;AACb,SAAA;QACAO,QAAU,EAAA;YACNT,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAQ,QAAU,EAAA;YACNV,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,kBAAA;AACb,SAAA;AACJ,KAAA;IACAS,KAAMb,CAAAA,CAAAA,KAAK,EAAEc,GAAG,EAAA;AACZ,QAAA,MAAMC,MAAMC,YAAS,CAAA,IAAA;AACjB,YAAA,MAAML,WAAWX,KAAMW,CAAAA,QAAQ,CAACM,KAAK,CAAC,CAAC,CAAO,CAAA,KAAA,GAAA,GAC1CjB,KAAMW,CAAAA,QAAQ,GACd,CAAC,EAAEX,MAAMW,QAAQ,CAAC,CAAC,CAAC,CAAA;AACxB,YAAA,MAAMO,GAAM,GAAA;gBACR,CAAC,EAAEP,QAAa,KAAA,GAAA,GAAM,EAAKA,GAAAA,QAAAA,CAAS,EAAE,EAAEX,KAAMY,CAAAA,QAAQ,CAAC,QAAQ,CAAC;gBAChEZ,KAAMK,CAAAA,IAAI,IAAIc,GAAInB,CAAAA,KAAAA,CAAMC,KAAK,CAACmB,IAAI,GAAGC,WAAW,EAAA,CAAA;AAChD,gBAAA,CAAC,GAAG,EAAErB,KAAMM,CAAAA,IAAI,CAAC,CAAC;AAClB,gBAAA,CAAC,GAAG,EAAEN,KAAMQ,CAAAA,UAAU,CAAC,CAAC;AACxB,gBAAA,CAAC,GAAG,EAAER,KAAMS,CAAAA,MAAM,CAAC,CAAC;AACvB,aAAA,CAAA;YACD,OAAOS,GAAAA,CAAII,IAAI,CAAC,EAAA,CAAA,CAAA;AACpB,SAAA,CAAA,CAAA;QAEA,OAAO,IAAMC,MAAE,KAAO,EAAA;AAClBC,gBAAAA,GAAAA,EAAKT,IAAIU,KAAK;AACdf,gBAAAA,GAAAA,EAAKV,MAAMU,GAAG;AACd,gBAAA,GAAGI,IAAIY,KAAK;AAChB,aAAA,CAAA,CAAA;AACJ,KAAA;AACJ,CAAG;;AC/CI,SAASC,OAAQC,CAAAA,QAAa,EAAEC,OAAAA,GAAmB,EAAE,EAAA;IACxDD,QAASE,CAAAA,SAAS,CAAC,YAAcjC,EAAAA,UAAAA,CAAAA,CAAAA;AACrC,CAAA;AAEA,YAAe;AACX8B,IAAAA,OAAAA;AACJ,CAAwC;;;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ import type { App } from 'vue';
2
+ import './vue';
3
+ import type { Options } from './type';
4
+ export * from './component';
5
+ export * from './type';
6
+ export declare function install(instance: App, options?: Options): void;
7
+ declare const _default: {
8
+ install: typeof install;
9
+ };
10
+ export default _default;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAe,MAAM,KAAK,CAAC;AAE5C,OAAO,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB,wBAAgB,OAAO,CAAC,QAAQ,EAAE,GAAG,EAAE,OAAO,GAAE,OAAY,GAAI,IAAI,CAEnE;;;;AAED,wBAEwC"}
package/dist/index.mjs ADDED
@@ -0,0 +1,68 @@
1
+ import md5 from 'md5';
2
+ import { defineComponent, computed, h } from 'vue';
3
+
4
+ const VCGravatar = defineComponent({
5
+ inheritAttrs: false,
6
+ props: {
7
+ email: {
8
+ type: String,
9
+ default: ''
10
+ },
11
+ hash: {
12
+ type: String,
13
+ default: ''
14
+ },
15
+ size: {
16
+ type: Number,
17
+ default: 80
18
+ },
19
+ defaultImg: {
20
+ type: String,
21
+ default: 'retro'
22
+ },
23
+ rating: {
24
+ type: String,
25
+ default: 'g'
26
+ },
27
+ alt: {
28
+ type: String,
29
+ default: 'Avatar'
30
+ },
31
+ protocol: {
32
+ type: String,
33
+ default: ''
34
+ },
35
+ hostname: {
36
+ type: String,
37
+ default: 'www.gravatar.com'
38
+ }
39
+ },
40
+ setup (props, ctx) {
41
+ const url = computed(()=>{
42
+ const protocol = props.protocol.slice(-1) === ':' ? props.protocol : `${props.protocol}:`;
43
+ const img = [
44
+ `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,
45
+ props.hash || md5(props.email.trim().toLowerCase()),
46
+ `?s=${props.size}`,
47
+ `&d=${props.defaultImg}`,
48
+ `&r=${props.rating}`
49
+ ];
50
+ return img.join('');
51
+ });
52
+ return ()=>h('img', {
53
+ src: url.value,
54
+ alt: props.alt,
55
+ ...ctx.attrs
56
+ });
57
+ }
58
+ });
59
+
60
+ function install(instance, options = {}) {
61
+ instance.component('VCGravatar', VCGravatar);
62
+ }
63
+ var index = {
64
+ install
65
+ };
66
+
67
+ export { VCGravatar, index as default, install };
68
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../src/component.ts","../src/index.ts"],"sourcesContent":["import md5 from 'md5';\nimport { computed, defineComponent, h } from 'vue';\n\nexport const VCGravatar = defineComponent({\n inheritAttrs: false,\n props: {\n email: {\n type: String,\n default: '',\n },\n hash: {\n type: String,\n default: '',\n },\n size: {\n type: Number,\n default: 80,\n },\n defaultImg: {\n type: String,\n default: 'retro',\n },\n rating: {\n type: String,\n default: 'g',\n },\n alt: {\n type: String,\n default: 'Avatar',\n },\n protocol: {\n type: String,\n default: '',\n },\n hostname: {\n type: String,\n default: 'www.gravatar.com',\n },\n },\n setup(props, ctx) {\n const url = computed(() => {\n const protocol = props.protocol.slice(-1) === ':' ?\n props.protocol :\n `${props.protocol}:`;\n const img = [\n `${protocol === ':' ? '' : protocol}//${props.hostname}/avatar/`,\n props.hash || md5(props.email.trim().toLowerCase()),\n `?s=${props.size}`,\n `&d=${props.defaultImg}`,\n `&r=${props.rating}`,\n ];\n return img.join('');\n });\n\n return () => h('img', {\n src: url.value,\n alt: props.alt,\n ...ctx.attrs,\n });\n },\n});\n","import type { App, Plugin, Ref } from 'vue';\n\nimport './vue';\n\n// Import vue components\nimport {\n VCGravatar,\n} from './component';\nimport type { Options } from './type';\n\nexport * from './component';\nexport * from './type';\n\nexport function install(instance: App, options: Options = {}) : void {\n instance.component('VCGravatar', VCGravatar);\n}\n\nexport default {\n install,\n} satisfies Plugin<Options | undefined>;\n"],"names":["VCGravatar","defineComponent","inheritAttrs","props","email","type","String","default","hash","size","Number","defaultImg","rating","alt","protocol","hostname","setup","ctx","url","computed","slice","img","md5","trim","toLowerCase","join","h","src","value","attrs","install","instance","options","component"],"mappings":";;;AAGO,MAAMA,aAAaC,eAAgB,CAAA;IACtCC,YAAc,EAAA,KAAA;IACdC,KAAO,EAAA;QACHC,KAAO,EAAA;YACHC,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAC,IAAM,EAAA;YACFH,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAE,IAAM,EAAA;YACFJ,IAAMK,EAAAA,MAAAA;YACNH,OAAS,EAAA,EAAA;AACb,SAAA;QACAI,UAAY,EAAA;YACRN,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,OAAA;AACb,SAAA;QACAK,MAAQ,EAAA;YACJP,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,GAAA;AACb,SAAA;QACAM,GAAK,EAAA;YACDR,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,QAAA;AACb,SAAA;QACAO,QAAU,EAAA;YACNT,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,EAAA;AACb,SAAA;QACAQ,QAAU,EAAA;YACNV,IAAMC,EAAAA,MAAAA;YACNC,OAAS,EAAA,kBAAA;AACb,SAAA;AACJ,KAAA;IACAS,KAAMb,CAAAA,CAAAA,KAAK,EAAEc,GAAG,EAAA;AACZ,QAAA,MAAMC,MAAMC,QAAS,CAAA,IAAA;AACjB,YAAA,MAAML,WAAWX,KAAMW,CAAAA,QAAQ,CAACM,KAAK,CAAC,CAAC,CAAO,CAAA,KAAA,GAAA,GAC1CjB,KAAMW,CAAAA,QAAQ,GACd,CAAC,EAAEX,MAAMW,QAAQ,CAAC,CAAC,CAAC,CAAA;AACxB,YAAA,MAAMO,GAAM,GAAA;gBACR,CAAC,EAAEP,QAAa,KAAA,GAAA,GAAM,EAAKA,GAAAA,QAAAA,CAAS,EAAE,EAAEX,KAAMY,CAAAA,QAAQ,CAAC,QAAQ,CAAC;gBAChEZ,KAAMK,CAAAA,IAAI,IAAIc,GAAInB,CAAAA,KAAAA,CAAMC,KAAK,CAACmB,IAAI,GAAGC,WAAW,EAAA,CAAA;AAChD,gBAAA,CAAC,GAAG,EAAErB,KAAMM,CAAAA,IAAI,CAAC,CAAC;AAClB,gBAAA,CAAC,GAAG,EAAEN,KAAMQ,CAAAA,UAAU,CAAC,CAAC;AACxB,gBAAA,CAAC,GAAG,EAAER,KAAMS,CAAAA,MAAM,CAAC,CAAC;AACvB,aAAA,CAAA;YACD,OAAOS,GAAAA,CAAII,IAAI,CAAC,EAAA,CAAA,CAAA;AACpB,SAAA,CAAA,CAAA;QAEA,OAAO,IAAMC,EAAE,KAAO,EAAA;AAClBC,gBAAAA,GAAAA,EAAKT,IAAIU,KAAK;AACdf,gBAAAA,GAAAA,EAAKV,MAAMU,GAAG;AACd,gBAAA,GAAGI,IAAIY,KAAK;AAChB,aAAA,CAAA,CAAA;AACJ,KAAA;AACJ,CAAG;;AC/CI,SAASC,OAAQC,CAAAA,QAAa,EAAEC,OAAAA,GAAmB,EAAE,EAAA;IACxDD,QAASE,CAAAA,SAAS,CAAC,YAAcjC,EAAAA,UAAAA,CAAAA,CAAAA;AACrC,CAAA;AAEA,YAAe;AACX8B,IAAAA,OAAAA;AACJ,CAAwC;;;;"}
package/dist/type.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ type Options = {};
2
+ export type { Options, };
3
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../src/type.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,GAAG,EAAE,CAAC;AAElB,YAAY,EACR,OAAO,GACV,CAAC"}
package/dist/vue.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { VCGravatar } from './component';
2
+ declare module '@vue/runtime-core' {
3
+ interface GlobalComponents {
4
+ VCGravatar: typeof VCGravatar;
5
+ }
6
+ }
7
+ //# sourceMappingURL=vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,QAAQ,mBAAmB,CAAC;IAC/B,UAAiB,gBAAgB;QAC7B,UAAU,EAAE,OAAO,UAAU,CAAC;KACjC;CACJ"}
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@vuecs/gravatar",
3
+ "version": "1.0.0",
4
+ "description": "A package containing a gravatar component.",
5
+ "exports": {
6
+ "./package.json": "./package.json",
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/index.cjs"
11
+ }
12
+ },
13
+ "main": "dist/index.cjs",
14
+ "module": "dist/index.mjs",
15
+ "types": "dist/index.d.ts",
16
+ "files": [
17
+ "dist/*"
18
+ ],
19
+ "keywords": [
20
+ "gravatar",
21
+ "avatar",
22
+ "vue",
23
+ "size",
24
+ "picture"
25
+ ],
26
+ "author": {
27
+ "name": "Peter Placzek",
28
+ "email": "contact@tada5hi.net",
29
+ "url": "https://tada5hi.net"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/tada5hi/vuecs.git",
34
+ "directory": "packages/gravatar"
35
+ },
36
+ "scripts": {
37
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
38
+ "build:js": "rollup -c",
39
+ "build": "cross-env NODE_ENV=production rimraf dist && npm run build:js && npm run build:types"
40
+ },
41
+ "devDependencies": {
42
+ "@types/md5": "^2.3.5",
43
+ "vue": "^3.3.9"
44
+ },
45
+ "peerDependencies": {
46
+ "vue": "^3.x"
47
+ },
48
+ "engines": {
49
+ "node": ">=16"
50
+ },
51
+ "dependencies": {
52
+ "md5": "^2.3.0"
53
+ },
54
+ "publishConfig": {
55
+ "access": "public"
56
+ }
57
+ }